BandOrderedGeneralRightSelectedAdjacency #
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.BandOrderedGeneralRightSelectedAdjacency
(C D : BandCircle)
(T N : ProtoTile)
(h k : PartialOdometer)
(x : GaussianInt)
(bundle : BandOrderedGeneralNormalizedOccurrenceBundle C D T N h k x)
(placement :
BandOrderedGeneralRightPlacement bundle.normalizedPresentation bundle.configuration bundle.normalizedCircle
bundle.normalizedRoot bundle.normalizedFixed bundle.normalizedRootFunction bundle.normalizedFixedFunction
bundle.normalizedPoint bundle.pieces bundle.functions bundle.selectedSlot bundle.selectedSign
bundle.routedDirection)
(selectedEdge : Finset GaussianInt)
:
bundle.normalizedPoint ∈ selectedEdge →
selectedEdge ∈ FootprintEdges
(SubtileOccurrenceInterpretation placement.layout.P placement.layout.u placement.layout.v
placement.exteriorIndex) ∩
FootprintEdges
(SubtileOccurrenceInterpretation placement.layout.P placement.layout.u placement.layout.v
placement.centralIndex) →
∀
(a✝ :
BandOrderedGeneralSelectedContactRow bundle.normalizedPresentation bundle.configuration bundle.normalizedCircle
bundle.normalizedFixed placement.layout placement.exteriorIndex placement.centralIndex),
have q := bundle.normalizedPresentation;
have i := bundle.selectedSlot;
have selectedTile := bundle.pieces i bundle.selectedSign;
have selectedFunction := bundle.functions i bundle.selectedSign;
have oldRight :=
TileTranslation bundle.normalizedFixed
((if placement.rightNeighborPositive = true then -1 else 1) * BandVectors.1 (q 0) (q i.succ));
∃ (C' : BandCircle) (p₀ : ℝ × ℝ) (p' : ℝ × ℝ) (s : Fin 4),
↑↑C' = q i.succ ∧ TileSubodometer (↑↑bundle.normalizedCircle) (↑↑C') bundle.normalizedRoot selectedTile
bundle.normalizedRootFunction selectedFunction ∧ PartialOdometerSlope bundle.normalizedFixedFunction = some p₀ ∧ PartialOdometerSlope selectedFunction = some p' ∧ ProperBandQuadruple q ∧ q 0 = ↑↑bundle.normalizedCircle ∧ q i.succ = ↑↑C' ∧ TileCentroid selectedTile - TileCentroid bundle.normalizedFixed = (1 / 2) • GaussianRealPoint
({ re := 0, im := 1 } ^ ↑s * (BandVectors.1 (q i.succ) (q 0) + BandVectors.1 (q 0) (q i.succ))) ∧ p'.1 - p₀.1 = ((1 / 2) • GaussianRealPoint
((-{ re := 0, im := 1 }) ^ ↑s * (BandVectors.2 (q i.succ) (q 0) + BandVectors.2 (q 0) (q i.succ)))).1 ∧ p'.2 - p₀.2 = ((1 / 2) • GaussianRealPoint
((-{ re := 0, im := 1 }) ^ ↑s * (BandVectors.2 (q i.succ) (q 0) + BandVectors.2 (q 0) (q i.succ)))).2 ∧ SubtileLatticeAdjacent bundle.normalizedCircle C' bundle.normalizedFixed selectedTile
bundle.normalizedFixedFunction selectedFunction ∧ bundle.normalizedPoint ∈ bundle.normalizedFixedFunction.domain ∧ bundle.normalizedPoint ∈ selectedFunction.domain ∧ (∀ (y : GaussianInt),
y = bundle.normalizedPoint ∨ y = bundle.normalizedPoint + 1 ∨ y = bundle.normalizedPoint - 1 ∨ y = bundle.normalizedPoint + { re := 0, im := 1 } ∨ y = bundle.normalizedPoint - { re := 0, im := 1 } →
y ∈ bundle.normalizedFixedFunction.domain ∨ y ∈ selectedFunction.domain) ∧ (↑↑bundle.normalizedCircle).1.toNat + (↑↑C').1.toNat < (↑↑bundle.normalizedCircle).1.toNat + (↑↑bundle.normalizedCircle).1.toNat ∧ TileTranslation bundle.normalizedFixed
({ re := 0, im := 1 } ^ ↑s * if Even ↑s then BandVectors.1 (q 0) (q i.succ)
else BandVectors.1 (q i.succ) (q 0)) = oldRight