Documentation

LeanPool.ApollonianSuperharmonic.BandOrderedGeneralOuterMixedOdometerRows

BandOrderedGeneralOuterMixedOdometerRows #

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.BandOrderedGeneralOuterMixedOdometerRows (q : Fin 4 → CircleCoordinates) (cfg : BandOrderedGeneralConfiguration q) (C0 : BandCircle) (T : ProtoTile) (cert : BandOrderedGeneralLayoutCertificate q cfg C0 T) (h : PartialOdometer) (P : Fin 3 → Bool → ProtoTile) (r : Fin 3 → Bool → PartialOdometer) (Q S : Fin 3 → Bool → ProtoTile) (u v : Fin 3 → Bool → PartialOdometer) (g : IntegerLatticeFunction) (x : GaussianInt) (marked : Bool) (data : BandOrderedGeneralOdometerRowData q cfg C0 T cert h P r Q S u v g) (row : BandOrderedGeneralInteriorWebRow cert x marked) (outer : (∃ (left_mem : x ∈ FootprintVertices (cert.P 0 true)) (right_mem : x ∈ FootprintVertices (cert.P 1 false)) (star : ∀ (y : GaussianInt), y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } → y ∈ FootprintVertices (cert.P 0 true) ∨ y ∈ FootprintVertices (cert.P 1 false)) (coarseThird : x ∈ FootprintVertices (cert.P 0 false) ↔ marked = true) (webCompanion : x ∈ FootprintVertices (TileTranslation (cert.P 0 true) ({ re := 0, im := 1 } ^ 3 * if Even 3 then BandVectors.1 (cfg.firstPredecessor 0) (cfg.firstPredecessor 2) else BandVectors.1 (cfg.firstPredecessor 2) (cfg.firstPredecessor 0))) ↔ marked = true), row = ⋯) ∨ (∃ (left_mem : x ∈ FootprintVertices (cert.P 0 true)) (right_mem : x ∈ FootprintVertices (cert.P 2 false)) (star : ∀ (y : GaussianInt), y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } → y ∈ FootprintVertices (cert.P 0 true) ∨ y ∈ FootprintVertices (cert.P 2 false)) (coarseThird : x ∈ FootprintVertices (cert.P 1 true) ↔ marked = true) (webCompanion : x ∈ FootprintVertices (TileTranslation (cert.P 0 true) ({ re := 0, im := 1 } ^ 0 * if Even 0 then BandVectors.1 (cfg.firstPredecessor 0) (cfg.firstPredecessor 3) else BandVectors.1 (cfg.firstPredecessor 3) (cfg.firstPredecessor 0))) ↔ marked = true), row = ⋯) ∨ (∃ (left_mem : x ∈ FootprintVertices (cert.P 1 true)) (right_mem : x ∈ FootprintVertices (cert.P 0 false)) (star : ∀ (y : GaussianInt), y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } → y ∈ FootprintVertices (cert.P 1 true) ∨ y ∈ FootprintVertices (cert.P 0 false)) (coarseThird : x ∈ FootprintVertices (cert.P 0 true) ↔ marked = true) (webCompanion : x ∈ FootprintVertices (TileTranslation (cert.P 0 false) ({ re := 0, im := 1 } ^ 1 * if Even 1 then BandVectors.1 (cfg.firstPredecessor 0) (cfg.firstPredecessor 2) else BandVectors.1 (cfg.firstPredecessor 2) (cfg.firstPredecessor 0))) ↔ marked = true), row = ⋯) ∨ (∃ (left_mem : x ∈ FootprintVertices (cert.P 2 true)) (right_mem : x ∈ FootprintVertices (cert.P 0 false)) (star : ∀ (y : GaussianInt), y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } → y ∈ FootprintVertices (cert.P 2 true) ∨ y ∈ FootprintVertices (cert.P 0 false)) (coarseThird : x ∈ FootprintVertices (cert.P 1 false) ↔ marked = true) (webCompanion : x ∈ FootprintVertices (TileTranslation (cert.P 0 false) ({ re := 0, im := 1 } ^ 2 * if Even 2 then BandVectors.1 (cfg.firstPredecessor 0) (cfg.firstPredecessor 3) else BandVectors.1 (cfg.firstPredecessor 3) (cfg.firstPredecessor 0))) ↔ marked = true), row = ⋯) ∨ (∃ (left_mem : x ∈ FootprintVertices (cert.P 1 true)) (right_mem : x ∈ FootprintVertices (cert.P 2 false)) (star : ∀ (y : GaussianInt), y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } → y ∈ FootprintVertices (cert.P 1 true) ∨ y ∈ FootprintVertices (cert.P 2 false)) (coarseThird : x ∈ FootprintVertices (cert.P 0 true) ↔ marked = true) (webCompanion : x ∈ FootprintVertices (TileTranslation (cert.P 1 true) ({ re := 0, im := 1 } ^ 3 * if Even 3 then BandVectors.1 (cfg.secondPredecessor 0) (cfg.secondPredecessor 1) else BandVectors.1 (cfg.secondPredecessor 1) (cfg.secondPredecessor 0))) ↔ marked = true), row = ⋯) ∨ ∃ (left_mem : x ∈ FootprintVertices (cert.P 2 true)) (right_mem : x ∈ FootprintVertices (cert.P 1 false)) (star : ∀ (y : GaussianInt), y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } → y ∈ FootprintVertices (cert.P 2 true) ∨ y ∈ FootprintVertices (cert.P 1 false)) (coarseThird : x ∈ FootprintVertices (cert.P 0 false) ↔ marked = true) (webCompanion : x ∈ FootprintVertices (TileTranslation (cert.P 1 false) ({ re := 0, im := 1 } ^ 1 * if Even 1 then BandVectors.1 (cfg.secondPredecessor 0) (cfg.secondPredecessor 1) else BandVectors.1 (cfg.secondPredecessor 1) (cfg.secondPredecessor 0))) ↔ marked = true), row = ⋯) :
(marked = true → FourNeighborLaplacian g x = 0) ∧ (marked = false → FourNeighborLaplacian g x = 1)