Documentation

CslibFrontier.DataStructure.HashFamily.WordRAM.RuntimeReducedKWise.Horner

Runtime Key Reduction and Trinomial-Field Horner Loop for ReducedKWise #

Compiles Stage-1 overflow-free odd multiply-shift reduction (reduceKeyGenProg) and the Stage-2 runtime limb-by-limb Horner polynomial evaluation loop (hornerStepGenProg, hornerLoop_spec) over $\mathrm{GF}(2)[X]/(X^{2 \cdot 3^t} + X^{3^t} + 1)$ of [BFCKK24] in Memory.Prog via by realize, storing the ≤ 54 accumulator limbs and ≤ 108 product limbs in a 162-word scratch slice [scratchBase, +162).

Main definitions #

Main results #

References #

Section 3: Runtime Memory.Prog polynomial hash evaluation (evalHashGenProg) #

theorem Cslib.DataStructure.HashFamily.WordRAM.RuntimeReducedKWise.hornerLoop_spec {w w₀ b b' k hashBase scratchBase : ℕ} {θ : Probability.ReducedPolySeed w₀ b b' k} {r : Fin (2 ^ min w₀ (3 * b))} {s₁ : Memory.State} (hw₀ : w₀ ≤ w) (hc_lt : 2 * Probability.reducedChunkBits (Probability.reducedTrinomialStep w₀ b b') < w) (hfr_h : hashBase + ReducedKWise.space w w₀ b b' k ≤ s₁.frontier) (hfr_s : scratchBase + scratchWords ≤ s₁.frontier) (hdisj : hashBase + ReducedKWise.space w w₀ b b' k ≤ scratchBase ∨ scratchBase + scratchWords ≤ hashBase) (htab₁ : ReducedKWise.TableRep hashBase w w₀ b b' k s₁.mem) (hseed₁ : ReducedKWise.SeedRep hashBase w₀ b b' k θ s₁.mem) (hz_mem : ∀ m < Probability.reducedLimbCount (Probability.reducedTrinomialStep w₀ b b'), s₁.mem (scratchBase + m) = 0) :