Colorings of graphs
Lax185574.Colorings · concepts/Lax185574/Colorings.lean · lax-185574
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A coloring of a graph G is an expansion G⁺ of G by finitely many unary predicates. With c predicates, G⁺ is a structure in the signature of graphs expanded by c unary symbols.
Concept map
Lean source view on GitHub
| 1 | import Lax710763.Transductions |
| 2 | import Mathlib.ModelTheory.Graph |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Colorings of graphs |
| 7 | type: definition |
| 8 | --- |
| 9 | A *coloring* of a graph G is an expansion G⁺ of G by finitely many unary |
| 10 | predicates. With c predicates, G⁺ is a structure in the signature of |
| 11 | graphs expanded by c unary symbols. |
| 12 | |
| 13 | # Formalization notes |
| 14 | |
| 15 | The colored language and the color sets are those of |
| 16 | `Lax710763.Transductions`, which the archive's monadic dependence is |
| 17 | stated over. The c color sets are arbitrary: they may overlap and need |
| 18 | not cover the vertex set. The expansion is the structure of the sum |
| 19 | language, which interprets adjacency by `G` and the i-th color by the |
| 20 | i-th color set. |
| 21 | |
| 22 | The main theorem, monadic dependence and the independence property use |
| 23 | the formulas of `Lax185574.FirstOrderLogic`, with a coloring given by |
| 24 | one set of vertices per color. The statements about types and |
| 25 | definability use the formulas of mathlib in the colored language here, |
| 26 | since mathlib provides the quantifier rank, parameters and the sets of |
| 27 | formulas that types are made of. In both, a coloring with c colors is |
| 28 | a family of c sets of vertices, which may overlap. |
| 29 | -/ |
| 30 | |
| 31 | namespace Lax185574.Colorings |
| 32 | |
| 33 | open FirstOrder FirstOrder.Language Lax710763.Transductions |
| 34 | |
| 35 | universe z |
| 36 | |
| 37 | variable {V : Type z} |
| 38 | |
| 39 | /-- The expansion `G⁺` of the graph `G` by the color sets `colors`. -/ |
| 40 | @[implicit_reducible] |
| 41 | def expansion (G : SimpleGraph V) {c : ℕ} (colors : Fin c → Set V) : |
| 42 | (withColors Language.graph c).Structure V := |
| 43 | @Language.sumStructure _ _ V G.structure (colorStructure colors) |
| 44 | |
| 45 | end Lax185574.Colorings |
| 46 |
Formalization notes
The colored language and the color sets are those of , which the archive's monadic dependence is stated over. The c color sets are arbitrary: they may overlap and need not cover the vertex set. The expansion is the structure of the sum language, which interprets adjacency by and the i-th color by the i-th color set.
The main theorem, monadic dependence and the independence property use the formulas of , with a coloring given by one set of vertices per color. The statements about types and definability use the formulas of mathlib in the colored language here, since mathlib provides the quantifier rank, parameters and the sets of formulas that types are made of. In both, a coloring with c colors is a family of c sets of vertices, which may overlap.
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments