Lax10.ThreeConnectedAndColorable
3-connected graphs and 4-colorability
concepts/Lax10/ThreeConnectedAndColorable.lean · lax-10
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Definition
A graph is -connected when it has at least 4 vertices and remains connected after deleting any set of at most two vertices. A graph is -colorable when its vertices have a proper coloring with at most colors; in particular, -colorability is the case .
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Coloring.VertexColoring |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: 3-connected graphs and 4-colorability |
| 6 | type: definition |
| 7 | --- |
| 8 | A graph is -connected when it has at least 4 vertices and remains |
| 9 | connected after deleting any set of at most two vertices. A graph is |
| 10 | -colorable when its vertices have a proper coloring with at most |
| 11 | colors; in particular, -colorability is the case . |
| 12 | -/ |
| 13 | |
| 14 | open Finset |
| 15 | |
| 16 | namespace Lax10.ThreeConnectedAndColorable |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {V : Type u} |
| 21 | |
| 22 | /-- A simple graph is colorable with at most colors. -/ |
| 23 | def KColorable (m : Nat) (G : SimpleGraph V) : Prop := |
| 24 | G.Colorable m |
| 25 | |
| 26 | /-- The induced graph obtained after deleting the vertices in . -/ |
| 27 | def deleteVertices (G : SimpleGraph V) (S : Finset V) : |
| 28 | SimpleGraph {v : V // v ∉ S} := |
| 29 | G.induce {v : V | v ∉ S} |
| 30 | |
| 31 | /-- The set separates two vertices that remain after its deletion. -/ |
| 32 | def IsVertexSeparator (G : SimpleGraph V) (S : Finset V) : Prop := |
| 33 | ∃ x y : {v : V // v ∉ S}, ¬ (deleteVertices G S).Reachable x y |
| 34 | |
| 35 | /-- |
| 36 | A graph is -connected when it has at least 4 vertices and no vertex |
| 37 | separator of size at most two. |
| 38 | -/ |
| 39 | def ThreeConnected (G : SimpleGraph V) : Prop := |
| 40 | 4 ≤ Nat.card V ∧ |
| 41 | ∀ S : Finset V, S.card ≤ 2 → ¬ IsVertexSeparator G S |
| 42 | |
| 43 | end Lax10.ThreeConnectedAndColorable |
| 44 |
Builds on
none
Used by
Community review
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.
0 comments