CoveredInterfaceOppositeIncidentCells #
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.CoveredInterfaceOppositeIncidentCells
(A B Aend Bend : ProtoTile)
(a b x : GaussianInt)
(hAlat : LatticeTile A)
(hBlat : LatticeTile B)
(hAendlat : LatticeTile Aend)
(hBendlat : LatticeTile Bend)
(hAB : Disjoint A.cells B.cells)
(hAAend : Disjoint A.cells Aend.cells)
(hBAend : Disjoint B.cells Aend.cells)
(hABend : Disjoint A.cells Bend.cells)
(hBBend : Disjoint B.cells Bend.cells)
(hpath : SimpleGridPathBetween (FootprintVertices A ∩ FootprintVertices B) (FootprintEdges A ∩ FootprintEdges B) a b)
(hedge : ∃ (e : Finset GaussianInt), x ∈ e ∧ e ∈ FootprintEdges A ∩ FootprintEdges B)
(hAtriple : TouchingTriple A B Aend)
(hBtriple : TouchingTriple A B Bend)
(ha : a ∈ FootprintVertices A ∩ FootprintVertices B ∩ FootprintVertices Aend)
(hb : b ∈ FootprintVertices A ∩ FootprintVertices B ∩ FootprintVertices Bend)
(hAinduced : ∀ y ∈ FootprintVertices A, ∀ z ∈ FootprintVertices A, FourNeighborAdjacent y z → {y, z} ∈ FootprintEdges A)
(hBinduced : ∀ y ∈ FootprintVertices B, ∀ z ∈ FootprintVertices B, FourNeighborAdjacent y z → {y, z} ∈ FootprintEdges B)
(hstar :
∀ (y : GaussianInt),
y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } →
y ∈ FootprintVertices A ∨ y ∈ FootprintVertices B)
:
∃ (j : Fin 4), LatticeVertexIncidentCell x j ∈ A.cells ∧ LatticeVertexIncidentCell x (j + 2) ∈ B.cells