Repository navigation
Conversation
Jolt's verifier holds only a commitment to the untrusted advice and adds the committed block to the initial RAM (ram_val_check_advice_block), so each advice word is an arbitrary field element. AllConstraints now takes untrustedAdvice : Nat → F, and the initial RAM value of a block word is the committed word (committedInitialValue). The byte relation stays internal as AllConstraintsOnBytes, with its soundness proof as soundness_onBytes. JoltInstance.soundness and sail_soundness take the advice words and gain no premise. allConstraintsOnBytes_of_allConstraints reduces the new relation to the byte relation: no row selects a protected word whose initial value is out of the 64-bit range, because a load reads a range-checked doubleword and a store to a write-protected word keeps its value and writes a register word. Shifting RamVal and RamValFinal by the difference keeps every constraint. The block size needs no premise: the checked layout makes the capacity a multiple of 8 and initialization admits exactly that many bytes. Completeness concludes AllConstraints at adviceBlockWords of the run's initial RAM. assumptions.toml records trusted advice as bytes (TrustedAdviceAsBytes) and the new data.untrustedAdvice binder; the audit tables are regenerated.
whole-run-theorem.md, model_review.md and methods/soundness.md describe the new relation, the reduction to the byte relation and the remaining trusted-advice gap. reports/2026-11-25-witness-column-typing.md ports the 2026-11-12 review note to ff6fc6568: for each witness column and relation input it compares what Jolt's verifier knows with the Lean type, and records that the block-size gap of a6b6dc717 is closed at the pin.
Completeness keeps T5's conclusion over the honest advice words and gains the setupSized premise from the fix round.
# Conflicts: # JoltConstraints/Audit/Statements.lean
This branch has not been deployed
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.
Untrusted advice as field elements in
AllConstraintsStacked on #74.
Jolt's verifier holds only a commitment to the untrusted advice. In the RAM value check it adds the committed block to the initial RAM (
ram_val_check_advice_blockincrates/jolt-verifier/src/stages/stage4/ram_val_check.rs), so each advice word can be any field element, including one outside the 64-bit range. Until nowAllConstraintstook the untrusted advice as bytes, so it admitted fewer witnesses than the verifier accepts, and the soundness theorem did not cover a prover that commits to an out-of-range word.This PR makes
AllConstraintstake the advice words asuntrustedAdvice : Nat → Fand proves soundness for that relation with no new premise.Statement changes
committedInitialValueis the committed word inside the untrusted-advice block and the cast of the fixed 64-bit initial word elsewhere.JoltInstance.soundnessandJoltInstance.sail_soundnesstakeuntrustedAdvice : Nat → Fwhere they took private inputs. Neither gains a hypothesis.JoltInstance.completenessconcludesAllConstraintswith the honest wordsadviceBlockWords layout (initialRamWord trace): the words of the untrusted-advice block of the run's initial RAM. Its premises are those on Add an assumption registry and a nightly drift check against Jolt main #74, includingsetupSizedfrom JoltConstraints side of #39, and re-pin of both libraries to Jolt ff6fc6568 with no temporary restrictions #73.JoltInstance.completeness_someWitnessquantifies over advice words.AllConstraintsOnBytes, and the old soundness proof asJoltInstance.soundness_onBytes. Neither is a headline statement.FieldConstraintEquationsat an arbitrary initial value. None gains a hypothesis.How the proof works
allConstraintsOnBytes_of_allConstraints(theorems/Soundness/UntrustedAdvice/Bytes.lean) turns a satisfying assignment of the new relation into one of the byte relation:max_untrusted_advice_sizeof them.RegisterWords.lean). A load reads a range-checked doubleword (LoadWords.lean, usingloadWindowsOkfor every expansion). So at the first row that selects a protected word, its initial value is a 64-bit word (initialValue_word_of_selected).RamValandRamValFinalat each changed word keeps every constraint (shiftRam_equations). The public I/O mask is zero on the block, so the final-RAM output check is unaffected.The block-size fact needs no premise at this pin:
MemoryLayout.newrounds the advice capacity to a multiple of 8 and requires a power of two, andJoltDevice::try_with_iochecks the advice length against that rounded size.untrustedBlock_geometry(theorems/untrusted_advice_block.lean) derives the block layout from the model's copies of these checks.Not changed
assumptions.tomlentryTrustedAdviceAsBytesrecords that the theorems hold when the trusted party commits to those bytes.block_selector_mle_msb, which rejects a block whose start is not aligned to its size. That check only removes accepted proofs, so the soundness theorem covers a larger set.InlineExpansionBuilder::emit_ldcan emit narrow loads with no range check. Porting the inlines must therefore extendloadWindowsOkto their loads.AllConstraintsquantifies over every advice word sequence, and the absent commitment equals the all-zero sequence.Audit and docs
Audit/Premises.leanandAudit/Statements.leanare regenerated. The diff changes only the four headline statements above and the fingerprints of the changed and new definitions.assumptions.tomlhas the new entriesTrustedAdviceAsBytesanddata.untrustedAdvice.docs/whole-run-theorem.md,JoltConstraints/documentation/model_review.mdandmethods/soundness.mddescribe the new relation.reports/2026-11-25-witness-column-typing.mdcompares each witness column and relation input with what Jolt's verifier knows at the pin.Validation
lake build JoltConstraintspasses (2493 jobs). The commits after that build change only scripts and a workflow, merged from Add an assumption registry and a nightly drift check against Jolt main #74.#print axiomsfor every headline theorem lists onlypropext,Classical.choiceandQuot.sound.scripts/check-assumptions.py --jolt-dirreports 30 entries, all registered;scripts/check-lean-policy.pypasses 789 files;scripts/jolt_citations.py --unresolved --checkresolves 292 cited files atff6fc6568; the script tests pass.🤖 Generated with Claude Code