Documentation

LeanPool.ApollonianSuperharmonic.P5432T1EdgeLedger

P5432T1EdgeLedger #

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.P5432T1EdgeLedger (K : DiamondParameter) (D : Finset GaussianInt) (hD : ∀ (x : GaussianInt), x ∈ D ↔ x ∈ DiamondVertexDomains K true) :
have edge := fun (x y : GaussianInt) => x ∈ D ∧ y ∈ D ∧ FourNeighborAdjacent x y ∧ (x.re.natAbs < y.re.natAbs ∨ x.re = y.re ∧ ¬Even (x.re + x.im) ∧ Even (y.re + y.im)); have rank := fun (x : GaussianInt) => 2 * x.re.natAbs + if Even (x.re + x.im) then 1 else 0; (∀ (x y : GaussianInt), edge x y → x ∈ D ∧ y ∈ D ∧ FourNeighborAdjacent x y) ∧ (∀ x ∈ D, ∀ y ∈ D, FourNeighborAdjacent x y → edge x y ∧ ¬edge y x ∨ edge y x ∧ ¬edge x y) ∧ (∀ (x y : GaussianInt), edge x y → rank x < rank y) ∧ ∀ x ∈ D, ↑{y ∈ D | decide (edge y x) = true}.card = if x.re = 0 then if Even (x.re + x.im) then 2 else 0 else if Even (x.re + x.im) then 3 else 1