Finite-bit density bounds for HQC support sampling #
Main definitions #
Cslib.Crypto.HQC.supportLowerDensity,Cslib.Crypto.HQC.supportUpperDensity: products of the per-word floor-count and floor-plus-one-count density factors.
Main results #
Cslib.Crypto.HQC.sampleSupport2_density_bounds: the actual finite-bit product bounds.Cslib.Crypto.HQC.sampleSupport2_expect_bounds,Cslib.Crypto.HQC.sampleSupport2_payoff_bounds: extended nonnegative and finite real-valued nonnegative payoff bounds.Cslib.Crypto.HQC.sampleSupport2_event_bounds: the same factors bound every event.Cslib.Crypto.HQC.supportLowerDensity_toReal,Cslib.Crypto.HQC.supportUpperDensity_toReal: equality with the source's remainder expressions.
References #
- HQC specification, version 5.1, §6.2.3, Proposition 6.2.1 and Lemma 6.5, p. 65. The density bounds assume independent uniform words. The payoff corollary needs nonnegative values; the printed claim for arbitrary real-valued payoffs is false.
Product of the minimum fibre counts, divided by the ideal uniform point masses.
For M = 2^width and d = n - (offset + j), each factor is 1 - (M % d) / M.
Product of the upper fibre counts, divided by the ideal uniform point masses.
Each factor is 1 + (d - (M % d)) / M, including the source's slack when the remainder is zero.
Exact fibre bounds for one actual word, compared with its ideal interval draw.
The independent word factors multiply through the actual collision-replacement program.
HQC Proposition 6.2.1: actual fixed-width sampling is sandwiched between the two explicit product factors times the uniform fixed-weight law. This also covers weight zero.
The upper density is finite, so converting its bounds to real probabilities is sound.
Corrected HQC Lemma 6.5: the density bounds transfer to every nonnegative payoff. Using extended nonnegative values also permits unbounded payoffs without summability premises.
Every event probability obeys the same bounds, stated with the program-level probability notation. No event-specific sampling or cryptographic hypothesis is required.
The finite real-valued expectation form of corrected Lemma 6.5. Only values on valid supports must be nonnegative, since both samplers are supported there.
The proved upper factors retain precisely the slack printed in Equation (16).