Documentation

LeanPool.ApollonianSuperharmonic.P5485T1OtherCompanionCoordinates

P5485T1OtherCompanionCoordinates #

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.P5485T1OtherCompanionCoordinates (q : Fin 4 → CircleCoordinates) (cfg : BandOrderedGeneralConfiguration q) (C : BandCircle) (T : ProtoTile) (cert : BandOrderedGeneralLayoutCertificate q cfg C T) (a b : PeriodicSubtileIndex) (row : BandOrderedGeneralSelectedContactRow q cfg C T cert a b) (i j k s : Fin 3) (positive sign : Bool) (hcyclic : i = 0 ∧ j = 1 ∧ k = 2 ∨ i = 1 ∧ j = 2 ∧ k = 0 ∨ i = 2 ∧ j = 0 ∧ k = 1) (hselected : s = i ∧ sign = positive ∨ s = j ∧ sign = !positive) (hindex : a = have label := match ↑s with | 0 => if sign = true then SixSubtileLabel.A else SixSubtileLabel.B | 1 => if sign = true then SixSubtileLabel.C else SixSubtileLabel.D | x => if sign = true then SixSubtileLabel.E else SixSubtileLabel.F; have coord := match ↑k with | 0 => (1, 0) | 1 => (0, 1) | x => (-1, -1); have scale := if positive = true then 1 else -1; { label := label, first := scale * coord.1, second := scale * coord.2 }) :
have other := if s = i then j else i; have coord := match ↑other with | 0 => (1, 0) | 1 => (0, 1) | x => (-1, -1); have scale := if positive = true then -1 else 1; have m := scale * coord.1; have n := scale * coord.2; (if positive = true then -1 else 1) * BandVectors.1 (q 0) (q other.succ) = ↑m * cert.u + ↑n * cert.v ∧ (a.first, a.second) ≠ (m, n) ∧ (b.first, b.second) ≠ (m, n) ∧ ((P4418T3EndpointOwnerIndices q cfg C T cert a b row).1.first, (P4418T3EndpointOwnerIndices q cfg C T cert a b row).1.second) ≠ (m, n) ∧ ((P4418T3EndpointOwnerIndices q cfg C T cert a b row).2.first, (P4418T3EndpointOwnerIndices q cfg C T cert a b row).2.second) ≠ (m, n)