Repository navigation
Formal Honest-Verifier Zero-Knowledge (HVZK), Polynomial Blinding, Masked-LogUp & Salted-Merkle Hiding for v6-zk - #7
Merged
Conversation
…erkle hiding
Add a complete, zero-sorry formal zero-knowledge stack for Protocol v6-zk:
1. Proofs/CertiFriProofs/Theory/Zk/PolyBlinding.lean:
- Finite uniform pushforward and total-variation distance calculus.
- Algebraic vanishing-polynomial blinding (f(X) + (X^n - 1) r(X)) with exact
uniformity over any k <= b distinct off-domain evaluation points via Lagrange
interpolation (eval_vec_uniform_of_blinding, eval_ood_and_coset_uniform_of_blinding).
- Half-stride telescoping quotient slicing hiding (quotient_slices_uniform_of_telescoping).
- Masked-LogUp running-sum and cross-circuit boundary blinding preserving
telescopic boundary identities (masked_logup_hiding,
masked_logup_boundary_telescoping, masked_logup_boundary_hiding).
- OOD quotient splitting and multi-arity FRI randomizer folding uniformity
(fri_multi_round_randomizer_uniform).
2. Proofs/CertiFriProofs/Theory/Zk/SaltedMerkle.lean:
- Classical random-oracle salted Merkle leaf hiding proving adaptive N_RO-query
indistinguishability against witness-free ideal digests with exact bound
<= N_RO * L_unopened / |Salt| (salted_leaf_rom_indistinguishable), plus the
unindexed RO(row || salt) variant matching multi-stark/v6-zk
(salted_leaf_unindexed_rom_indistinguishable).
- Concrete 16-byte (128-bit classical) and 32-byte (256-bit post-quantum-margin)
salt instantiations and tradeoff bounds (salted_leaf_rom_128bit,
salted_leaf_rom_256bit, salt128_vs_salt256_grover_ratio_tradeoff).
3. Proofs/CertiFriProofs/Exec/Zk/V6ZkHvzk.lean:
- Concrete Salt16 (2^128) and Salt32 (2^256) cardinalities and kernel-checked
Goldilocks / GoldilocksExt3 coset disjointness (7 * H_{2^32} disjoint from H_N).
- Full v6-zk transcript view (V6ZkView), witness-free simulator
(v6ZkAlgSimulator / v6ZkSimulator), exact 0-TV algebraic HVZK
(v6Zk_alg_perfect_hvzk), full ROM HVZK (v6Zk_hvzk, v6Zk_hvzk_unindexed), and
concrete GoldilocksExt3 / FriParams.ultraCompact400KBZk instantiations
(goldilocksExt3_v6Zk_hvzk, goldilocksExt3_v6Zk_hvzk_salt32,
goldilocksExt3_ultraCompact400KBZk_hvzk,
goldilocksExt3_ultraCompact400KBZk_hvzk_salt32,
goldilocksExt3_ultraCompact400KBZk_hvzk_logN9,
goldilocksExt3_v6Zk_hvzk_with_tensor4_span).
4. Wire new modules into CertiFriProofs.lean, cross-reference from SoundnessZk.lean,
and pin #guard_msgs #check and #print axioms audits in Audit128.lean.
Verified with lean-build (--wfail), CheckAxioms.lean, and leanchecker.
arthurpaulino
approved these changes
Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Formal Honest-Verifier Zero-Knowledge (HVZK), Polynomial Blinding, Masked-LogUp & Salted-Merkle Hiding for
v6-zkBranch:
formal/t53-v6-zk-hvzk(rebased cleanly onmain@9db54953)Diff: 6 files changed, +5,373 insertions, -12 deletions (100% additive; zero regressions)
Summary of Changes
Adds a complete, axiom-clean ($\mathbb{F}_{p^3}$ ), covering polynomial blinding, masked LogUp running-sum columns, salted Merkle leaves in the random-oracle model, and a full witness-free HVZK simulator instantiated for
[propext, Classical.choice, Quot.sound], zerosorry/native_decide/bv_decide) formal zero-knowledge and hiding stack for Protocolv6-zkoverGoldilocksExt3(FriParams.ultraCompact400KBZk.1. Algebraic Polynomial Blinding & Masked-LogUp Hiding (
Proofs/CertiFriProofs/Theory/Zk/PolyBlinding.lean, 1,614 LOC)unifMass,unifProb,IsUniformPushforward,tvDist, linear surjectivity & fiberwise/product preservation).blindPoly n f r = f + (X^n - 1) * polyOfFin rvia Lagrange interpolation surjectivity (eval_vec_uniform_of_blinding,eval_vec_tvDist_zero_of_blinding,eval_ood_and_coset_uniform_of_blinding).quotient_slices_uniform_of_telescoping), masked-LogUp running-sum & telescopic boundary hiding (masked_logup_hiding,masked_logup_boundary_telescoping,masked_logup_boundary_hiding), and multi-arity FRI randomizer folding uniformity across arbitrary round-arity schedules (fri_multi_round_randomizer_uniform).2. Salted Merkle Leaf ROM Hiding (
Proofs/CertiFriProofs/Theory/Zk/SaltedMerkle.lean, 1,599 LOC)abs_prob_sub_prob_le_prob_hit,unifAvg_prob_hit_le).salted_leaf_rom_indistinguishable: advantagemulti-stark/v6-zkunindexedRO(row || salt)hiding (salted_leaf_unindexed_rom_indistinguishable: advantage2^128) classical and 32-byte (2^256) post-quantum-margin salt instantiations and explicit Grover tradeoff (salted_leaf_rom_128bit,salted_leaf_rom_256bit,salt128_vs_salt256_grover_ratio_tradeoff).3. Full
v6-zkHVZK Simulator &GoldilocksExt3/ultraCompact400KBZkInstantiations (Proofs/CertiFriProofs/Exec/Zk/V6ZkHvzk.lean, 1,465 LOC)GoldilocksExt3coset disjointness (goldilocks_coset_disjoint_from_trace,fp3_coset_disjoint_from_trace) and exact salt cardinalities (card_salt16,card_salt32).v6ZkAlgSimulator,v6ZkSimulator,v6ZkSimulatorUnindexed) with OOD check preservation (v6ZkAlgSimulator_ood_check).v6Zk_alg_perfect_hvzk) and full ROM HVZK (v6Zk_hvzk,v6Zk_hvzk_unindexed).goldilocksExt3_v6Zk_hvzk(Salt16) &goldilocksExt3_v6Zk_hvzk_salt32(Salt32)goldilocksExt3_ultraCompact400KBZk_hvzk(logN ≥ 10,Salt16),goldilocksExt3_ultraCompact400KBZk_hvzk_salt32(Salt32), andgoldilocksExt3_ultraCompact400KBZk_hvzk_logN9(logN ≥ 9)goldilocksExt3_v6Zk_hvzk_with_tensor4_span(combined HVZK +W_R = 4tensor randomizer span bound≤ N_RO * L_unopened / 2^128 + 1 / 2^126)SoundnessZk.lean, wired intoProofs/CertiFriProofs.lean, and locked with 28#guard_msgs#check+ 28#print axiomsguards inProofs/CertiFriProofs/Audit128.lean.Verification
All checks ran cleanly on the cloud build host with zero warnings, zero
sorry, zeronative_decide, zerobv_decide:./scripts/ci.sh lean-build: PASS (60/60CertiFri+9,109/9,109CertiFriProofsjobs--wfail)./scripts/ci.sh axioms: PASS (187modules,13,156constants,7,973theorems, strictly[propext, Classical.choice, Quot.sound])LEANCHECKER_THREADS=8 ./scripts/ci.sh leanchecker: PASS (187/187modules replayed in Lean 4 kernel)