Documentation

LeanPool.ApollonianSuperharmonic.FiniteGridEdgeGraphEncoding

FiniteGridEdgeGraphEncoding #

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.FiniteGridEdgeGraphEncoding (X : Set GaussianInt) (E : Set (Finset GaussianInt)) (hgrid : ∀ e ∈ E, ∃ (a : GaussianInt) (b : GaussianInt), e = {a, b} ∧ FourNeighborAdjacent a b) (hendpoints : {x : GaussianInt | ∃ e ∈ E, x ∈ e} ⊆ X) (hacyclic : have Y := {x : GaussianInt | ∃ e ∈ E, x ∈ e}; have H := SimpleGraph.fromRel fun (a b : ↑Y) => {↑a, ↑b} ∈ E; H.IsAcyclic) :
have G := SimpleGraph.fromRel fun (a b : ↑X) => {↑a, ↑b} ∈ E; G.IsAcyclic ∧ Nat.card ↑G.edgeSet = E.ncard