P4418T3PresentedRowAdjacency #
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.P4418T3PresentedRowAdjacency
(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 →
∀ (C' : BandCircle) (p : ℝ × ℝ),
↑↑C' = bundle.normalizedPresentation bundle.selectedSlot.succ →
PartialOdometerSlope (bundle.functions bundle.selectedSlot bundle.selectedSign) = some p →
TileSubodometer (↑↑bundle.normalizedCircle) (↑↑C') bundle.normalizedRoot
(bundle.pieces bundle.selectedSlot bundle.selectedSign) bundle.normalizedRootFunction
(bundle.functions bundle.selectedSlot bundle.selectedSign) →
have S := bundle.pieces bundle.selectedSlot bundle.selectedSign;
have f := bundle.functions bundle.selectedSlot bundle.selectedSign;
have directed :=
fun (z : P3996T1SRowParameters) (A B : BandCircle) (V W : ProtoTile) (f g : PartialOdometer)
(pV pW : ℝ × ℝ) =>
ProperBandQuadruple z.predecessor ∧ z.predecessor 0 = ↑↑A ∧ z.predecessor z.parentSlot.succ = ↑↑B ∧ 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))) ∧ pW - pV = (1 / 2) • GaussianRealPoint
((-{ re := 0, im := 1 }) ^ ↑z.rotation * (BandVectors.2 (z.predecessor z.parentSlot.succ) (z.predecessor 0) + BandVectors.2 (z.predecessor 0) (z.predecessor z.parentSlot.succ))) ∧ SubtileLatticeAdjacent A B V W f g;
match
P3996T1SRowTable bundle.normalizedPresentation bundle.configuration bundle.normalizedCircle
bundle.normalizedRoot placement.layout row with
| none =>
C' = bundle.normalizedFixedCircle ∧ LeftLatticeAdjacent bundle.normalizedFixedCircle bundle.normalizedFixed S
bundle.normalizedFixedFunction f
| some z =>
if z.childIsExterior = true then
directed z bundle.normalizedFixedCircle C' bundle.normalizedFixed S
bundle.normalizedFixedFunction f bundle.normalizedFixedSlope p
else directed z C' bundle.normalizedFixedCircle S bundle.normalizedFixed f
bundle.normalizedFixedFunction p bundle.normalizedFixedSlope