Documentation

CslibFrontier.Crypto.Protocols.FAEST.Challenge

FAEST challenge decomposition #

FAEST v3 splits the first lambda - grindingBits bits of its third Fiat--Shamir challenge among repetitions small-VOLE instances. The first largeCount instances receive largeWidth bits and the remaining instances receive largeWidth - 1 bits. The final grindingBits challenge bits must all be zero [BaumEtAl2026FAEST, Section 5.5, Figure 5.7]. The derived parameter names follow Table 5.1; the standard parameter clients use Table 3.2 of version 3.0 dated 1 September 2026.

This module formalizes the parameter arithmetic and the DecodeChall3 / DecodeAllChall3 procedures. Challenge bits and each returned integer use the source's little-endian NumRec convention from Section 3.2, Figure 3.5. It is the challenge parser consumed by the later BAVC and VOLE reconstruction algorithms; it does not construct those commitments or prove FAEST security.

Main definitions #

Main results #

References #

Parameters needed by FAEST v3 Figure 5.7. The source parameter sets have a positive number of small-VOLE instances and at least one non-grinding challenge bit per instance.

Number n_Delta = lambda - w_grind of challenge bits assigned to small-VOLE instances.

Number tau_1 = n_Delta mod tau of larger small-VOLE instances.

Number tau_0 = tau - tau_1 of smaller small-VOLE instances.

Bit length k = floor(n_Delta / tau) + 1 of a larger small-VOLE instance.

Source width d_i: k for the first tau_1 instances and k - 1 thereafter.

Starting offset of source block i in the non-grinding challenge prefix.

The source blocks are consecutive: the next block starts exactly after the current block.

The consecutive block slices end exactly at n_Delta = lambda - w_grind.

Every valid source block lies in the non-grinding challenge prefix.

The final w_grind bits are all zero, as required by FAEST v3 Figure 5.7.

The exact fixed-width challenge block assigned to a typed small-VOLE instance.

DecodeChall3 from FAEST v3 Figure 5.7. A natural-number index is retained so that the source's invalid-index rejection is represented explicitly.

DecodeAllChall3 from FAEST v3 Figure 5.7. Each result is typed below 2 ^ d_i, making the hidden-leaf range required by the BAVC explicit.

@[simp]
theorem Cslib.Crypto.FAEST.challengeBlock_apply (p : ChallengeParams) (challenge : BitString p.securityBits) (i : Fin p.repetitions) (j : Fin (p.blockWidth ↑i)) :
challengeBlock p challenge i j = challenge ⟨p.blockOffset ↑i + ↑j, ⋯⟩
theorem Cslib.Crypto.FAEST.decodeChallengeBlock_eq_some (p : ChallengeParams) (challenge : BitString p.securityBits) {i : ℕ} (hi : i < p.repetitions) (hgrind : grindingAccepted p challenge = true) :
decodeChallengeBlock p challenge i = some (challengeBlock p challenge ⟨i, hi⟩)