P3996T1SRowAlignment #
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.P3996T1SRowAlignment
(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)
(z : P3996T1SRowParameters)
(hz : P3996T1SRowTable q cfg C T cert row = some z)
:
have occurrence := SubtileOccurrenceInterpretation cert.P cert.u cert.v;
have V := occurrence z.childIndex;
have W := occurrence z.parentIndex;
have newRight := TileTranslation V z.rightShift;
ProperBandQuadruple z.predecessor ∧ z.predecessor 0 = q z.childSlot.succ ∧ BandPrototile (z.predecessor 0) V ∧ BandPrototile (z.predecessor z.parentSlot.succ) W ∧ 0 < (z.predecessor 0).1 ∧ 0 < (z.predecessor z.parentSlot.succ).1 ∧ (if z.childIsExterior = true then z.childIndex = a ∧ z.parentIndex = b
else z.childIndex = b ∧ z.parentIndex = a) ∧ (newRight.cells = (TileTranslation (cert.P z.childSlot z.childSign) (z.childShift + z.rightShift)).cells ∧ (newRight.cells = ∅ →
newRight.anchor = (TileTranslation (cert.P z.childSlot z.childSign) (z.childShift + z.rightShift)).anchor)) ∧ (z.rightShift = { re := 0, im := 1 } ^ ↑z.rotation * if Even ↑z.rotation then BandVectors.1 (z.predecessor 0) (z.predecessor z.parentSlot.succ)
else BandVectors.1 (z.predecessor z.parentSlot.succ) (z.predecessor 0)) ∧ TileCentroid W - TileCentroid V = (1 / 2) • GaussianRealPoint
({ re := 0, im := 1 } ^ ↑z.rotation * (BandVectors.1 (z.predecessor z.parentSlot.succ) (z.predecessor 0) + BandVectors.1 (z.predecessor 0) (z.predecessor z.parentSlot.succ))) ∧ TileCentroid newRight - TileCentroid (TileTranslation T z.oldShift) = (-(TileCentroid (cert.P z.childSlot z.sourceSign) - TileCentroid T).2, (TileCentroid (cert.P z.childSlot z.sourceSign) - TileCentroid T).1)