Documentation

LeanPool.ApollonianSuperharmonic.DiamondTerminalWebStencilLedger

DiamondTerminalWebStencilLedger #

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.DiamondTerminalWebStencilLedger (K : DiamondParameter) (hk : 1 < ↑K) :
have q := DiamondRecursiveQuadruple K; (∀ (i : Fin 3) (e : Bool) (T T' : ProtoTile) (h h' : PartialOdometer) (p p' : ℝ × ℝ) (g : IntegerLatticeFunction) (x : GaussianInt), TileOdometer (q 0) T h → TileOdometer (q 0) T' h' → PartialOdometerSlope h = some p → PartialOdometerSlope h' = some p' → TileCentroid T' - TileCentroid T = (if e = true then 1 else -1) • GaussianRealPoint (BandVectors.1 (q 0) (q i.succ)) → p'.1 - p.1 = (if e = true then 1 else -1) * ↑(BandVectors.2 (q 0) (q i.succ)).re → p'.2 - p.2 = (if e = true then 1 else -1) * ↑(BandVectors.2 (q 0) (q i.succ)).im → OdometerCompatibility h h' → GlobalOdometerExtends g h → GlobalOdometerExtends g h' → x ∈ h.domain → x ∈ h'.domain → (∀ (y : GaussianInt), y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } → y ∈ h.domain ∨ y ∈ h'.domain) → ((∀ (s : GaussianInt), s = x ∨ s = x - 1 ∨ s = x - { re := 0, im := 1 } ∨ s = x - 1 - { re := 0, im := 1 } → s ∈ T.cells ∨ s ∈ T'.cells) → FourNeighborLaplacian g x = 1) ∧ ((¬∀ (s : GaussianInt), s = x ∨ s = x - 1 ∨ s = x - { re := 0, im := 1 } ∨ s = x - 1 - { re := 0, im := 1 } → s ∈ T.cells ∨ s ∈ T'.cells) → FourNeighborLaplacian g x = 0)) ∧ ∀ (i : Fin 3) (s : Fin 4) (T₀ Tᵢ : ProtoTile) (h₀ hᵢ : PartialOdometer) (p₀ pᵢ : ℝ × ℝ) (g : IntegerLatticeFunction) (x : GaussianInt), TileOdometer (q 0) T₀ h₀ → TileOdometer (q i.succ) Tᵢ hᵢ → PartialOdometerSlope h₀ = some p₀ → PartialOdometerSlope hᵢ = some pᵢ → TileCentroid Tᵢ - TileCentroid T₀ = (1 / 2) • GaussianRealPoint ({ re := 0, im := 1 } ^ ↑s * (BandVectors.1 (q i.succ) (q 0) + BandVectors.1 (q 0) (q i.succ))) → pᵢ.1 - p₀.1 = ((1 / 2) • GaussianRealPoint ((-{ re := 0, im := 1 }) ^ ↑s * (BandVectors.2 (q i.succ) (q 0) + BandVectors.2 (q 0) (q i.succ)))).1 → pᵢ.2 - p₀.2 = ((1 / 2) • GaussianRealPoint ((-{ re := 0, im := 1 }) ^ ↑s * (BandVectors.2 (q i.succ) (q 0) + BandVectors.2 (q 0) (q i.succ)))).2 → OdometerCompatibility h₀ hᵢ → GlobalOdometerExtends g h₀ → GlobalOdometerExtends g hᵢ → x ∈ h₀.domain → x ∈ hᵢ.domain → (∀ (y : GaussianInt), y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } → y ∈ h₀.domain ∨ y ∈ hᵢ.domain) → have uR := { re := 0, im := 1 } ^ ↑s * if Even ↑s then BandVectors.1 (q 0) (q i.succ) else BandVectors.1 (q i.succ) (q 0); have UR := TileTranslation T₀ uR; (x ∈ FootprintVertices UR → FourNeighborLaplacian g x = 0) ∧ (x ∉ FootprintVertices UR → FourNeighborLaplacian g x = 1)