Falcon v1.2 BerExp threshold distribution #
Falcon v1.2 Algorithm 14 computes a 64-bit integer threshold z from floating-point inputs, then
accepts exactly when a uniform 64-bit value is strictly below z. This module isolates that exact
distributional boundary after z has already been computed. The resulting acceptance mass is
z / 2^64 for every possible threshold, including both endpoints of the unsigned range.
berExpThresholdCoin uses the shared exact 64-fair-bit sampler. It is denotationally equivalent to
Algorithm 14's threshold comparison, but does not model the reference implementation's lazy
one-to-eight-byte consumption trace. It also does not formalize ApproxExp, bound floating-point
error, construct BaseSampler or SamplerZ, prove a Gaussian law or termination, certify native
resources, or establish a security reduction or the still-developing FN-DSA / FIPS 206 interface.
NIST lists that interface as under development as of 13 November 2026 ([NIST26]).
Main definitions #
Cslib.Crypto.Falcon.BerExpThreshold: an unsigned 64-bit acceptance threshold.Cslib.Crypto.Falcon.berExpThresholdAccepts: the deterministic strict comparison.Cslib.Crypto.Falcon.berExpThresholdCoin: the exact fair-bit threshold experiment.
Main results #
Cslib.Crypto.Falcon.berExpThresholdAccepts_eq_true_iff: deterministic acceptance is exactly strict comparison with the threshold.Cslib.Crypto.Falcon.eval_berExpThresholdCoin_true: acceptance mass is exactlyz / 2^64.Cslib.Crypto.Falcon.eval_berExpThresholdCoin_true_toReal,Cslib.Crypto.Falcon.eval_berExpThresholdCoin_false_toReal: real-valued acceptance and rejection masses.
References #
- Falcon team, Falcon: Fast-Fourier Lattice-based Compact Signatures over NTRU, Round 3 submission, version 1.2, Section 3.9.3, Algorithm 14, lines 4–10.
- Pinned [FHK+20] archive,
Reference_Implementation/falcon512/falcon512int/sign.c::BerExp: threshold assignment at line 1074 and lazy comparison at lines 1082–1087. - National Institute of Standards and Technology, Post-Quantum Cryptography Standardization.
The 64-bit unsigned integer threshold produced before Algorithm 14's uniform comparison.
Algorithm 14 accepts a uniform word exactly when it is strictly below the threshold.
The probabilistic experiment supplies a sample below 2 ^ 64; accepting a natural number keeps
this predicate as the single comparison implementation used by both the experiment and direct
clients.
The deterministic threshold comparison accepts exactly below the threshold.
The deterministic threshold comparison rejects exactly at or above the threshold.
The exact distributional threshold step of Falcon v1.2 BerExp.
This draws a fixed 64 fair bits through the shared sampler. The reference implementation compares successive bytes lazily; that operational consumption trace is deliberately outside this denotational interface.
Algorithm 14's threshold step accepts with exact mass z / 2^64.
Real-valued form of the exact BerExp threshold acceptance mass.
Rejection has the complementary real mass 1 - z / 2^64.