Documentation

LeanPool.ApollonianSuperharmonic.LatticeVertexSectorFacts

LatticeVertexSectorFacts #

Shared facts adapted from Wesley Pegden's Apache-2.0 Trellis formalization of Levine–Pegden–Smart, replacing repeated implementations at their common dependency level.

theorem ApollonianSuperharmonic.LatticeVertexSectorFacts.neighborDistinct :
have neighbor := fun (x : GaussianInt) => ![x + { re := 0, im := 1 }, x - 1, x - { re := 0, im := 1 }, x + 1]; ∀ (x : GaussianInt) (j : Fin 4), neighbor x j ≠ x

Shared neighborDistinct identity for LatticeVertexSectorFacts.

theorem ApollonianSuperharmonic.LatticeVertexSectorFacts.edgeMembership :
have neighbor := fun (x : GaussianInt) => ![x + { re := 0, im := 1 }, x - 1, x - { re := 0, im := 1 }, x + 1]; have edgeAt := fun (x : GaussianInt) => ![{x, x + { re := 0, im := 1 }}, {x - 1, x}, {x - { re := 0, im := 1 }, x}, {x, x + 1}]; ∀ (x : GaussianInt) (j : Fin 4), x ∈ edgeAt x j ∧ neighbor x j ∈ edgeAt x j

Shared edgeMembership identity for LatticeVertexSectorFacts.

theorem ApollonianSuperharmonic.LatticeVertexSectorFacts.edgePair :
have neighbor := fun (x : GaussianInt) => ![x + { re := 0, im := 1 }, x - 1, x - { re := 0, im := 1 }, x + 1]; have edgeAt := fun (x : GaussianInt) => ![{x, x + { re := 0, im := 1 }}, {x - 1, x}, {x - { re := 0, im := 1 }, x}, {x, x + 1}]; ∀ (x : GaussianInt) (j : Fin 4), edgeAt x j = {x, neighbor x j}

Shared edgePair identity for LatticeVertexSectorFacts.

theorem ApollonianSuperharmonic.LatticeVertexSectorFacts.edgeInjective :
have neighbor := fun (x : GaussianInt) => ![x + { re := 0, im := 1 }, x - 1, x - { re := 0, im := 1 }, x + 1]; have edgeAt := fun (x : GaussianInt) => ![{x, x + { re := 0, im := 1 }}, {x - 1, x}, {x - { re := 0, im := 1 }, x}, {x, x + 1}]; (∀ (x : GaussianInt) (j : Fin 4), neighbor x j ≠ x) → (∀ (x : GaussianInt) {j k : Fin 4}, neighbor x j = neighbor x k → j = k) → (∀ (x : GaussianInt) (j : Fin 4), x ∈ edgeAt x j ∧ neighbor x j ∈ edgeAt x j) → ∀ (x : GaussianInt) {j k : Fin 4}, edgeAt x j = edgeAt x k → j = k

Shared edgeInjective identity for LatticeVertexSectorFacts.

theorem ApollonianSuperharmonic.LatticeVertexSectorFacts.firstTileLabel (T0 T0' : ProtoTile) :
have outerLabel := fun (x : GaussianInt) (j : Fin 4) => if LatticeVertexIncidentCell x j ∈ T0.cells then 0 else if LatticeVertexIncidentCell x j ∈ T0'.cells then 1 else 2; ∀ (x : GaussianInt) (j : Fin 4), LatticeVertexIncidentCell x j ∈ T0.cells → outerLabel x j = 0

Shared firstTileLabel identity for LatticeVertexSectorFacts.

theorem ApollonianSuperharmonic.LatticeVertexSectorFacts.secondTileLabel (T0 T0' : ProtoTile) :
Disjoint T0.cells T0'.cells → have outerLabel := fun (x : GaussianInt) (j : Fin 4) => if LatticeVertexIncidentCell x j ∈ T0.cells then 0 else if LatticeVertexIncidentCell x j ∈ T0'.cells then 1 else 2; ∀ (x : GaussianInt) (j : Fin 4), LatticeVertexIncidentCell x j ∈ T0'.cells → outerLabel x j = 1

Shared secondTileLabel identity for LatticeVertexSectorFacts.