Documentation

LeanPool.ApollonianSuperharmonic.P4250T2FiniteForestCompletion

P4250T2FiniteForestCompletion #

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.P4250T2FiniteForestCompletion (W R : Finset GaussianInt) (hRW : R ⊆ W) (hcycle : ∀ (V : Set GaussianInt) (E : Set (Finset GaussianInt)), SimpleGridCycle V E → ¬V ⊆ ↑W) (hseparate : ∀ a ∈ R, ∀ b ∈ R, ∀ (V : Set GaussianInt) (E : Set (Finset GaussianInt)), SimpleGridPathBetween V E a b → V ⊆ ↑W → a = b) (hcount : ∑ x ∈ W, (1 - if x ∈ R then 1 else 0) = ↑({e ∈ W.product W | decide (FourNeighborAdjacent e.1 e.2) = true}.card / 2)) :