Documentation

LeanPool.ApollonianSuperharmonic.P4677T2PeriodicWalkAssembly

P4677T2PeriodicWalkAssembly #

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.P4677T2PeriodicWalkAssembly (P Q S : Fin 3 → Bool → ProtoTile) (u v : GaussianInt) (L : AddSubgroup GaussianInt) (D : P4677T2DrawingData u v L) (hQcells : ∀ (i : Fin 3) (s : Bool), (Q i s).cells ⊆ (P 0 true).cells) (hScells : ∀ (i : Fin 3) (s : Bool), (S i s).cells ⊆ (P 0 false).cells) (hQfoot : ∀ (i : Fin 3) (s : Bool), FootprintVertices (Q i s) ⊆ FootprintVertices (P 0 true)) (hSfoot : ∀ (i : Fin 3) (s : Bool), FootprintVertices (S i s) ⊆ FootprintVertices (P 0 false)) (hinner : TouchingTriple (Q 1 true) (S 2 false) (P 1 true) ∧ TouchingTriple (Q 2 true) (S 1 false) (P 1 false) ∧ TouchingTriple (Q 1 true) (P 1 true) (P 2 false) ∧ TouchingTriple (S 1 false) (P 1 false) (P 2 true)) (houter : TouchingTriple (P 0 true) (TileTranslation (P 0 false) v) (TileTranslation (P 2 true) v) ∧ TouchingTriple (P 0 true) (TileTranslation (P 0 false) v) (P 2 false) ∧ TouchingTriple (P 0 true) (TileTranslation (P 0 false) (u + v)) (TileTranslation (P 1 true) (u + v)) ∧ TouchingTriple (P 0 true) (TileTranslation (P 0 false) (u + v)) (P 1 false) ∧ TouchingTriple (P 0 true) (TileTranslation (P 1 true) (u + v)) (TileTranslation (P 2 true) v) ∧ TouchingTriple (P 0 false) (TileTranslation (P 1 false) (-u - v)) (TileTranslation (P 2 false) (-v)) ∧ TouchingTriple (P 1 true) (TileTranslation (P 1 false) (-u)) (TileTranslation (P 2 true) (-u)) ∧ TouchingTriple (P 1 true) (TileTranslation (P 1 false) (-u)) (P 2 false)) (rho : PeriodicSubtileFaceIndex → GaussianInt) (hcommon : ∀ (f : PeriodicSubtileFaceIndex) (i : Fin 3), rho f ∈ FootprintVertices (SubtileOccurrenceInterpretation P u v (SixSubtileFaceVertices f i))) (hperiodic : ∀ (w : ↥L) (f : PeriodicSubtileFaceIndex), rho (D.faceShift w f) = rho f + ↑w) (hI1 : rho { label := SixSubtileFaceLabel.I1, first := 0, second := 0 } ∈ FootprintVertices (Q 1 true) ∩ FootprintVertices (S 2 false)) (hI2 : rho { label := SixSubtileFaceLabel.I2, first := 0, second := 0 } ∈ FootprintVertices (Q 2 true) ∩ FootprintVertices (S 1 false)) (hI3 : rho { label := SixSubtileFaceLabel.I3, first := 0, second := 0 } ∈ FootprintVertices (Q 1 true) ∩ FootprintVertices (P 1 true)) (hI4 : rho { label := SixSubtileFaceLabel.I4, first := 0, second := 0 } ∈ FootprintVertices (S 1 false) ∩ FootprintVertices (P 1 false)) (htouch : ∀ (T U : ProtoTile) (x y : GaussianInt), TileTouching T U → x ∈ FootprintVertices T ∩ FootprintVertices U → y ∈ FootprintVertices T ∩ FootprintVertices U → ∃ (p : List GaussianInt), p.head? = some x ∧ p.getLast? = some y ∧ (∀ z ∈ p, z ∈ FootprintVertices T ∩ FootprintVertices U) ∧ ∀ (a b : GaussianInt) (l₁ l₂ : List GaussianInt), p = l₁ ++ a :: b :: l₂ → {a, b} ∈ FootprintEdges T ∩ FootprintEdges U) (hAB : ∃ (p : List GaussianInt), p.head? = some (rho { label := SixSubtileFaceLabel.I1, first := 0, second := 0 }) ∧ p.getLast? = some (rho { label := SixSubtileFaceLabel.I2, first := 0, second := 0 }) ∧ (∀ z ∈ p, z ∈ FootprintVertices (P 0 true) ∩ FootprintVertices (P 0 false)) ∧ ∀ (a b : GaussianInt) (l₁ l₂ : List GaussianInt), p = l₁ ++ a :: b :: l₂ → {a, b} ∈ FootprintEdges (P 0 true) ∩ FootprintEdges (P 0 false)) :
∃ (path : PeriodicSubtileFaceIndex → PeriodicSubtileFaceIndex → List GaussianInt), (∀ (f g : PeriodicSubtileFaceIndex), path g f = (path f g).reverse) ∧ (∀ (w : ↥L) (f g : PeriodicSubtileFaceIndex), path (D.faceShift w f) (D.faceShift w g) = List.map (fun (x : GaussianInt) => x + ↑w) (path f g)) ∧ ∀ (a b : PeriodicSubtileIndex), AllowedSubtileIncidence a b → ∀ (f g : PeriodicSubtileFaceIndex), f ≠ g → (∃ (i : Fin 3), SixSubtileFaceVertices f i = a) → (∃ (i : Fin 3), SixSubtileFaceVertices f i = b) → (∃ (i : Fin 3), SixSubtileFaceVertices g i = a) → (∃ (i : Fin 3), SixSubtileFaceVertices g i = b) → (path f g).head? = some (rho f) ∧ (path f g).getLast? = some (rho g) ∧ (∀ x ∈ path f g, x ∈ FootprintVertices (SubtileOccurrenceInterpretation P u v a) ∩ FootprintVertices (SubtileOccurrenceInterpretation P u v b)) ∧ ∀ (x y : GaussianInt) (l₁ l₂ : List GaussianInt), path f g = l₁ ++ x :: y :: l₂ → {x, y} ∈ FootprintEdges (SubtileOccurrenceInterpretation P u v a) ∩ FootprintEdges (SubtileOccurrenceInterpretation P u v b)