Documentation

CslibFrontier.Crypto.Computational.SIS.Hermite

Hermite normal form Module-SIS #

The MSIS experiment in Bai et al., §6.1 samples a uniform matrix A and asks for a short nonzero integer vector in the kernel of [I | A]. The identity block consists of constant polynomials. This representation uses the same integer solution predicate as the full-matrix Module-SIS experiment.

def Cslib.Crypto.ModuleSIS.hermiteMatrix {d k n q : ℕ} (A : Matrix (Fin d) (Fin k) (Fin n → ZMod q)) :
Matrix (Fin d) (Fin (d + k)) (Fin n → ZMod q)

The challenge matrix [I | A] of Hermite normal form Module-SIS.

theorem Cslib.Crypto.ModuleSIS.moduleSISMap_hermiteMatrix {d k n q : ℕ} (A : Matrix (Fin d) (Fin k) (Fin n → ZMod q)) (u : Fin d → Fin n → ZMod q) (z : Fin k → Fin n → ZMod q) :

The two blocks act by (u,z) ↦ u + A z in the negacyclic ring.

noncomputable def Cslib.Crypto.ModuleSIS.hermiteExperiment {d k n q : ℕ} [NeZero q] (β : ℕ) (solver : Matrix (Fin d) (Fin k) (Fin n → ZMod q) → ProbComp (Fin (d + k) → Fin n → ℤ)) :

The fixed-parameter experiment of §6.1. Sample the right block uniformly and test the solver's integer vector against the full matrix [I | A].