P4250T1ReflectedGluingSlope #
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.P4250T1ReflectedGluingSlope
(q : Fin 4 → CircleCoordinates)
(cfg : BandOrderedGeneralConfiguration q)
(C : BandCircle)
(T : ProtoTile)
(cert : BandOrderedGeneralLayoutCertificate q cfg C T)
(h : Fin 3 → Bool → PartialOdometer)
(s0 : ℝ × ℝ)
(ho : ∀ (i : Fin 3) (s : Bool), TileOdometer (q i.succ) (cert.P i s) (h i s))
(hp :
∀ (i : Fin 3) (s : Bool),
PartialOdometerSlope (h i s) = some (s0 + (if s = true then 1 else -1) • P4250T1SlopeOffset (BandVectors.2 (q (i + 2).succ) (q (i + 1).succ))))
(g : PartialOdometer)
(hgdom : ↑g.domain = FootprintVertices T)
(hgcompat : ∀ (i : Fin 3) (s : Bool), OdometerCompatibility g (h i s))
(hunique :
∀ (g' : PartialOdometer),
↑g'.domain = FootprintVertices T →
(∀ (i : Fin 3) (s : Bool), OdometerCompatibility g' (h i s)) →
∃ (c : ℤ), ∀ x ∈ g.domain, g'.value x - g.value x = c)
:
∃ (u : GaussianInt) (a : GaussianInt),
2 • TileCentroid T = GaussianRealPoint u ∧ 2 • s0 = GaussianRealPoint a ∧ PartialOdometerSlope g = some s0