P5596T1LineParent #
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.P5596T1LineParent
(q : Fin 4 → CircleCoordinates)
(hq : ProperBandQuadruple q)
(i : Fin 3)
(e : Bool)
(hzero : (q i.succ).1 = 0)
(T U : ProtoTile)
(h k : PartialOdometer)
(p p' : ℝ × ℝ)
(g : IntegerLatticeFunction)
(x : GaussianInt)
(hT : TileOdometer (q 0) T h)
(hU : TileOdometer (q 0) U k)
(hp : PartialOdometerSlope h = some p)
(hp' : PartialOdometerSlope k = some p')
(hc :
TileCentroid U - TileCentroid T = (if e = true then 1 else -1) • GaussianRealPoint (BandVectors.1 (q i.succ) (q 0)))
(hr : p'.1 - p.1 = (if e = true then 1 else -1) * ↑(BandVectors.2 (q i.succ) (q 0)).re)
(hi : p'.2 - p.2 = (if e = true then 1 else -1) * ↑(BandVectors.2 (q i.succ) (q 0)).im)
(hg : GlobalOdometerExtends g h)
(kg : GlobalOdometerExtends g k)
(hx : x ∈ h.domain)
(kx : x ∈ k.domain)
(hstar :
∀ (y : GaussianInt),
y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } →
y ∈ h.domain ∨ y ∈ k.domain)
: