Graph maps as maps of Language.graph-structures #
A simple graph G on V is a structure of Mathlib's language of graphs FirstOrder.Language.graph
through SimpleGraph.structure. This file adds the missing IsEmpty and Finite instances on the
relation symbols of Language.graph and translates between the graph maps of
Mathlib/Combinatorics/SimpleGraph/Maps.lean and the maps of Language.graph-structures: a graph
isomorphism G ≃g H is exactly an equivalence V ≃[Language.graph] W of the structures
G.structure and H.structure, and an induced embedding G ↪g H is exactly an embedding
V ↪[Language.graph] W. Isomorphisms therefore transfer the realization of every first-order
formula, and isomorphic graphs satisfy the same sentences.
Main definitions #
FirstOrder.Language.graph.isEmpty_relations_zero,FirstOrder.Language.graph.finite_relations: the language of graphs has no nullary relation symbols and finitely many relation symbols in total.SimpleGraph.Iso.toLanguageEquiv,SimpleGraph.Iso.ofLanguageEquiv: a graph isomorphism as an equivalence ofLanguage.graph-structures, and back.SimpleGraph.Embedding.toLanguageEmbedding,SimpleGraph.Embedding.ofLanguageEmbedding: an induced graph embedding as an embedding ofLanguage.graph-structures, and back.
Main results #
SimpleGraph.Iso.realize_boundedFormula_iff,SimpleGraph.Iso.realize_formula_iff: a graph isomorphism transfers the realization of formulas along the isomorphism.SimpleGraph.Iso.realize_sentence_iff: isomorphic simple graphs satisfy the same sentences of the language of graphs.
The graph language has no nullary relation symbols, matching the analogous instance for
Language.order in Mathlib/ModelTheory/Order.lean.
The graph language has finitely many relation symbols.
An induced embedding of simple graphs is an embedding of the Language.graph-structures.
An embedding of the Language.graph-structures of two simple graphs is an induced embedding
of the graphs.
A graph isomorphism is an equivalence of the Language.graph-structures.
An equivalence of the Language.graph-structures of two simple graphs is a graph
isomorphism.
A graph isomorphism transfers the realization of bounded formulas of the language of graphs:
φ holds in H at the image under e of an assignment exactly when it holds in G at the
assignment.
A graph isomorphism transfers the realization of formulas of the language of graphs: φ
holds in H at the image under e of an assignment exactly when it holds in G at the
assignment.
Isomorphic simple graphs satisfy the same sentences of the language of graphs.