P4566T1SmallRetainedSides #
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.P4566T1SmallRetainedSides
(p : Fin 4 → CircleCoordinates)
(hp : ProperBandQuadruple p)
(h2 : (p 2).1 = 0 ∨ (p 2).1 = 1)
(h3 : (p 3).1 = 0 ∨ (p 3).1 = 1)
:
have q :=
![(2 * (p 0).1 + 2 * (p 2).1 + 2 * (p 3).1 - (p 1).1, 2 * (p 0).2 + 2 * (p 2).2 + 2 * (p 3).2 - (p 1).2), p 0, p 2, p 3];
have r :=
![(2 * (q 0).1 + 2 * (q 2).1 + 2 * (q 3).1 - (q 1).1, 2 * (q 0).2 + 2 * (q 2).2 + 2 * (q 3).2 - (q 1).2), q 0, q 2, q 3];
PrimitiveVectorOrientation (p 2) (p 3) ∧ (∀ (orientation : Bool),
UnitOccurrenceOrientation q 1 orientation →
UnitTriangularStep orientation (BandVectors.1 (p 3) (p 2)) ∧ ((p 3).1 = 0 ∨ orientation = false)) ∧ (∀ (orientation : Bool),
UnitOccurrenceOrientation q 2 orientation →
UnitTriangularStep orientation ({ re := 0, im := 1 } * BandVectors.1 (p 3) (p 2)) ∧ ((p 2).1 = 0 ∨ orientation = true)) ∧ ((p 2).1 = 1 →
(p 3).1 = 1 →
UnitOccurrenceOrientation q 1 false ∧ UnitOccurrenceOrientation q 2 true ∧ UnitOccurrenceOrientation r 1 false ∧ UnitOccurrenceOrientation r 2 true) ∨ PrimitiveVectorOrientation (p 3) (p 2) ∧ (∀ (orientation : Bool),
UnitOccurrenceOrientation q 1 orientation →
UnitTriangularStep orientation (BandVectors.1 (p 3) (p 2)) ∧ ((p 3).1 = 0 ∨ orientation = true)) ∧ (∀ (orientation : Bool),
UnitOccurrenceOrientation q 2 orientation →
UnitTriangularStep orientation ({ re := 0, im := 1 } * BandVectors.1 (p 3) (p 2)) ∧ ((p 2).1 = 0 ∨ orientation = false)) ∧ ((p 2).1 = 1 →
(p 3).1 = 1 →
UnitOccurrenceOrientation q 1 true ∧ UnitOccurrenceOrientation q 2 false ∧ UnitOccurrenceOrientation r 1 true ∧ UnitOccurrenceOrientation r 2 false)