A graph or its complement has diameter at most 3
Lax185574.ComplementDiameter · concepts/Lax185574/ComplementDiameter.lean · lax-185574
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
For every graph G, at least one of G and Ḡ has diameter at most 3.
This is folklore.
Concept map
Evidence
Each proof establishes this claim relative to its assumptions.
In the paper
- page 32 of this submission's paper
Lean source view on GitHub
| 1 | import Lax185574.GaifmanGraph |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: A graph or its complement has diameter at most 3 |
| 6 | type: lemma |
| 7 | --- |
| 8 | For every graph G, at least one of G and Ḡ has diameter at most 3. |
| 9 | |
| 10 | This is folklore. |
| 11 | |
| 12 | # Formalization notes |
| 13 | |
| 14 | "Diameter at most 3" says that any two vertices are joined by a walk of |
| 15 | length at most 3, `WithinDist` of `Lax185574.GaifmanGraph`. The |
| 16 | complement Ḡ is the complement `Gᶜ`, whose edges are the pairs of |
| 17 | distinct non-adjacent vertices. The graph may be infinite. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax185574.ComplementDiameter |
| 21 | |
| 22 | open Lax185574.GaifmanGraph |
| 23 | |
| 24 | universe z |
| 25 | |
| 26 | /-- **A graph or its complement has diameter at most 3.** -/ |
| 27 | axiom diameter_le_three_or_compl {V : Type z} (G : SimpleGraph V) : |
| 28 | (∀ u v : V, WithinDist G 3 u v) ∨ (∀ u v : V, WithinDist Gᶜ 3 u v) |
| 29 | |
| 30 | end Lax185574.ComplementDiameter |
| 31 |
Formalization notes
"Diameter at most 3" says that any two vertices are joined by a walk of length at most 3, of . The complement Ḡ is the complement , whose edges are the pairs of distinct non-adjacent vertices. The graph may be infinite.
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments