Definition 3.1 in Mathlib terms — is Mathlib's infimum distance in
ProvedLatticePrepro.LatticeFamily.latticeDist_eq_infDistLet be a lattice family with , let be a norm exponent (a real or ), and let be an instance. Write for with the norm, as Mathlib's PiLp p (fun _ : M => ℝ), and for the image of under the cast . Then
The left side is the project's lattice distance (latticeDist, the infimum of over , computed with the project's own norm or ). The right side is Mathlib's Metric.infDist from the point to the set , both viewed in the normed space .
This certifies that the distance in the final lattice theorems (Theorem 5.1) and in the search test (Lemma 5.2) is the standard distance of Definition 3.1, , expressed with Mathlib's infimum distance in the space.
Formalization Note. The exponent enters Mathlib through PNorm.toENNReal (, ), and vectors are moved into PiLp with WithLp.toLp. is LatticeFamily.realLattice, and the target is cast with LatticeFamily.toReal.
import Mathlib
import Definitions.Def_LatticePrepro_Basic_Blocks
import Definitions.Def_LatticePrepro_Reduction_LinearSystem
import Definitions.Def_LatticePrepro_Conversions_Codes
import Definitions.Def_LatticePrepro_Conversions_ConstructionA
import Definitions.Def_LatticePrepro_Conversions_Hadamard
import Definitions.Def_LatticePrepro_Conversions_Lattices
import Definitions.Def_LatticePrepro_Lattices_Distance
import Definitions.Def_LatticePrepro_Lattices_Mathlib
open LatticePrepro
open scoped ENNReal
open WithLp
open LatticePrepro.LatticeFamily
variable {X : Type} (Λ : LatticeFamily X)theorem LatticePrepro.LatticeFamily.latticeDist_eq_infDist (pn : PNorm) (x : X) :
Λ.latticeDist pn x =
Metric.infDist (toLp pn.toENNReal (toReal (Λ.target x)) : PiLp pn.toENNReal fun _ => ℝ)
(toLp pn.toENNReal '' (Λ.realLattice : Set (Λ.M → ℝ))) := by sorryConfirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.