Repository navigation
Conversation
…aint (63) The tree is exactly split/merged (2537b0d), the merge of #39 and main. Relative to split/b-bytecode it adds theorems/WholeRun/ (21 files), the Akita field premise and constraint (63) InstructionAddressCanonical with its completeness proof, the field-moduli primality proofs, and the memory-region check in check-sail-model.sh with its CI trigger.
This was referenced Nov 21, 2026
quangvdao
marked this pull request as ready for review
November 22, 2026 20:11
Jolt's tracer rejects every store that changes a byte of its protected code region, and JoltInstance.initial_state computes that region from the program's rows. The whole-run proof now uses this check instead of the documented deviation BlockConforms.no_code_store. - Elf.lean: add codeRegionAt, Jolt's code_region with an explicit lowest address, prove codeRegionOf_eq and codeRegionAt_covers (the region covers every doubleword of every nonzero source). - CodeInv.lean: JoltCodeIntact now also records that every code byte is protected, and reads memory with ram_byte. JoltCodeIntact.of_block follows from JoltIOSetupFrame.execProgram_memory and needs no premise. The store-footprint frame lemmas (storeBase, block_mem, NoCodeStore) are deleted. - Top.lean: BlockConforms keeps only riscv. - docs: describe the derivation and drop the deviation premise.
DecodedFrom now follows decode_elf at a16z/jolt ff6fc6568 instead of c336a6da7. The new decode_elf - skips the data ranges that $d mapping symbols mark inside text sections (ElfSection.mappingSymbols, ElfSection.dataRanges, textSegments); - rejects an odd instruction address in decode_text_section (decodeText); - rejects a writable section that overlaps the code region of the decoded instructions (ElfSection.isWritable, overlapsCode, codeRegionAt 0). uncompress.rs is unchanged between the two commits, and decode.rs only adds jolt.success to decode_custom, which DecodedFrom does not transcribe. DecodedFrom.imageDecoded is re-proved through the new lemma ElfSections.layout?_parcel and textSegments_within. The new lemma DecodedFrom.rowsAligned derives RowsAligned from the odd-address check, so BlockConforms.simulates, HaltPrefix.sailRun, sail_reproduces and sail_soundness no longer take the RowsAligned premise. The docs describe the new transcription and drop the premise.
… drop dead store lemmas codeRegionAt moves to JoltISA/Core.lean and codeRegionOf becomes codeRegionAt at the layout's lowest address, so code_region has one transcription. The store plan and no-store lemmas in WholeRun/Bundles.lean lost their last user when no_code_store was derived, and are deleted. Docs: the README pin for decode_elf, the object crate version Jolt locks at ff6fc6568 (0.41.0), the full list of decode_elf checks in DecodedFrom, and the exact coverage of codeRegionAt_covers.
Jolt at ff6fc6568 already makes each of these true, and the Lean model already transcribes the Jolt check that does it: - HeapNoWrap (whole-run premise): MemoryLayout::validate_heap_end, the first guard of max_ram_k?. Proved by new_heap_end_le. - ImageNonempty (completeness premise): derive_from_dimensions rejects an empty trace. Proved by HonestTrace.prover_config_image_nonempty, with the new decoder field Rv64ProgramImage.instruction_loaded. - RamRegionFits (soundness premise): max_ram_k rejects a padded region past 2^64. Proved by JoltInstance.ramRegionFits. - No RAM 2 GiB above RAM_START (documented only): a16z/jolt#2509. JoltInstance.soundness now takes only JoltField F, and JoltInstance.completeness takes nothing about the instance. The bundles SoundnessAssumptions and CompletenessAssumptions are deleted. Also delete the unused TraceRow.StableStall and selfJumpRepeats, and fix the comments and docs that still described code-store and HeapNoWrap as assumptions. reports/2026-11-25-stale-assumptions.md records the audit and a design for catching such drift automatically.
Honest memory rows never wrap their effective address. The tracer accepts an address only in [0x40000000, 2^63 + 2^31), and every memory and ShiftData offset in Jolt's expansions is a sign-extended 12-bit value, so the integer sum base + imm of a retired row lies in [0, 2^64). - MemoryExpansionFacts.lean checks every expansion: offsets are small, and each ShiftData row is followed two rows later by a floor store with the same base register and offset. - Completeness/Helpers/AddressWindow.lean proves the address window, the no-wrap lemma HonestTrace.access_noWrap and HonestTrace.shiftData_store. - (01), HonestTrace.floorAccess_address_nonneg (08) and HonestTrace.shiftData_address_noWrap (11) are proved from these. JoltInstance.completeness now depends only on propext, Classical.choice and Quot.sound. The docs no longer list these as owed proofs.
quangvdao
added a commit
that referenced
this pull request
Nov 25, 2026
Fix stale text found by the 2026-11-25 audit (F3, F4, F13 and the floating-point axiom note). Documentation and comments only; no Lean code changes. - README, model_review.md, constraint_proving.md: no `sorry` remains; all 63 constraints have completeness proofs. - Qualify the Akita claim: the field premise and constraint algebra cover Akita's field, but the prover configuration and sizing model is base Dory only (Akita pads to 4096 rows and keeps 4/16-bit chunks). - model_review.md: state the tracer-initialization gaps precisely (section types and file offsets, the `tohost` cap, host allocation), replace the LD/MULHU advice attack with the remaining advice-word obligation, retire the LR/SC reservation item, record that RiscvExtras.lean declares 67 floating-point axioms outside the headline closures. - riscv-alignment.md: halt-only run end, derived I/O lower bound, the current RAM checks, and the five current maxRecDepth limits. - soundness.md, CONSTRAINT-GEN.md, AGENTS.md and Lean comments: remove stall, termination-word and repin-mismatch remnants; mark the dated sections as history.
JoltInstance.initial_state compared the inputs and both advice arrays with the raw MemoryConfig maxima before JoltISA.initialState compared them again with the layout's capacities. Jolt's create_emulator calls only JoltDevice::try_with_io, which checks the capacities that MemoryLayout::try_new rounds up to a multiple of 8. The raw guards rejected runs that Jolt accepts, such as two input bytes with max_input_size = 1. This commit removes the raw guards, so JoltDevice.initialMem is the only size check. initial_state_build and initial_state_device now state the bounds against the layout's capacities. New lemmas give the capacities (new_capacities), the size facts of a successful installation (initialState_fits) and an exact characterization (initial_state_isSome_iff), with examples for raw sizes 0, 1, 7, 8, 9 and for two and nine input bytes at max_input_size = 1. Jolt at ff6fc6568: tracer/src/lib.rs (create_emulator), common/src/jolt_device.rs (JoltDevice::try_with_io, MemoryLayout::try_new).
Rust's has_side_effects includes the floor loads, whose read can fault, so an x0 destination is redirected to a temporary instead of turning the row into a no-op. Instr.rewriteNative now matches that rule and has a docstring with an example. No source instruction currently reaches rewriteNative as a floor load, so no proof changed. Jolt at ff6fc6568: crates/jolt-program/src/expand/mod.rs (expand_source_instruction_with_provider), crates/jolt-riscv/src/kind.rs.
…un theorems DecodedFrom constrained a row of one of Jolt's own instructions only in address and width. A program could therefore put a jolt.success row on the ADDI bytes 93 00 10 00, and the whole-run theorems would read that address as a success halt. JoltCustomInstruction.decode? now transcribes Jolt's decode_custom, and every row must decode from its parcel's word (SourceInstruction.DecodesFrom). A jolt.success row must sit on the exact word 0x0000305B (DecodedFrom.joltSuccess_word, SailHalted.success_word). WholeRun/ElfRegression.lean keeps the auditor's example: it satisfies the old relation and fails the new one. HonestTrace.sail_reproduces and HaltPrefix.sailRun drop the unused prover-acceptance premise hcfg. The whole-run conclusions now state the exact step count, sailRun pre.length, instead of some n. sail_soundness keeps its premises and still returns prover acceptance. Jolt at ff6fc6568: crates/jolt-program/src/image/decode.rs (decode_custom).
Replace fork URLs and stale paths (expand/memory/store.rs, crates/jolt-common) with paths at the pin, and qualify short file names that match several files. Update the whole-run docs for the success-word check, the exact step count, the generated maxRecDepth options, Akita sizing, initial memory, host allocation and the floating-point axioms.
…ansion functions by name JoltInstance.initial_state and initial_state_isSome_iff claimed to match create_emulator exactly, but the model loads preprocessing's memory_init while the tracer loads only some section types and caps memory for a tohost symbol. The docstrings now say which checks agree and point to the documented difference. The AMOSWAP citations name expand_amoswapd/expand_amoswapw, and the division-file citation fits on one line.
Replace the 43 comment lines that cited Jolt as /Users/ari.biswas/Work-with-A16z/jolt/... with the path from the Jolt repository root at ff6fc6568. Citations that carried a line number now name the function or impl instead, since the line numbers had moved. scripts/jolt_citations.py --unresolved --check (from 6763e65) still resolves 291 cited files and reports no unresolved citation.
Floor-addressed loads and stores select rs1 and the signed immediate, and ShiftDataB/H/W add the signed immediate to rs2, so the right input and the product can be negative. The comments said both inputs were unsigned and grouped loads and stores with the zero-left-input instructions. They now follow crates/jolt-witness/src/witnesses/operands.rs and crates/jolt-lookup-tables/src/instructions/virt/floor_access.rs at ff6fc6568, and say when the untruncated field product equals Rust's 128-bit-magnitude product.
Nothing used it, and it omitted the virtual instruction-selector grids
(2^virtualChunkBits addresses) that Jolt's dense trace backend also
allocates (crates/jolt-witness/src/backend/trace/{oracle,cycle,mod}.rs
at ff6fc6568).
firstFreeLargeInlineIndex and allocateLargeInlineRegister now return Option and scan the numLargeInlineRegisters (80) registers from v48, mirroring allocateInstructionRegister. Before, 80 live registers gave index 48 + 80, which truncates to register 0 in 7 bits. Rust's ExpansionAllocator::allocate_for_inline returns VirtualRegisterExhausted there (crates/jolt-program/src/expand/allocator.rs at ff6fc6568). Nothing uses these functions.
sail_model_init (LeanRV64D.lean:223) calls legalize_senvcfg, which asks whether Zicboz and Zicbom are enabled (LeanRV64D/Types.lean:833-841), so the translated initialization fails a Sail assertion. Say so in sail-import/PROVENANCE.toml, and say in PROVENANCE.toml and docs/whole-run-theorem.md that the theorems start from WholeRun.sailInit. The Sail translation is not regenerated.
Rust's trace_inline_sequence_with_advice (tracer/src/instruction/mod.rs: 226-249) panics when a VirtualAdvice row finds no value left, and when it filled some rows but fewer than there are values. patchAdvice keeps the placeholder and drops extra values. The docstring says when the two agree. No theorem proves the division expansions meet that condition.
jolt_virtual_sraiw_value, jolt_virtual_srlw_value and
jolt_virtual_sraw_value match Rust (tracer/src/instruction/
virtual_{sraiw,srlw,sraw}.rs) only for masks with fewer than 32 trailing
zeros. The docstrings now say what each does outside that domain and
that Rust panics there under overflow checks. New lemmas prove that the
masks the expansions supply stay in the domain:
ctz_jolt_virtual_shift_right_bitmaskw_value(_lt) and
ctz_word_shift_immediate_lt.
Sail raises E_Load_Addr_Align for a misaligned LR (alignmentFaultFromAccessType, LeanRV64D/MemTypeUtils.lean:227), but lrwProgramAuto tagged its VirtualLoadW with E_SAMO_Addr_Align. The load keeps the .amo class. The tags were regenerated with the pinned generator (jolt-lean-gen at ff6fc6568), whose output differs from the committed file only in dropping the unused _rs2 binder of lrw and lrd, which is kept. lrReadRows follows, and amo_word_floor_load_aligned_run now takes the fault as an argument defaulting to E_SAMO_Addr_Align. LR.D is unchanged: the generator emits LD .amo with no explicit fault, which maps to E_SAMO while Sail gives E_Load. Fixing it needs a generator change or a new load class. The whole-run reservation proof (WholeRun/Bundles.lean) matched LR.W's load against a row with the AMO fault. reservedLoadRow and ReservationLoadPlan.load now take the word load's fault, so LR.W (E_Load) and SC.W (E_SAMO) both fit.
VerifierSizes.dorySetupLogN now rounds the maximum padded trace length with checkedNextPowerOfTwo and takes Nat.log 2 of the result, as Rust's setup_total_vars does with next_power_of_two().ilog2() (crates/jolt-prover/src/dory/preprocessing.rs:196-210). It is none when the maximum exceeds 2^63, where Rust panics. JoltInstance.one_hot_fits_setup fails when there is no setup, and its docstring now cites the pinned dory-pcs-0.5.0 check and Jolt's matrix shape (crates/jolt-dory/src/scheme.rs). dorySetupLogN_le_72 now takes the computed setup and needs no length premise. Completeness needs the default setup to exist, so JoltInstance.completeness, completeness_someWitness and HonestTrace.allConstraints_prover_sizes gain the premise setupSized : joltInstance.max_padded_trace_length.toNat ≤ 2 ^ 63. model_review.md lists it.
The InLanguage conjunct (trace.prover_config joltInstance).isSome models only ProverConfig::derive_from_dimensions. Jolt's prover can still refuse a trace that passes sizing: stage 0 returns ProverError::Unsupported when an advice grid is wider than the main commitment grid (crates/jolt-prover/src/dory/stages/stage0.rs:134-156). Reword InLanguage, its comments, the completeness docstrings and helper docstrings, model_review.md and docs/whole-run-theorem.md, and say that stage 0 can still refuse. InLanguage itself is unchanged.
README: the lead now says that Sail reproduces the modelled Jolt execution up to its first explicit halt, one Sail step per conforming source instruction. Applying it to a real Jolt run needs the correspondence between preprocessing's initial memory and the memory the tracer loads, and the stated scope. The paragraph links both to docs/whole-run-theorem.md. initialRam (translation/program.lean): replace the TODO with a note that the two initial memories do not always agree, pointing at the same doc section. JoltBytecode/Bundles.lean: the header no longer claims that Assumptions.lean is the whole assumption surface. It names the MRET, CSR and LR/SC bundles that add their own premises, and says that WholeRun.equivAssumptions_of_retire discharges them. JoltISA/SystemCSR.lean: the comment pointed at a nonexistent ProofSupport/SystemCSR.lean. It now points at ProofSupport/Projection.lean and Instructions/System/Csr.lean. MemoryExpansionFacts.lean: SW expands to six rows, not three.
quangvdao
added a commit
that referenced
this pull request
Nov 26, 2026
Completeness gains the setupSized premise (registry entry SetupSized). The new scope entry DefaultDorySetup records that soundness covers verifiers built with Jolt's default Dory setup: the verifier checks neither the setup size nor an upper bound on the committed chunk width. The statement table changes only for dorySetupLogN, one_hot_fits_setup, lrwProgramAuto and the two completeness theorems.
abiswas3
added a commit
that referenced
this pull request
Nov 27, 2026
ECALL is stated like MRET: Jolt's ECALL rows, projected, end in the same state as Sail's execute_ECALL followed by try_step's trap entry (set_next_pc after exception_handler). The new bundle EcallProgramEqSailAssumptions uses only existing assumptions. SailMret.lean becomes SailTrap.lean and gains the ECALL trap-entry lemmas; the trap and MRET mstatus updates share one lemma again, as in #73. jalr_zero_target moves to Common.lean for MRET and ECALL. Co-authored-by: Quang Dao <qvd@andrew.cmu.edu>
abiswas3
added a commit
that referenced
this pull request
Nov 27, 2026
Quang Dao's JoltConstraints re-pin from PR #73 (652da52), without theorems/WholeRun, adapted to this branch's JoltBytecode: halt rows are format-I and record only `halted`, input and advice stores are no-ops as in Jolt's tracer, and the code guard is Jolt's CodeGuard. Adds his constraint generator (scripts/expansion-parity), regenerated at 504dd78a2. Co-authored-by: Ari <software@randomwalks.xyz>
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.
This is PR C of the three-way split of #39 that Ari asked for: the JoltConstraints side. From #39 it adds the whole-run theorems that connect Jolt's constraints to the Sail model, weakens the field premise so that Jolt's 128-bit Akita field qualifies, and adds Jolt's constraint (63) for that field.
Since the split, this PR also re-pins both libraries, JoltBytecode and JoltConstraints, to a16z/jolt
ff6fc6568. #72 carried the bytecode part of the re-pin for a while. It moved here because the re-pinned bytecode model breaks JoltConstraints, and CI can pass only with both parts together. #72 reverted those commits (b41b311), and this PR keeps them. The main results of the re-pin:JoltInstance.soundnessandJoltInstance.sail_soundnesstake no temporary restriction. All six fields ofTemporaryRestrictionsare gone, and so is the structure.ff6fc6568: a halt-lane row binds the claimed panic flag to the kind of halt, two new RAM claims check protected words and the number of RAM accesses, and the RAM Hamming-weight constraints and the panic and termination words are gone.jolt.successor EBREAK), compare outputs read from shared memory, and derive the panic flag from the halt kind.BlockConformskeeps one of its six fields,riscv.DecodedFromtranscribesdecode_elfatff6fc6568, andRowsAlignedandBlockConforms.no_code_storeare no longer premises: the proofs derive them fromDecodedFromand from the tracer's protected-store check.ff6fc6568, with proofs that the generated rows and relations equal the handwritten ones.Stack:
main← #71 (Sail model) ← #72 (JoltBytecode) ← this PR (JoltConstraints). #44 and the PRs above it are still based on #39's branch and are to move onto this PR.Re-pin to Jolt
ff6fc6568The Jolt changes behind the re-pin are a16z/jolt#2417 and #2451 (runs end at
jolt.successor EBREAK, the halt lane, the panic and termination words deleted), #2418 and #2408 (stores to protected words must keep their value, and the verifier checks this), #2509 (the I/O gap and heap padding become ordinary memory) and #2410 (host calls never fail). The first four subsections cover the bytecode model, and the rest cover JoltConstraints.Bytecode model (
JoltBytecode/)MemoryLayout.new(JoltISA/JoltDevice.lean) followsMemoryLayout::try_new. The layout has no panic or termination word, andio_endisoutput_end. RAM is backed up to the padded power-of-two domain (max_ram_k?,Mmu.ram_backing_end), and the gap betweenio_endand RAM and the heap padding are ordinary readable and writable memory.JoltDevicenow has onlymemory_layoutand thepanicflag. Inputs, advice and outputs are bytes ofsail.mem, like RAM.JoltDevice.initialMemwrites the inputs and both advice buffers at their layout addresses, andJoltDevice.outputsOfreads the full output region from final memory (outputsOf_sizegives its length). A missing byte reads as zero, as in the tracer's zero-filled storage.SailJoltState.codeRegionrecords the code span, computed as Jolt'scode_regiondoes. A store into a code, input, trusted-advice, untrusted-advice or canary word succeeds only if every protected byte it touches keeps its old value (Mmu.protected_store_ok). This replaces the old rejection of stores to the input and advice regions and the old canary exclusion.halted : Option JoltHaltKind, with kindssuccessandpanic. The decoder acceptsjolt.successonly as the word0x0000305B(Decode.decodeJoltSuccess_some_iff), and EBREAK now lowers to a singlePanicrow.execHaltwrites the link register, setsnextPCto the instruction's own address, and records the halt kind and the panic flag.Decode.SourceInstruction.tickdoes nothing once the state has halted (SourceInstruction.tick_halted).JoltISA/HostIO.lean).readHostBytesis now a pure, all-or-nothing read of a byte range through the guest's own load check (Mmu.load?). An unknown call, an invalid event or a rejected range retires with no state change, and an advice call appends the bytes it read to the advice tape in both live and replay mode.JoltHostIOConfigloses itsoverflowChecksfield.Bytecode premises
JoltRamLoadOkuses the padded backing bound instead ofheap_end:JoltRamStoreOktakes the stored value and width, and replaces the canary exclusion with the value-preservation check:The old store premise was false for some stores that Jolt's tracer accepts at
ff6fc6568. For example, an aligned store of a different value into an instruction word passed the address check but fails Jolt'sassert_write_protected_store.The bundles pass the value that the lowered rows actually write:
StoreProgramEqSailAssumptionsgains astoreWidthparameter (default 8). Itsjolt_ram_storefield checks the merged doubleword that SB, SH and SW write, not only the address.RiscvInstruction.equivAssumptionsselects widths 1, 2 and 4 for SB, SH and SW; SD keeps 8.AmoDwordProgramEqSailAssumptionsandAmoWordProgramEqSailAssumptionscheck the doubleword that holds the atomic's result. SC checks the doubleword it selects, including the unchanged value that a failed SC writes back.SetupSame). The word-atomic prelude theorems now concludeSetupSame, which is stronger than the old layout-only conclusion.ProofSupport/InstructionFrame.lean) now allows only Sail effects that preserve memory, where the old frame allowed any replacement of Sail state. Its store obligation is a checked MMU doubleword store, and it gains a rule for the halt fields.No exported instruction-equivalence theorem gains an unrelated premise.
Bytecode theorem statements
63 theorem headers change directly, in the store, atomic and SC proofs and in the frame and memory support files.
reports/2026-11-24-bytecode-repin-statements.mdgives the old and new text of each, with its location.RiscvInstruction.joltRun_eq_execute,joltStep_eq_try_step_base,joltStep_eq_try_step_compressedandjoltStep_stepInvariantkeep their text, but their memory cases now take the value-dependent store premise and the padded load bound throughequivAssumptions.The device-array interfaces are removed:
storeDeviceByte_same,storeDeviceByte_outputs_fitand three unused device-relation wrappers.store_raw_same,JoltDevice.outputsOf_sizeand the shared frame replace them.The host-call reader changes its interface:
execHostIOWithnow takesSailJoltState → Nat → Option (BitVec 8)instead of a monadic byte loader.execHostIOkeeps its type. The frame lemmasInstructionFrame.execHostIO_ruleandStep.frames_hostIOkeep their statements, and four private helpers that framed the old stateful reader are deleted.New theorems include:
and
Decode.decodeJoltSuccess_some_iff,Decode.SourceInstruction.tick_halted,JoltISA.execHalt_vreg_run,JoltISA.Mmu.store_raw_existing(a store that writes back the existing byte is accepted, even at a protected address), andexecInstr_memoryandexecProgram_memory(successful execution preserves every protected byte). This PR usesexecHostIO_succeedsto remove theHostCallsSucceedrestriction fromJoltInstance.soundness(below).Bytecode modelling choices and limits
try_reserve), it ignores that advice write, while the model appends the bytes. Host out-of-memory aborts are not modelled as guest outcomes.reports/2026-11-24-bytecode-repin.mdandreports/2026-11-24-hostio-repin.mdgive the Jolt source locations for each choice.Constraints
nextUnexpandedPCEqLookupIfShouldJump:ShouldJump(t) · (NextUnexpandedPC(t) − LookupOutput(t)) = 0nextUnexpandedPCEqLookupIfJump:Jump(t) · (NextUnexpandedPC(t) − LookupOutput(t)) = 0shouldJumpEqJumpMulNotNextIsNoop:ShouldJump(t) = Jump(t) · (1 − NextIsNoop(t))haltEndRule io.panic:2 · (NextIsNoop(t) − IsNoop(t)) = (2 − Π) · Halt(t) + HaltPanic(t), where Π is 1 when the instance claims a panic and 0 otherwiseramWriteProtected:0 = Σ_k C(k) · RamRa(k, t) · RamInc(t), whereC(ramWriteProtectedMask) marks the words of the code region, the inputs, both advice regions and the stack canaryramAccessCount:Load(t) + Store(t) = Σ_k RamRa(k, t)ramHammingWeightBooleanity,ramRaChunkHammingWeightramPublicIoMaskcovers[input_start, RAM_START_ADDRESS), andramPublicIoWordincludes the panic and termination words[input_start, output_end), and the public words are the inputs and outputs onlyThe witness gains the circuit flags
HaltandHaltPanic(CircuitFlagsgrows from 14 to 16 constructors) and loses theShouldJumpandRamHammingWeightcolumns.ConstraintContext.ioandJoltInstance.public_ionow useJoltPublicIo(layout, inputs, outputs and the panic claim) instead ofJoltDevice.JoltInstance.validate_inputsadds Jolt's checks that the entry address is nonzero and that the code region is well formed (validate_code_region).Temporary restrictions removed
TemporaryRestrictionstracerAddressChecksLayer5/SharedMemoryChecksderives the selected row's address and protected-value checks fromramWriteProtectedandramAccessCounthostCallsSucceedVirtualHostIOcall succeedshost_call_exec_sail_frameusesexecHostIO_succeedsnoMaxLengthTraceff6fc6568rounds the row count itself up to a power of two and adds no padding row. The prover and the verifier therefore agree on the maximumterminationThenStallpanicStoresOneclaimsNoPanichaltEndRulebinds the claimed panic flag to the halt kind, andLayer7/Stoppingproves soundness for both claimsThe
HostCallsSucceeddefinition that was removed last:Soundness statement
JoltInstance.soundnessdrops the(restrictions : joltInstance.TemporaryRestrictions)and(assumptions : joltInstance.SoundnessAssumptions)premises:Its only premise about the field or the instance is now
JoltField F. The conclusionInLanguagehas the same text, but the definitions under it follow the new pin:HonestTrace.stops: the last row is an explicit halt (TraceRow.Halts), where it used to be a self-jump that repeats (StableStall).runs_until_stopnow says that no earlier row is a halt.Trace.matches_outputsreads the outputs from the final shared memory withoutputsOf, where it used to read the device's output array.padded_trace_lengthismax 256 (2 ^ Nat.clog 2 rows), where it used to be2 ^ Nat.clog 2 (rows + 1)for 256 rows or more.JoltISA.Instr.is_jumpnow includes both halt instructions.The restrictions premise is dropped from
soundness_reconstruct_trace,soundness_execution_prefix_agreement,JoltInstance.boundary_step,JoltInstance.row_step,row_extension,host_row_step,jal_row_step,jalr_row_stepandappend_host_row.append_host_rowalso drops itshonestAdvicepremise, which only served the removed restriction.host_call_exec_sail_frameandhost_call_selected_stepdropHostCallsSucceedand theirNextSteppremise.soundness_prover_acceptsdropsnoMaxLengthTrace. No conclusion of these theorems changes.reports/2026-11-24-constraints-repin.mdlists the interface changes made earlier in the re-pin.Whole-run statements
HonestTrace.sail_reproducesdrops(hrows : joltInstance.program.RowsAligned).JoltInstance.sail_soundnessdrops the same premise and(restrictions : joltInstance.TemporaryRestrictions).HaltPrefix.sailRunandBlockConforms.simulatesalso drop theirRowsAlignedpremise. Both conclusions change in the same way. The old conclusion ofsail_reproducesended with:trimTrailingZeros (sailOutputs trace.initialState.jolt_device s) = trimTrailingZeros final.jolt_device.outputs ∧ (sailPanicWord trace.initialState.jolt_device s ≠ 0 ↔ final.jolt_device.panic = true) ∧ (SailHalted joltInstance.program s ∨ halt = final)and the new one ends with:
trimTrailingZeros (halt.jolt_device.outputsOf s.mem) = trimTrailingZeros (final.jolt_device.outputsOf final.sail.mem) ∧ ∃ kind, final.halted = some kind ∧ final.jolt_device.panic = (kind == JoltHaltKind.panic) ∧ (SailHalted joltInstance.program s kind ∨ halt = final)sail_soundnesshas the same change withjoltInstance.outputsandjoltInstance.panicon the right-hand sides. After the review below, both theorems also drop the unused configuration premisehcfg, and their conclusions start with the exact step count,∃ s, sailRun pre.length (sailInit trace.initialState) = .ok () s ∧ Related halt s ∧ …, where they had∃ n s, sailRun n ….HaltPrefix) is now the list of blocks before the first explicit halt,jolt.successor EBREAK.Related.ramnow equates Sail's memory with Jolt's shared byte memory at every address, including the I/O region. The oldio,panicandoutputs_sizefields ofRelatedare gone.BlockConformskeeps onlyriscv. It losesno_flag_word_load,panic_store_nonzeroandamo_no_flag_word, because the flag words no longer exist, andno_zero_doubleword_load, because the tracer now rejects loads below the mapped I/O regions andread_lowerderives the lower bound from the checked read.BlockConformsalso losesno_code_store. The code region thatJoltInstance.initial_statecomputes covers every row byte that the image loads (codeRegionAt_covers), execution preserves every protected byte (JoltIOSetupFrame.execProgram_memory), and Jolt's tracer rejects a store that changes one.JoltCodeIntact.of_block(WholeRun/CodeInv.lean) derives from these facts that every block keeps the code bytes.JoltISA.codeRegionOfis nowcodeRegionAtat the layout's lowest address, so the tracer model and the ELF loader share one transcription of Jolt'scode_region.DecodedFrom(WholeRun/Elf.lean) now transcribesdecode_elfatff6fc6568, where it transcribedc336a6da7. The new version skips the data ranges that$dmapping symbols mark inside text sections, rejects an instruction at an odd address, and rejects a writable section that overlaps the code region. It is not weaker than the old premise: the new checks reject some ELFs that the old one accepted. Every program that Jolt's loader accepts atff6fc6568satisfies it.Rv64ProgramImage.DecodedFrom.rowsAlignedderivesRowsAlignedfrom the odd-address check.docs/whole-run-theorem.mdstates both theorems at this head and explains every premise.Proofs
SharedMemorySimandAtomicMemorySimcompare the actual stores at every address and replace Prove that Sail reproduces every honest Jolt run, with the fp128 field and the ELF loader #39's separate I/O modules.Layer5/SharedMemoryChecks), proves that code is unchanged (Layer5/CodeRegionFrame), and proves the stopping argument from the halt lane (Layer5/Halt,Layer7/Stopping).HaltEndRule,RamAccessCount,RamWriteProtected) for the honest witness. It also proveshonestWitness_ramValEqInitialPlusPrefixRamInc(37) andhonestWitness_ramValFinalEqInitialPlusRamInc(38) with unchanged statements. Both were false in the old device model, which ignored stores to the termination word and set its final value from the panic flag (A store that the device ignores breaks the RAM history constraint a16z/jolt#1950, #1951 item 1).execHostIO_result. The helpers that framed the old byte reader are deleted:JoltHostFrame.{pure_rule, bind_rule, read_rule, get_rule, throw_rule, modifyAdvice_rule, loadByte_rule, readHostBytes_frame}, the same eight inRegister42VRegs, theSailAndVRegsUnchangedandSailUnchangednamespaces,JoltNextPCFrame.readHostBytes_frameandJoltNextPCFrame.execHostIOWith_frame. None had a caller outside these proofs.Soundness/Layer5/DeviceMemoryObstruction.lean, which described the removed flag words, is deleted, and with it its twodecide +kernelcommands.Constraint generator
scripts/expansion-parity/gainsconstraint-gen, ported from Track T: decoder sweep (T2), R1CS generation (T3), lookup tables (T4) and provenance gates (T7) #56. It reads Jolt's R1CS rows, the four relations (RAM read-write checking, register read-write checking, instruction-input virtualization, Spartan shift) and the per-kind flag and lookup tables, and writesJoltConstraints/ConstraintGen/Generated/. The committed files are generated atff6fc6568: 22 rows, four relations and 96 instruction kinds.ConstraintGen/Equiv.leanproves each generated row and relation equivalent to the handwritten constraint, and that Lean's per-instruction flags and tables equal Jolt's for every modelled kind. It has nosorry. The coverage check excludes exactlyVirtualXORROT2andVirtualXORROT61, two inline-only kinds that the model does not have..github/workflows/constraint-generation.ymlchecks out Jolt atff6fc6568, regenerates the files, fails if they differ from the committed ones, and buildsConstraintGen.Equiv.Assumptions the pin already implied
An audit of every premise against
ff6fc6568found four that the pinned Jolt no longer needs. The model already transcribed the Jolt check behind each one, and commit06a1b1bremoves them:JoltInstance.HeapNoWrap(whole-run premise)MemoryLayout::validate_heap_end, a16z/jolt#2415; in Lean, the first guard ofMemoryLayout.max_ram_k?new_heap_end_le(theorems/layout_facts.lean)Rv64ProgramImage.ImageNonempty(completeness premise, throughCompletenessAssumptions)derive_from_dimensionsrejects an empty trace (TraceDoesNotEndInHalt)HonestTrace.prover_config_image_nonempty, using the new image fieldinstruction_loaded:decode_text_sectionemits an instruction only when its first halfword is nonzero, which puts a nonzero byte of each instruction inmemory_initJoltInstance.RamRegionFits(soundness premise, throughSoundnessAssumptions)MemoryLayout::max_ram_krejects a padded region past2^64; in Lean, the last guard ofmax_ram_k?JoltInstance.ramRegionFits(Soundness/Layer3/Layout.lean)RAM_START(documented only)final_ram_statethat misfiled such wordsmodel_review.mdSoundnessAssumptionsandCompletenessAssumptions(Completeness/Assumptions.lean, deleted) had no other fields and are gone.JoltInstance.completenessnow takes no premise about the instance. The same commit deletesStableStallandselfJumpRepeats, which described the old stopping rule, and updates the comments,docs/whole-run-theorem.md,methods/soundness.md,model_review.mdand the bug-report statuses that still described the removed premises.reports/2026-11-25-stale-assumptions.mdexplains how the premises outlived the Jolt changes and proposes checks that catch this automatically on the next re-pin.Completeness without
sorryCommit
db02bb9proves the three completeness obligations that waited on a16z/jolt#1949, soJoltInstance.completenessdepends only onpropext,Classical.choiceandQuot.sound. Jolt's R1CS addsrs1 + immin the field, while the tracer computes it modulo2^64, and the two differ only when the sum wraps. No honest row wraps:[0x40000000, 2^63 + 2^31)(Mmu.effective_address_window, fromeffective_address_okand the layout bounds).MemoryExpansionFacts.leanchecks this for every expansion (expand_memoryOk,expand_program_rowImmOk).0 ≤ base + imm < 2^64(HonestTrace.access_noWrap,Completeness/Helpers/AddressWindow.lean).expand_program_triples,HonestTrace.shiftData_store). Its sum is therefore the store's sum.These close (08)
HonestTrace.floorAccess_address_nonneg, (11)HonestTrace.shiftData_address_noWrapand the full proof of (01)honestWitness_ramAddrEqRs1PlusImmMinusLookupIfLoadStore. The (01) theorem's three hypotheses that its proof no longer uses are renamed with a leading underscore; their types are unchanged.constraints.mdnow lists all 63 constraints as checked, andmodel_review.md,methods/soundness.mdanddocs/riscv-alignment.mdno longer list the obligations as open. a16z/jolt#1949 itself is still open; the proofs need only checks that Jolt already has.Fixes from the external review of 2026-11-25
An external review of this stack at
2bdbf41reported thirteen findings. This PR fixes the ones in the model and the docs; #74 fixes the ones in the checks. Each row says what was wrong and what changed.DecodedFromchecked only the address and width of a row of Jolt's own instructions, so a row labelledjolt.successcould sit on the bytes of an ordinary ADDI, andSailHaltedwould read that address as a success halt.RowFromParcelnow requires every row, including the terminal one, to decode from its bytes: a RISC-V row throughDecode.joltDecode, a Jolt row throughJoltCustomInstruction.decode?, a full transcription ofdecode_custom(crates/jolt-program/src/image/decode.rs).DecodedFrom.joltSuccess_wordandSailHalted.success_wordprove that a success halt sits on the word0x0000305B.WholeRun/ElfRegression.leankeeps the reviewer's ADDI example and shows thatDecodedFromnow rejects it.JoltInstance.initial_staterejected input and advice longer than the rawMemoryConfig.max_*sizes, while Jolt checks the sizes rounded up to 8 bytes (JoltDevice::try_with_io).JoltDevice.initialMemkeeps the rounded ones.theorems/layout_facts.leanprovesinitial_state_isSome_iffand checks raw sizes 0, 1, 7, 8 and 9.memory_init); the tracer's loader skips some section types and caps memory for atohostsymbol.docs/whole-run-theorem.md,model_review.md). The docstrings ofJoltInstance.initial_stateandinitial_state_isSome_iffno longer claim to matchcreate_emulatorexactly; they say which checks agree.akitafeature Jolt pads to at least 4096 rows.README.md,docs/whole-run-theorem.md).rewriteNativeturnedVirtualLoadB/H/Winto a no-op when the destination isx0, dropping the load and its possible fault.crates/jolt-riscv/src/kind.rs.HaltPrefix.sailRunandHonestTrace.sail_reproducestook an unused configuration premise, and the theorems hid the step count under∃ n.sailRun pre.length (sailInit trace.initialState) = .ok () s: Sail takes exactly one step per block before the halt.maxRecDepthcount and the proving status.maxRecDepthand that the floating-point axioms ofRiscvExtras.leanstay outside the headline theorems.The review's other points about this PR (host allocation, the
halt = finalalternative, the derivableWitnessParamsfields, file sizes) are listed under Known open items.Every Jolt source file cited in a Lean comment now exists at
ff6fc6568: fork URLs, stale paths (expand/memory/store.rs,crates/jolt-common/) and file names that match several files are replaced by full paths at the pin (ce6993c).Fixes from the second external review of 2026-11-25
A second external review, of the definitions at an earlier commit, reported findings that were still present at
45d484e. Commits1b5226dto652da52fix them.AllConstraintsrejects.from_shared_parts(crates/jolt-prover/src/dory/preprocessing.rs) takes any setup, andJoltVerifierPreprocessing::new(crates/jolt-verifier/src/preprocessing.rs) never compares its size with the default.ceil(n / 2) > max_log_n / 2, andJoltFormulaDimensions::try_from(crates/jolt-claims/src/protocols/jolt/geometry/dimensions.rs) allows a committed chunk width of 128. WithlogT = 8, both chunk widths 128 andmax_log_n = 136, every check passes, and2^128exceeds Akita's field. The soundness theorem therefore covers only verifiers built with the default setup. #74 registers this asDefaultDorySetup. Only width 128 is unsafe, and Dory accepts it only withmax_log_n ≥ 136. A weak instance condition on the setup size therefore closes the gap without a Jolt change. #76 records that design and its Akita counterpart.dorySetupLogNreturned a number for every maximum trace length, whilesetup_total_varspanics above2^63.dorySetupLogNreturnsOption Natandone_hot_fits_setupis false without a setup. Completeness,completeness_someWitnessandHonestTrace.allConstraints_prover_sizesgain the premisesetupSized : joltInstance.max_padded_trace_length.toNat ≤ 2 ^ 63.InLanguagesaid "Jolt's prover accepts the trace", butprover_configchecks only thatderive_from_dimensionssucceeds.crates/jolt-prover/src/dory/stages/stage0.rs).InLanguageitself is unchanged.lrwProgramAutotagged its loads with the AMO alignment fault; Sail and the pinned generator give LR the load fault.E_Load_Addr_Align. LR.D is still open (below).ctz mask, which can reach 32 or more.2^32 - 2^swiths < 32), andValueLemmas.leanproves the shift count is below 32 for every mask the expansions emit.allocateLargeInlineRegisterreturnsOptionand fails on a full pool, like Rust'sallocate_for_inline.TraceBackendGridFitswas unused and incomplete; theProductandLeftInstructionInputcomments were wrong for floor loads and stores.PROVENANCE.tomldid not name Sail initialization as a caller of the dropped extension checks;patchAdvicesilently tolerates a wrong advice count.WholeRun.sailInit, notsail_model_init, and Rust panics wherepatchAdvicepads or drops.Known open items
try_reservefails, while the model appends the bytes. Add an assumption registry and a nightly drift check against Jolt main #74 registers this asHostAllocation.TracerInitialization.DoryConfiguration.halt = finalnext toSailHalted. Removing it needs a classification of which expansions contain a halt row.WitnessParamsfollow from its divisibility fields and could be derived.setupLogN ≤ 135, and the same for the Akita build.E_SAMO_Addr_Align, where Sail givesE_Load_Addr_Align: the generator emits LD with the AMO class and no explicit fault.VirtualAdvicerows.sail_model_init) fails an assertion about the dropped Zicbom and Zicboz extensions. Restoring their clauses needs a Sail regeneration.AtomicFamily/Dword,AtomicFamily/Word,WordSelectRust). Splitting them would speed up full and CI builds, not typical edits, since they are leaves of the import graph.Changes from #39
Field premise (
JoltConstraints/theorems/Soundness/Assumptions.lean)JoltField Fis weakened from2^128 < ringChar Fto2^128 - 2^64 < ringChar F. Akita's modulusp = 2^128 - 1780711455, Jolt's production field since feat(algebra)!: make Prime128Offset6A23801F the production field a16z/jolt#2403, is below2^128. The old premise therefore excluded it.JoltField.of_two_pow_128_ltshows that the old premise implies the new one. Every field that qualified before therefore still qualifies.akitaModulusandbn254ScalarModulus, and the factsJoltField.akitaandJoltField.bn254that both of Jolt's fields satisfyJoltField.Soundness/FieldModuli.leanproves both moduli prime with the Lucas test fromVendor/PrattCertificate.lean, vendored verbatim from CompPolye28da34.2^128 < ringChar Fnow takes the weaker bound (files inLayer0/toLayer7/). Most use only2^127 < ringChar F, which both bounds imply.New constraint (63)
InstructionAddressCanonicalInstructionRafFlag(t) · Σ_x LookupRa(x, t) · U(x) = 0, whereU(x)is 1 when the upper 64 bits of the 128-bit lookup addressxare all ones. It applies only whenringChar F < 2^128.γ³ · upper_half_all_ones(r_address)to theEqRafFlagoutput term in theakitabuild (CANONICAL_INSTRUCTION_ADDRESS, still present atff6fc6568) and leaves it out on BN254. The model ties the check to the field the same way.2^128, an identity-RAF lookup address could alias a small one (for examplep + 5and5). Constraint (63) rules out every address at or above2^128 - 2^64, and the field premise puts the characteristic above every other address.identityAddress_lt_char(Layer1/InstructionReads.lean) combines the two.translation/Constraints/InstructionAddressCanonical.lean, added toConstraints/All.lean. The completeness proof ishonestWitness_instructionAddressCanonicalintheorems/Completeness/InstructionAddressCanonical.lean.Whole-run theorems (
JoltConstraints/theorems/WholeRun/,docs/whole-run-theorem.md)WholeRun.HonestTrace.sail_reproduces: Sail runs the halt prefix of an honest Jolt trace and reaches a state related to Jolt's state before the halt, with the same outputs, and the halt kind fixes the panic flag.JoltInstance.sail_soundness: if a witness satisfies all the constraints, some honest trace matches the claimed outputs, and if its halt prefix conforms, Sail's run reaches the claimed outputs, and the halt kind fixes the claimed panic flag.docs/whole-run-theorem.md:DecodedFrom(the program is what Jolt'sdecode_elfatff6fc6568makes of the ELF);BlockConforms.riscv: every block runs a RISC-V instruction, because Jolt's own instructions on opcode0x5Bhave no block theorem yet;sail_soundnessonly, the premise ofJoltInstance.soundness:JoltField.Instance changes without a change in meaning
translation/program.leanandtranslation/witness.leanreplace the derivedFintypeinstances, which neededmaxRecDepth 4096andbackward.isDefEq.respectTransparency false, with instances built fromctorIdx.Completeness/Helpers/LookupWriteProofHelpers.leanandTracePCProofHelpers.leandrop a file-widemaxHeartbeats(1000000 and 400000).JoltBytecode/MathlibTactics.lean). Twosimpcalls inWholeRun/NonInterference.leangain the lemmas they need after the trim.Sail model check
scripts/check-sail-model.shgains step 2b: the memory regions insail-import/rv64d_jolt.jsonmust equalplatformPmainJoltConstraints/theorems/WholeRun/Relation.lean, field by field. The Lean side reads its regions fromRelation.lean, not from the configuration..github/workflows/lean.ymlruns the model check whenRelation.leanchanges.Relation.leanarrives here.File map
479 files change against #72: 73 added, 16 deleted, 1 renamed, 389 modified.
JoltConstraints/theorems/WholeRun/(27 files, new): the whole-run proofs.Elf.leantranscribes Jolt'sdecode_elfand provesDecodedFrom.imageDecoded.Relation.leanholds the Jolt-to-Sail state relation andplatformPma.SharedMemorySim.lean,AtomicMemorySim.lean,PlatformMemory.leanandPlatformStore.leanrelate the shared memory to Sail's.Halt.leanandTop.leanhold the halt prefix and the two theorems.translation/Constraints/addsHaltEndRule,RamAccessCount,RamWriteProtected,InstructionAddressCanonicaland the renamedNextUnexpandedPCEqLookupIfJump, deletesShouldJumpEqJumpMulNotNextIsNoop,RamHammingWeightBooleanityandRamRaChunkHammingWeight, and changesRamReadDataandAll.translation/witness.lean,program.lean,honest_trace.leanandwitness_helpers/follow the new witness columns and shared memory.FieldModuli.lean,Layer1/HaltEndRule.lean,Layer5/(CodeRegionFrame,Halt,SharedMemoryChecks,TapePrefix) andLayer6/SelectedRows.lean; deletedLayer5/(DeviceMemory,DeviceMemoryObstruction,HostCallRestriction,PanicRestriction,TerminationRestriction) andLayer7/TerminationStore.lean; the rest are the field-bound rename and the re-pin.PrefixSum,RamHistoryProofHelpers,RamHistoryReplayandRamValReplay.JoltConstraints/theorems/: newDeviceFrame,HaltFlags,MemoryRowExecution,SharedMemoryExecution,SharedMemoryInitialization; deletedadvice_below_input.JoltConstraints/ConstraintGen/,scripts/expansion-parity/,.github/workflows/constraint-generation.yml: the constraint generator.Vendor/PrattCertificate.lean(new, vendored).docs/whole-run-theorem.md(new);docs/riscv-alignment.md(explicit halts, shared memory, and the whole-run parts that JoltBytecode side of #39: system expansions, Jolt decoder and try_step lifting #72 left out);methods/soundness.md;JoltConstraints/documentation/constraints.md(constraint (63), the field premise, the new constraints (64)haltEndRule, (65)ramWriteProtectedand (66)ramAccessCount, and the removal of (22), (57) and (62));JoltConstraints/documentation/model_review.md(open issues atff6fc6568);README.md(the Main result section, which now ends at the first explicit halt);AGENTS.md(the Jolt pin and the stopping rule).reports/2026-11-24-constraints-repin.mdandreports/2026-11-24-constraint-repin-diff.md: the re-pin and generator reports, with the statement changes.reports/2026-11-24-bytecode-repin.md,reports/2026-11-24-bytecode-repin-statements.mdandreports/2026-11-24-hostio-repin.md: the bytecode re-pin reports, with every changed statement and the Jolt source behind each change.scripts/check-sail-model.sh,.github/workflows/lean.yml: above.Validation
1b5226dto652da52):lake build JoltBytecode JoltConstraintssucceeds locally (2479 jobs), and#print axiomslists onlypropext,Classical.choiceandQuot.soundforJoltInstance.soundness,JoltInstance.completeness,completeness_someWitness,JoltInstance.sail_soundnessandWholeRun.HonestTrace.sail_reproduces. Add an assumption registry and a nightly drift check against Jolt main #74's#audit_statementsalso passes on top of this branch. All 291 cited Jolt files resolve at the pin. The last commit changes only comments and Markdown; I rebuilt the four touched modules.f1536bdto45d484e):lake build JoltConstraintssucceeds locally at Add an assumption registry and a nightly drift check against Jolt main #74's head20b949b, which contains this branch's head45d484e(2482 jobs). That build runs Add an assumption registry and a nightly drift check against Jolt main #74's#audit_statements, which fails unlessJoltInstance.soundness,JoltInstance.completeness,JoltInstance.sail_soundnessandWholeRun.HonestTrace.sail_reproducesdepend only onpropext,Classical.choiceandQuot.sound. Ate91e7ff,#print axiomslisted only those three for the same four theorems. The commits aftere91e7ffchange only comments and Markdown.WholeRun/ElfRegression.leanbuilds: the reviewer's ADDI example satisfies the old relation and notDecodedFrom.ff6fc6568(scripts/jolt_citations.py --checkon Add an assumption registry and a nightly drift check against Jolt main #74: 291 files, none unresolved).db02bb9,lake build JoltConstraintssucceeds locally, and#print axioms JoltInstance.completenesslists onlypropext,Classical.choiceandQuot.sound. At06a1b1bthe build succeeded (2474 jobs), and#print axiomslisted only those three forJoltInstance.soundnessandJoltInstance.sail_soundness.lake buildof both libraries) and the constraint-generation job passed at36c47d6.7baacf6has the same tree plus Sail side of #39: configure the Sail model as Jolt's hart #71's new report: it merges Sail side of #39: configure the Sail model as Jolt's hart #71's report commit and JoltBytecode side of #39: system expansions, Jolt decoder and try_step lifting #72's revert, keeping this branch's files.448e596,8fb40a4,99d08bd) removeno_code_storeandRowsAlignedand re-transcribeDecodedFrom. At99d08bd,lake build JoltConstraints.theorems.WholeRun.Top JoltConstraints.theorems.Soundness.soundnesssucceeds locally (2028 jobs), and#print axiomslists onlypropext,Classical.choiceandQuot.soundforJoltInstance.sail_soundness,WholeRun.HonestTrace.sail_reproduces,JoltInstance.soundness,Rv64ProgramImage.DecodedFrom.rowsAlignedandWholeRun.JoltCodeIntact.of_block. CI builds the rest.lake build JoltConstraintssucceeds locally atbbe02b6(2475 jobs), with a thread-capped build wrapper, andlake build JoltBytecodesucceeded on the bytecode re-pin (9365 jobs). The later commitsdfe65e3and36c47d6change only Markdown files, Lean comments and a workflow comment. After the comment edit insoundness.lean, I rebuiltJoltConstraints.theorems.Soundness.soundness(1918 jobs).#print axiomslists onlypropext,Classical.choiceandQuot.soundforJoltInstance.soundness,JoltInstance.sail_soundnessandWholeRun.HonestTrace.sail_reproduces.sorry,admit,native_decide,bv_decide,decide +kernel,axiom, ormaxHeartbeats,maxRecDepthorsynthInstanceoption. It removes the five limit options above and twodecide +kernelcommands.sorry; JoltBytecode side of #39: system expansions, Jolt decoder and try_step lifting #72 had five. The remaining matches ofsorryin.leanfiles are docstrings and five lines of commented-out code in the vendoredPrattCertificate.lean.#print axiomschecks during the bytecode re-pin listed onlypropext,Classical.choiceandQuot.soundforJoltISA.execHostIO_succeeds,JoltISA.execHostIO_result,JoltISA.Mmu.store_raw_existing,JoltISA.execHalt_vreg_run,JoltIOSetupFrame.execProgram_memoryandDecode.SourceInstruction.tick_halted, and onlypropextforDecode.decodeJoltSuccess_some_iff.3cefd41fails until9b9948cfixes its proofs. In particular the merge6f1b2b2, which brings in the total host-call model from the bytecode branch, and the commits up to94ae194fail until8e7dae3ports the host-call proofs. Please review the whole diff rather than commit by commit.JoltAuditbuild, because the repository has no such target.Placement notes
theorems/WholeRun/Elf.leanholds definitions that transcribe Jolt'sdecode_elf. By Reorganise JoltConstraints into translation/ and theorems/, clear build warnings #69's layout those could go intranslation/. I kept the file whole because the PRs above this one edit it.README.mdhere replaces the pointer todocs/riscv-alignment.mdthat Sail side of #39: configure the Sail model as Jolt's hart #71 added with Prove that Sail reproduces every honest Jolt run, with the fp128 field and the ELF loader #39's wording, which sits in the Main result section.🤖 Generated with Claude Code