P5589T1UnitInterfaceSelection #
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.P5589T1UnitInterfaceSelection
(C D : BandCircle)
(hunit : (↑↑D).1 = 1)
(o : Bool)
(base R S U V : ProtoTile)
(ts rs : List ProtoTile)
(hs ks : List PartialOdometer)
(hm hp f k : PartialOdometer)
(hOf : TileOdometer (↑↑C) U f)
(hOk : TileOdometer (↑↑C) V k)
(hUn : Finset.Nonempty U.cells)
(hVn : Finset.Nonempty V.cells)
(hf : OdometerStringRespect D o base R S ts hs)
(hr : OdometerStringRespect D o base S R rs ks)
(hhead : hs.head? = some hm)
(hlast : hs.getLast? = some hp)
(hRS : R ≠ S)
(hnadj : ¬∃ (v : GaussianInt), UnitTriangularStep o v ∧ TileCentroid S - TileCentroid R = GaussianRealPoint v)
(hanc :
∀ T ∈ (List.drop 1 ts).dropLast, ∃ (h : PartialOdometer), (T, h) ∈ ts.zip hs ∧ AncestorOdometer (↑↑D) (↑↑C) T U h f)
(hranc :
∀ T ∈ (List.drop 1 rs).dropLast, ∃ (h : PartialOdometer), (T, h) ∈ rs.zip ks ∧ AncestorOdometer (↑↑D) (↑↑C) T V h k)
(ER : ExactTileInterfaceTriple U V R)
(ES : ExactTileInterfaceTriple U V S)
(htR : TouchingTriple U V R)
(htS : TouchingTriple U V S)
(hcross : ER.otherAB = ES.point)
(x : GaussianInt)
(hxf : x ∈ f.domain)
(hxk : x ∈ k.domain)
(y : GaussianInt)
:
y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } →
∃ (T : ProtoTile) (h : PartialOdometer),
((T, h) ∈ ts.zip hs ∨ (T, h) ∈ rs.zip ks) ∧ x ∈ h.domain ∧ y ∈ h.domain ∧ (AncestorOdometer (↑↑D) (↑↑C) T U h f ∨ AncestorOdometer (↑↑D) (↑↑C) T V h k ∨ h = hm ∨ h = hp)