PSDQuadraticIntegerApproximation #
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.PSDQuadraticIntegerApproximation
(A : Matrix (Fin 2) (Fin 2) ℝ)
(hA : A.IsSymm)
(hpsd : A.PosSemidef)
:
∃ (g : IntegerLatticeFunction),
(∀ (p : GaussianInt),
(∀ (K : ℤ),
∃ (y : GaussianInt), ⌊LatticeQuadraticForm A y + ↑(|y.re| + |y.im|)⌋ - p.re * y.re - p.im * y.im ≤ K) ∨ ∃ (m : ℤ),
(∀ (y : GaussianInt), m ≤ ⌊LatticeQuadraticForm A y + ↑(|y.re| + |y.im|)⌋ - p.re * y.re - p.im * y.im) ∧ ∃ (y : GaussianInt), m = ⌊LatticeQuadraticForm A y + ↑(|y.re| + |y.im|)⌋ - p.re * y.re - p.im * y.im) ∧ (∀ (x : GaussianInt),
∃ (p : GaussianInt) (m : ℤ),
(∀ (y : GaussianInt), m ≤ ⌊LatticeQuadraticForm A y + ↑(|y.re| + |y.im|)⌋ - p.re * y.re - p.im * y.im) ∧ (∃ (y : GaussianInt), m = ⌊LatticeQuadraticForm A y + ↑(|y.re| + |y.im|)⌋ - p.re * y.re - p.im * y.im) ∧ g x = m + p.re * x.re + p.im * x.im) ∧ (∀ (x p : GaussianInt) (m : ℤ),
(∀ (y : GaussianInt), m ≤ ⌊LatticeQuadraticForm A y + ↑(|y.re| + |y.im|)⌋ - p.re * y.re - p.im * y.im) →
m + p.re * x.re + p.im * x.im ≤ g x) ∧ (∀ (x : GaussianInt),
LatticeQuadraticForm A x - ↑(|x.re| + |x.im|) - 1 ≤ ↑(g x) ∧ ↑(g x) ≤ LatticeQuadraticForm A x + ↑(|x.re| + |x.im|) + 1) ∧ ∀ (x : GaussianInt), 0 ≤ FourNeighborLaplacian g x