P4158T1SmallerStringEdges #
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.P4158T1SmallerStringEdges
(P : FordFareyParameter)
(hq : ProperBandQuadruple (FordRecursiveQuadruple P))
(C0 Ci : BandCircle)
(i : Fin 3)
(hC0 : FordRecursiveQuadruple P 0 = ↑↑C0)
(hCi : FordRecursiveQuadruple P i.succ = ↑↑Ci)
(hlarge : 1 < (↑↑Ci).1)
(hsmall : i = 0 ∧ P.q₁ < P.q₂ ∨ i = 1 ∧ P.q₂ < P.q₁)
(T T' : ProtoTile)
(h h' : PartialOdometer)
(u : GaussianInt)
(hc : T.cells = (TileTranslation (FordTile P.q) u).cells)
(hc' :
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)
(hsegment :
∀ (x : GaussianInt),
x ∈ FootprintVertices T ∩ FootprintVertices T' ↔ ((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)
(orientation : Bool)
(base Rminus Rplus : ProtoTile)
(tiles reverseTiles : List ProtoTile)
(hs reverseHs : List PartialOdometer)
(hf : OdometerStringRespect Ci orientation base Rminus Rplus tiles hs)
(hr : OdometerStringRespect Ci orientation base Rplus Rminus reverseTiles reverseHs)
(hminus hplus : PartialOdometer)
(hOm : TileOdometer (↑↑Ci) Rminus hminus)
(hOp : TileOdometer (↑↑Ci) Rplus hplus)
(hcm :
TileCentroid Rminus - TileCentroid T = (1 / 2) • GaussianRealPoint
(BandVectors.1 (FordRecursiveQuadruple P i.succ) (FordRecursiveQuadruple P 0) - BandVectors.1 (FordRecursiveQuadruple P 0) (FordRecursiveQuadruple P i.succ)))
(hcp :
TileCentroid Rplus - TileCentroid T = (1 / 2) • GaussianRealPoint
(BandVectors.1 (FordRecursiveQuadruple P i.succ) (FordRecursiveQuadruple P 0) + BandVectors.1 (FordRecursiveQuadruple P 0) (FordRecursiveQuadruple P i.succ)))
(hanc :
∀ U ∈ (List.drop 1 tiles).dropLast,
∃ (g : PartialOdometer), (U, g) ∈ tiles.zip hs ∧ AncestorOdometer (↑↑Ci) (↑↑C0) U T g h)
(hanc' :
∀ V ∈ (List.drop 1 reverseTiles).dropLast,
∃ (k : PartialOdometer), (V, k) ∈ reverseTiles.zip reverseHs ∧ AncestorOdometer (↑↑Ci) (↑↑C0) V T' k h')
:
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 ∧ ∀ (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