P5352T2LiteralNormalization #
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.P5352T2LiteralNormalization
(K : DiamondParameter)
(hk : 1 < ↑K)
(j : Fin 4)
(T U : ProtoTile)
(h l : PartialOdometer)
(p r : ℝ × ℝ)
(g : IntegerLatticeFunction)
(hT : TileOdometer (DiamondRecursiveQuadruple K 0) T h)
(hU : TileOdometer (DiamondRecursiveQuadruple K j) U l)
(hp : PartialOdometerSlope h = some p)
(hr : PartialOdometerSlope l = some r)
(he : GlobalOdometerExtends g h)
(he' : GlobalOdometerExtends g l)
:
have A := P5352T2Sources K hk 0;
have D := P5352T2Sources K hk j;
∃ (w : GaussianInt) (d : GaussianInt) (a : GaussianInt) (B : ℤ) (f : IntegerLatticeFunction),
(∀ (x : GaussianInt), x ∈ h.domain ↔ x - w ∈ FootprintVertices A.1) ∧ (∀ (x : GaussianInt), x ∈ l.domain ↔ x - w - d ∈ FootprintVertices D.1) ∧ (∀ (x : LatticeCell), x ∈ T.cells ↔ x - w ∈ A.1.cells) ∧ (∀ (x : LatticeCell), x ∈ U.cells ↔ x - w - d ∈ D.1.cells) ∧ (∀ (x v : GaussianInt), x ∈ FootprintVertices (TileTranslation T v) ↔ x - w - v ∈ FootprintVertices A.1) ∧ TileCentroid U - TileCentroid T = (D.2.2.1.1 - A.2.2.1.1 + ↑d.re, D.2.2.1.2 - A.2.2.1.2 + ↑d.im) ∧ r.1 - p.1 = D.2.2.2.1 - A.2.2.2.1 + ↑a.re ∧ r.2 - p.2 = D.2.2.2.2 - A.2.2.2.2 + ↑a.im ∧ (∀ y ∈ FootprintVertices A.1, f y = A.2.1 y) ∧ (∀ (y : GaussianInt),
y - d ∈ FootprintVertices D.1 → f y = D.2.1 (y - d) + a.re * y.re + a.im * y.im + B) ∧ ∀ (x : GaussianInt), FourNeighborLaplacian g x = FourNeighborLaplacian f (x - w)