Research project · Algorizk Labs · 2026

KBFold

The Boolean-kernel basis: FRI folding that acts directly on tables of values, a multilinear commitment scheme built on it, and machine-checked proofs.

Kb(X) = ∏k=1n (X2k−1 + bk) One polynomial per point b ∈ {0,1}n of the Boolean hypercube. Together they form a basis of the polynomials of degree < 2n (Theorem 4.8).
The fold dictionary

Folding a codeword is restricting a table

Over smooth multiplicative domains the classical FRI fold acts on monomial coefficients, so a prover that holds a multilinear polynomial as a table of values must convert it first. In kernel coordinates the conversion disappears: one normalised fold is exactly one sumcheck restriction.

Univariate side

pfoldr(U) = (2r−1)Ue + (1−r)Uo

even/odd split of U = Σb λ(b) Kb, one FRI step

Multilinear side

resr(λ)(b′) = (1−r)λ(0,b′) + rλ(1,b′)

fix the first variable of the table at r, one sumcheck step

5

Kernel coordinates λ(b) — click a value to change it

Fold the polynomial

Coefficients of pfoldr(Σ λ(b)Kb), degree < 4

Restrict the table, then re-encode

Coefficients of Σ resr(λ)(b′)Kb′, degree < 4

EqualBoth sides agree coefficient by coefficient.

Computed live in your browser over 𝔽17. The identity holds for every field of odd characteristic and every r: Theorem 5.3 in the paper, fold_dictionary in Lean.

What is proved

Results

Every result specific to the paper is proved in the paper. The only external results used are the correlated-agreement theorem for Reed–Solomon codes and the BCS theorem for interactive oracle reductions.

Theorem 4.8 · Corollary 4.11

Basis theorem

The kernel polynomials form a basis of 𝔽[X]<2n. The change of basis to monomials is a Kronecker power of a 2×2 matrix and costs (n/2)·2n additions.

Theorem 5.3 · Corollary 5.9

Fold dictionary

A normalised FRI fold is the restriction of one variable. Folding the committed codeword ℓ times evaluates the multilinear extension at the challenges.

Theorem 4.13 · Proposition 4.15

Low degree and evaluation

Low degree in kernel coordinates is a sign condition on the table; univariate evaluation is a scaled multilinear evaluation.

Theorem 6.5 · Theorem 7.13

Completeness and soundness

A BaseFold-style commitment in the kernel encoding. Sound and evaluation binding in the unique-decoding regime, with error εfold + 2ℓ/|𝔽| + (1−δ)κ.

Theorem 7.19

Round-by-round knowledge soundness

With an explicit decoding extractor, and a witness bound to the commitment through the fibre distance.

Theorem 7.25 · Corollary 7.26

Post-quantum knowledge soundness

The relaxed round-by-round notion of Chiesa, Di, Hu and Zheng, including partial strings produced by their extractor. Their theorem then gives straightline extraction in the quantum random oracle model, with explicit bounds.

The protocol

Three views of one object

The committed word, the sumcheck table and the folds are the same restricted table at each level. Each round halves the domain, the codeword and the table with one shared challenge.

CODEWORD (Reed–Solomon on smooth domain) TABLE (sumcheck prover) Commit: w₀ = ev_L(Σ f(b) K_b). Round j: prover sends s_j (and the oracle w_{j−1}); verifier sends r_j. Final round: table g in the clear, then κ query points.
Verification

Machine-checked in Lean 4

The mathematics of Sections 2–7 is formalised against Mathlib and rebuilt from scratch on every commit by continuous integration.

16Lean modules
~7,000lines of proof
0sorry
1axiom (BCIKS)
76numerical checks (Rust)
Part of the paperProofLeanMain declarations
Multilinear toolkit, smooth domains, Reed–Solomon codes (§2)provedformalisedmle_res, RS_unique_decoding
IOPs, round-by-round soundness, sumcheck (§3)provedformalisedrbr_knowledge_overall, sumcheck_sound_iop
Kernel basis, low degree, evaluation (§4)provedformalisedofCoordsLin_bijective, lowDegree_iff
Fold dictionary, word folds (§5)provedformalisedfold_dictionary, codeword_fold
Completeness (§6)provedformalisedcompleteness
Soundness, binding, round-by-round knowledge (§7.1–7.6)provedformalised · uses axiomsoundness_far, eval_binding, rbr_knowledge
Relaxed RBR knowledge with erasures (§7.7)provedformalised · uses axiomrrbr_round, rrbr_final, cr_unique_core
BCS for IORs in the QROM (Theorem 3.16)quoted, specialisednot formalisedexternal: CDHZ, ePrint 2025/2166

The one axiom is bciks_unique: correlated agreement for Reed–Solomon codes in the unique-decoding regime (Ben-Sasson, Carmon, Ishai, Kopparty, Saraf, Theorem 4.1). Completeness, the basis theorem and the fold dictionary do not use it.

Concrete security

Post-quantum parameters

Remark 7.28, computed in exact rational arithmetic by cargo run --example pq_params.

ParameterValueRole
Adversary queries Q2^64quantum queries to the random oracle
Rate ρ, proximity δ1/4, 3/8unique-decoding radius (1−ρ)/2
Queries κ248(5/8)^248 = 2^−168.16
Challenge field𝔽_p[ι]/(ι⁴−7)Goldilocks quartic extension, |𝔽| > 2^255.99
Hash output λH256salted Merkle commitments
Extraction error< 2^−31.8dominated by 320·Q²·εrr
Roadmap

A foundation for the next protocol

The dictionary is a structural fact about folding, not a single scheme. These are the directions it opens.

Scope. The analysis covers one opening per proof in the unique-decoding regime. The post-quantum corollary applies to the compiler of CDHZ (Construction 11.7); the current Rust code is research code that does not yet implement that compiler. No speed advantage over BaseFold or DeepFold is claimed.

Cite

Citation

@misc{Mkhida2026KBFold,
  author = {Abdelali Mkhida},
  title  = {Post-Quantum Multilinear Polynomial Commitments from {FRI} Folding
            in the {Boolean}-Kernel Basis},
  year   = {2026},
  note   = {Paper, Lean 4 formalisation and Rust implementation},
  howpublished = {\url{https://github.com/qoosmo/kbfold}}
}