Repository navigation
BS-31: the canonical text of the lock file as source (LockText) - #458
Closed
humuhumu33 wants to merge 3 commits into
Closed
humuhumu33 wants to merge 3 commits into
humuhumu33 wants to merge 3 commits into
Conversation
The first slice of the project manager as source (#274), on release/v0.4: the row (register 478 -> 479, the §31 table, the RP-07 check and its case), the scenario, the §17.23 prose, the CHANGELOG entry, the README's claim, the CI part, and the case, conformance_bs_31, which holds LockText.tomlString and canonicalLock to config::toml_string and Lock::canonical_bytes on hand-built texts and locks, on every committed lexlean.lock that parses and the texts in them, and on seeded ones, with 18 planted defects each named by its vector. VERIFICATION.md records the first run: the evaluator agrees on 307 and 542 runs, rustc on 2,449, and every plant is detected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bootstrap/src/LockText.lex.tex: tomlString writes the TOML basic string of a text; canonicalLock writes a lock as lexlean lock does, with its rows sorted by the standard library's stable merge sort. Lean verifies the module and each root is eligible with exactly allocation and overflow. The entrypoint, the lock, the two export roots, and the project README follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rint lane #450 maps every BDD part to one Intel lane; bootstrap-lock-text joins the print lane with the other light bootstrap parts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 10, 2026
Contributor
Author
|
Landed in #480 (merge |
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.
Part of #274: the canonical text of the lock file (
BS-31,Lock::canonical_bytesandconfig::toml_string) as language-1.2 source, with rootstomlStringandcanonicalLockofLockText. It is the first slice of the project manager.Draft, on
release/v0.4. It imports only the standard library, so it stacks on no other slice.Design
canonicalLockwrites a lock exactly aslexlean lockdoes:lexlean/lock/2for language 1.2 and/1otherwise, and the pinned Lean toolchain;Digests are lower-case hex. The rows are sorted with the stable merge sort of the standard library's
Order. A package's key is its identifier and its version, each with its NUL bytes escaped and a two-byte end, so the byte order of the key is the order of the pair.tomlStringescapes the quote and the backslash with a backslash. It writes each control below 0x20, and 0x7F, as\uwith four upper-case hex digits. Each root admits exactlyallocationandoverflow, and neither admitsrecursion. Reading a lock, resolving its packages, and hashing its files stay in the host.The oracle is the existing public code of
lock.rsandconfig.rs. No Rust outside the case changes.Evidence
Measured on the normative host over
release/v0.4at4318b17b8:Lean verifies the module. The eligibility report gives each root exactly
allocationandoverflow. Each of the 328 committed locks that parse is already its own canonical text.Gates at the head
cargo fmt --check,validate-model(479 IDs),validate-spec-links(479 rows), clippy on the workspace with-D warnings, and the 17 RP cases pass.CI is expected red until the regeneration
The two packages are not committed yet, so
conformance_bs_31stops at the stack-bound step after the differentials above have agreed. The landing regeneration will commit them.🤖 Generated with Claude Code