BandInterfaceRootedForest #
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.BandInterfaceRootedForest
(C : BandCircle)
(q : Fin 4 → CircleCoordinates)
(cfg : BandOrderedGeneralConfiguration q)
(T : ProtoTile)
(cert : BandOrderedGeneralLayoutCertificate q cfg C T)
(h : PartialOdometer)
(hs : Fin 3 → Bool → PartialOdometer)
(g : IntegerLatticeFunction)
(hT : BandPrototile (q 0) T)
(hlat : LatticeTile T)
(hodo : TileOdometer (q 0) T h)
(hdom : ↑h.domain = FootprintVertices T)
(hsub : ∀ (i : Fin 3) (s : Bool), TileOdometer (q i.succ) (cert.P i s) (hs i s))
(hsdom : ∀ (i : Fin 3) (s : Bool), ↑(hs i s).domain = FootprintVertices (cert.P i s))
(hext : GlobalOdometerExtends g h)
(hrest : ∀ (i : Fin 3) (s : Bool), GlobalOdometerExtends g (hs i s))
(htile : ExactTileTiling (RegularTileFamily T (TilingLattice C)))
(hweb : ∀ x ∈ BoundaryFootprintVertices T, FourNeighborLaplacian g x = 1)
(hperiod :
∃ (b : ℝ × ℝ),
∀ v ∈ TilingLattice C,
∀ (x : GaussianInt),
↑(g (x + v)) - LatticeQuadraticForm (CircleMatrix C) (x + v) - (b.1 * ↑(x + v).re + b.2 * ↑(x + v).im) = ↑(g x) - LatticeQuadraticForm (CircleMatrix C) x - (b.1 * ↑x.re + b.2 * ↑x.im))
(hPorient :
have D := {x ∈ h.domain | decide (x ∉ BoundaryFootprintVertices T) = true};
have P :=
{x ∈ D |
decide (∃ (i : Fin 3) (s : Bool), x ∈ (hs i s).domain ∧ x ∉ BoundaryFootprintVertices (cert.P i s)) = true};
Nonempty (AcyclicIndegreeOrientation P fun (x : GaussianInt) => 2 + FourNeighborLaplacian g x))
:
have D := {x ∈ h.domain | decide (x ∉ BoundaryFootprintVertices T) = true};
have P :=
{x ∈ D | decide (∃ (i : Fin 3) (s : Bool), x ∈ (hs i s).domain ∧ x ∉ BoundaryFootprintVertices (cert.P i s)) = true};
have W := D \ P;
∃ (R : Finset GaussianInt),
RootedFourNeighborForest W R ∧ R.card ≤ 2 ∧ ∀ x ∈ W,
2 + FourNeighborLaplacian g x - ↑{y ∈ P | decide (FourNeighborAdjacent y x) = true}.card = 1 - if x ∈ R then 1 else 0