P5532T1FiniteOrientationGluing #
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.P5532T1FiniteOrientationGluing
{ι : Type u_1}
[Fintype ι]
(A : ι → Finset GaussianInt)
(σ : GaussianInt → ℤ)
(o : (i : ι) → AcyclicIndegreeOrientation (A i) σ)
(hcross : ∀ (i j : ι), ∀ x ∈ A i, x ∉ A j → ∀ y ∈ A j, y ∉ A i → ¬FourNeighborAdjacent x y)
(hclosed : ∀ (i j : ι), ∀ x ∈ A i ∩ A j, ∀ y ∈ A i, (o i).edge y x → y ∈ A j)
:
∃ (t : AcyclicIndegreeOrientation (Finset.univ.biUnion A) σ),
∀ (i : ι), ∀ x ∈ A i, ∀ y ∈ A i, t.edge x y ↔ (o i).edge x y