P5300T1CanonicalRowArithmetic #
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.P5300T1CanonicalRowArithmetic
(K : DiamondParameter)
(i : Fin 3)
(s : Fin 4)
(hp : 0 < (DiamondRecursiveQuadruple K i.succ).1)
(hj : 0 < (DiamondRecursiveQuadruple K (if Even ↑s then i - 1 else i + 1).succ).1)
:
have q := DiamondRecursiveQuadruple K;
have b := decide (↑s % 2 = 1);
have j := if Even ↑s then i - 1 else i + 1;
have M := P5260T1PlacementLedger (↑K) i b;
have C := { re := 0, im := 2 * ↑↑K };
have c := ![{ re := 1, im := 4 * ↑↑K + 1 }, { re := -2 * ↑↑K - 1, im := 2 * ↑↑K - 1 }, { re := 2 * ↑↑K, im := 0 }];
have P := fun (t : Fin 3) => P5124T1ParentModel (↑K) t true;
(1 < ↑K ∨ i = 1 ∧ b = false ∨ i = 0 ∧ b = true) ∧ (({ re := 0, im := 1 } ^ ↑s * if Even ↑s then BandVectors.1 (q 0) (q i.succ) else BandVectors.1 (q i.succ) (q 0)) = if ↑s < 2 then M.2.1.1 else -M.2.1.1) ∧ (({ re := 0, im := 1 } ^ ↑s * if Even ↑s then BandVectors.1 (q i.succ) (q 0) else BandVectors.1 (q 0) (q i.succ)) = if ↑s < 2 then M.2.1.2 else -M.2.1.2) ∧ ∃ (tW : GaussianInt) (tZ : GaussianInt),
M.1.1.cells = (TileTranslation (P i) tW).cells ∧ M.1.2.cells = (TileTranslation (P j) tZ).cells ∧ TileCentroid (TileTranslation (P i) (if ↑s < 2 then tW else C - tW - c i)) - TileCentroid (DiamondTile ↑K) = (1 / 2) • GaussianRealPoint
({ re := 0, im := 1 } ^ ↑s * (BandVectors.1 (q i.succ) (q 0) + BandVectors.1 (q 0) (q i.succ))) ∧ TileCentroid (TileTranslation (P j) (if ↑s < 2 then tZ else C - tZ - c j)) - TileCentroid (DiamondTile ↑K) = (1 / 2) • GaussianRealPoint
({ re := 0, im := 1 } ^ ↑s * if Even ↑s then BandVectors.1 (q 0) (q (i - 1).succ) - BandVectors.1 (q (i - 1).succ) (q 0)
else BandVectors.1 (q (i + 1).succ) (q 0) - BandVectors.1 (q 0) (q (i + 1).succ))