Strict-PPT Basis Shortening Helpers for the Micciancio–Regev Reduction #
Executable polynomial-time implementations on row-major IntTables of the deterministic basis
shortening primitives in CslibFrontier.Crypto.Computational.Lattice.MR07Shorten (supporting
the finite-parameter reduction step toward [MicciancioRegev2007] Lemma 5.10, p. 24):
- Row-major
IntTablecolumn helpers (intTableCol,intTableColSqNorm,intTableMaxColSqNorm,intTableMaxSqNormIdx) matchingMR07Shorten.maxSqNormIndex. - Strict-PPT rational orthogonal target
ratOrthoTargetIntTablematchingMR07Shorten.ratOrthoTarget, reusingRationalElimination.{rowDenomProd_computableInPolyTime, clearRow_computableInPolyTime}. - Strict-PPT guarded column update
guardedUpdateIntTable(using Bird's staged determinantdetRows_polytime) preserving unconditional well-formedness and column-norm bounds and matchingMR07Shorten.shortenGuardedStepcolumn-by-column. - Cubic
IntTable.encencoding-length boundlength_intTableEnc_le_of_colSqNorm_leforIsPPTOn.iterateWith_spec.
1. Row-major IntTable column helpers and RowTable.ofMatrix bridge #
A well-formed n × n IntTable equals RowTable.ofMatrix of its entry matrix.
Column j of a row-major IntTable, matching MR07.intCol T.toMatrix.
Exact squared Euclidean norm of column j of T (as ℕ).
Maximum squared column norm across all columns j < T.numCols (as ℕ).
Column index iStar < T.numCols maximizing squared Euclidean column norm.
intTableColSqNorm T j equals the sum of squared natAbs entries in column j.
Every column squared norm j < T.numCols is at most intTableMaxColSqNorm T.
intTableMaxColSqNorm T is at most B whenever every column squared norm is at most B.
For any nonempty-column table T, intTableMaxSqNormIdx T < T.numCols.
Polynomial-time certificate for intTableColSqNorm.
Exact real cast equality between intTableColSqNorm T j and ‖intCol TMat j‖².
Exact equality between executable intTableMaxSqNormIdx T and MR07Shorten.maxSqNormIndex.
2. Strict-PPT ratOrthoTargetIntTable matching MR07Shorten.ratOrthoTarget #
Executable strict-PPT rational orthogonal target t : List ℚ for row-major IntTable T,
matching MR07Shorten.ratOrthoTarget entry-by-entry.
Geometric specification of ratOrthoTargetIntTable: orthogonality to all columns j ≠ iStar
and norm window (1 / 2) * ‖intCol TMat‖ < ‖tE‖ ≤ (9 / 16) * ‖intCol TMat‖.
3. Strict-PPT guardedUpdateIntTable matching MR07Shorten.shortenGuardedStep #
Executable guarded column update for the shortening loop (IsPPTOn.iterateWith_spec).
Unconditional polynomial-time certificate for guardedUpdateIntTable.
Unconditional invariants of guardedUpdateIntTable: malformed inputs are returned unchanged,
and well-formed n × n inputs stay well-formed n × n with every column squared norm bounded by
intTableMaxColSqNorm T.
Exact column-by-column bridge from executable guardedUpdateIntTable to
MR07Shorten.shortenGuardedStep via MR07.intColCast.
4. Cubic IntTable.enc encoding-length bound for IsPPTOn.iterateWith_spec #
Direct cubic IntTable.enc encoding-length bound: any well-formed n × n IntTable T
whose column squared norms are at most intTableMaxColSqNorm B₀ satisfies
(IntTable.enc T).length ≤ 14 * ((IntTable.enc B₀).length + 1) ^ 3.
Direct ComputableInPolyTime certificate for MR07Shorten.shortenRoundBound
(via ComputableInPolyTime.binary_log_two).