Skip to content

Formal Honest-Verifier Zero-Knowledge (HVZK), Polynomial Blinding, Masked-LogUp & Salted-Merkle Hiding for v6-zk - #7

Merged
johnchandlerburnham merged 1 commit into
mainfrom
formal/t53-v6-zk-hvzk
Nov 28, 2026
Merged

johnchandlerburnham merged 1 commit into
mainfrom
formal/t53-v6-zk-hvzk

Conversation

@johnchandlerburnham

Copy link
Copy Markdown
Member

Formal Honest-Verifier Zero-Knowledge (HVZK), Polynomial Blinding, Masked-LogUp & Salted-Merkle Hiding for v6-zk

Branch: formal/t53-v6-zk-hvzk (rebased cleanly on main @ 9db54953)
Diff: 6 files changed, +5,373 insertions, -12 deletions (100% additive; zero regressions)


Summary of Changes

Adds a complete, axiom-clean ([propext, Classical.choice, Quot.sound], zero sorry/native_decide/bv_decide) formal zero-knowledge and hiding stack for Protocol v6-zk over GoldilocksExt3 ($\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 FriParams.ultraCompact400KBZk.

1. Algebraic Polynomial Blinding & Masked-LogUp Hiding (Proofs/CertiFriProofs/Theory/Zk/PolyBlinding.lean, 1,614 LOC)

  • Finite uniform pushforward & total-variation distance calculus (unifMass, unifProb, IsUniformPushforward, tvDist, linear surjectivity & fiberwise/product preservation).
  • Algebraic blinding blindPoly n f r = f + (X^n - 1) * polyOfFin r via Lagrange interpolation surjectivity (eval_vec_uniform_of_blinding, eval_vec_tvDist_zero_of_blinding, eval_ood_and_coset_uniform_of_blinding).
  • Half-stride telescoping quotient slicing hiding (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)

  • Classical ROM log-coupling & hitting-event bounds (abs_prob_sub_prob_le_prob_hit, unifAvg_prob_hit_le).
  • Position-separated salted Merkle hiding (salted_leaf_rom_indistinguishable: advantage $\le N_{\mathrm{RO}} \cdot L_{\mathrm{unopened}} / |\mathrm{Salt}|$) and exact multi-stark/v6-zk unindexed RO(row || salt) hiding (salted_leaf_unindexed_rom_indistinguishable: advantage $\le (N_{\mathrm{RO}} \cdot L_{\mathrm{unopened}} + L_{\mathrm{unopened}} (L - 1)) / |\mathrm{Salt}|$).
  • Concrete 16-byte (2^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-zk HVZK Simulator & GoldilocksExt3 / ultraCompact400KBZk Instantiations (Proofs/CertiFriProofs/Exec/Zk/V6ZkHvzk.lean, 1,465 LOC)

  • Kernel-checked Goldilocks & GoldilocksExt3 coset disjointness (goldilocks_coset_disjoint_from_trace, fp3_coset_disjoint_from_trace) and exact salt cardinalities (card_salt16, card_salt32).
  • Explicit witness-free simulator (v6ZkAlgSimulator, v6ZkSimulator, v6ZkSimulatorUnindexed) with OOD check preservation (v6ZkAlgSimulator_ood_check).
  • Exact 0-TV idealized algebraic HVZK (v6Zk_alg_perfect_hvzk) and full ROM HVZK (v6Zk_hvzk, v6Zk_hvzk_unindexed).
  • Concrete instantiations:
    • goldilocksExt3_v6Zk_hvzk (Salt16) & goldilocksExt3_v6Zk_hvzk_salt32 (Salt32)
    • goldilocksExt3_ultraCompact400KBZk_hvzk (logN ≥ 10, Salt16), goldilocksExt3_ultraCompact400KBZk_hvzk_salt32 (Salt32), and goldilocksExt3_ultraCompact400KBZk_hvzk_logN9 (logN ≥ 9)
    • goldilocksExt3_v6Zk_hvzk_with_tensor4_span (combined HVZK + W_R = 4 tensor randomizer span bound ≤ N_RO * L_unopened / 2^128 + 1 / 2^126)
  • Cross-referenced from SoundnessZk.lean, wired into Proofs/CertiFriProofs.lean, and locked with 28 #guard_msgs #check + 28 #print axioms guards in Proofs/CertiFriProofs/Audit128.lean.

Verification

All checks ran cleanly on the cloud build host with zero warnings, zero sorry, zero native_decide, zero bv_decide:

  • ./scripts/ci.sh lean-build: PASS (60/60 CertiFri + 9,109/9,109 CertiFriProofs jobs --wfail)
  • ./scripts/ci.sh axioms: PASS (187 modules, 13,156 constants, 7,973 theorems, strictly [propext, Classical.choice, Quot.sound])
  • LEANCHECKER_THREADS=8 ./scripts/ci.sh leanchecker: PASS (187/187 modules replayed in Lean 4 kernel)

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants