Documentation

LeanPool.ApollonianSuperharmonic.P4366T1PrecursorPathLoop

P4366T1PrecursorPathLoop #

Adapted from Wesley Pegden’s Apache-2.0 Trellis formalization of Levine–Pegden–Smart. Changes: pool module paths, public exports, project namespace and current Mathlib compatibility.

theorem ApollonianSuperharmonic.P4366T1PrecursorPathLoop (C : BandCircle) (q : Fin 4 → CircleCoordinates) (cfg : BandOrderedGeneralConfiguration q) (T : ProtoTile) (cert : BandOrderedGeneralLayoutCertificate q cfg C T) (D P : Finset GaussianInt) (hD : ∀ (x : GaussianInt), x ∈ D ↔ x ∈ FootprintVertices T ∧ x ∉ BoundaryFootprintVertices T) (hP : ∀ (x : GaussianInt), x ∈ P ↔ x ∈ D ∧ ∃ (i : Fin 3) (s : Bool), x ∈ FootprintVertices (cert.P i s) ∧ x ∉ BoundaryFootprintVertices (cert.P i s)) (hO : Finset.Nonempty cert.O.cells) (hOband : BandPrototile (cfg.firstPredecessor 1) cert.O) (hroots : ∀ x ∈ D \ P, x ∈ FootprintVertices cert.O ↔ x ∈ {cert.precursorBoundary.a, cert.precursorBoundary.b}) (a b : GaussianInt) (ha : a ∈ {cert.precursorBoundary.a, cert.precursorBoundary.b}) (hb : b ∈ {cert.precursorBoundary.a, cert.precursorBoundary.b}) (hab : a ≠ b) (V : Set GaussianInt) (E : Set (Finset GaussianInt)) (hpath : SimpleGridPathBetween V E a b) (hV : V ⊆ ↑(D \ P)) :
have F := P4366T1PrecursorRemainderFamily cert.P cert.O; ∃ (p : List GaussianInt) (x : GaussianInt) (y : GaussianInt), p.Nodup ∧ 3 ≤ p.length ∧ p.head? = some x ∧ p.getLast? = some y ∧ (∀ (u v : GaussianInt), (u, v) ∈ p.zip p.tail → FourNeighborAdjacent u v) ∧ FourNeighborAdjacent y x ∧ (∀ (u v : GaussianInt), (u, v) ∈ p.zip p.tail ∨ u = y ∧ v = x → ∀ (t : ↑(Set.Icc 0 1)), ((1 - ↑t) * ↑u.re + ↑t * ↑v.re, (1 - ↑t) * ↑u.im + ↑t * ↑v.im) ∈ TileRealization T) ∧ (∀ z ∈ p, z ∉ BoundaryFootprintVertices T) ∧ have edges := p.zip p.tail ++ [(y, x)]; (∀ (i : Fin 3) (s : Bool) (z : LatticeCell), (z ∈ (F i s).cells ∧ z + 1 ∈ (F i s).cells → (z + 1, z + 1 + { re := 0, im := 1 }) ∉ edges ∧ (z + 1 + { re := 0, im := 1 }, z + 1) ∉ edges) ∧ (z ∈ (F i s).cells ∧ z + { re := 0, im := 1 } ∈ (F i s).cells → (z + 1 + { re := 0, im := 1 }, z + { re := 0, im := 1 }) ∉ edges ∧ (z + { re := 0, im := 1 }, z + 1 + { re := 0, im := 1 }) ∉ edges)) ∧ ∃ (z : GaussianInt), (z ∈ T.cells ∧ z ∉ cert.O.cells) ∧ (z + 1 ∈ T.cells ∧ z + 1 ∉ cert.O.cells) ∧ ((z + 1, z + 1 + { re := 0, im := 1 }) ∈ edges ∨ (z + 1 + { re := 0, im := 1 }, z + 1) ∈ edges) ∨ (z ∈ T.cells ∧ z ∉ cert.O.cells) ∧ (z + { re := 0, im := 1 } ∈ T.cells ∧ z + { re := 0, im := 1 } ∉ cert.O.cells) ∧ ((z + 1 + { re := 0, im := 1 }, z + { re := 0, im := 1 }) ∈ edges ∨ (z + { re := 0, im := 1 }, z + 1 + { re := 0, im := 1 }) ∈ edges)