Documentation

CslibFrontier.Crypto.Computational.Lattice.GIVP

Generalized independent vectors and guaranteed distance decoding #

The lattice problems used in the worst-case to average-case reductions of [MR07a] (§2, p. 7; §5.2, p. 19), stated for a ℤ-submodule L of a real normed space in the same single-lattice predicate style as CslibFrontier/Crypto/Computational/Lattice/ShortestVector.lean:

These are predicates on a single lattice (and target/radius). They fix no encoding of lattices or targets and no running-time bound, so they state what an algorithm must output rather than that it is efficient.

Main definitions #

Main results #

References #

structure Cslib.Crypto.GDD.IsSolution {E : Type u_1} [NormedAddCommGroup E] (φ : Submodule ℤ E → ℝ) (γ : ℝ) (L : Submodule ℤ E) (t x : E) :

x solves guaranteed distance decoding GDD^φ_γ on (L, t): x lies in L and satisfies ‖x - t‖ ≤ γ · φ(L) ([MR07a], Definition 2.7, §2, p. 7).

  • mem : x ∈ L

    The solution is a vector of L.

  • dist_le : ‖x - t‖ ≤ γ * φ L

    The solution is within distance γ · φ(L) of the target t.

theorem Cslib.Crypto.GDD.IsSolution.mono {E : Type u_1} [NormedAddCommGroup E] {φ : Submodule ℤ E → ℝ} {γ γ' : ℝ} {L : Submodule ℤ E} {t x : E} (hx : IsSolution φ γ L t x) (hφ : 0 ≤ φ L) (hγ : γ ≤ γ') :
IsSolution φ γ' L t x

Enlarging the approximation factor γ preserves GDD^φ_γ solutions when 0 ≤ φ L.

structure Cslib.Crypto.GIVP.IsSolution {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] (φ : Submodule ℤ E → ℝ) (γ : ℝ) (L : Submodule ℤ E) (v : Fin (Module.finrank ℤ ↥L) → E) :

v solves the generalized independent vectors problem GIVP^φ_γ on L: its n = rank L vectors are linearly independent over ℝ, lie in L, and each have norm at most γ · φ(L) ([MR07a], Definition 2.6, §2, p. 7). The family is indexed by Fin (finrank ℤ L), so a solver cannot return fewer vectors than the rank; for a full-rank lattice n is the dimension of the space (ZLattice.rank). For a discrete lattice in a finite-dimensional space finrank ℤ L is its rank; on a ℤ-submodule that is not finitely generated finrank ℤ L is the junk value 0, so the predicate is meant for discrete lattices.

theorem Cslib.Crypto.GIVP.IsSolution.mono {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {φ : Submodule ℤ E → ℝ} {γ γ' : ℝ} {L : Submodule ℤ E} {v : Fin (Module.finrank ℤ ↥L) → E} (hv : IsSolution φ γ L v) (hφ : 0 ≤ φ L) (hγ : γ ≤ γ') :
IsSolution φ γ' L v

Enlarging the approximation factor γ preserves GIVP^φ_γ solutions when 0 ≤ φ L.

theorem Cslib.Crypto.GIVP.IsSolution.of_param_le {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {φ ψ : Submodule ℤ E → ℝ} {γ c : ℝ} {L : Submodule ℤ E} {v : Fin (Module.finrank ℤ ↥L) → E} (hv : IsSolution φ γ L v) (hγ : 0 ≤ γ) (hφψ : φ L ≤ c * ψ L) :
IsSolution ψ (γ * c) L v

Comparing lattice parameters φ L ≤ c · ψ L transfers any GIVP^φ_γ solution (for γ ≥ 0) to a GIVP^ψ_{γ · c} solution.

structure Cslib.Crypto.IncGDD.IsValidInstance {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] (φ : Submodule ℤ E → ℝ) (γ : ℝ) (L : Submodule ℤ E) (S : Fin (Module.finrank ℤ ↥L) → E) (r : ℝ) :

Validity of the (L, S, r) inputs of incremental guaranteed distance decoding IncGDD^φ_{γ, g} ([MR07a], Definition 5.6, §5.2, p. 19): S is a family of n = rank L linearly independent vectors of L, and the target radius satisfies r > γ · φ(L). Any target t : E pairs with (L, S, r) to form an IncGDD instance.

  • linearIndependent : LinearIndependent ℝ S

    The full-rank set S is linearly independent over ℝ.

  • mem (i : Fin (Module.finrank ℤ ↥L)) : S i ∈ L

    Every vector of S lies in L.

  • radius_gt : γ * φ L < r

    The radius strictly exceeds γ · φ(L).

structure Cslib.Crypto.IncGDD.IsSolution {E : Type u_1} [NormedAddCommGroup E] (g : ℝ) (L : Submodule ℤ E) (S : Fin (Module.finrank ℤ ↥L) → E) (t : E) (r : ℝ) (x : E) :

x solves incremental guaranteed distance decoding IncGDD^φ_{γ, g} on (L, S, t, r): x ∈ L and ‖x - t‖ ≤ ‖S‖ / g + r ([MR07a], Definition 5.6, §5.2, p. 19). Here ‖S‖ is Mathlib's canonical Pi supremum norm (Pi.norm_def), which equals max_i ‖S i‖ in positive rank and 0 in rank 0.

  • mem : x ∈ L

    The solution is a vector of L.

  • dist_le : ‖x - t‖ ≤ ‖S‖ / g + r

    The solution is within distance ‖S‖ / g + r of the target t.