Documentation

CslibFrontier.Crypto.Protocols.FAEST.Conversion

FAEST seed expansion and conversion to VOLE #

FAEST v3 expands the leaves of a depth-d all-but-one vector commitment to 2 ^ d rows in F₂^hatℓ, then Figure 5.6 recursively xors adjacent pairs. At level j, the xor of every odd row is output as column v_j; the paired rows continue to the next level. Proposition 5.2 states that hiding leaf Delta, substituting the zero row, and permuting the remaining rows by i ↦ i xor Delta produces verifier columns q_j = v_j xor delta_j * u, where delta_j is the j-th little-endian bit of Delta.

This module starts after deterministic seed expansion: its input is the family of expanded rows. It formalizes the exact divide-and-conquer conversion and packages Proposition 5.2 as the existing Cslib.Crypto.Protocols.VOLE.VOLECorrelation Bool invariant. It does not formalize BAVC commitments or their abort behavior, pseudorandomness of the expansion, VOLECommit / VOLEReconstruct, CRT masks, QuickSilver verification, the complete FAEST protocol, or ROM/QROM security.

Main definitions #

Main results #

References #

structure Cslib.Crypto.FAEST.Conversion (d outputLength : ℕ) :

Output (u, v₀, ..., v_{d-1}) of FAEST v3 ConvertToVOLE after seed expansion.

  • u : BitString outputLength

    The xor of all expanded rows.

  • columns : Fin d → BitString outputLength

    One binary VOLE mask column per tree level.

def Cslib.Crypto.FAEST.pairIndex {d : ℕ} (i : Fin (2 ^ d)) (b : Bool) :
Fin (2 ^ (d + 1))

The index with high part i and least-significant bit b.

def Cslib.Crypto.FAEST.pairRows {d outputLength : ℕ} (rows : Fin (2 ^ (d + 1)) → BitString outputLength) :
Fin (2 ^ d) → BitString outputLength

Pair adjacent rows as in line 9 of Figure 5.6.

def Cslib.Crypto.FAEST.oddColumn {d outputLength : ℕ} (rows : Fin (2 ^ (d + 1)) → BitString outputLength) :
BitString outputLength

Xor all odd rows as in line 8 of Figure 5.6.

def Cslib.Crypto.FAEST.convertExpandedRows {outputLength : ℕ} (d : ℕ) :
(Fin (2 ^ d) → BitString outputLength) → Conversion d outputLength

Figure 5.6 on the rows obtained after applying the source PRG to every present seed.

The missing-seed convention is represented separately by verifierRows; it maps the absent row to zero before calling this same conversion.

def Cslib.Crypto.FAEST.allRows {d outputLength : ℕ} (rows : Fin (2 ^ d) → BitString outputLength) :
BitString outputLength

Closed-form xor of all rows, used to state the invariant of Figure 5.6.

theorem Cslib.Crypto.FAEST.convertExpandedRows_u {d outputLength : ℕ} (rows : Fin (2 ^ d) → BitString outputLength) :

Figure 5.6's output u equals the xor sum allRows rows of all expanded rows.

def Cslib.Crypto.FAEST.xorIndex {d : ℕ} (i delta : Fin (2 ^ d)) :
Fin (2 ^ d)

Bounded bitwise xor of two depth-d leaf indices.

def Cslib.Crypto.FAEST.verifierRows {d outputLength : ℕ} (rows : Fin (2 ^ d) → BitString outputLength) (delta : Fin (2 ^ d)) :
Fin (2 ^ d) → BitString outputLength

Verifier rows from Proposition 5.2: row zero is missing and therefore zero, while every positive input position i contains prover row i xor Delta.

theorem Cslib.Crypto.FAEST.convertExpandedRows_correlation {d outputLength : ℕ} (rows : Fin (2 ^ d) → BitString outputLength) (delta : Fin (2 ^ d)) (j : Fin d) :
(convertExpandedRows d (verifierRows rows delta)).columns j = (convertExpandedRows d rows).columns j + fun (k : Fin outputLength) => (BitString.equivFin d).symm delta j * (convertExpandedRows d rows).u k

Proposition 5.2 of FAEST v3: consistent prover and missing-row verifier conversions satisfy q_j = v_j xor delta_j * u for every tree level j.

The theorem is parameterized by the depth, output length, and expanded rows. It is deterministic and introduces no abort or failure event; obtaining consistent rows from BAVC after a non-aborting opening is a separate prerequisite.

def Cslib.Crypto.FAEST.conversionCorrelation {d outputLength : ℕ} (rows : Fin (2 ^ d) → BitString outputLength) (delta : Fin (2 ^ d)) (j : Fin d) :

The j-th output of consistent FAEST conversions, expressed through the shared ideal binary VOLE-correlation type.

theorem Cslib.Crypto.FAEST.conversionCorrelation_valid {d outputLength : ℕ} (rows : Fin (2 ^ d) → BitString outputLength) (delta : Fin (2 ^ d)) (j : Fin d) :

Proposition 5.2 is exactly the existing VOLECorrelation.Valid invariant over Bool.