Documentation

LeanPool.ApollonianSuperharmonic.P4418T3OuterCompanionAlignment

P4418T3OuterCompanionAlignment #

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.P4418T3OuterCompanionAlignment (C D : BandCircle) (T N : ProtoTile) (h k : PartialOdometer) (x : GaussianInt) (bundle : BandOrderedGeneralNormalizedOccurrenceBundle C D T N h k x) (placement : BandOrderedGeneralSubtilePlacement bundle.normalizedPresentation bundle.configuration bundle.normalizedCircle bundle.normalizedFixedCircle bundle.normalizedRoot bundle.normalizedFixed bundle.normalizedRootFunction bundle.normalizedFixedFunction bundle.normalizedPoint bundle.pieces bundle.functions bundle.selectedSlot bundle.selectedSign bundle.routedDirection) (row : BandOrderedGeneralSelectedContactRow bundle.normalizedPresentation bundle.configuration bundle.normalizedCircle bundle.normalizedRoot placement.layout placement.exteriorIndex placement.centralIndex) (r : Fin 4 → CircleCoordinates) (i : Fin 3) (s : Fin 4) :
ProperBandQuadruple r → r 0 = ↑↑bundle.normalizedCircle → r i.succ = ↑↑bundle.normalizedFixedCircle → TileCentroid bundle.normalizedFixed - TileCentroid bundle.normalizedRoot = (1 / 2) • GaussianRealPoint ({ re := 0, im := 1 } ^ ↑s * (BandVectors.1 (r i.succ) (r 0) + BandVectors.1 (r 0) (r i.succ))) → bundle.normalizedFixedSlope.1 - bundle.normalizedRootSlope.1 = ((1 / 2) • GaussianRealPoint ((-{ re := 0, im := 1 }) ^ ↑s * (BandVectors.2 (r i.succ) (r 0) + BandVectors.2 (r 0) (r i.succ)))).1 → bundle.normalizedFixedSlope.2 - bundle.normalizedRootSlope.2 = ((1 / 2) • GaussianRealPoint ((-{ re := 0, im := 1 }) ^ ↑s * (BandVectors.2 (r i.succ) (r 0) + BandVectors.2 (r 0) (r i.succ)))).2 → ↑↑bundle.normalizedFixedCircle = bundle.normalizedPresentation (match placement.exteriorIndex.label with | SixSubtileLabel.A => 1 | SixSubtileLabel.B => 1 | SixSubtileLabel.C => 2 | SixSubtileLabel.D => 2 | SixSubtileLabel.E => 3 | SixSubtileLabel.F => 3) ∧ (↑s = match placement.exteriorIndex.label with | SixSubtileLabel.A => if placement.exteriorIndex.first = -1 then 3 else 0 | SixSubtileLabel.B => if placement.exteriorIndex.first = 1 then 1 else 2 | SixSubtileLabel.C => if placement.exteriorIndex.second = 0 then 3 else 0 | SixSubtileLabel.D => if placement.exteriorIndex.second = 0 then 1 else 2 | SixSubtileLabel.E => if placement.exteriorIndex.first = 0 then 3 else 0 | SixSubtileLabel.F => if placement.exteriorIndex.first = 0 then 1 else 2) ∧ ({ re := 0, im := 1 } ^ ↑s * if Even ↑s then BandVectors.1 (r 0) (r i.succ) else BandVectors.1 (r i.succ) (r 0)) = match P3996T1SRowTable bundle.normalizedPresentation bundle.configuration bundle.normalizedCircle bundle.normalizedRoot placement.layout row with | some z => z.oldShift | none => match placement.exteriorIndex.label with | SixSubtileLabel.A => if placement.exteriorIndex.first = -1 then -placement.layout.u else placement.layout.u | SixSubtileLabel.B => if placement.exteriorIndex.first = 1 then placement.layout.u else -placement.layout.u | SixSubtileLabel.C => -placement.layout.v | SixSubtileLabel.D => placement.layout.v | SixSubtileLabel.E => 0 | SixSubtileLabel.F => 0