Documentation

CslibFrontier.Crypto.Computational.SIS.Ell2

Short integer solution problem in the Euclidean norm #

The Euclidean (ℓ₂) formulation of the short integer solution problem from [MR07a] (§5.1, p. 17), built directly on the parameter family, encodings, and solver model of CslibFrontier/Crypto/Computational/SIS/Basic.lean with no parallel parameter structures:

SISEll2 is an explicit computational hardness hypothesis against uniform classical strict PPT programs, not a theorem. No worst-case lattice reduction is proved in this file.

Main definitions #

Main results #

References #

def Cslib.Crypto.SIS.IsEll2Solution {q : ℕ} {ρ : Type u_1} {ι : Type u_2} [Fintype ι] (A : Matrix ρ ι (ZMod q)) (β : ℝ) (z : ι → ℤ) :

z is a short integer solution in the Euclidean (ℓ₂) norm for A with bound β: it is nonzero, has ‖z‖₂ ≤ β, and satisfies A z ≡ 0 (mod q) ([MR07a], Definition 5.1, §5.1, p. 17). Since 0 ≤ ‖z‖₂, negative values of β admit no solutions.

theorem Cslib.Crypto.SIS.isEll2Solution_nat_iff {q : ℕ} {ρ : Type u_1} {ι : Type u_2} [Fintype ι] (A : Matrix ρ ι (ZMod q)) (β : ℕ) (z : ι → ℤ) :
IsEll2Solution A (↑β) z ↔ z ≠ 0 ∧ ∑ i : ι, z i ^ 2 ≤ ↑β ^ 2 ∧ InKernelLattice A z

For a natural-number bound β, SIS.IsEll2Solution A β z is equivalent to the decidable integer inequality ∑ i, z i ^ 2 ≤ β ^ 2 alongside z ≠ 0 and A z ≡ 0 (mod q).

theorem Cslib.Crypto.SIS.IsEll2Solution.mono {q : ℕ} {ρ : Type u_1} {ι : Type u_2} [Fintype ι] {A : Matrix ρ ι (ZMod q)} {β β' : ℝ} {z : ι → ℤ} (hz : IsEll2Solution A β z) (hβ : β ≤ β') :

Increasing the Euclidean norm bound preserves ℓ₂-SIS solutions.

theorem Cslib.Crypto.SIS.IsSolution.isEll2Solution {q : ℕ} {ρ : Type u_1} {ι : Type u_2} [Fintype ι] {A : Matrix ρ ι (ZMod q)} {β : ℕ} {z : ι → ℤ} (hz : IsSolution A β z) :
IsEll2Solution A (√↑(Fintype.card ι) * ↑β) z

Every ℓ_∞-SIS solution with bound β is an ℓ₂-SIS solution with bound √|ι| · β.

theorem Cslib.Crypto.SIS.IsEll2Solution.isSolution {q : ℕ} {ρ : Type u_1} {ι : Type u_2} [Fintype ι] {A : Matrix ρ ι (ZMod q)} {β : ℝ} {z : ι → ℤ} (hz : IsEll2Solution A β z) :

Every ℓ₂-SIS solution with real bound β is an ℓ_∞-SIS solution with bound ⌊β⌋₊.

theorem Cslib.Crypto.SIS.exists_isEll2Solution {q n m : ℕ} [NeZero q] (hm : 0 < m) (A : Matrix (Fin n) (Fin m) (ZMod q)) {β : ℝ} (hβ : √↑m * ↑q ^ (↑n / ↑m) ≤ β) :
∃ (z : Fin m → ℤ), IsEll2Solution A β z

Existence of short integer solutions in the ℓ₂ norm ([MR07a], Lemma 5.2, §5.1, p. 17). For every nonzero modulus q, dimensions n and m > 0, matrix A ∈ ℤ_q^{n×m}, and real bound β ≥ √m · q^{n / m}, there exists a nonzero integer vector z : Fin m → ℤ with ‖z‖₂ ≤ β and A z ≡ 0 (mod q).

The fixed-instance ℓ₂-SIS experiment #

noncomputable def Cslib.Crypto.sisEll2Experiment (q : ℕ) [NeZero q] {n m : ℕ} (β : ℝ) (S : Matrix (Fin n) (Fin m) (ZMod q) → ProbComp (Fin m → ℤ)) :

The ℓ₂-SIS experiment ([MR07a], Definitions 5.1 and 5.3, §5.1, p. 17) for modulus q, dimensions n × m, and real Euclidean bound β: the challenger draws a uniform A ∈ ℤ_q^{n×m}; the solver wins when it returns a nonzero integer kernel vector z with ‖z‖₂ ≤ β.

noncomputable def Cslib.Crypto.sisEll2Advantage (q : ℕ) [NeZero q] {n m : ℕ} (β : ℝ) (S : Matrix (Fin n) (Fin m) (ZMod q) → ProbComp (Fin m → ℤ)) :

The ℓ₂-SIS advantage of S: its success probability in sisEll2Experiment.

theorem Cslib.Crypto.sisEll2Advantage_mono (q : ℕ) [NeZero q] {n m : ℕ} {β β' : ℝ} (hβ : β ≤ β') (S : Matrix (Fin n) (Fin m) (ZMod q) → ProbComp (Fin m → ℤ)) :

Increasing the Euclidean norm bound cannot decrease a solver's ℓ₂-SIS advantage.

theorem Cslib.Crypto.sisEll2Advantage_le_sisAdvantage (q : ℕ) [NeZero q] {n m : ℕ} (β : ℕ) (S : Matrix (Fin n) (Fin m) (ZMod q) → ProbComp (Fin m → ℤ)) :
sisEll2Advantage q (↑β) S ≤ sisAdvantage q β S

At a natural-number bound β, every solver's ℓ₂-SIS advantage is at most its ℓ_∞-SIS advantage, because ‖z‖_∞ ≤ ‖z‖₂.

theorem Cslib.Crypto.sisAdvantage_le_sisEll2Advantage (q : ℕ) [NeZero q] {n m β : ℕ} {β₂ : ℝ} (hβ : √↑m * ↑β ≤ β₂) (S : Matrix (Fin n) (Fin m) (ZMod q) → ProbComp (Fin m → ℤ)) :

Whenever √m · β ≤ β₂, every solver's ℓ_∞-SIS advantage at bound β is at most its ℓ₂-SIS advantage at bound β₂, because ‖z‖₂ ≤ √m · ‖z‖_∞.

Asymptotic ℓ₂-SIS hardness and bridges to SIS #

The ℓ₂-SIS hardness hypothesis for a parameter family P: every PPT solver has negligible advantage in sisEll2Experiment at the parameters P assigns to each security parameter. This is a hypothesis against classical adversaries, not a theorem of hardness.

Source. This is the SIS_{q, m, β} problem of [MR07a], Definitions 5.1 and 5.3 (§5.1, p. 17): given a uniform A ∈ ℤ_q^{n×m}, find a nonzero z ∈ ℤ^m with A z ≡ 0 (mod q) and Euclidean norm ‖z‖₂ ≤ β. It also matches [Lyu12], Definition 3.1 (p. 6, ePrint 2011/537). This definition differs from [MR07a], Definitions 5.1 and 5.3, in three ways.

  • The bound P.β κ is a natural number rather than an arbitrary positive real function β(n), because SISEll2 reuses SISParams directly. Real Euclidean bounds are supported at the fixed-instance level by SIS.IsEll2Solution, sisEll2Experiment, and sisEll2Advantage.
  • The parameter family P is an arbitrary schedule indexed by a separate security parameter κ, whereas [MR07a], Definition 5.3 (§5.1, p. 17), takes the number of equations n as the security parameter and allows arbitrary n-indexed functions q(n), m(n), and β(n) (noting on p. 17 that polynomial instance size requires m(n) = n^{O(1)} while q(n) and β(n) may be exponentially large, that taking q(n) and β(n) polynomially bounded as well is the typical choice of interest, and that the Lemma 5.2 threshold β ≥ √m · q^{n/m} is a sufficient guarantee that solutions exist rather than part of Definition 5.3).
  • Solvers are uniform classical strict PPT programs (SISParams.Solver.IsPPT) whose success probability must be negligible in κ, matching SIS.

Hardness of ℓ_∞-SIS implies hardness of ℓ₂-SIS for the same parameter family P, since every ℓ₂-SIS solution with bound β is also an ℓ_∞-SIS solution with bound β.

theorem Cslib.Crypto.SISEll2.toSIS {P : SISParams} {β₁ : ℕ → ℕ} (h : SISEll2 P) (hβ : ∀ (κ : ℕ), √↑(P.m κ) * ↑(β₁ κ) ≤ ↑(P.β κ)) :
SIS { n := P.n, m := P.m, q := P.q, β := β₁, hq := ⋯ }

Hardness of ℓ₂-SIS for P implies hardness of ℓ_∞-SIS for { P with β := β₁ } whenever √(P.m κ) · β₁ κ ≤ P.β κ for every κ. Because { P with β := β₁ } shares P's dimensions, modulus, input layout, and solver type, callers can chain this directly with reductions from SIS such as SIS.collisionResistantForOn_ajtaiWordHash.