Repository navigation
Upstream aux determinism, fail-closed compile, versioned .ixe, catalogs, import_ixe from TruthMines - #569
Merged
Conversation
Fixes the TruthMines aux_gen alias collision: when an over-merged Lean
mutual splits into SCCs, the spec inductive's SCC can canonically claim
'all0.rec_N' while the owner's SCC independently evaporates the same
name to the external container's generic recursor. The evaporation
decision is now global and deterministic, in BOTH pipelines (Rust and
pure Lean):
- compute_aux_perm matches BEFORE classifying misses, so positions whose
specs span SCCs are canonical where they are discovered (fixes the
'canonical aux has no source mapping' hard error on List (S x T)
shapes), with other-SCC original members compared name-strictly so
alpha-twin SCCs cannot double-claim one position.
- aux_gen's evaporated-alias pass consults a claim probe
(position_claimed_by_spec_scc): spec members -> the block-classes
registry (stt.blocks / CompileEnv.blocks, new on the Lean side) ->
rebuild that SCC's canonical expansion -> match. Canonical-elsewhere
positions register neither alias nor plan (the claimant SCC did,
before this block ran, by scheduler dependency).
- Evaporation decisions serialize per position in AuxLayout.evaporated
(Muts aux_layout tag 2; tag 1 written when no position evaporated so
no-evaporation blocks stay byte-identical, and parsed as all-false).
Surgery's head-rewrite plans fire on the stored flags alone, on both
compile and decompile sides.
- Hardening: rec-patch registration detects differing overwrites of an
already-claimed name; call-site plan installs are conflict-checked on
compile and decompile sides (both pipelines); alias-conflict errors
carry block/phase provenance.
Fixtures: Tests.Ix.Compile.Mutual.AuxOwnership {ConflictMin, TwoSpecs,
Evap, SplitSpecs, ThreeMember, TwinClaim} — previously 4 block FAILEDs,
now 0; serial/parallel byte-identical. Gates: validate-aux 0 failures;
aux-gen-diff ALL PASS (patches, plans, drivers byte-identical);
decompile-diff ALL PASS (Pass-2 plans full-parity); default lake test
green; whole-mathlib Rust compile byte-identical to the pre-fix
reference and whole-mathlib ix validate 0 failures.
The aux-gen-diff dump harness pre-seeds the block registry
(alphabetical dump order lacks the driver's dependency-ordered merges);
the AuxLayout property generator emits size-matched evaporated flags
(the canonical, roundtrip-stable form).
johnchandlerburnham
force-pushed
the
jcb/upstream-from-truthmines
branch
from
August 18, 2026 21:41
90231a7 to
65b57cb
Compare
…xeval rs_decompile_env_consts decompiles a .ixe and returns Array (Lean.Name x Lean.ConstantInfo): Name/Level/Expr are built through the toolchain's exported constructors (lean_expr_mk_* et al.) so computed fields are Lean's own; plain payloads alloc through the LeanIx* layouts (new crates/ffi/src/lean_build.rs, the reverse of lean_env.rs). An optional name list scopes output to the Rust-computed reference closure (fail-closed on absent names or broken closures). import_ixe (Ix/ImportIxe.lean): materialize a .ixe into the current elaboration env. Skip-if-present, declaration reconstruction + Kahn ordering via Ix.Catalog.planDeclarations (extracted from replayLib and shared), Lean.addDecl forceExpose (D6 punch-through). Contract: no LCNF/native code transfers, so consumer defs over materialized constants are noncomputable; theorems/types unrestricted. #ixeval (Ix/IxEval.lean): elaborate, Meta.reduce, closure-scoped Rust compile (new CompileM.rsCompilePhasesOf), Ix.Commit.evalClaim; logs the value, the claim, and its blake3 digest. Proving stays out-of-band (ix prove --claim); the IxVM run_eval arm is still a placeholder. Tests (import-ixe suite): Init-free kernel fixture exercising every constant kind; C6 field-exact parity, canonical-root fixed point under recompilation, fresh-kernel replay via the shared planner, only-closure scoping, and C8 consumer-file elaboration (import_ixe + noncomputable def + theorem + #ixeval) through the in-process frontend.
… qualified-anon equality
johnchandlerburnham
force-pushed
the
jcb/upstream-from-truthmines
branch
from
August 18, 2026 22:27
65b57cb to
0cce319
Compare
johnchandlerburnham
enabled auto-merge (squash)
August 18, 2026 23:05
arthurpaulino
approved these changes
Aug 19, 2026
johnchandlerburnham
added a commit
that referenced
this pull request
Aug 19, 2026
…ng becomes seed scoping An OLeanLevel.exported import (what module-mode header processing yields) loads every imported public theorem as a body-less AXIOM and omits non-exported _private.* constants entirely. Compiling such an env axiomizes imported proofs: kernel checks pass vacuously and every address drifts from private-level compiles of the same constants. This shipped in #569 as getFileEnv's module-header honoring and fired as the tc-pins/tc-accel-diff failures on main (v4.33 additionally hides theorem values behind ConstantInfo.value?'s new allowOpaque default — ix reads by constructor match, so only the import level matters). - getFileEnvCore: always import classic/private (full content), report the header's module bit; getFileEnv keeps its signature. - moduleVisibleNames: the exported-level NAME set, for scoping only. - Ix.EnvScope (new): collectDeps moves here from Ix.Cli.ValidateCmd (namespaced, so tests can import it next to ValidateAux's top-level mirror) + defaultConstList — classic files keep the whole-env behavior byte-identically; module-mode files seed from the visible surface + local decls and close over the full-content env, so referenced _private.* proof auxiliaries ship (named) while unreferenced foreign privates stay out (TruthMines' qualified isolation, minus the corruption). - CLI: compile/compile-lean/validate/validate-lean/ingress default paths route through defaultConstList. - ParityEnv: shared collectDeps, and the fixture compile is now fail-closed (allowPartial := false) — silent drops were how this regression hid. - Tests/Ix/MetaEnv: asserts full content (imported theorems are theorems with closed proof refs; privates present) for both header modes, and that defaultConstList scopes names without trimming content.
johnchandlerburnham
added a commit
that referenced
this pull request
Aug 19, 2026
* chore: Update Lean to v4.33.0
Toolchain and dependencies bumped by lean-update.
* ci: Use lean-update's pr setting
`pr: true` opens the update PR on any outcome and skips the updater's
validation build by default; the PR's own CI is the authority on whether
the update builds.
* chore: Adapt sources and pins to Lean v4.33.0
Carries the v4.31 adaptation work forward: Std.HashMap `find?` renames to
`get?` (including call sites added on main since), the ByteArray FFI
helpers removed on the Lean and Rust sides, and assorted API fixes.
Dependency pins move to v4.33.0: Cli and batteries by tag, LSpec to the
merge commit of its v4.33.0 bump, and Blake3 to its v4.33.0 bump commit —
the manifest entry for Blake3 still needs `lake update Blake3` once that
commit is reachable on the remote. Benchmarks/Compile moves to the v4.33.0
toolchain with mathlib and FLT at their v4.33.0 tags.
* nix: Switch to the lean4-nix fork API
Upstream lean4-nix stops at Lean v4.32.0 and builds toolchains from source
behind an overlay; the fork provides released toolchains as plain
derivations and removed the overlay API. The overlay block is replaced by
`lib.${system}.fromToolchainFile`, and the Lean sysroot for bindgen, the
Lake build inputs, the binary wrappers, and the dev shell take the
toolchain derivation directly.
The dev shell and the crane-side derivations evaluate now. The Lake
packages remain blocked on the `blake3-lean` input: it follows this flake's
lean4-nix, so Blake3.lean's own fork migration must be pushed and merged,
after which `nix flake update blake3-lean` and `lake update Blake3`
complete the move.
* chore: Move from alejandra to nixfmt
Formatting-only, plus the formatter declaration itself; nixfmt-tree wraps
nixfmt so `nix fmt .` can still take a directory.
* fix(tc): classify Prop up to universe normalization
Lean v4.33.0 fixed two kernel soundness bugs (leanprover/lean4#14613,
leanprover/lean4#14615) where a sort spelled e.g. `Sort (imax 1 0)` was
not recognized as `Prop` because the zero test was syntactic; a non-proof
field could then be projected out of a proof, and the inductive checker
could misclassify Prop-only elimination and K-like reduction.
Both ix kernels had the same syntactic test. `KUniv.isSemanticZero` /
`KUniv::is_semantic_zero` decide `u ≡ 0` through the existing Géran
normal form (zero normalizes to empty entries only, and norm-level
equality already ignores empty entries), and replace the syntactic test
at the four affected sites, in lockstep across both kernels:
- proof-irrelevance Prop classification (Tc/DefEq, kernel/def_eq)
- the struct-eta H3 Prop-major guard (Tc/Whnf, kernel/whnf)
- the A4 field-universe Prop exemption (Tc/Inductive, kernel/inductive)
- recursor-generation isProp/isLarge (AuxGen/Recursor; compile-side,
Lean only)
The IxVM kernel model retains the syntactic test and needs the same
treatment separately.
* fix: Adapt to Lean/batteries v4.33 API changes
Fallout of the v4.29 -> v4.33 bump that the skipped updater validation
never surfaced:
- batteries retired the `Batteries.Data.RBMap` umbrella module and moved
the type to `RBTree.RBMap` in `Batteries.Recycling.RBTree`; ix keeps
the recycled structure (the Verify layer proves theorems about it)
rather than migrating `NormLevel`/`CNorm` to `Std.TreeMap`.
- Two `groups`/`atoms` lookups in IxonUniv were RBMap sites caught in the
earlier `Std.HashMap` `find?` -> `get?` rename; RBMap kept `find?`.
- `do match` arms are non-dependent since v4.32 (leanprover/lean4#13305);
the ShardMap size-invariant proofs need `match (dependent := true)`.
- `Environment.addDeclCore` gained a `maxRecDepth` parameter
(leanprover/lean4#13956); pass Lean's default.
- The Canonicity alias fixtures need `@[expose]` under the module
system's cross-module compilation-type check.
* fix(ffi): decode Lean.Int by value, not as a constructor
`Lean.Int` is in the compiler's `builtinRuntimeTypes`, so at runtime it
shares `Nat`'s representation — a tagged scalar or a GMP mpz object;
`Int.ofNat` compiles to the identity `lean_nat_to_int` and no ctor cell
ever exists. The mdata `DataValue.ofInt` decode path nevertheless read
it through the `LeanIxInt` ctor layout, dereferencing a tagged scalar
(or reading mpz limbs as ctor fields) whenever an `Expr.mdata` KVMap
carried an integer.
Decode by value instead: arithmetic-shift the tagged scalar to recover
the signed payload, and for mpz objects take the sign from
`lean_int_dec_lt` and the magnitude from `lean_nat_abs`. `LeanIxInt`
remains in use for `Ix.Int`, a genuine two-ctor inductive.
Pre-existing bug surfaced by the v4.33 FFI layout audit, which found no
other divergence between the hardcoded layouts and Lean v4.33.0.
* docs: Add v4.33 bump handoff
Records the lean4lean integration steps and their verification queue, the
open kernel-semantics divergences from upstream (theorem opacity, the IxVM
syntactic zero test, the deliberately-unenforced mutual universe
uniformity, missing regression fixtures), the divergences considered and
cleared during the audit, and the non-blocking follow-ups (FFI pointer
liveness, benchmark re-baselining, thread-pool stack ordering, OpenSSL
link watch, setup-file JSON parsing).
* chore: Bump lean4lean to dev 4844eda and Blake3 to native-decide-dynlib
lean4lean 5e5bb767 -> 4844eda4. The old pin predated the v4.32.1 kernel
soundness fix (leanprover/lean4#14498): its `addOpaque` never called
`checkNoMVarNoFVar` on the opaque's value, so it accepted the axiom-free
`False` construction from #14484 -- reachable from ix via
`Benchmarks/Lean4Lean.lean:209`. The new pin also builds `--wfail` clean,
which the ix lint gate needs, since 785 linter warnings and the 16
frontier sorries were cleared upstream in PR #5.
Blake3 is pinned to the unmerged `native-decide-dynlib` branch: it builds
`blake3-rs` as a cdylib and exposes `blake3_rs_shared`, which
`ix_native_decide_dynlib` needs to supply the BLAKE3 backend to Lean's
native evaluator, and that dynlib gates every `IxTcVerify` module. Move
to Blake3 main once that branch merges.
* fix(tc): Respell `try?` to keep its `EStateM.tryCatch` reachable
v4.33 routes a `return` inside a `try` block through the early-return
transformer, which buries the plain `EStateM.tryCatch` this reduces to and
that `Ix/Tc/Verify/Whnf/Iota/ConstructorSynthesis.lean` reasons about.
Spelled with `tryCatch`/`pure` instead. Both spellings denote the same
function; `lake build Ix` confirms nothing downstream depended on the old
elaboration.
* fix(aiur): Migrate MemSizes off deprecated Lean.RBTree
v4.33 deprecates `Lean.RBTree` in favour of `Std.TreeSet`, which fails the
`--wfail` lint gate. `Bytecode.MemSizes` was the only Lean-side use; the
API is identical except `fold` -> `foldl`. The `Batteries.Recycling.RBTree`
uses in `Ix/Tc/Level.lean` and `Ix/IxonUniv.lean` are a different,
non-deprecated type and are untouched.
* fix: Clear the two remaining v4.33 lint warnings
`BRecOn`'s `rtc` rebind after `popLocals` is dead -- nothing reads it past
that point -- but the call must still run to balance the TC-side local
context, so the value is discarded rather than the call removed.
`wfTwoEqDef` stays a `def`: the fixture exists to pin the prop-valued-`def`
constant class metaprograms emit, so `linter.defProp` is silenced at that
declaration rather than obeyed.
* test(ixvm): Repin the Slice pattern-model entry to its v4.33 name
v4.33 removed `String.Slice.Pattern.Model.NoPrefixForwardPatternModel`.
`NoPrefixPatternModel` is the surviving class of the same shape -- a `Prop`
class over a single forall-typed field -- which is what the entry exists to
drive: it is the regression driver for `is_rec_field`'s per-peel whnf
(#510). The FFT cost is still the removed constant's measurement and needs
a re-baseline.
* chore(tc-verify): Retune the trust manifests to the new lean4lean pin
The manifests are exact-match, so a *shrinking* trust boundary fails them
too. Three movements at the new pin: `Lean4Lean.TrProj` no longer uses
`sorryAx`, dropping it from 15 roots' `sorryOrigins`; ~56 roots no longer
reach the `ctxAddrForLbrUncached` native axiom; and `canonicalAuxOrder`'s
native axiom is `ax_9` rather than `ax_15`, that index being a count of
`native_decide` sites in `Ix/Tc/Inductive.lean`.
Both audits pass: 1796 roots in `Completed`, 7 in `Statements`.
* fix(tc-verify): Port IxTcVerify to v4.33 and the new lean4lean surface
Nothing downstream of lean4lean compiled under the old pin, so all of this
only surfaced once the dependency built. All 438 modules build, sorry-free.
Recurring causes:
v4.33 elaborator. A pure `let` in `do` is a term-level `have`, not
`pure _ >>= _`, so `run_pure_bind`/`ReaderT.run_pure`/`pure_bind` steps and
the matching `WF.bind (WF.pure ..)` proof layers became no-ops. `do` loops
carry state as a `Prod`, not an `MProd`. Guard `if`s survive as
`if false = true then ..`.
v4.33 simp. `simpa [f] using h` closes with reducible transparency, so it
now fails where the goal and `h` differ only by delta/iota on a plain `def`
(`TcM.runRec`, `StepWFAtOn`, `BlockCatalog.Contains`, `KExpr.addr` on a
literal); `exact` unfolds at default transparency and succeeds. Relatedly,
`runRec`'s equation lemma is eta-expanded, so naming it in a simp set does
nothing against an unapplied `runRec y`. simp also stopped unfolding
semireducible definitions while matching, hence `KVLCtx` is now an `abbrev`.
Core/batteries. `Nat.imax` moved into the `Lean` namespace;
`Batteries.RBNode.cmpLT_iff` became `RBTree.RBNode.cmpLT_iff`; `Except` has
no `DecidableEq`, so `Driver/Enumeration.lean` defines one for the
`native_decide` fixtures.
lean4lean API. `VEnv` gained `structEtas`; `VDecl.block` became
`mutualDef`; `Checked` gained `kTarget`/`kTarget_eq`; `fieldsR`/`recArgsR`/
`resultIndicesR` gained an `ElimMode` argument; `instL_lamN`/`instN_lamN`
are now upstream and the local copies are deleted.
Two spec decisions where the new lean4lean models both elimination modes:
`SingletonRecursor` is generalized to `generation.recUvars`, while
`SingletonEnumeration` gains an explicit `largeElimination` field, since its
proofs are built around the fresh motive universe.
`PropositionClassifierContext` gains a `universes` field bounding the size
of universes the run support covers. This is needed because the classifier
now splits on `u.isSemanticZero` to match production, whose positive branch
routes through `Level.normalizeLevel_eval` and its `size < UInt64.size`
side condition. The structure is only ever a hypothesis, so this ADDS an
assumption the eventual instantiation must discharge; it mirrors the
convention in `DefEq/StructuralCongruence.lean` and `DefEq/SameHeadSpine.lean`.
* docs: Record v4.33 integration status and the ixvm OOM diagnosis
* Clippy
* fmt
* Fix stale Ixon addresses
* fix(meta): module-mode files compile full-content envs; module honoring becomes seed scoping
An OLeanLevel.exported import (what module-mode header processing
yields) loads every imported public theorem as a body-less AXIOM and
omits non-exported _private.* constants entirely. Compiling such an env
axiomizes imported proofs: kernel checks pass vacuously and every
address drifts from private-level compiles of the same constants. This
shipped in #569 as getFileEnv's module-header honoring and fired as the
tc-pins/tc-accel-diff failures on main (v4.33 additionally hides
theorem values behind ConstantInfo.value?'s new allowOpaque default —
ix reads by constructor match, so only the import level matters).
- getFileEnvCore: always import classic/private (full content), report
the header's module bit; getFileEnv keeps its signature.
- moduleVisibleNames: the exported-level NAME set, for scoping only.
- Ix.EnvScope (new): collectDeps moves here from Ix.Cli.ValidateCmd
(namespaced, so tests can import it next to ValidateAux's top-level
mirror) + defaultConstList — classic files keep the whole-env
behavior byte-identically; module-mode files seed from the visible
surface + local decls and close over the full-content env, so
referenced _private.* proof auxiliaries ship (named) while
unreferenced foreign privates stay out (TruthMines' qualified
isolation, minus the corruption).
- CLI: compile/compile-lean/validate/validate-lean/ingress default
paths route through defaultConstList.
- ParityEnv: shared collectDeps, and the fixture compile is now
fail-closed (allowPartial := false) — silent drops were how this
regression hid.
- Tests/Ix/MetaEnv: asserts full content (imported theorems are
theorems with closed proof refs; privates present) for both header
modes, and that defaultConstList scopes names without trimming
content.
---------
Co-authored-by: samuelburnham <[email protected]>
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.
Everything ix's first external consumer (the TruthMinesLib mega-library) needed,
in one reviewable stack: the aux-name determinism fix their catalog builds
tripped, a fail-closed compile contract, a format version on the
.ixecontainer, kernel-level qualified union environments (
ix catalog), and theconsumption story — materializing
.ixeconstants back into real Leanenvironments (
import_ixe) and evaluating against them (#ixeval).The
.ixeheader now carries a format version:Tag4(0xE, VERSION=1)(first byte
0xE1). All readers — Rust, both Lean readers — reject amismatch with a "recompile the artifact" hint. There is no
back-compat reading of old images:
.ixefiles are regeneratedartifacts, and any change to serialized bytes bumps the integer
(versions < 8 cost zero header bytes). The only byte-level change vs
the previous format is metadata-layer: the
Mutsaux-layout encodingis unified (one
Optiontag;evaporatedflags always serialized,perm.len()of them). Whole-mathlib delta: +175 bytes. The anonlayer is untouched — content addresses, and therefore the pinned
primitive addresses in all three kernels, are unchanged.
Commits (bottom → top, each gate-green)
— the TruthMines
aux_gen alias … already resolvescollision. Leanhangs nested-aux names off the original block's
all[0], so SCCssplit from one mutual mint names in a shared namespace; evaporation
is now decided globally (
position_claimed_by_spec_scc), decisionsserialize per-position in
AuxLayout.evaporated, and name/planregistration is conflict-checked instead of last-writer-wins.
Mirrored Rust + pure-Lean;
IX_LOG_AUX_NAMES=1logs claimprovenance.
.ixeformat version header + unified aux-layout encoding— the break described above, enforced in
read_env_headerand bothLean readers.
rs_compile_env— bytes,named/unique-anon counts, full ungrounded
(name, reason)list;fail-closed semantics live behind the FFI (no partial file unless
asked).
ix compileby default — nonzero exit + noartifact on any ungrounded constant;
--allow-partialopts outloudly;
--report <path>always writes a machine-readable JSONreport (schema + format versions, seed spec, counts, ungrounded
list, merkle root, bytes, timing).
compile-leanexit policy withix compile.getFileEnv— theTruthMines
module-header repro (isModule).(
Ix.Catalog) — build one environment from N libraries, eachconstant relocated to
<prefix>.<qualifier>.<name>, replayedthrough the kernel (
planDeclarations: work items + Kahn ordering,shared with
import_ixe). Env-first by design: no.ixe-levelmerging of unqualified images. Ownership is module-identity, and
@[no_expose]bodies are included unconditionally — Ix punchesthrough the Lean module system; the
.ixeis the artifact (noolean emission or consumption anywhere).
ix catalog—--prefix P [--audit] [--out f.ixe] Qual=Root[,Root…]…in dependency order.--auditrecompiles eachmember standalone and verifies
addr(P.X.N) == addr(N)for everyowned constant — qualification is metadata-only at the Ixon layer
(N+1 compiles, opt-in).
.ixeconstants as real Lean objects;import_ixe+#ixeval—rs_decompile_env_constsdecompilesin Rust and constructs genuine
Lean.ConstantInfographs throughthe toolchain's exported constructors (
lean_expr_mk_*etc.), so@[computed_field]words are Lean-computed; encode caching keyedon the decompiler's
Arcs preserves sharing; iterative encoder(Init-scale terms).
import_ixe "path" [only [names]]replays intothe current env (skip-if-present, Rust-computed closure for
only,forceExpose := true).#ixeval t= elaborate →Meta.reduce→ closure-scoped compile →Ix.Commit.evalClaim→value + claim + digest. Consumer contract: materialized
constants carry no LCNF, so consumer defs over them must be
noncomputable; theorems/types/#ixeval/commitments areunrestricted. Module-system note:
@[command_elab]chains aremetaend-to-end; FFI opaques get meta/non-meta twin declarationson one extern symbol.
--auditgate, C5 — theTruthMines
RelocFixture{A,B}port (Benchmarks/Catalog,colliding
Collision.*names, dedup/no-dedup matrix, decl-kindmatrix, cross-package refs), the real-library benchmark workspace
(
Benchmarks/CatalogReal: batteries + aesop + haskell-spec atTruthMines' pin), and the C5 suite: the full
Tests.Ix.Compile.Mutualcorpus compiled qualified vsunqualified — identical anon layers (2,560 constants through
aux-gen).
Ixon.md— versioned header + bump policy,Mutstag-6 row, full
AuxLayoutwire format.Verification
Suites (rebased on current
main): fulllake test2,670 pass /0 fail;
lake build ixclean;--ignoredcorpus gates green —validate-aux0 failures;aux-gen-diffRust and Lean driversbyte-identical (6,178,599 B), serial AND parallel;
decompile-diffall gates pass (298 plans full-parity);
catalog-fixturesgreen(audit, dedup matrix, two-run root determinism, Rust kernel check
60,902/60,902).
Materialization is exact: field-exact
ConstantInfoparity vs thepure-Lean decompiler, and compile ∘ materialize ∘ compile is a fixed
point of the canonical root.
Whole-mathlib (124 GiB box):
compilemathlib.ixe)ix validate(8-phase)compile-lean --workers 16 --rust-check)IX_COMPILE_WORKERS=1) ≡ Rust parallel ≡ Lean @8 ≡ Lean @16, allcmp-identicalvalidate-lean(5-phase, @8)Real libraries (
Benchmarks/CatalogReal, manual/network):ix catalog --auditover Batteries + Aesop + HaskellSpec — 19,584 ownedconstants, all audit-verified address-preserving; 208,583-constant
union replayed in 10.6 s; 497 MB image, root
326df3e5ea28….Known-open (pre-existing, strictly improved here)
ix check-rsrejects 25 constants of the HaskellSpec env — all.belowauxiliaries of Prop-valued mutual inductive predicates(
casesOnapp-type/universe-count mismatches;.reccanonical-aux-order vs stored-block divergence). Identical standalone
vs catalog (qualification exonerated, consistent with the audit) and
identical in
--anonmode.mainrejects a strict superset (37):this stack repairs the
Source.Binding/Source.Bindsfamily (−12)and introduces none. Mathlib doesn't exercise the shape. Repro:
Benchmarks/CatalogReal/CompileHS.lean→ix compile+ix check-rs; drill-down via the error'sIX_RECURSOR_DUMPhandle.Tracked as follow-up work, separate from this PR.
Downstream
TruthMinesLib stays on its current pin until this merges, then
re-pins: their catalog builds move to
ix catalog, their gates get--reportJSON + fail-closed exits, and their app flow getsimport_ixe/#ixeval. Final acceptance (their root reproduced viaix catalog, their gate suite green) runs downstream post-re-pin.