Repository navigation
Byte singletons from prim update; evaluations checked by the kernel; one LexLean pin - #179
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PPDQti4rghmmPSZGy
…one LexLean pin The three byte-index trees (Types.singletonSequence, ByteBuilder.byteSlice, Enumerate.natByteSlice: 763 register sites) become one definition, Types.byteCell = prim update of a one-byte seed at 0, reached through helpers that match only on parameters. Register 6,151 -> 5,388. The trees had forced every byte to a literal, and seven reflexivity theorems over long runs leaned on that: without it Lean's unifier passed 13 GB. Every parameterless theorem proved by reflexivity (399) is now an evaluation (LexLean#553), checked by the kernel alone; axiom policies restate what Lean observes. The authority verifies in 9 minutes at width 3. The gate, the formal legs, the offline construction and the client export all run one LexLean, pinned in lexlean.pin.json (2bf5c1e, branch claude/evaluation-proof: #441, #443, #537, #553); the SDK's 0.4.0 has no prim update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PPDQti4rghmmPSZGy
The recipe containers mount a 2 GiB /tmp; cargo install's default build directory filled it on the arm rest leg. The build now runs under .lexlean/build/<rev> and is removed once the binary is installed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PPDQti4rghmmPSZGy
…ions The review-only projection job and the offline construction's own lexlean calls ran the SDK's LexLean, which rejects the pinned lock (LLC0102). offline-validation names the pinned binary (LEXLEAN, PATH) before any lexlean call, so copied roots reuse it; the review job puts the pin on PATH. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PPDQti4rghmmPSZGy
The Justfile's PATH reads lexlean.pin.json through scripts/lexlean-pin.mjs, so the figures leg, which keeps only its declared inputs, could not evaluate it. The three files are one factory set, `just`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PPDQti4rghmmPSZGy
… .lexlean The offline setup installs into its sealed cache and then requires a clean checkout; a build directory under the checkout's .lexlean failed that (URP002). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PPDQti4rghmmPSZGy
The SDK refuses a PATH that shadows a tool it declares (PP5401 in template-check and every prismpm lock check). Recipes now run LexLean through `node scripts/lexlean-pin.mjs exec`, and the validation scripts spawn lexleanBinary(); nothing changes PATH. The offline setup builds the pin under a cargo home of its own, so the sealed cache holds its binary and no git checkout (whose symlinks it refuses, URP001). The claims harness accepts the kernel's refusal of an evaluation proof, which names the owning theorem, beside the elaborator's rfl failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PPDQti4rghmmPSZGy
Both spawned `lexlean` from PATH, which is the SDK's compiler since the pin is named rather than put on PATH; its semantics refuse the lock the pin wrote (LLC0102). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PPDQti4rghmmPSZGy
The model and xtask linked lexlean 0.4.0 from crates.io while the compiler ran the pin, so the executed controls staged a runtime without `LexLeanRuntime.update`, which the pinned compiler now emits for Uorc.Core.Types. The workspace `lexlean` is now the pin's git revision; scripts/lexlean-pin.mjs refuses a Cargo.toml whose revision differs from lexlean.pin.json. deny.toml admits that one git source. The offline acquisition seals cargo's bare repository of it and drops the derived checkout, whose symlinks the sealed inventory refuses; cargo makes it again offline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PPDQti4rghmmPSZGy
cargo deny (wildcards = "deny") counts a git dependency without a version as a wildcard. The workspace `lexlean` now names =0.4.0, the version the pinned revision carries; cargo deny check passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PPDQti4rghmmPSZGy
Conflicts: scripts/client-export.mjs keeps the pinned LexLean of lexlean.pin.json (2bf5c1e, which contains #174's 560b649); model/figures.toml is rewritten by `figures write` over the merged tree: 4,735 sites (main 5,498, minus the 763 byte-tree sites). Under the pin: lock --check, fmt --check and check --all pass; the two src modules #174 changed (Page, Performance) verify. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PPDQti4rghmmPSZGy
afflom
pushed a commit
that referenced
this pull request
Nov 16, 2026
…by domains and slots One export of the merged closure (#179 + #180 + this lane) at pin 2bf5c1e: 3 packages from 79 modules, 4 h 8 min on 4 cores. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3M7pu1nwsA7VLR4o6D
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.
Requested by Alex · project thread
What
Types.singletonSequence,ByteBuilder.byteSliceandEnumerate.natByteSlice. They are replaced by one definition,Types::byteCell (value : UInt8) : Option Bytes := prim update 0x00 0 value, and the callers reach it through helpers that match only on parameters.natByteSlicegoes Nat →wordOfNat→checked_convert→byteCell, becausechecked_convertneeds a fixed-width input.reflexivity{}is nowevaluation{}(399 theorems in 39 modules). A second script rewrote exact axiom policies to what Lean observes (31 declarations).lexlean.pin.json(rev 2bf5c1e) is the only source for which LexLean runs:scripts/lexlean-pin.mjs exec/lexleanBinary(). The pin is named explicitly and never put on PATH, because the SDK refuses a shadowed PATH (PP5401).lexleancrate (model, xtask, runtime staging) is a git dependency on the same revision.lexlean-pin.mjsrefuses aCargo.tomlwhose revision differs from the pin, anddeny.tomladmits that one git source.Verification
lexlean verify --allpassed earlier: 92 modules.figures check: 4,735 fixed-figure sites, none beyond the register.Follow-ups
Generated by Claude Code