Repository navigation
Lean-Compiled Aiur Compression Cutover, BLS12-381 GPU/Backend, Formal TCB Closure, CUDA Spill & BLAKE2b-512 PQ Specs - #698
Closed
johnchandlerburnham wants to merge 282 commits into
Closed
johnchandlerburnham wants to merge 282 commits into
johnchandlerburnham wants to merge 282 commits into
Conversation
…ng literals wiring
- DR3 native contiguous Array / ByteArray / Array UInt64 wiring (Src -> Lam -> Anf -> Fir -> Rt/Lower):
* Pin Lean 4.34.1 Array, ByteArray, and String ops (incl. ByteArray.get!/set!, Array.set!/uget/uset/swapIfInBounds) in Src/{Pinned,ArraySpec,Table/Array}.
* Add Lam/Erase/Array.lean to suppress Array/ByteArray unboxing (keeping String unboxed to ByteArray), withhold pinned array ops from ANF inlining, and auto-detect Array UInt64 (LimbArray) closures.
* Extend Anf/{Inline,Pipeline,Pipeline/PostCert} to preserve pinned native array globals across ANF optimization passes.
* Extend Fir/Rep.lean with ArrayPrimSpec, checkWithArrays, and monotone forward-lattice inferWithArrays supporting raw 64-bit UInt64 limbs and .obj boxing without spurious Nat boxing.
* Add Rt/Rc/Array/Wire.lean (36-proc extended relocated array runtime: swap, Array<->List, ByteArray<->Array, arrIncValue, strLitProc, rodataStrProc) and wire O(1) array lowering + aliasing-safe mini-RC into Rt/Lower.lean (lowerRep).
- DR1 .rodata statics + DR4 String literals (Src/Admit -> Lam/Erase -> Rt/Lower):
* Admit String literals in Src/Admit.lean and Lam/Erase/Term.lean; hoist string literals into .rodata static UTF-8 ByteArray cells (rc=0x80000000, tag=0x7F02) + position-independent strLitProc in Rt/Lower.lean.
* Preserve full Cfg.Rc.Proof / Own / Recheck / Exe compatibility with zero edits outside owned paths.
- End-to-end proofs & exact axiom fences (0 sorry, strictly [propext, Classical.choice, Quot.sound]):
* Add Rt/Proof/StrHoist.lean (full DR4 string-hoisting simulation composing into Rt/Proof/{Program,Correct,Publish,Roots}) and Rt/Proof/ArrayWire.lean (buildStringRodata -> StaticArrayCell -> readbackString -> LinkedRodata preservation, rodataStrProc_eval, strLitProc_readbackString, relocateFunc_meta).
* Add +40 exact axiom fences in IxCCTests/Fences/{ArraySpec,ArrayRt,RtProof}.lean.
- Native Xeon verification (IxCCTests/Array/WireTests.lean + #284 test updates):
* Verified K3 rbmap_checkpoint(100000,10)==(10001,10000), K4 array-qsort(1000)==1000413603308 (in-place O(n) heap), K4 blake3 official vectors (0, 64, 1024, 1025, 8193), IxCC.BigNat.{add,mul,divMod} on unboxed Array UInt64 (tag=0x7F03), Decline.withPanic & Decline.stringLength, and Aliasing/COW/UTF-8 String natively on Xeon.
…ernel-evaluable .rodata, rt.string guard, IRC clique perf, artifacts, steps & manifests)
- Register IxCC.Xv.Alloc.{Interference,GraphColor}, IxCC.Lam.Erase.Array, IxCC.Rt.Rc.Array.Wire, IxCC.Rt.Proof.{StrHoist,ArrayWire} in IxCC/IxCC.lean.
- Add kernel-evaluable list-based .rodata encoders (encodeWordsK, encodeStaticByteArrayK, encodeStaticStringK, RodataTableK) with exact *_eq proofs in IxCC/X86/ELFRodata.lean and route Rt.Rc.Array.strLitProc + Rt.lowerCore through them so IxCCTests.Recheck.Audit passes with zero ByteArray copies on Recheck.run.
- Guard surviving .lit (.str _) on the Phase 1 Recheck/Rt.lower & RC producer paths (Recheck/Produce.lean, Recheck/Rc/Produce.lean) with clean rt: rt.string decline (per #313) until DR3/DR4 Rt.lowerRep is wired into Recheck.
- Optimize IxCC/Xv/Alloc/Interference.lean (check collectVRegs budget before loopDepth/exactLiveness; replace redundant per-block liveIn/liveOut addClique with entry-only liveIn[0] + block.params x liveIn[b] + cross-terminator deferred edges), cutting RC fanUnder produce 7.2x (169s -> 23.6s) and tests-rc-certificate fresh from >30m to 3m50s with zero step/artifact changes.
- Update IxCC/fixtures/corpus/phase1-decline/corpus.json: promote Decline.withPanic (0->0, 7->0, 42->42) and record Decline.stringLength as rt: rt.string (still tested natively via Rt.lowerRep in WireTests).
- Update IxCC/IxCCTests/Recheck/CertText.lean deep168 expected plain-RC nesting depth (510 -> 509, shallower by 1 under rc-fbip v3 certs).
- Refresh IxCC/fixtures/ixon-v4/bench-k1/steps.json (26 K1 improvements from regalloc-e1), IxCCTests/Recheck/Artifacts/*.lean (5), IxCCTests/Corpus/Artifacts/*.lean (4), IxCC/nix/lean-modules.json, IxCC/nix/ci-coverage.json (7,157 + 556 = 7,713 fences; 690 production modules), and IxCC/docs/trusted-externs.json (native_interfaces: []).
…F-4/SP-0/FE-4 & expanded audit
- Proved plain --exe shell (X86/Exe/{Layout,Code}.lean, X86/Exe/Plain/Proof/{Spec,Blocks,Report,Parse,Shell}.lean,
Exe/Plain/Exe.lean): unified 256-byte dedicated shell-stack/scratch layout matching the proved --machine
architecture (keeping ~3 KiB zero-libc static ELF size & CLI ergonomics), proved plain_shell_sound /
plain_shell_unspecified and composed end-to-end with Recheck.sound_at / RcReplay.sound_at (plain_exe_sound,
Rc.plain_exe_sound, verifyExeBytes_{plain,machine}_sound), ready to retire x86-linux-exe-shell at integration.
- Hardened .ix.cert v1 ELF64 trailer & ixcc verify-exe (X86/Exe/Cert.lean, Exe/Cert.lean, Exe/Cert/Proof.lean,
Cli.lean, Cli/Main.lean, IxCCTests/Exe/Cert.lean): verbatim core [0..coreSz), strict 0xCC (int3) RX page-tail
trap sled [coreSz..alignUp(coreSz,4096)), non-alloc SHT_PROGBITS .ix.cert + .shstrtab + flush 3-entry ELF64
SHT at EOF, full soundness proofs (checkTrailer_*, verifyExeBytes_sound), and 40+ tamper/smuggling/detached
negative controls.
- KF-4 + SP-0 + FE-4 claim verification & broadened Audit.lean (CompileClaim/Closure.lean, CompileClaim.lean,
CompileClaim/Proof.lean, IxCCTests/Recheck/Audit.lean, IxCCTests/Fences/{CompileClaimKf4,ExeCert,Exe}.lean):
pure-logical seed-closure walk S = {target} U theorems(table) via Ix.Kernel.Admission.checkBytes under
committed preludeFor + defaultBinding + N5 IxCK.Resource.check, FE-4 KernelAccepted witness gating
verifyProgramChecked, broadened Audit.lean over IxCC.*/IxCK.*/Ix.*/Ixon.*/Blake3.* and Recheck.run /
CompileClaim.verifyBytes / Exe.Cert.verifyExeBytes, +20 exact axiom fences strictly [propext, Classical.choice, Quot.sound].
…DSE/forwarding)
Tracks D2-D3 validated SSA optimizer on Lir following CompCertSSA /
Chamois-CompCert translation validation:
- Untrusted optimizer passes (IxCC/IxCC/Lir/Opt/{DivMagic,Gvn,Licm,Driver}.lean):
* Dominator-tree preorder GVN/CSE, algebraic simplification (w8-w64),
copy & constant propagation, dominating branch & unsigned interval
propagation (br and brOvf folding), DCE, unreachable block pruning.
* Natural-loop LICM with preheader insertion, invariant block parameter
substitution, pure invariant hoisting, and invariant .fail guard hoisting.
* Constant unsigned division/modulo strength reduction: power-of-2
shifts/masks (w8-w64) and Granlund-Montgomery magic multipliers
(w64 Case 1/2 via mulWide64, w32 via 64-bit mul, plus a - q*d rem).
* Intra-segment store-to-load forwarding, load CSE across byte-disjoint
stores, and intra-block dead store elimination (DSE).
- Formally verified linear-time translation validator
(IxCC/IxCC/Lir/Opt/{DivMagic,Sym,Check}.lean) with structural congruence
closure (exprEquivAux), byte-disjoint symbolic memory + snapshot table,
and per-block invariant/segment checking.
- Complete formal proofs (IxCC/IxCC/Lir/Proof/Opt/{Arith,Mem,Seg,Sim,Backend}.lean)
proving Lir.Opt.check_sim, Lir.Opt.check_refines, Lir.Opt.run_{wellFormed,sim,refines},
Lir.Opt.validateCert_{wellFormed,sim,refines}, and composed ELF backend
soundness Backend.compileOpt_{sim,refines,tsim}_main and
Backend.compileWithOptCert_{sim,refines,tsim}_main (0 sorry, strictly
[propext, Classical.choice, Quot.sound], 43 exact axiom fences in
IxCC/IxCCTests/Fences/LirOpt.lean).
- Clean additive wiring in IxCC/IxCC/Backend.lean (compileOptWith,
compileOpt, compileWithOptCert) preserving compileWith, compile, and all
existing Recheck/RcReplay theorems and fences.
- Unit, 15/15 negative-control mutant, 100/100 Lir.Gen fuzz, and K1/K2/K3
before-vs-after tests in IxCC/IxCCTests/Lir/Opt/{Tests,Main}.lean.
…ences, tests-lir-opt, retire x86-linux-exe-shell, CLI --opt, manifests & pins)
- Export all 21 new production modules from exe-cert-v1 and lir-ssa-opt in IxCC/IxCC.lean:
IxCC.CompileClaim.Closure, IxCC.X86.Exe.Cert, IxCC.Exe.Cert, IxCC.Exe.Cert.Proof,
IxCC.X86.Exe.Plain.Proof.{Spec,Blocks,Report,Parse,Shell}, IxCC.Exe.Plain.Exe,
IxCC.Lir.Opt.{DivMagic,Sym,Check,Gvn,Licm,Driver}, and
IxCC.Lir.Proof.Opt.{Arith,Mem,Seg,Sim,Backend}.
- Register IxCCTests.Fences.LirOpt in IxCC/IxCCTests/Fences.lean and IxCC/IxCCTests/Proofs.lean
(+63 new exact axiom fences: +20 from exe-cert-v1 via Fences.Exe + 43 from lir-ssa-opt,
raising proof fences from 7,157 to 7,220, total 7,776 with 556 grounding fences).
- Register tests-lir-opt executable in IxCC/lakefile.lean and wire it into ixcc-suites in
IxCC/nix/checks.nix (tests-exe already runs IxCCTests.Exe.Cert.part).
- Retire x86-linux-exe-shell in IxCC/docs/trusted-externs.json (status: discharged-for-plain-shell),
recording IxCC.X86.Exe.Plain.plain_shell_{sound,unspecified}, IxCC.Exe.Plain.plain_exe_{sound,unspecified},
IxCC.Exe.Plain.Rc.plain_exe_{sound,unspecified}, IxCC.X86.Exe.Cert.checkTrailer_*,
IxCC.Exe.Cert.verifyExeBytes_sound, and IxCC.Exe.Plain.verifyExeBytes_{plain,machine}_sound
strictly within [propext, Classical.choice, Quot.sound].
- Wire opt-in --opt flag on ixcc compile in IxCC/IxCC/Cli.lean to Backend.compileOpt (default OFF,
refusing check-cert/verify-exe/--cert/--emit-cert/--embed-cert), with CLI parse tests in
IxCC/IxCCTests/Pipeline/Compiler.lean.
- Use Name.mkSimple "Blake3" / Name.str ... "Rust" in IxCC/IxCCTests/Recheck/Audit.lean so
TrustLedger.namesUnder keeps strict project_entrypoints: ["Blake3.Pure.hash"] while retaining
identical Blake3.* and Blake3.Rust.* audit coverage.
- Refresh IxCC/nix/lean-modules.json (1,121 production modules), IxCC/nix/ci-coverage.json
(7,220 + 556 = 7,776 exact axiom fences), and IxCC/docs/trusted-externs.json pins (native_interfaces: []).
Bootstrap-compiles IxCC.BigNat.Entry through IxCC's own DR2+DR3 pipeline
(zero C, zero GMP, fused hardware LimbOps, unboxed Array UInt64 limbs,
GraphColor IRC) and wires arbitrary-precision Nat lowering, .rodata static
LimbArray literals, readback, structural zero-natOverflow and simulation
proofs, axiom fences, 105k native Xeon differential verification, and all
6 K5 benchmarks natively on Xeon:
- IxCC/IxCC/BigNat/LimbOps.lean: eliminate runtime-Bool addCarry64 Prod
allocations in mulAddCarry64 (zero bump allocations per inner-loop step
in mulAddRow/sqrOffRow/mulAdd1/sqrAddDiag), preserving mulAddCarry64_spec
strictly under [propext, Quot.sound].
- IxCC/IxCC/BigNat/Bootstrap.lean: add SlowPathOp.numericOps, freezeConstsOf,
in-memory .ixe section-4/5 name-table decoder, Ix equation converter, and
pure-functional zero-natOverflow / no-big-literal checkers.
- IxCC/IxCC/Rt/BigNat/Link.lean: bootstrap-compile IxCC.BigNat.Entry with
Fir.Rep.checkWithArrays-verified raw .word limb set/push/get refinement
and emit zero-natOverflow, aliasing-safe NatVal <-> SlowNat LIR ABI
wrappers (plus standalone library exporter).
- IxCC/IxCC/Rt/BigNat/LowerBig.lean: implement lowerBig and lowerRepBig
(DR1+DR2+DR3+DR4+BigNat) with Dispatch.primitiveBig, Nat.succ peel,
Nat switch (v == 1 exact via NatVal.eq_one_iff), .rodata / position-
independent static LimbArray literals >= 2^63, and linked BigNatProcs.
- IxCC/IxCC/Rt/Readback.lean & IxCC/IxCC/Rt/BigNat/Cell.lean: add
backward-compatible BigNat readbackBig/observeBig, kernel-evaluable
.rodata encoders (encodeStaticLimbArrayK/encodeBigNatLiteralK), and
equivalence proofs with Rt.Readback.readbackBigNat.
- IxCC/IxCC/Rt/BigNat/LowerBigProof.lean: prove structural zero-natOverflow
(lowerBig_noNatOverflow, lowerRepBig_noNatOverflow, lirEval_ne_natOverflow),
static .rodata representation (buildBigNatRodata_natVal), and end-to-end
simulation + readback under FailsNoOvf (strictly .heap | .stack only).
- IxCC/IxCCTests/Fences/BigNatWire.lean: 135 exact #guard_msgs in #print
axioms fences (42 new), all strictly subset of [propext, Classical.choice,
Quot.sound].
- IxCC/IxCCTests/BigNat/{NativeDiffCore,NativeDiff,WireTest}.lean: native
Xeon verification covering all 111 phase1-boundary 2^63 cases (0
natOverflow), 105,000 native Xeon differential checks vs Lean 4 GMP
(0 failures, 81 Knuth D add-back hits, 0..1000 limbs, Karatsuba 31..1000),
streaming --batch / --native-batch mode, and all 6 K5 benchmark fixtures
(big-fib, factorial, pi-digits, big-mul, big-div, big-gcd) verified
bit-for-bit against Lean 4 GMP at both test_args and full bench_args.
…ivediff suite, grounding zeta fix, ledger assumption, CLI --bignat, Decline.withPanic oracle & manifests)
- Export IxCC.Rt.BigNat.{Link,LowerBig,LowerBigProof} in IxCC/IxCC.lean (1,124 production modules).
- Confirm all 135 exact axiom fences in IxCC/IxCCTests/Fences/BigNatWire.lean (+42 new, raising proof fences 7,220 -> 7,262; total 7,818 with 556 grounding fences, all strictly <= [propext, Classical.choice, Quot.sound]).
- Wire tests-bignat-nativediff --self-test into ixcc-suites in IxCC/nix/checks.nix (32 suites on x86_64-linux; 100,049 checks, 81 Knuth D add-back hits).
- Fix tests-grounding (IxCC/IxCCTests/Grounding/Zeta.lean): update phase1-decline/panic expected false conjuncts from [noWord, proj, valueCorr] to [noWord, notOpaque, proj, valueCorr] since String.Internal.append is allowlisted in Pinned.dr4OpaqueByValuePins for DR4 panic! admission (zero weakening of IxCCGrounding checks or proofs).
- Centralize Anf.Pipeline.produce behind Recheck.produceAnf in IxCC/IxCC/Recheck/Produce.lean and route IxCC/Rt/BigNat/Link.lean + IxCC/Cli.lean through it so pendChoice stays strictly enforced (Pipeline.produce called only in Recheck/Produce.lean and Recheck/Rc/Produce.lean).
- Add Decline.withPanic dispatch arm in IxCC/fixtures/corpus/phase1-decline/src/Decline.lean and refresh phase1-decline/corpus.json source.sha256 so Regenerate.lean --check reproduces all 2,704 files byte-for-byte.
- Record narrowed specification_assumptions entry bignat-layer3-src-array-fire in IxCC/docs/trusted-externs.json (zero C, zero GMP, native_interfaces: []) and refresh all ledger integrity pins.
- Expose opt-in --bignat [--bignat-lib FILE] on ixcc compile in IxCC/IxCC/Cli.lean (default OFF; composes with --opt, -o, --exe, --stack, --region, --signatures, --dump-ir, --stats; refuses cert/verify/machine/--rc on|auto) with CLI parse tests in IxCC/IxCCTests/Pipeline/Compiler.lean.
- Refresh IxCC/nix/lean-modules.json, IxCC/nix/ci-coverage.json, and IxCC/docs/trusted-externs.json pins.
… IxCC fixtures, and trust ledger for origin/main (b37269f)
- Add IxCC/Src/AutoHints.lean: zero-TCB statement-only O(#theorems) scanner over decoded Ixon.V3.Env discovering .eqn unfolding equations and .word fixed-width word equations without decoding proof terms (skipExprFast), canonically sorted for 100% determinism, plus §4/§5 metadata name table extraction and --root NAME / <64-hex> / NAME=<64-hex> resolution. - Add Hints.toK1Json round-trip serializer in IxCC/Src/Hints.lean and loadEnvAuto / loadAuto entry points in IxCC/Src/Load.lean. - Make --equations EQ.json optional on ixcc compile and ixcc check-cert in IxCC/Cli.lean (with auto-hints timing in --stats and synthesized sidecar embedding for --exe --embed-cert / verify-exe compatibility). - Add unit, synthetic competing-theorem, timing, and K1-K5 byte-equivalence tests in IxCCTests/Src/AutoHints.lean, IxCCTests/Src/Main.lean, and IxCCTests/Pipeline/Compiler.lean.
…, blake3 harness, and intrusive-RC C++ controls
…ing, loop versioning and unrolling, with proofs
Lane k1-x86-opt. The optimizer runs only under `--opt` (`Backend.compileOpt`,
default off); `check-steps` still equals its baseline for the default pipeline.
- Lir rotates: `Lir.BinOp.{rol,ror}` (`rolWord`, `rorWord`, count masked like
the shifts) and selection rule 12 (`selectRotate`: `rotate.zero`,
`rotate.imm`, `rotate.cl`) with proofs in `Xv/Select/Proof/{Exec,Words,
Shift,Stmt}` (`exec_rotateI`, `exec_rotateC`, `rol_eq`, `ror_eq`,
`selectRotate_ok`, ...).
- Validated local optimizer (`Lir/Opt/{Sym,Gvn,Check}`, `Proof/Opt/{Arith,
Mem,Seg}`): rotate and `.addr` (lea) peepholes, parity facts and even-`addC`
tag cancellation, fact-aware equivalence (`exprEquivFacts`), `select`/`test`
and odd-bit branch-condition unwrapping. `ProgPlan.funcs` is now
`Array (Option FuncPlan)`: `none` means the function is unchanged (`F == G`),
so `runLocalAt` validates one function without replaying the others.
- Directly proved structural passes, each a `PotentialForward` or
`Sem.Forward` diagram on `Lir.step`:
* `Lir/Opt/Inline.lean`: call-site inlining (`inlineCallSite`: helpers and
bounded self-recursion, a `.tail` in the callee becomes call + jump) and
tail-site inlining (`inlineTailSite`); each `Sem.Sim Eq (2k + 1)`.
* `Lir/Opt/Unroll.lean`: `U`-way loop unrolling (`unrollLoopSite`,
`Sem.Sim Eq (U*k + (U - 1))`) and odd-fixnum loop versioning on several
header parameters and function parameters (`versionOddLoopSite`, an
AND-chain dispatch block; `Sem.Sim Eq id`).
* `Lir/Opt/IfConv.lean`: branchless diamond if-conversion
(`ifConvDiamondSite`; `Sem.Sim Eq id`).
- Driver (`Lir/Opt/Driver.lean`): `run = runLocal; inlineTailLoop 4;
inlineHelpersLoop 8; versionOddLoop 6; ifConvLoop 6; inlineSelfLoop 6;
unrollLoop 4`, every structural step followed by `runLocalAt` and kept only
if well-formedness is preserved.
- Statement changes to existing theorems. The structural passes remove
charged steps, so the identity clock map no longer holds for `run`:
run_sim : Sem.Sim Eq runClock (fun k => eval p k args mem ctx)
(fun k => eval (Lir.Opt.run p) k args mem ctx)
(was `Sem.Sim Eq id`), with `runClock k = inlineClock 4 (inlineClock 8
(inlineClock 6 (unrollClock 4 k)))`, `inlineClock` iterating `k ↦ 2k + 1`
and `unrollClock` iterating `k ↦ 4k + 3`: `runClock k = 2^26 * (k + 1) - 1`.
`Backend.compileOpt_sim_main` and `compileOpt_tsim_main` accordingly have
the clock map `k ↦ runClock ((B + 1)(k + 1))` (was `(B + 1)(k + 1)`).
Unchanged: `run_wellFormed`, `run_refines`, `check_sim`, `check_refines`,
`checkProgramWithPlan_{forward,sim}` (identity clock; its `StateRel` now
has an identical-frame case for unchanged functions),
`validateCert_*`, `compileOpt_refines_main`, `compileWithOptCert_*`.
The structural passes are not validated by `Lir.Opt.check`; `run_sim`
composes their direct proofs.
- Fences: `IxCCTests/Fences/LirOpt.lean` 43 -> 88 exact axiom assertions
(the four pass-level forward diagrams, the site theorems, `runLocal*`, the
driver loops), `IxCCTests/Fences/SelectProof.lean` 441 -> 454 (the 13 rotate
theorems); every set within `[propext, Classical.choice, Quot.sound]`.
- Tests (`IxCCTests/Lir/Opt/{Tests,Main}.lean`): rotate/lea/parity units,
inlining, versioning, 4x unrolling, if-conversion, 21 negative-control
mutants, 100 generated programs, K1/K2/K3 before/after.
Verified on the build box (Lean 4.34.1, ix dev shell):
- `lake build IxCC IxCCTests.Fences.LirOpt IxCCTests.Fences.SelectProof
tests-lir-opt check-xv-select check-backend check-steps check-x86-hardware
check-x86-bytes check-x86-streams check-x86-encoder ixcc`: ok.
- `lake env lean -DwarningAsError=true` on each of the 29 changed files: 28
clean; `Xv/Select/Proof/Words.lean` reports only the base's warnings (lines
outside this change). `lake build --wfail` cannot pass on this tree: 70
files log warnings that are already in the base.
- `tests-lir-opt`: all pass (21/21 mutants rejected, 100/100 generated
programs validated, 91 transformed).
- `check-xv-select`, `check-backend --native` (119 native lines agree),
`check-steps` (9 runs equal `steps.json`), `check-x86-hardware` (71,132
cases agree with the host, llvm-mc decodes all identically),
`check-x86-bytes`, `check-x86-streams`, `check-x86-encoder`: ok.
- Typed x86 steps with `--opt` against without (`tests-lir-opt`, test
arguments): fib -23.5%, ackermann -40.0%, sfib -18.7%, collatz -17.7%,
gcd -13.0%, prime-count -1.5%, tak unchanged, even-odd +1 step,
sum-loop +24.9% (byte steps -12.4%). No wall-clock benchmark was run.
Left to integration: `nix/*.json` manifests, trust-ledger pins, `docs/ci.md`
rows, and the other required checks (only the gates above were run).
…c on path (k23-clang-parity)
Optimizations of the plain-RC lowering, each with its simulation proof and wired
through the certificate replay (Recheck/Rc):
- Own.Plain.Sink: a constructor allocation in front of a multi-arm case is sunk
into the one arm that uses it. It runs in the verifier's front half
(RcReplay.runFront) and in produceFir, ahead of ownership placement; the
zero-RC path keeps the unsunk Fir. Proof: Own.Plain.Proof.Sink.
- Own.Plain.Live (producer): a scrutinee stays owned where a case can reset a
cell of a size class the function allocates.
- Cfg.Rc.Inline: the shared path of reset is inlined (one increment per live
field, then the release, for up to 6 live fields), the fallback of reuse
allocates inline, and resetU/reuseU with one dead field are fused.
Proofs: Proof.InlineSharedSites (new), InlineReuseSites, InlineLayout, Inline.
- Cfg.Rc.InlineWrappers: the calls left inside the surviving reset/reuse
wrappers (isUnique, inc, dec, alloc) are inlined.
- Cfg.Rc.FastDec: a specialized decrement replaces Gen.dec at decProc.
- Cfg.Rc.Prune.pruneDeadRuntime: runtime functions no longer called are stubbed.
- Native.lower composes pruneDeadRuntime, FastDec.install,
InlineWrappers.inlineProgram, pruneUnusedReuse and Inline.inlineProgram;
Native.Split, Physical.Public{Eval,Init,Root} and Recheck.Rc.Proof follow.
- Anf.Pipeline (producer only): up to four more post-P5 inline rounds, and a
retry with the largest certifiable smallJoin on higher-order programs.
Statements that change, none by an added hypothesis:
- the clock map of Inline.inlineProgram_sim, inlineProgram_sim_clock and
backward_run, and of Prune.pruneUnusedReuse_inlineProgram_sim and _sim_clock,
is k + 12 * fuel (was k + 3 * fuel); Inline.inlineClock is three compositions
of k + 3072 * fuelFor p k (was k + 3 * fuelFor p k);
- RcReplay.runFront_spec states Fir.lower for the program before Sink;
- Public.Spec.inlinedPublicProgram_eq_inline names the longer composition;
- inl_reuse_exec and inl_reset_cold_exec are restated, and
inl_fusedResetReuse_exec becomes inl_fusedResetReuse_inline_exec and
inl_fusedResetReuse_fallback_exec.
RcReplay.sound, source_refines_cfg, source_retained and accepted_split keep
their statements.
Exact axiom fences added for InlineWrappers.inlineProgram_sim and _sim_clock,
FastDec.install_sim and install_forward_eq, Prune.pruneDeadRuntime_eval_eq and
_sim, Sink.run_sim, run_retained and run_refines, each
[propext, Classical.choice, Quot.sound].
Test expectation: the parameter total of Closures.stateLoop pinned in
IxCCTests/Recheck/Rc/ParamsIO.lean goes from 132 to 129 (the added inline
rounds). No committed fixture changes.
Verified on the build box (Lean 4.34.1): lake build IxCC IxCCTests ixcc, which
includes every axiom fence and IxCCTests.Recheck.Audit; tests-recheck;
tests-rt-rc controls, deep and native; tests-cfg-rc; tests-driver-session;
tests-pipeline-rc levels, counters, native and negative; tests-rc-certificate
fresh; tests-own-plain; tests-own-owned; tests-cert-text; tests-recheck-readback;
gen-recheck-artifacts --check; tests-pipeline --native; tests-corpus --native
--exe; corpus check; check-steps.
Left for integration: nix/lean-modules.json and nix/ci-coverage.json (seven new
modules; check-build-graph reports the import manifest stale) and the
trust-ledger pins.
…rage record docs/ci.md: a dated coverage-change row for the integration of auto-hints, bench-k45, k1 (Lir.Opt) and k23 (RC optimizations): the fence inventory (7,262 -> 7,329 exact assertions, grounding unchanged at 556), the one moved pinned expectation (Closures.stateLoop parameter total 132 -> 129 in IxCCTests/Recheck/Rc/ParamsIO.lean), and the checks run. No source change was needed to build or pass the gates; no check added, removed or moved to manual.
…d ledger pins Mechanical output of the project tools at the integrated tree (auto-hints, bench-k45, k1 Lir.Opt, k23 RC): - nix/lean-modules.json: `lake exe check-build-graph --write` (15 new production modules, IxCCTests.Src.AutoHints; 1,139 production modules). - nix/ci-coverage.json: `lake exe check-build-graph --write-coverage` (exact axiom assertions 7,262 -> 7,329: LirOpt 43 -> 88, SelectProof 441 -> 454, RcPromotion Native_Split 4 -> 10, Recheck_Rc_Proof_Replay 2 -> 5; grounding unchanged at 556; runtime failure count unchanged at 3). - docs/trusted-externs.json: `check-trusted-externs --record` merged by `tools/RecordLedgerPins.lean` (integrity pins of the 71 changed or added covered files; no other field changed).
…ers, routes, CorrectToday) Adds the lean_lib IxCCCorrect to the IxCC Lake project: the statements a compiled executable's argument has to establish, as Lean propositions over public data (the claim, the committed environment's bytes, the shipped file's bytes), and what the existing theorems establish today. - Claim: the public claim (environment root, role table, target, core digest, platform, ABI, RC policy, resources, kernel limits, checker digest, tiers), Abi.parse / Abi.render, coreOf and Claim.Binds. - Process: the loader's post-state read off a file's own ELF headers (LoadedFile, Mapped), the fetchable image (execImage), and what a trace shows (stdout, exitStatus, SysAllowed, Kept, Ended). - Tiers: kernel meaning as denotation in every model of the admitted environment (Admits, Agrees), Tier1 (functional), Tier2 (safety), Tier3 (termination and resources; Tier3Bounded, Tier3Transitional, Tier3Tight), Correct and Claim.Holds. - Routes: CertifiedRoute and CertifyingRoute (certificate existentially quantified in the hypothesis). - Today: CorrectToday, with LoadedFile.toLoaded and verifyProgram_target, and the proof that verifyExeBytes acceptance gives it (correctToday_of_verifyExeBytes, correctToday_of_accepts). The tiers and the routes are definitions; nothing proves them. The library imports IxCC, IxCCGrounding.Syntax and IxCK.Kernel.Denotes and is imported by nothing. nix/lean-modules.json is not regenerated and no fence is registered.
…hape soundness for a first fragment (IxCCCorrect.Progress, IxCCCorrect.Shape) IxCCCorrect.Progress: NeverStuck (safety strength) and NeverWrong (functional strength) of the viewed source; the targets SafetyProgress, SafetyProgressGiven and FunctionalProgress as definitions over what the checker establishes; proofs that each strength removes the Front.GoesWrong disjunct from Recheck.sound, RcReplay.sound and the plain executable theorems (functional: PlainExeOutcome with no escape; safety: no Unspecified state), on both the immortal and the plain-RC path. IxCCCorrect.Shape: a syntactic typing of SrcEval's values by shapes, its soundness at every clock for branch-free Nat arithmetic with closures, partial applications, by-name thunks, lets, definitions, equation hints and csimp entries (allOk), a decision procedure for the judgment from an untrusted certificate (synth, sigCheck), and NeverWrong at a Nat root from it (neverWrong_of_check).
…Shape1, milestone M1) A level-indexed shape judgment with irrelevant positions, enumeration shapes, the Bool-valued primitives, Nat.zero/Nat.succ, case entries and ordinary recursors at Nat and enumerations at any result shape, and several instances per constant. allOk: at every clock each of SrcEval's functions on shaped inputs times out or returns a shaped value; firing a saturated special head is by cases on HeadOk. neverWrong_of_shape and recheck_sound_of_shape discharge GoesWrong at a root whose result shape the view reads back (view_nat_ok, view_enum_ok).
A certificate of instances (constant, levels, shape) and enumeration constructor lists; synth (the shapes of a term, as a list), entryOk per kind of constant (primitive, equation hint, csimp, case entry, definition, constructor, recursor with its rule bodies), certOk, and their soundness (synth_sound, entryOk_sound, sigOk_of_cert). neverWrong_of_cert_nat and neverWrong_of_cert_enum give NeverWrong from the decision at a root that returns a Nat or a value of an enumeration.
…le, ledger scope, ixcc-grounding build)
…d ledger pins for IxCCCorrect
…h, and are budgeted on it An inline round (P3) copies a callee into its callers and a specialisation (P4) redirects calls to the copies it builds; both keep the originals. The schedule pruned only after the first shrink and at the end, so every step in between carried the dead globals: the back end's work budget counted them, the inline oracle listed them as callers (one dead caller past the walk's copy budget refused a whole round), the shrink steps shrank them, and they took places among a specialisation step's 64 decisions. Anf.Pipeline.Step.run now ends a P3 or P4 step with Pipeline.checkReachable: the node and depth budgets on everything the pass made (checkSizes), then Prune.run, then the back end's work on what is left (checkBackWork). The step's result is the pruned program. checkGlobalNodes is checkSizes followed by checkBackWork, as before. No budget constant changes. The post-P8 steps (PostStep.run) are unchanged. Certificate: the format is unchanged (ixcc/cert/1, the same JSON for every step); the meaning of a P3 and of a P4 step changes: it ends by pruning, so the steps after it name the pruned program's ids. A certificate made before this change is in general refused by the replay (and one made after it by the old replay); the replay is sound for every certificate either way. Proofs: step_correct, steps_correct, run_correct, run_correct_noSpec, run_wf, step_known, step_ctors and what follows them keep their statements. Added: checkSizes_ok, checkBackWork_ok, checkReachable_ok (the check gives its program pruned) and checkReachable_correct (a step ending with it is correct when its pass is, by Prune.Proof.run_refines); the last two are fenced. Producer: produceOnce reads whether a specialisation added a global on the pass's own output, then applies the step's check (Step.run in its two halves). Tests: KernelEval's sizes after a P3 and a P4 step (the dictionary and the generic loop are dropped; a shrink step listing the dropped global is refused); Hostile.budgets: an inline step is accepted when only the callee its round leaves behind takes the output past maxBackWork, and refused when what the roots reach is past it; the budget survey measures nodes and depth on a P3 or P4 pass's output, as the step checks them; the natural fixture's forced-off producer (a test-only switch) is now refused by the checker on Natural.fibMain with and without the inline-round retry, so its values are checked on that producer's own program (its old compile went through a run that a dead caller's refused walk had cut short); Generated's specialisation count and Perf's stage mirror follow the new steps. docs/compiler-design.md, "Middle-end budgets": the survey's maxima after the change (back-end work 78,664,794, was 154,195,240; program nodes 12,624, was 25,365; step work 17,054,513, was 28,693,905).
…tory and ledger pins
Mechanical output of the project tools after the P3/P4 pruning change:
- IxCCTests/Recheck/Artifacts/{Fib,Tak,Gcd,EvenOdd,Sfib}.lean:
`gen-recheck-artifacts`. One line each, the middle-end certificate (shorter
P2 round lists, P3 rounds without dead callers and with the pruned
program's ids). The program, the typed x86 program, the object's bytes and
the allocation, frame and order certificates are unchanged.
- IxCCTests/Corpus/Artifacts/{EvenOdd,Tuple,NatShiftr,StrictAnd}.lean:
`corpus kernel-artifacts`. One line each, the same.
- nix/ci-coverage.json: `check-build-graph --write-coverage` (exact axiom
assertions 7,329 -> 7,331: checkReachable_ok, checkReachable_correct in
IxCCTests/Fences/Anf.lean; grounding unchanged at 556; runtime failure
count unchanged at 3). nix/lean-modules.json is unchanged (no module added).
- docs/trusted-externs.json: `check-trusted-externs --record` merged by
`tools/RecordLedgerPins.lean` (integrity pins of the 12 changed covered
hand-written files, the 9 artifacts and nix/ci-coverage.json; no other
field changed).
fixtures/ixon-v4/bench-k1/steps.json is unchanged: `check-steps` reports the
9 runs equal to it.
Shape1 extended with a data shape indexed into a table of type instances (DataDecl), constructors with parameters and fields as special heads, case entries at data with the inductive's parameters, and projections out of one-constructor entries. allOk as before, with firing of a constructor and canonical forms at a data entry (ValOk.data_inv). run_ok_vals: a shaped root on shaped argument values is never stuck and never traps, with no view and no restriction of the arguments to Nat.
The certificate gains a table of data entries. synth handles projections (projRes), entryOk a constructor of a data entry (dataCtorOk) and case entries with the inductive's parameters; certOk checks every entry's constructors against the program (ctorsOk) and every projectable entry's inductive (structOk). A constructor head's parameter slots may have any shapes: F1 stores them unread.
…n the M2 decision IxCCCorrect.Shape2Produce: produce proposes a shape certificate for a checked source program by reading shapes off declared types (nothing is proved about it; certOk decides). IxCCTests.Shape.Main (lean_exe tests-shape): ingress, the front end, the producer and certOk on each root of the committed K1 benchmark closures and the phase-1 scalar corpus; it reports accept or the first refused instance. Shape2Check: synth takes the domain of a lambda applied on the spot from its argument (Exp.dom), which the matchers of match h : e need. Measured: 20 of 32 roots accepted, the 12 others refused at a polymorphic dictionary field.
…ences, grounding targets, ixcc-grounding runs tests-shape)
…d ledger pins for anf-prune and shapes M2
Uncertified modes: --opt and --bignat need --uncertified (without it a usage error naming what certificate replay does not cover). With it the run prints one line on standard error and the object's provenance note sets the top bit of its pass-policy word (Recheck.uncertifiedProvenance: --opt pass policy 0x80000002 on the replay's lowering 1 or 3; --bignat lowering 4, pass policy 0x80000001, or 0x80000002 with --opt); certified notes are unchanged. Both modes decline a program carrying a definition assertion (assert.uncertified), since neither checks it on what it writes. All or nothing: compile, check-cert and verify-exe compute everything, then write every output to a temporary file and rename them into place; a failure writes nothing and removes the files the run would have replaced (also from the re-executing parent on a refusal or a child killed by a signal). Outputs may not name the same file or an input. Exit statuses: 1 declined, 2 usage error, 3 rejected (a certificate or artifact failed a check), 4 internal error, 6 declined by a kernel limit; documented in the usage text and module comment. --embed-cert runs the executable verifier (Exe.Cert.verifyExeBytes) on the bytes it is about to write and refuses to write on failure; Exe.Cert.policyOfArtifact returns an error when the contract recheck that decides the claim's policy refuses, instead of relabelling it immortal. verify-exe --expect-target ADDR and --expect-env ADDR reject a claim naming another target or environment root; the environment root and role table are always printed. The --bignat array analyses (Rt.LowerRep liveness, taint, parameter flags) iterate to their fixpoints within bounds that suffice (|blocks|*|vars read|+2, |vars read|+1, sum of parameters+1), and checkArrayAnalyses refuses the program (rt.internal) if a bound is reached, run before lowerRepBig and compileLibrary's lowerRep. Only the analysis section of Rt/Lower.lean changes; no theorem changes. The old fixed round counts gave partial liveness on the K4 benchmarks blake3 and array-qsort. Tests: tests-pipeline --only failclosed, parser cases, auto-hints exit statuses, kernel-front binary exit statuses, tests-array analysis fixpoints. The benchmark runner passes --uncertified for its --opt and --bignat rows. Docs: README, compiler-design, x86-stream-objects.
…e's theorem at today's strength IxCC.Compile: compile : ByteArray -> Ixon.Address -> Options -> Except Err Output, a pure function of the environment's bytes, the target address and the options. Ingress with the kernel's acceptance and the unfolding hints derived inside (Src.AutoHints.discover; no sidecar), the deterministic producer, the certificate checker on the producer's certificate (Stage A, Recheck.run or RcReplay.run, the definition assertions), then the executable built from the artifact the checker made. Two stages, check and build, with the seam where the shape decision and the grounding checks are to be called marked. Options: the policy request, the executable's kind, the layout, the kernel limits. Not included: --opt, --bignat, and the seed-closure check of CompileClaim.verifyBytes. IxCC.Compile.Proof: what compile, check and build computed (compile_parts, check_sound, build_spec, ingress_parts), in terms of the checker's acceptance only. IxCCCorrect.Compile: CompiledToday, the proposition of CorrectToday's strength about the function's output, and compile_today: a successful compile names the target and the options, its claim's digest is the returned file's, and every finite trace of the returned file itself satisfies the executable theorems' outcome against a source semantics of today's kind (plain executables and state machines, all three policies). compile_admits gives Admits for any claim agreeing on root, role table and limits; binds_packaged relates the digest to Claim.Binds on a packaged file; compileWith is the function with two further refusals between its stages and meets the same predicate. No tier flag is read. tests-pure-compile: every K1 root and a sample of the corpus compiled twice in one process, again in another process under another environment, and compared byte for byte with ixcc compile (--exe, -o, --emit-cert, --embed-cert) and through verify-exe. Fences: IxCCTests/Fences/PureCompile.lean (21), IxCCCorrect/Fence.lean (+15).
…rst refusals tests-shape now reads each closure of fifteen committed families (the K1 benchmark and fixture closures, the corpus families but phase1-decline, the ownership, rc and fold inputs), runs the producer and certOk on every sidecar root, and prints a table per family and a histogram of the class of the first refused instance (why, a diagnosis for reading). The producer gets a budget of type-evaluation steps. Measured: 182 of 232 roots accepted.
…exporters, and fixtures
…n modules into lakefile
- Pin BLAKE2b-512 security constants and harden log_blowup (1..=32) decoding in stark-key. - Enforce ungrouped lookup arity and structural plan checks, scalar ROM layout, vectorized ROM lane row-weight accounting, and parity/BLAKE3 test suites in aiur. - Pin ixvm-proof verify artifacts and keys against tools/formal-aiur.keys. - Add L3 envelope proof tags (IXL3BN1/IXL3BL1) in ixon alongside reserved compile claim validation. - Port Endpoint 1 profile pinning, streaming/spilled CUDA v6-zk prover, and merged BLAKE3 differential tests in stark-shrinker. - Merge scalar ROM layout handling in stark-verifier compress_wrap and add at-floor multi-STARK fixture verification. - Port FFI L3 bundle trust-policy and shrinker Endpoint 1 hardening.
…native PLONK/Groth16 - Parameterize KZG, SHPLONK, packed SHPLONK, and Aiur compression/pairing/SCS modules across BN254 and BLS12-381, including mandatory BLS12-381 G1 endomorphism subgroup checks. - Bind canonical verifying-key digests, preprocessed indices, and fixed commitments into KZG/SHPLONK/Aiur transcripts and update the recursive verifier schema pin. - Authenticate stage export artifacts and completion markers with BLAKE3 digests, pin GL sharding copies, and enforce mixed-mode development SRS disclosures. - Upgrade the standalone L3 verifier (l3_verifier.rs) and unit fixtures to verify real BN254 and BLS12-381 proofs directly via pure-Rust native PLONK with zero Go/gnark dependencies. - Guard pure-Rust native PLONK and Groth16 Solidity exporters so development setups emit explicit DEV_INSECURE headers, contract names, and filenames while ceremony setups emit unmarked verifiers.
- Add IxL3PlonkVerifier.sol implementing the two-layer BLAKE3 L3 statement derivation and PLONK verifier codehash pinning. - Add IxL3PlonkVerifier.t.sol covering Rust/Solidity statement parity, gas bounds, positive verification, and foreign root/wrapper STARK key rejection.
…reading, and strict admission
…can, and refreshed kernel audits
…artifact and table admission
…S12-381 subgroup checks
… ConditionalShards
…ts and drop Go from rederive-release-keys
…ark verifier, and aggregation circuits
…ZG, hardened circuits)
…ont.Accept and update IxVM FFT pins
…rdened IxCK closure
johnchandlerburnham
force-pushed
the
jcb/ixvm-improvements
branch
from
November 27, 2026 15:39
1f782ea to
436b643
Compare
Member
Author
|
merged into #694 |
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.
jcb/ixvm-improvements: Lean-Compiled Aiur Compression Cutover, BLS12-381 GPU/Backend, Formal TCB Closure, CUDA Spill &BLAKE2b-512PQ SpecsBranch:
jcb/ixvm-improvements(3332d5e13, stacked cleanly onmainb37269f17[merged PR #691], 11 atomic commits)Merged
CertiFRI+multi-stark/Pin:argumentcomputer/CertiFRImain@95431109a56f021d944b39efd2df30a205861c54(merged PR #3)Summary of Changes
1. Lean-Compiled Aiur Compression Pipeline (
v6Benchmarks,--aiur-stagesCLI &gl_copiesFix)db4620f23(aiur/stark-verifier): Fixes theRomLayout::Vectorizedregression onlean-wide-v1/CompressWrap(WideBackend::prove_normalizednow usesRomLayout::Scalarmatching Lean's 1-laneromCircuit).e35a45b70(proof-compression/gnark):gl_copiesinix-aiur-stages-v1manifests (stages/gl.rs), eliminating execution-dependent circuit count drift (76vs75circuits onverifier_group_09) so a single universalwrap_layout.json/gl-key.bin/narrow-key.bin/PlonkVerifier.solcovers bothInit+StdandMathlib.kzg::{shplonk,packed_shplonk},aiur_backend/(Bn254&Bls12381,5×80-bitfq/fq_relation,11-word /6-chunkg1with mandatory prime-order subgroup checks, BLS12-381TwistType::MMiller lines,240 BPLONK anchors, fail-closed BLS12-381 guard instages/narrow.rspending BLS12-381tiling_export2), and Goix-aiur-scs-v1(aiur_plonk_*.go,swbls.Pairing.AssertIsOnG1, EIP-2537PlonkVerifier.sol).bbbe7d863(Ix/Cli/{CompressCmd,AiurStages}.lean): Wires--aiur-stages/--aiur-stages-blake3directly intoix compress <proof>with fullClaimPolicy.admitkernel admission, curve agreement checks, and sharedAiurStages.runStages.91f2a2b72: Addsstark-export --compress-gl, Protocolv63-endpoint concrete security documentation, andCertiFRIpin bump.Live Protocol$\mathbb{F}_{p^3}$ ) $2^{25}$ ):
v6(ix compress run-stagesBenchmarks (RTX PRO 6000 Blackwell 96 GiB, single universal keyset, terminal SCS26.16Mconstraints @IXAGGR2,v6)wrapglnarrowplonk(prove / verify)checks.jsonPlonkVerifier.sol)Init+Std(99,462consts)3m 28.8s(208.75s)7.35s144.42s36.00s20.98s(20.26s/1.53ms)true584 B/864 B282,852PASS (all neg controls pass)Mathlib(684,691consts)3m 45.3s(225.30s)7.29s154.72s42.17s21.12s(20.31s/1.59ms)true584 B/864 B282,852PASS (all neg controls pass)(~
4.5×–4.8×faster than PR #691's16m 48shand-written pipeline while using the Lean-compiled Aiur compression stages.)2.
spparkBLS12-381 PLONK GPU &IXPKRAW1Fast Proving-Key Codeca8c613721: ParameterizesspparkPLONK CUDA (libix_bls12_381_cuda.so) +AttachBLSsplit-MSM/FFT/numerator + SHA-256-verified pipelinedIXPKRAW1raw PK I/O:187.7 s → 4.78 sat0.63 satTestAiurScsBLS12381DevelopmentProof(2.24Mconstraints @1,184 BEIP-2537 Solidity,240 Banchors, mandatory G1 subgroup checks): CPU17.91 s→ Blackwell GPU3.65 s(4.91×).3. Formal Soundness & TCB Closure for the Aiur Compression Pipeline (
Ix/Cert/AiurCompression/*)4b5818c64+52f441765: Adds 6 kernel-checked modules (4,088LOC,89theorems) closing end-to-end soundness, statement binding, deferred KZG folding, program pins, and non-vacuity (4kernel-checked non-vacuity theorems eliminating escape-disjunct vacuity) for the Aiur compression chain (CompressWrap → CompressGL → CompressNarrowFixed → CompressFinalNarrow → PLONK).1,139/1,139declarations strictly⊆ [propext, Classical.choice, Quot.sound],6/6leancheckerPASS,0sorry/native_decide/bv_decide.4. Unified CUDA Spilled Prover Path for Endpoint 1 (
stark-shrinker)13bf064ae: Enables the unified 3-tier VRAM → Host RAM → NVMe spilled CUDA prover path incrates/stark-shrinker/src/plonkish.rsforv6andv6-zk(paired withCertiFRIjcb/v6-consolidatedmulti-stark/):176.1 GBLDEs):13m 41.4sCPU →4m 26.8s–4m 32.9sGPU (3.01×–3.08×), SHA-256 exact match.Hop-1c(2^28LDEs):11m 55.8sCPU →6m 35.1sGPU (1.81×,-57.8 GiBRSS), SHA-256 exact match.C2 v6 balanced:4m 51.1sCPU →1m 48.4sGPU (2.68×), SHA-256 exact match.C2 v6-zk balanced:14m 30.8sCPU →7m 50.2sGPU (1.85×,-38.9 GiBRSS),456,635 B, CPU verify4.55 msPASS.5. RFC 7693
BLAKE2b-512(Digest64) 128-Bit Post-Quantum Cert & Docs Upgradea42171457: Upgrades all 128-bit PQ formal claims, monolithic ROM bounds (2^512), security profiles (64 B), audits, closure manifest (04d143b20702f02e0d6ff81e0745d65a1ef5bb45a31bbdb86fb8f49eaf755e40,10,827constants),stark-keyconstants, and docs from retiredBLAKE3-XOF48(256-bit internal CV cap at85.3bBHT) to RFC 7693BLAKE2b-512(256bclassical /170.7bBHT /204.8bCNS /256bGrover), while preservingBLAKE3-256(32 B) as the production 128-bit classical instantiation.6. Single-Repo Consolidated
CertiFRIDependency Switch3f21eb132+3332d5e13: Removed all references to the standaloneargumentcomputer/multi-starkrepository (includingREADME.md:154andtools/cargo-shared-fixed.sh:33) and pinnedmulti-stark(Cargo.toml:84, 1-lineCargo.lock:2308) andcertifri/«certifri-proofs»(lakefile.lean,lake-manifest.json,Benchmarks/Compile/lake-manifest.json) to mergedargumentcomputer/CertiFRImain@95431109a56f021d944b39efd2df30a205861c54(byte-identical to31aa93a49) — zero edits required toflake.nix,flake.lock,deny.toml, or.github/**.cargo tree --locked -i multi-starkon95431109,cargo check --locked --workspace --all-targets --features parallel,lake build --wfail Ix.Cert.Security128ClosureManifest10,177/10,177jobs,SourceHygiene4,037files,CheckCiFilters5,218checks), Blackwell GPU (stark-shrinkerCUDA spilled tests), and pure-eval Nix/Crane (648derivations).Verification Summary (Independent Verification Across All 5 Tracks + Single-Repo Integration)
leanchecker: All 9Ix.Cert.*audit/closure modules (10,294jobs,--wfail),lake build ix(6,191jobs),9/9leancheckerPASS, exhaustiveLean.collectAxioms(4,838/4,838clean, strictly⊆ [propext, Classical.choice, Quot.sound]),Scripts/SourceHygiene.lean(4,037files, 0 violations),Scripts/CheckCiFilters.lean(5,218checks).cargo fmt/gofmtclean,cargo clippy --all-targets -D warnings(default,plonk,groth16,cuda,plonk,groth16) PASS,CARGO_BUILD_WARNINGS=deny, Rust unit/integration + CUDAstark-shrinkerspilled tests PASS, Go-race+ CPU + Blackwell CUDAspparkBN254/BLS12-381 tests PASS, Foundry14/14+ liveInit+Std/Mathlibv6EVM verification PASS.