Documentation

CslibFrontier.Logics.FirstOrder.ZeroOneLaw.ExtensionAxiom

Extension axioms and the theory of the random graph #

The k-variable extension axiom with adjacency pattern s : Fin k → Bool says that for all pairwise distinct x₀, …, x_{k-1} there is a vertex z, distinct from every xᵢ, adjacent to xᵢ exactly when s i = true. The theory of the random graph consists of the axioms of simple graphs and all extension axioms [Fag76] [Libkin2004, Section 12.2].

Its models are infinite, and between any two of them the finite partial isomorphisms have the back-and-forth property: a finite partial isomorphism extends to any new element of the domain by choosing a witness of the extension axiom given by the adjacency pattern of the new element. Two countable models are therefore isomorphic (Cslib.Logic.FO.graph.aleph0_categorical_randomGraphTheory). Completeness of the theory, which also needs its satisfiability, is in CslibFrontier.Logics.FirstOrder.ZeroOneLaw.

Main definitions #

Main results #

References #

def Cslib.Logic.FO.graph.IsExtensionWitness {M : Type u_1} [FirstOrder.Language.graph.Structure M] {k : ℕ} (x : Fin k → M) (s : Fin k → Bool) (z : M) :

z witnesses the extension of the tuple x by the adjacency pattern s: it differs from every x i and is adjacent to x i exactly when s i = true.

The extension property for the pattern s : Fin k → Bool: every tuple of k distinct elements has a witness of the extension by s.

The extension axiom for the pattern s : Fin k → Bool, as a sentence of the graph language [Fag76] [Libkin2004, Section 12.2].

An extension axiom holds exactly when the corresponding extension property does.

The set of all extension axioms.

The theory of the random graph: the axioms of simple graphs together with all extension axioms [Fag76] [Libkin2004, Section 12.2]. Its countable model is the Rado graph.

The sentences of the theory of the random graph are the simple-graph axioms and the extension axioms.

A structure models all extension axioms exactly when it has every extension property.

The models of the theory of the random graph are the simple graphs with every extension property.

A structure with every extension property is infinite: in a finite structure, the tuple listing all elements has no witness.

Models of the theory of the random graph are infinite.

Forth step. If N is a simple graph with every extension property, then every embedding of a finitely generated (that is, finite) substructure of a simple graph M into N extends to any further element of M.

The theory of the random graph is ℵ₀-categorical: any two countable models are isomorphic, by a back-and-forth argument [Libkin2004, Chapter 12].

Simple graphs #

A simple graph G satisfies a sentence φ of the graph language when φ holds in the structure G.structure (Mathlib's interpretation of adjacency by G.Adj).

@[simp]

A simple graph satisfies the negation of a sentence exactly when it does not satisfy the sentence.

Every simple graph satisfies the axioms of simple graphs.

theorem Cslib.Logic.FO.graph.satisfies_extensionAxiom_iff {V : Type u_2} (G : SimpleGraph V) (k : ℕ) (s : Fin k → Bool) :
Satisfies G (extensionAxiom k s) ↔ ∀ (x : Fin k → V), Function.Injective x → ∃ (z : V), (∀ (i : Fin k), z ≠ x i) ∧ ∀ (i : Fin k), G.Adj z (x i) ↔ s i = true

A simple graph satisfies the extension axiom for s exactly when every tuple of k distinct vertices has a vertex outside it adjacent to x i exactly when s i = true.