The components left by deleting a separator
Lax263307.SeparatorComponents · concepts/Lax263307/SeparatorComponents.lean · lax-263307
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
Deleting a vertex set partitions the remaining vertices into connected components. Every undeleted vertex belongs to exactly one part, and every edge with undeleted endpoints has both endpoints in one part. These are the properties used to combine the recursive independent sets.
Concept map
Lean source view on GitHub
| 1 | import Lax263307.LinearRelaxation |
| 2 | import Mathlib.Combinatorics.SimpleGraph.Connectivity.Connected |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: The components left by deleting a separator |
| 7 | type: definition |
| 8 | --- |
| 9 | Deleting a vertex set partitions the remaining vertices into connected |
| 10 | components. Every undeleted vertex belongs to exactly one part, and every |
| 11 | edge with undeleted endpoints has both endpoints in one part. These are the |
| 12 | properties used to combine the recursive independent sets. |
| 13 | |
| 14 | # Formalization notes |
| 15 | |
| 16 | `Partition` also permits grouping connected components together. Its parts |
| 17 | are finite sets in the original vertex type. The proof package constructs |
| 18 | the canonical partition into connected components of . |
| 19 | -/ |
| 20 | |
| 21 | namespace Lax263307.SeparatorComponents |
| 22 | |
| 23 | /-- A partition of the undeleted vertices, closed under undeleted edges. -/ |
| 24 | structure Partition {n : ℕ} (G : SimpleGraph (Fin n)) |
| 25 | (S : Finset (Fin n)) (ι : Type) where |
| 26 | /-- The original vertices in each part. -/ |
| 27 | vertices : ι → Finset (Fin n) |
| 28 | /-- Parts exclude the deleted vertices. -/ |
| 29 | outside : ∀ i v, v ∈ vertices i → v ∉ S |
| 30 | /-- Every undeleted vertex belongs to exactly one part. -/ |
| 31 | unique : ∀ v, v ∉ S → ∃! i, v ∈ vertices i |
| 32 | /-- No undeleted edge leaves a part. -/ |
| 33 | closed : ∀ i u v, u ∈ vertices i → v ∉ S → G.Adj u v → v ∈ vertices i |
| 34 | |
| 35 | /-- The recursive answer is the union of the answers on the parts. -/ |
| 36 | def combine {n : ℕ} {ι : Type} [Fintype ι] (I : ι → Finset (Fin n)) : |
| 37 | Finset (Fin n) := Finset.univ.biUnion I |
| 38 | |
| 39 | end Lax263307.SeparatorComponents |
| 40 |
Formalization notes
also permits grouping connected components together. Its parts are finite sets in the original vertex type. The proof package constructs the canonical partition into connected components of .
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments