The areas / V32. Logic, model theory and computability
Mathlib.ModelTheory.Graph
18 declarations. Mathlib docs · Source
First-Order Structures in Graph Theory
This file defines first-order languages, structures, and theories in graph theory.
Main Definitions
FirstOrder.Language.graphis the language consisting of a single relation representing adjacency.SimpleGraph.structureis the first-order structure corresponding to a given simple graph.FirstOrder.Language.Theory.simpleGraphis the theory of simple graphs.FirstOrder.Language.simpleGraphOfStructuregives the simple graph corresponding to a model of the theory of simple graphs.
Simple Graphs
def FirstOrder.Language.graphRel.ctorIdx E1 #
{a : ℕ} → FirstOrder.Language.graphRel a → ℕ
inductive FirstOrder.Language.graphRel E1 #
ℕ → Type
The type of relations for the language of graphs, consisting of a single binary relation adj.
ctor FirstOrder.Language.graphRel.adj E0 #
FirstOrder.Language.graphRel 2
def FirstOrder.Language.instDecidableEqGraphRel.decEq E1 #
{a : ℕ} → (x x_1 : FirstOrder.Language.graphRel a) → Decidable (x = x_1)
instance FirstOrder.Language.instDecidableEqGraphRel E0 #
{a : ℕ} → DecidableEq (FirstOrder.Language.graphRel a)
def FirstOrder.Language.graph E3 #
FirstOrder.Language
The language consisting of a single relation representing adjacency.
instance FirstOrder.Language.instIsRelationalGraph E0 #
FirstOrder.Language.graph.IsRelational
abbrev FirstOrder.Language.adj E1 #
FirstOrder.Language.graph.Relations 2
The symbol representing the adjacency relation.
def SimpleGraph.structure E3 #
{V : Type u} → SimpleGraph V → FirstOrder.Language.graph.Structure V
Any simple graph can be thought of as a structure in the language of graphs.
instance FirstOrder.Language.graph.instSubsingleton E0 #
∀ {n : ℕ}, Subsingleton (FirstOrder.Language.graph.Relations n)
def FirstOrder.Language.Theory.simpleGraph E3 #
FirstOrder.Language.graph.Theory
The theory of simple graphs.
theorem FirstOrder.Language.Theory.simpleGraph_model_iff E0 #
∀ {V : Type u} [inst : FirstOrder.Language.graph.Structure V],
V ⊨ FirstOrder.Language.Theory.simpleGraph ↔
(Std.Irrefl fun x y ↦ FirstOrder.Language.Structure.RelMap FirstOrder.Language.adj ![x, y]) ∧
Std.Symm fun x y ↦ FirstOrder.Language.Structure.RelMap FirstOrder.Language.adj ![x, y]
instance FirstOrder.Language.simpleGraph_model E0 #
∀ {V : Type u} (G : SimpleGraph V), V ⊨ FirstOrder.Language.Theory.simpleGraph
def FirstOrder.Language.simpleGraphOfStructure E3 #
(V : Type u) →
[inst : FirstOrder.Language.graph.Structure V] → [V ⊨ FirstOrder.Language.Theory.simpleGraph] → SimpleGraph V
Any model of the theory of simple graphs represents a simple graph.
theorem FirstOrder.Language.simpleGraphOfStructure_adj E0 #
∀ (V : Type u) [inst : FirstOrder.Language.graph.Structure V] [inst_1 : V ⊨ FirstOrder.Language.Theory.simpleGraph]
(x y : V),
(FirstOrder.Language.simpleGraphOfStructure V).Adj x y =
FirstOrder.Language.Structure.RelMap FirstOrder.Language.adj ![x, y]
theorem SimpleGraph.simpleGraphOfStructure E0 #
∀ {V : Type u} (G : SimpleGraph V), FirstOrder.Language.simpleGraphOfStructure V = G
theorem FirstOrder.Language.structure_simpleGraphOfStructure E0 #
∀ {V : Type u} [S : FirstOrder.Language.graph.Structure V] [inst : V ⊨ FirstOrder.Language.Theory.simpleGraph],
(FirstOrder.Language.simpleGraphOfStructure V).structure = S
theorem FirstOrder.Language.Theory.simpleGraph_isSatisfiable E1 #
FirstOrder.Language.Theory.simpleGraph.IsSatisfiable