Documentation

CslibFrontier.Crypto.Computational.SIS.MR07Reduction

Strict-PPT GIVP Reduction from ℓ₂-SIS (Micciancio–Regev Finite-Parameter Step) #

This module assembles the full finite-parameter strict probabilistic polynomial-time (IsPPTOn) basis-shortening reduction from worst-case GIVP^{η_ε}_{8 β √n} on full-rank integer lattice bases to average-case ℓ₂-SIS, providing the finite-parameter reduction step toward [MicciancioRegev2007] Theorem 5.9, Lemma 5.10, and Corollary 5.13 (see tracking issue #6861 for the asymptotic worst-case hardness endpoints).

Re-exports CslibFrontier.Crypto.Computational.SIS.MR07Reduction.Shorten and CslibFrontier.Crypto.Computational.SIS.MR07Reduction.IncGDD.

Main definitions #

Main results #

1. GIVPInput & Explicit Error-Budget Schedules #

Input to the strict-PPT GIVP reduction (finite step toward [MicciancioRegev2007] Lemma 5.10 and Corollary 5.13): unary security parameter secParam and row-major full-rank integer lattice basis basisB.

  • secParam : ℕ

    Security parameter (encoded in unary).

  • Row-major integer basis matrix whose columns generate intLattice B.

Instances For
    theorem Cslib.Crypto.SIS.MR07.GIVPInput.enc_secParam_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → GIVPInput} :
    @[reducible, inline]

    The tuple of the fields of enc.

    theorem Cslib.Crypto.SIS.MR07.GIVPInput.enc_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 T0 S0 : γ → ℕ} {x1 : γ → RowTable ℤ} {T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.encUnary T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn LinearAlgebra.IntTable.enc T1 S1) :
    Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { secParam := x0 x, basisB := x1 x }) encIn enc (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x
    theorem Cslib.Crypto.SIS.MR07.GIVPInput.enc_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget x0 : γ → ℕ} {x1 : γ → RowTable ℤ} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn Turing.MultiTapeTM.encUnary budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn LinearAlgebra.IntTable.enc budget) :
    Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { secParam := x0 x, basisB := x1 x }) encIn enc budget
    theorem Cslib.Crypto.SIS.MR07.GIVPInput.enc_basisB_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → GIVPInput} :

    Unary error-bit parameter L_err = ⌈log₂(48 m² n β (κ + 1)^c + 1)⌉ + 2 used for both tail and extraBits.

    Unary dyadic acceptance-coin precision prec passed to sampleGridGaussian.

    Unary rejection-trial cap maxTrials = 16 * (2 * tail + 6) * tail for sampleGridGaussian.

    Unary amplification trial count T_amp per shortening round.

    noncomputable def Cslib.Crypto.SIS.MR07.mr07Eps (m β κ c : ℕ) :

    Target smoothing-parameter accuracy ε = 1 / (400 β m² (κ + 1)^c) for mr07GIVPReduction.

    theorem Cslib.Crypto.SIS.MR07.mr07Eps_pos {m β : ℕ} (κ c : ℕ) (hm : 1 ≤ m) (hβ : 1 ≤ β) :
    0 < mr07Eps m β κ c

    mr07Eps m β κ c is strictly positive whenever 1 ≤ m and 1 ≤ β.

    2. Closed Quantitative Error-Budget & Amplification Bounds #

    theorem Cslib.Crypto.SIS.MR07.mr07_hprec_ok {n m β : ℕ} (κ c : ℕ) (hn : 1 ≤ n) (hm : 1 ≤ m) (hβ : 1 ≤ β) :
    8 * (2 * mr07ErrBits n m β κ c + 6) ≤ 2 ^ mr07Prec n m β κ c

    Exact dyadic-precision side condition 8 * (2 * tail + 6) ≤ 2 ^ prec for closeTo_eval_singleIncGDDCall_idealIncGDDStep.

    theorem Cslib.Crypto.SIS.MR07.mr07_singleCall_eta_le {n m β : ℕ} (κ c : ℕ) (hn : 1 ≤ n) (hm : 1 ≤ m) (hβ : 1 ≤ β) :
    have L := mr07ErrBits n m β κ c; have prec := mr07Prec n m β κ c; have maxTrials := mr07MaxTrials n m β κ c; have ε := mr07Eps m β κ c; have K := 2 * ↑β * ↑m * (↑κ + 1) ^ c; mr07SingleCallErr n m L prec maxTrials L ε ≤ 1 / (12 * K)

    Complete 5-term CloseTo error bound for one singleIncGDDCall: mr07SingleCallErr ≤ 6 / (96 K) = 1 / (16 K) ≤ 1 / (12 K) where K = 2 β m (κ + 1)^c.

    theorem Cslib.Crypto.SIS.MR07.mr07_singleCall_succProb_ge {m β : ℕ} (κ c : ℕ) (hm : 1 ≤ m) (hβ : 1 ≤ β) {adv η : ℝ} (hadv : 1 / (↑κ + 1) ^ c ≤ adv) (hη : η ≤ 1 / (12 * (2 * ↑β * ↑m * (↑κ + 1) ^ c))) :
    have ε := mr07Eps m β κ c; ε ≤ 1 / (400 * max 1 √↑m) ∧ 1 / (12 * (2 * ↑β * ↑m) * (↑κ + 1) ^ c) ≤ 1 / 3 * (adv / (2 * ↑β * ↑m) - ↑m * ε / (2 * (1 - ε))) - η

    Single-call success probability lower bound: when 1 / (κ + 1)^c ≤ adv and η ≤ 1 / (12 K), mr07Eps satisfies the MR07Core threshold and the single-call success probability is at least 1 / (12 * (2 * β * m) * (κ + 1)^c).

    theorem Cslib.Crypto.SIS.MR07.mr07_amp_round_failure_le {m β : ℕ} (κ c R : ℕ) (hm : 1 ≤ m) (hβ : 1 ≤ β) {p : ℝ} (hp_ge : 1 / (12 * (2 * ↑β * ↑m) * (↑κ + 1) ^ c) ≤ p) (hp_le1 : p ≤ 1) :
    (1 - p) ^ mr07AmpTrials m β κ c R ≤ 1 / 4 * 2 ^ (-↑κ) / (↑R + 1)

    Per-round failure bound after mr07AmpTrials m β κ c R independent trials.

    theorem Cslib.Crypto.SIS.MR07.mr07_total_succProb_ge (κ R : ℕ) {roundFail : ℝ} (hfail : roundFail ≤ 1 / 4 * 2 ^ (-↑κ) / (↑R + 1)) :
    1 / 2 ≤ 1 - ↑R * roundFail ∧ 1 - 1 / 4 * 2 ^ (-↑κ) ≤ 1 - ↑R * roundFail

    Union bound over R shortening rounds yields total success probability ≥ 1 - (1 / 4) * 2 ^ (-κ) ≥ 1 / 2 for every κ : ℕ.

    3. Guarded Strict-PPT Shortening Reduction (mr07GIVPReduction) #

    Guarded strict-PPT basis-shortening reduction solving GIVP via OracleComp.iterate (finite-parameter reduction step toward [MicciancioRegev2007] Lemma 5.10 and Corollary 5.13).

    Unconditional strict-PPT certificate for mr07GIVPReduction via IsPPTOn.iterateWith_spec, handling all inputs (including malformed inp.basisB) with the cubic encoding-length bound 14 * ((GIVPInput.enc inp).length + 1) ^ 3.

    4. Quantitative GIVP Success Probability Theorem (mr07GIVPReduction_succProb_ge) #

    theorem Cslib.Crypto.SIS.MR07.mr07GIVPReduction_succProb_ge (P : SISParams) (c : ℕ) (F : P.Solver) (κ : ℕ) (hn : 1 ≤ P.n κ) (hm : 1 ≤ P.m κ) (hβ : 1 ≤ P.β κ) (hq : 64 * P.n κ ^ 2 * P.m κ * P.β κ ^ 2 ≤ P.q κ ^ 2) (hadv : 1 / (↑κ + 1) ^ c ≤ ↑(sisEll2Advantage (P.q κ) (↑(P.β κ)) (F κ))) (B : Matrix (Fin (P.n κ)) (Fin (P.n κ)) ℤ) (hB : B.det ≠ 0) :
    let n := P.n κ; have ε := mr07Eps (P.m κ) (P.β κ) κ c; have φ := fun (L : Submodule ℤ (EuclideanSpace ℝ (Fin n))) => ZLattice.smoothingParameter L ε; 1 - 1 / 4 * 2 ^ (-↑κ) ≤ ((mr07GIVPReduction P c F { secParam := κ, basisB := RowTable.ofMatrix B }).eval.toOuterMeasure {T : LinearAlgebra.IntTable | ∃ (S : Matrix (Fin n) (Fin n) ℤ), T = RowTable.ofMatrix S ∧ GIVP.IsSolution φ (8 * ↑(P.β κ) * √↑n) (intLattice B) (intColCast B S hB)}).toReal

    Quantitative GIVP success probability lower bound (finite-parameter step toward [MicciancioRegev2007] Lemma 5.10 and Corollary 5.13, §5.3, pp. 24–25): at any κ where 64 * (P.n κ)^2 * P.m κ * (P.β κ)^2 ≤ (P.q κ)^2 and 1 / (κ + 1)^c ≤ sisEll2Advantage, for every full-rank P.n κ × P.n κ integer lattice basis B, mr07GIVPReduction P c F ⟨κ, ofMatrix B⟩ outputs a GIVP^{η_ε}_{8 β √n} solution on intLattice B with probability ≥ 1 - (1 / 4) * 2 ^ (-κ) at ε := mr07Eps (P.m κ) (P.β κ) κ c.