Repository navigation
IxCC Certified Compiler - #694
Open
johnchandlerburnham wants to merge 283 commits into
Open
johnchandlerburnham wants to merge 283 commits into
johnchandlerburnham wants to merge 283 commits into
Conversation
johnchandlerburnham
force-pushed
the
jcb/ixcc
branch
from
November 24, 2026 18:19
8a05851 to
cf5b166
Compare
johnchandlerburnham
added a commit
that referenced
this pull request
Nov 29, 2026
Refresh generated trust-ledger pins and definitional closure manifests after integrating all 4 Wave-2 audit remediation and PR #694 CI branches: - IxCC/docs/trusted-externs.json: record 8 proved @[csimp] theorems in IxCK/Kernel/Ixon/Reader.lean (IX-39) and refresh SHA-256 pins for IxCK/Kernel/Ixon/Reader.lean, IxCK/Resource/Oracle.lean, and .github/workflows/ixcc.yml - Tests/Fixtures/compile-correct-closure-manifest.txt & Ix/Cert/ClosureManifest.lean: refresh digest to 8610d961... (11343 constants; Reader.lean match/sparseCasesOn renumbering under IX-39) - Tests/Fixtures/statement-closure-manifest.txt & Ix/Cert/StatementClosureManifest.lean: refresh digest to d7cbbfc0... (16345 constants; IX-5 AdmissibleInnerKey, IX-13 zero-PoW witness, IX-51 complete 628/628 audit roots) - Tests/Fixtures/security-128-closure-manifest.txt & Ix/Cert/Security128ClosureManifest.lean: refresh digest to c9d8a8af... (12226 constants; IX-13 zero-PoW witness) - Tests/Fixtures/aiur-compression-closure-manifest.txt & Ix/Cert/AiurCompressionClosureManifest.lean: refresh digest to c2ce7bfd... (9211 constants; IX-8 CompressFinalNarrow bn_key pin & IX-13 zero-PoW) - check-bytes and circuit-composed closure manifests verified unchanged.
johnchandlerburnham
force-pushed
the
jcb/ixcc
branch
from
November 30, 2026 15:56
fea1223 to
eb5b670
Compare
…_KEYS/IX_ROOT_LAYOUT overrides
…onfigurable maxBackWork and ingress budgets
…ing passes, and v6 GroupingSearch
… 5 standalone leanchecker audits
…IO, precompile packages, and --preset ixvm CLI
…er circuit, fixtures, soundness, and audit pins
… pruning, AssertEq diagnostics, streaming & ixcc_prove --ixvm-io
…re, self-contained Ch8 lazy-assumed, release_host_memory, and fft-compare
… clean docstring tags, and document compiled IxVM gaps
…laimExt/Audit to upstream, and drop silent --skip-shape-check from ixvm preset
…ngle-pass iota/beta/nat, and pre-whnf defeq shortcuts
…_eq_right in IxonWire
…ng, strict IxonMeta, IxCC hygiene roots, and Ixon §7 spec
… 6-field Lam.Known
…urCompression.Consistency
…gular in equal-hint unfold arm
…port honest multi-pass timing, and support multi-pair FinalTrieLocator
…e of Classical.choice
…dlines, CD3 front alignment, and 23-root manifest (S5-4a)
…uild decidable gate, and K-lane row weights (S5-4b)
…xpand ClosureManifest to 31 roots
… and cover Fixtures/K1.lean in ixcc-aiur filter
…4957688fd7f23877cbe961d111) for s1_recommit profiling
…, and calibrated tail retention
… cap, bump multi-stark (MADV_HUGEPAGE)
…t 4 GiB reserve, bump multi-stark
…4 GiB Init+Std / 87.3 GiB Mathlib VRAM headroom
… constructive linearNorm in Exclusions.lean
…xclCtx closure manifests
…, B1c-7 blindness, and non-vacuous VSet no-False (S6-V10/V11)
…nd H3 gate, and H10 manifest (S6)
…d: P6-2 GPU quotient + CI fmt/v6-zk fix)
…ion keys for ExclCtx compaction
…evel anti-downgrade, and shipped proofs (S7-5)
…ve non-vacuous alias no-False corollary (S7-1)
…esis discharge, and C1 front table alignment (S7-2)
…ing BLAKE3 and constructive bridges (S7-3)
…racts to traces and compression headline (S7-4)
…s/modules, and bump CertiFRI to 7712efe9ea
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.
Certified IxCK + IxCC Native & Formal Aiur Compiler Stack + Zero-Go Compiled Compression (
jcb/ixcc)Branch:
jcb/ixcc(da2704bdc, 253 commits aboveorigin/main5cb576130)This PR converges seven interconnected milestones into one verified, zero-TCB-growth, 0% Go compiler, kernel, and multi-endpoint compression stack:
IxCK) — self-contained, Mathlib-free certified Lean/Ix kernel package (IxCK/, 749 files,leanchecker-verified across 12 kernel + set-theory model roots) withIxCCkernel-bridge model (check-kernel-bridge, 32 exact axiom fences).IxCC, through Pass 6) — end-to-end verified compiler from Ixon v3 closures to x86-64 ELF (IxCC/, 1,199 production modules, 7,934 exact axiom fences, zero foreign/C trust surface):IxCCCorrect.CompileCertified, production source-level shape progressIxCC.Shape.Progress&IxCC.Shape.Src.*),IxCCGrounding,IxCCCorrect.{SpineIota,CanonLaw,UniqueEnum}, 590 grounding fences),Cfg.Rc.Raw,Bridge.ScalarRaw,VS0fixture),Lam.Prim.arr,CtorKey.arr,ArrOk, boxed/packed alloc/copy/size/get/set/push/pop/extract with refusal theorems),Toom-3, Möller–Granlund 2-by-1 division, Lehmer GCD) and exactNatlibrary proofs (IxCC.Nat.Rep,NatLib.Spec).IxCCAiur) — compiles pure annotated Lean 4 source directly to performant Formal Aiur circuits across Goldilocks, BN254Fr, and BLS12-381Frwith zero per-circuit refinement proofs and zero TCB expansion:TypedRep,TypedLower,TypedGadgets,TypedWorld(including full 30-function.u32/.u64body checkcheckU32Functions+u32Contracts_of_check),TypedBackward,TypedClaim,CompiledCert.{Cert,TypedCert}, plusLower.wDivmod/Gadgets.wDivmod_sound(full 64-bit hinted div/mod checked on words).IxCCAiur.InlineFuse+InlineFuseProof(sharing-aware inlining, let-flattening, peephole, dead-function pruning),IxCCAiur.PartialEval+PartialEvalProof(heap-dereferencing partial evaluator collapsing static VK DAGs into straight-line arithmetic with 0 ROM rows),IxCCAiur.FieldLower+FieldLowerProof(3-field native ambientFieldlowering over Goldilocks, BN254Fr, and BLS12-381Frwith automatic downgrade toTableTier.none= 0 fixed rows),Aiur.Optimized.{DegreeBudget,Split,Vectorize}(certifiedC7bquotient-aware degree budgeting,C3fast/cold chip splitting, andK-lane horizontal chip vectorization),Aiur.Tiling.VectorRom(certifiedC6K-lane vectorized ROM packing inwide_export).open scoped Ix.Circuitfrontend & Tier-2guesspipeline:@[circuit_inline],@[circuit_noinline],@[circuit_group],@[circuit_unroll],@[circuit_lanes],@[circuit_budget],@[circuit_range_table],@[circuit_static],@[circuit_repr(...)],@[circuit_intrinsic "..."],@[circuit_split_fastpath]) andchecked def ... complete byinIx/Compile/CircuitContract/+ix compile --circuit-schedule-out --circuit-guesses-out. Zero Ixon content-address mutation (verified bit-for-bit across every example and compression verifier).guess f c θ [θc]lowering (IxCC.Src.{EvalG,Table.Guess,Table.Validate},IxCCAiur.{GuessLower,GuessLowerProof}) with universal zero-hardcoding host advice packages across all 3 fields (ixcc-aiur --enable-guesses --advice-out,ixcc_prove --advice,single_circuit_prove --advice,--pin PIN.json,ixcc.divmod64wrong-advice controls).IxCCAiur.Blake3Spec: standalone Tier-1Aiur.Library.Blake3world specification (24EvalFncontracts, zeroIxVMimports).IxCCAiur.WitnessIO: plainStarkIO(stark.io.*) andKzgIO(kzg.io.*) witness-stream ingress modules + certified existential NP backward soundness (witness_stream_exists,witness_wrapper_sound,witness_wrapper_assertOk_sound) independent of the untrusted host oracle.IxCCAiur.CompressionIntrinsics: opt-ingoldilocks.*(native or emulated with proved BN254 & BLS12-381 no-wrap boundsbls12381_emulated_{product,reduction}_bound),blake3.*,stark.io.*/kzg.io.*, custom--entry-name/--assert-okABI wrapper (aliasEntry_sound), and deduplicated 3-field linker (linkedProgramWith).num_circuits == 1) Goldilocks STARK:Aiur.Tiling.SingleCircuit+Aiur.Tiling.VectorRom(--single-circuit --pow2-rows [--vector-rom K]inwide_exportandtiling_export2),crates/aiur/examples/single_circuit_prove.rs(--advice,--tamper-hint,--pin,--stark-io,VectorRomC6,--stark-128,--controls), plus optional"entry"/"advice"support incompress_wrap.rsandstages/wrap.rs.Aiur&MultiStark(--goldilocks,--bn254,--bls12-381) + 784× Fasterplonk_export:Aiur.Library.Field.BLS12381.Prime, all 28Aiur/Plonk/*.leanfiles generalized over primep,Aiur.Plonk.BLS12381,Aiur.Tiling.BLS12381, and 3-fieldtiling_export2/wide_export/plonk_export/plonk_check_stage/plonk_beta_test.ByteArrayrefcount copy inMultiStark/Examples/PlonkExport.lean, speeding upplonk_exporthints generation 685–784× (BN254441 s → 0.56 s, BLS12-381309 s → 0.45 s) with bit-for-bit identical.ixscsoutput.IxCCAiur/Examples/&IxCCAiur/Compression/) — zeroMultiStark/Aiur/IxCC/Mathlibimports:Examples/{Blake3Block,MmcsPure,KzgAlgebraPure,CurveOpsPure,FriPure,MultiStarkV6Pure}.lean,Compression/{StarkWire,CompressWrapPure}.lean: full-modulus 64-bit Goldilocks (v6CompressWrap/CompressGLverifier (61#guards, 380/380 identical Ixon addresses),Compression/{KzgWire,KzgPackedPure}.lean: single-source BN254 & BLS12-381 production packed-SHPLONK KZG verifier (CompressNarrowFixed::step_v1,CompressFinalNarrow::verify_accumulator_v1, 18/22 affine-u80 words; 104#guards, 270/270 identical Ixon addresses),Compression/PairingPure.lean: single-source BN254 & BLS12-381 in-circuit Optimal Ate pairing check (Fp2/Fp6/Fp12, Miller loop matchingark-bn254 0.5.0&ark-bls12-381 0.5.0bit-for-bit across all 12Fp12coordinates, zero-inversion residue-witnessed final exponentiation#guards, 2,313/2,313 identical Ixon addresses; self-containedoutputs = 0ix-aiur-scs-v1export!).tools/gnark/**(75 files, all 61.gofiles),crates/proof-compression/build/gnark.rs,plonk/gnark.rs,pipeline/gnark.rs,bindgen, CGo, and thegnark-testCI job (0.gofiles remain anywhere in the repo).crates/proof-compression/src/aiur_backend/plonk/native/+examples/native_plonk_prove.rs): loadsix-aiur-scs-v1directly in pure Rust, solves hint waves, runs full KZG+BSB22 PLONK proving/verification over both BN254 and BLS12-381, dispatches MSM & FFT directly to Ix'slibix_bn254_cuda.soandlibix_bls12_381_cuda.sounder#[cfg(feature = "cuda")](unlocking GPU PLONK on both curves without Go/CGo), and emits drop-in Solidity verifiers (PlonkVerifier.solfor BN254 & Prague EIP-2537Bls12381PlonkVerifier.solfor BLS12-381).stages/terminal.rs,aiur_narrow_terminal_prove.rs, andplonk.rs.IxCCx86-64 ELF:crates/proof-compression/src/aiur_backend/groth16/+examples/groth16_fermat_demo.rs): deterministic DEV/UNSAFE setup (no ceremony), exact 256-byte uncompressed EVM proof (256 < 262-byte 1670 Diophantus Fermat Margin Note!) / 128-byte compressed, live Foundry EVM verified behindcontracts/groth16/src/IxGroth16Verifier.solat195,418raw /199,785facade gas (1,269runtime bytes, 9/9 EVM negative controls rejected).IxCCx86-64 Native Backend (IxCCAiur/Compression/Groth16X86.lean): 1,898-line pure Lean 4 BN254 Groth16 dev setup + prover + verifier (0 imports beyondInit, certified9 × 29-bitCIOS Montgomery arithmetic, fullFp2/Fp6/Fp12,G1/G2with exact prime-orderG2subgroup checkark-bn254 0.5.0bit-for-bit, Devegili–Scott final exponentiation; 34#guards).ixcc compile --rc off --region 1073741824 --exe [--machine] --embed-cert(ixcc verify-exeVERIFIED, zero Rust/Go/C/libc — static stripped x86-64 ELF,207 KBplain /219 KB--machinecore ELF) and live cross-verifies the exact Rust + EVM199,785-gas 256-byte Fermat proof in40–50 ms!PairingPure,plonk/native/,groth16/, andGroth16X86.Live Proving, EVM & Certified
IxCCx86-64 Benchmark Highlights(Measured on 64-core Linux CPU host; GPU benchmarks comparing full compiled vs. hand-written L3 stages + native CUDA PLONK on BN254 & BLS12-381 are pending GPU host availability.)
Pure-Lean Circuits, Single-Circuit Endpoint 1 &
VectorRomBlake3Block(0-annot pure Lean) vs. hand-writtenAiur.Library.Blake3Blake3BlockEndpoint 1 Single-Circuit (tiling_export2 --single-circuit --pow2-rows)KzgAlgebraPure.entryFullFrame(--typed --inline-fuse --partial-eval --field-lower)259 / 256 / 0)3.5×faster)--pinOKMultiStarkV6Pure.entryVerifyV6Compact(--typed --inline-fuse --enable-guesses --degree-budget)3385 / 256 / 22)--pinOKMultiStarkV6Pure.entryVerifyV6Blake3(7-round keyedUInt32BLAKE3 + 4 pillars + 3 guesses)2699 / 66816 / 22)MultiStarkV6Pure.entryVerifyV6CompactEndpoint 1 Single-Circuit (tiling_export2 --goldilocks --single-circuit --pow2-rows→single_circuit_prove --stark-128 --controls)4constr,25lkp)--advice:572.8 KB/4.28 ms)--controls, 3/3 hintsMultiStarkV6PureVectorRom(C6) (wide_export --single-circuit --vector-rom 4vs.K=1)-48.4%cells--controlsOKCompressWrapPure.entryCompressWrapSmoke(--entry-name CompressWrap::verify_root --assert-ok --field-lower, full 64-bit> 2^56Goldilocks args)output: [])--pinOKZero-Go Live End-to-End PLONK-SCS & Solidity EVM (
PairingPure+plonk::native+ Foundry Solc0.8.37)2^k)plonk_exportHintsPairingPureBN254 (outputs = 0, 30 publics,ixcc-aiur→plonk_export→native_plonk_prove→ Foundry EVM)2^20)784×↑)1.84 s/7.96 s/2.57 ms292,118PairingPureBLS12-381 (outputs = 0, 34 publics,ixcc-aiur→plonk_export→native_plonk_prove→ Prague EVM)2^20)685×↑)5.88 s/11.94 s/5.16 ms374,413(EIP-2537)OS01-plain(37kgates) BN254 & BLS12-38137,000(2^16)653 ms/ BLS1.11 sprove270,205/349,563KzgPackedPure.entryAlgebraStatic*(--partial-eval --field-lower)7.9×↓), 0 ROM,TableTier.nonetiling_export2 --bls12-381:512×32in659 ms256-Byte BN254 Groth16 Fermat Margin Note Demo (0% Go; Rust/EVM + Certified
IxCCStatic x86-64 ELF)groth16_fermat_demo)crates/proof-compression/src/aiur_backend/groth16/+IxGroth16Verifier.sol1.37–1.91 ms/2.17 ms195,418raw /199,785facade (1,269 Bruntime)IxCCx86-64 ELF (Groth16X86.lean, 0% Rust/Go/C/libc)ixcc compile --rc off --region 1073741824 --exe [--machine] --embed-cert(ixcc verify-exeVERIFIED)210–220 msfull setup+prove+verify (mode 0);40–50 msverify (mode 5)207 KBplain /219 KB--machinecore static ELFmode 5→1), 5/5 tampered modes rejected (0)Subsystem Footprint (
origin/main..da2704bdc— 4,421 files, +1,381,676 / -44,520)IxCC/IxCK/IxCCAiur/Blake3Spec,WitnessIO,CompressionIntrinsics,Examples/,Compression/{CompressWrapPure,KzgPackedPure,PairingPure,Groth16X86},README.mdAiur/Plonk+BLS12381,Tiling.{SingleCircuit,BLS12381,VectorRom},Optimized.{DegreeBudget,Split,Vectorize}MultiStark/--single-circuit/--vector-romsupport +plonk_exporthints (784×speedup)Ix/Ix.Compile.CircuitContract.{Basic,Attr,Emit},ix compilesidecar flags,IxCKintegrationIxVM/&IxVMRefinement/IxC → IxCKand#697IxVM.Obs/Aiur.Generic.Refinementconvergencecrates/crates/aiur(ixcc.divmod64, universal advice,ixcc_prove,single_circuit_prove),crates/stark-verifier,crates/proof-compression(bls12_381.rs, zero-Goplonk/native/,groth16/, removedbuild/gnark.rs,plonk/gnark.rs,pipeline/gnark.rs,bindgen)tools/tools/gnark/**(0.gofiles remaining repository-wide)Tests/,docs/,.github/, rootixcc-aiurjob +leanchecker, removedgnark-test,Tests/Cli.lean,docs/ixcc-aiur-compiler.md,formal-aiur-modules.md,aiur-compression-architecture.md,README.mdTrust Surface, Hygiene & Verification Matrix
.gofiles remain anywhere in the repository; zero Go, CGo, orbindgenbuild dependencies.Ix,IxCK, andIxCCremain 100% Mathlib-free.sorry,admit,axiom,native_decide,bv_decide,partial,unsafe,@[extern], or@[implemented_by]across all proof and compiler paths.IxCCAiurtheorems pinned inIxCCAiur/Audit.leandepend strictly on[propext, Classical.choice, Quot.sound]([propext, Quot.sound]onIxCCcore).IxCClink audit (check-trusted-externs --linked): 21 executables, 6,483,323 symbols, 0 foreign/native Blake3 symbols.GO_COUNT=0across the entire repository — PASSScripts/SourceHygiene.lean(4,062 files + explicit check onIxCCAiur/README.md,PairingPure.lean,Groth16X86.lean) &Scripts/CheckCiFilters.lean(4 manifests, 5,215 checks) — PASSlake -d IxCCAiur build IxCCAiur ixcc-aiur+lake -d IxCCAiur env leanchecker IxCCAiur.Audit— PASSlake build --wfail IxVM.Obs IxVMRefinement IxVM.CompiledCert IxVMRefinement.Endpoint.Companions+ 22/22leancheckerroots — PASS (0 warnings)lake run check-kernel --with-model(12/12leanchecker) &lake run check-kernel-bridge(32 fences) — PASSlake -d IxCC build IxCC IxCCTests.Proofs IxCCTests.Src.GuessWiring IxCCGrounding IxCCCorrect+check-build-graph(1,199 modules, 7,934 fences) +check-trusted-externs+check-tools-tests+ 16IxCCtest binaries — PASSlake build --wfail aiur/Aiur ...+check-formal-modules --wfail(10,496 jobs) +axiom_sweep Aiur(43,299 decls) +leanchecker Aiur.Audit— PASSlake build --wfail multiStark/MultiStark ...(7,105 jobs, 0 warnings) +lake lint -- --host-only --wfail(6,836 modules, 0 warnings) + RootIxTests(59/59 + 8/8) — PASScargo fmt --all -- --check,cargo clippy --locked --workspace --all-targets -- -D warnings,cargo clippy --locked -p ix-proof-compression --features plonk,groth16 --all-targets -- -D warnings— PASScargo test --release --locked -p ix-proof-compression(363 passed),cargo test --release --locked -p ix-ffi --features parallel,plonk,groth16(6 passed),cargo test --release --locked -p aiur --features parallel(201 passed),cargo nextest -p ix-proof-compression --features plonk,groth16 --lib(245/245 passed),cargo test -p stark-verifier— PASSforge test --root contracts/plonk -vv(14/14 passed:292,245BN254 /371,710BLS12-381 EIP-2537 gas) &forge test --root contracts/groth16 -vv(12/12 passed:321,023BN254 KZG wrapper /205,650&325,570BLS12-381 EIP-2537 gas) — PASSPairingPure(BN254 & BLS12-381) →plonk_export→native_plonk_prove→ Foundry EVM;groth16_fermat_demo→IxGroth16Verifier.solFoundry EVM (199,785gas);Groth16X86.lean→ixcc compile --exe [--machine] --embed-cert→ixcc verify-exe→ live cross-verification of Rust/EVM 256-byte Fermat proof (40–50 ms) — PASSDeferred Follow-Up Work (Explicitly Out of Scope for This PR)
plonk::nativeCUDA acceleration (libix_bn254_cuda.so&libix_bls12_381_cuda.so) once a GPU host is provisioned.IxVMdirectly from annotatedIxCKsource viaIxCCAiurto replace hand-writtenIxVM+ 721k LOCIxVMRefinement.open scoped Ix.Circuit) to native.ixfrontend files onceix-frontendlands (address-keyed sidecars keep this 100% forward-compatible).jcb/ixcc-2tests-arraytestBigNatLimbArray(Fir.Rep.checkWithArraysvs. Stage-2 BigNat, skipped in Nixixcc.yml).groth16Fermat Margin Note demo intentionally uses deterministic DEV/UNSAFE setup only).