TranslatedMinimumEnvelope #
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.TranslatedMinimumEnvelope
(A : Matrix (Fin 2) (Fin 2) ℝ)
(hA : A.IsSymm)
(b : Fin 2 → ℝ)
(u : IntegerLatticeFunction)
(hulap : ∀ (x : GaussianInt), FourNeighborLaplacian u x ≤ 1)
(hulower : ∀ (x : GaussianInt), LatticeQuadraticForm A x + b ⬝ᵥ ![↑x.re, ↑x.im] ≤ ↑(u x))
:
∃ (F : GaussianInt → IntegerLatticeFunction) (g : IntegerLatticeFunction),
(∀ (z x : GaussianInt),
F z x = u (x + z) - ⌊LatticeQuadraticForm A z + b ⬝ᵥ ![↑z.re, ↑z.im]⌋ - ⌊A.mulVec ![↑z.re, ↑z.im] 0 + b 0⌋ * x.re - ⌊A.mulVec ![↑z.re, ↑z.im] 1 + b 1⌋ * x.im) ∧ (∀ (z x : GaussianInt), FourNeighborLaplacian (F z) x ≤ 1) ∧ (∀ (x : GaussianInt), (∀ (z : GaussianInt), g x ≤ F z x) ∧ ∃ (z : GaussianInt), g x = F z x) ∧ (∀ (x : GaussianInt),
LatticeQuadraticForm A x - ↑(|x.re| + |x.im|) ≤ ↑(g x) ∧ ↑(g x) ≤ LatticeQuadraticForm A x + ↑(u 0) + 1 + ↑(|x.re| + |x.im|)) ∧ IntegerSuperharmonicRepresentative A g