UnitOccurrenceOrientationUnique #
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.UnitOccurrenceOrientationUnique :
(∀ (q : Fin 4 → CircleCoordinates),
ProperBandQuadruple q →
∀ (i : Fin 3), (q i.succ).1 = 1 → ∃! orientation : Bool, UnitOccurrenceOrientation q i orientation) ∧ ∀ (z : GaussianInt),
have qLeft :=
![(12, 7 + 24 * z + 12 * { re := 0, im := 1 }), (4, 1 + 8 * z + 4 * { re := 0, im := 1 }), (1, 1 + 2 * z + 2 * { re := 0, im := 1 }), (1, 1 + 2 * z)];
have qRight :=
![(12, 17 + 24 * z + 12 * { re := 0, im := 1 }), (4, 7 + 8 * z + 4 * { re := 0, im := 1 }), (1, 1 + 2 * z), (1, 1 + 2 * z + 2 * { re := 0, im := 1 })];
have qLeftRepeat :=
![(24, 17 + 48 * z + 24 * { re := 0, im := 1 }), (12, 7 + 24 * z + 12 * { re := 0, im := 1 }), (1, 1 + 2 * z + 2 * { re := 0, im := 1 }), (1, 1 + 2 * z)];
have qRightRepeat :=
![(24, 31 + 48 * z + 24 * { re := 0, im := 1 }), (12, 17 + 24 * z + 12 * { re := 0, im := 1 }), (1, 1 + 2 * z), (1, 1 + 2 * z + 2 * { re := 0, im := 1 })];
have v := BandVectors.1 (qLeft 1) (qLeft 3);
ProperBandQuadruple qLeft ∧ PrimitiveVectorOrientation (qLeft 2) (qLeft 3) ∧ UnitOccurrenceOrientation qLeft 1 false ∧ UnitOccurrenceOrientation qLeft 2 true ∧ ProperBandQuadruple qRight ∧ PrimitiveVectorOrientation (qRight 3) (qRight 2) ∧ UnitOccurrenceOrientation qRight 1 true ∧ UnitOccurrenceOrientation qRight 2 false ∧ ProperBandQuadruple qLeftRepeat ∧ PrimitiveVectorOrientation (qLeftRepeat 2) (qLeftRepeat 3) ∧ UnitOccurrenceOrientation qLeftRepeat 1 false ∧ UnitOccurrenceOrientation qLeftRepeat 2 true ∧ ProperBandQuadruple qRightRepeat ∧ PrimitiveVectorOrientation (qRightRepeat 3) (qRightRepeat 2) ∧ UnitOccurrenceOrientation qRightRepeat 1 true ∧ UnitOccurrenceOrientation qRightRepeat 2 false ∧ v.re * v.re + v.im * v.im = 5 ∧ ∀ (orientation : Bool), ¬UnitTriangularStep orientation v