P4158T1EdgeSectorSelection #
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.P4158T1EdgeSectorSelection
(P : FordFareyParameter)
(C0 Ci : BandCircle)
(i : Fin 3)
:
i = 0 ∧ P.q₁ < P.q₂ ∨ i = 1 ∧ P.q₂ < P.q₁ →
0 < P.q₁ →
1 < (↑↑Ci).1 →
∀ (T T' : ProtoTile) (h h' : PartialOdometer) (u : GaussianInt),
T.cells = (TileTranslation (FordTile P.q) u).cells →
T'.cells = (TileTranslation (FordTile P.q)
(u + if i = 0 then { re := ↑P.q, im := ↑P.q₁ } else { re := -↑P.q, im := ↑P.q₂ })).cells →
Disjoint T.cells T'.cells →
∀ (orientation : Bool) (base Rminus Rplus : ProtoTile) (tiles reverseTiles : List ProtoTile)
(hs reverseHs : List PartialOdometer),
TileString Ci orientation base Rminus Rplus tiles →
TileString Ci orientation base Rplus Rminus reverseTiles →
Rminus.cells = (TileTranslation (FordTile (if i = 0 then P.q₁ else P.q₂))
(u + if i = 0 then { re := ↑P.q, im := 0 } else { re := 0, im := ↑P.q })).cells →
Rplus.cells = (TileTranslation (FordTile (if i = 0 then P.q₁ else P.q₂))
(u + if i = 0 then { re := ↑P.q₂, im := ↑P.q } else { re := -↑P.q₂, im := 0 })).cells →
(∀ (U : ProtoTile) (g : PartialOdometer),
(U, g) ∈ tiles.zip hs → AncestorOdometer (↑↑Ci) (↑↑C0) U T g h → U.cells ⊆ T.cells) →
(∀ (V : ProtoTile) (k : PartialOdometer),
(V, k) ∈ reverseTiles.zip reverseHs →
AncestorOdometer (↑↑Ci) (↑↑C0) V T' k h' → V.cells ⊆ T'.cells) →
(∀ (z : GaussianInt),
((z - u).re = if i = 0 then ↑P.q else 0) →
(if i = 0 then ↑P.q₁ else ↑P.q₂) ≤ (z - u).im →
(z - u).im < ↑P.q →
∃ (U : ProtoTile) (V : ProtoTile) (g : PartialOdometer) (k : PartialOdometer),
U ∈ (List.drop 1 tiles).dropLast ∧ V ∈ (List.drop 1 reverseTiles).dropLast ∧ (U, g) ∈ tiles.zip hs ∧ (V, k) ∈ reverseTiles.zip reverseHs ∧ AncestorOdometer (↑↑Ci) (↑↑C0) U T g h ∧ AncestorOdometer (↑↑Ci) (↑↑C0) V T' k h' ∧ {z, z + { re := 0, im := 1 }} ∈ FootprintEdges U ∧ {z, z + { re := 0, im := 1 }} ∈ FootprintEdges V) →
∀ (PP : PeriodicTileComplex ↥(TilingLattice Ci)),
(∀ (a : ↥(TilingLattice Ci)), PP.tile a = TileTranslation base ↑a) →
∀ (tileAt : ℤ × ℤ → ProtoTile) (a✝ : AffineTriangularComplexChart PP tileAt)
(x : GaussianInt),
((x - u).re = if i = 0 then ↑P.q else 0) →
(if i = 0 then ↑P.q₁ else ↑P.q₂) ≤ (x - u).im →
(x - u).im ≤ ↑P.q →
∃ (a : ↥(TilingLattice Ci)) (b : ↥(TilingLattice Ci)) (g : PartialOdometer) (k
: PartialOdometer),
a ≠ b ∧ (PP.tile a, g) ∈ tiles.zip hs ∧ (PP.tile b, k) ∈ reverseTiles.zip reverseHs ∧ AncestorOdometer (↑↑Ci) (↑↑C0) (PP.tile a) T g h ∧ AncestorOdometer (↑↑Ci) (↑↑C0) (PP.tile b) T' k h' ∧ (∃ (z : GaussianInt),
(z = x ∨ z = x - { re := 0, im := 1 }) ∧ {z, z + { re := 0, im := 1 }} ∈ FootprintEdges (PP.tile a) ∧ {z, z + { re := 0, im := 1 }} ∈ FootprintEdges (PP.tile b)) ∧ (x ∈ (PP.tile a).cells ∧ x - 1 - { re := 0, im := 1 } ∈ (PP.tile b).cells ∨ x - 1 ∈ (PP.tile a).cells ∧ x - { re := 0, im := 1 } ∈ (PP.tile b).cells ∨ x - 1 - { re := 0, im := 1 } ∈ (PP.tile a).cells ∧ x ∈ (PP.tile b).cells ∨ x - { re := 0, im := 1 } ∈ (PP.tile a).cells ∧ x - 1 ∈ (PP.tile b).cells)