Repository navigation
BS-28: where the module of a source is, as language-1.2 source (#269) - #453
Closed
humuhumu33 wants to merge 2 commits into
Closed
humuhumu33 wants to merge 2 commits into
humuhumu33 wants to merge 2 commits into
Conversation
…source is A component of the front end as source (#269): 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_28, which holds SurfaceModule.locateModule to surface::module::locate on hand-built texts that reach no module and a module of each kind in each form, on every committed .lex.tex source, and on seeded texts and edits, with 14 planted defects each named by its vector. VERIFICATION.md records the first run: the evaluator agrees on 680 runs, rustc on 2,433, and every plant is detected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bootstrap/src/SurfaceModule.lex.tex: locateModule searches for the opening marker of each kind in the oracle's order, takes the body to the last closing marker of the kind found, and reads the data form's range with the white-space scanners of AxiomOutput. Lean verifies the module and the root is eligible with exactly allocation and overflow. The entrypoint, the lock, the export root, and the project README follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 #269: where the module of a source is (
BS-28,surface/module.rs:locate) as language-1.2 source, with rootlocateModuleofSurfaceModule. It is the one function ofsurface/module.rsthat reads a source without linking it, which the formatter, the identity of the embedded tree, and the SDK all call. It stacks on nothing: the branch isrelease/v0.4after #394.Design
locateModulesearches the text for the opening marker of each kind in the oracle's order (semantic, tooling, core) and stops at the first kind found. The body runs to the last closing marker of that kind, and a kind whose closing marker is missing, or found only before its opening, ends the search with none, as the oracle's?does. The data form's range is read with the white-space scanners ofAxiomOutput, which trim forward and backward exactly aschar::is_whitespacedoes. The root admits norecursion. The readers and printers of each kind's notation stay in the host.Evidence
Measured on the normative host on
release/v0.4at4318b17b8:.lex.texsources and seeded texts, evaluatorLean verifies the module on a copy of the project whose only entrypoint is
SurfaceModule, and the eligibility report gives the root exactlyallocationandoverflow. The first run found no fault of the module and one plant whose vector did not reach it; VERIFICATION.md records it.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
bootstrap/locate_modulepackage is not committed, soconformance_bs_28stops at the stack-bound step after the differentials above have agreed. The regeneration owes it, the lock, the bootstrapexpected/records, and the recount of the bootstrap count cases.🤖 Generated with Claude Code