Skip to content

BS-28: where the module of a source is, as language-1.2 source (#269) - #453

Closed
humuhumu33 wants to merge 2 commits into
release/v0.4from
claude/issue-269-surface-module
Closed

humuhumu33 wants to merge 2 commits into
release/v0.4from
claude/issue-269-surface-module

Conversation

@humuhumu33

Copy link
Copy Markdown
Contributor

Part of #269: where the module of a source is (BS-28, surface/module.rs: locate) as language-1.2 source, with root locateModule of SurfaceModule. It is the one function of surface/module.rs that 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 is release/v0.4 after #394.

Design

locateModule searches 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 of AxiomOutput, which trim forward and backward exactly as char::is_whitespace does. The root admits no recursion. The readers and printers of each kind's notation stay in the host.

Evidence

Measured on the normative host on release/v0.4 at 4318b17b8:

Leg Runs Agreed
named vectors 38, reaching no module, each kind in each form, the order of the search, and white space of one to three bytes all
committed .lex.tex sources and seeded texts, evaluator 680 all
the same up to 200,000 bytes, and 1,500 seeded texts, pinned rustc 2,433 all
planted defects, each on its own named vector 14 all detected

Lean verifies the module on a copy of the project whose only entrypoint is SurfaceModule, and the eligibility report gives the root exactly allocation and overflow. 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_module package is not committed, so conformance_bs_28 stops at the stack-bound step after the differentials above have agreed. The regeneration owes it, the lock, the bootstrap expected/ records, and the recount of the bootstrap count cases.

🤖 Generated with Claude Code

humuhumu33 and others added 2 commits November 9, 2026 23:49
…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>
@humuhumu33

Copy link
Copy Markdown
Contributor Author

Landed in #480 (merge aaf845507 on release/v0.4), which carries this change with the BS-25..34 batch, regenerated together and verified by full gate run 43135541484. The branch is kept.

@humuhumu33 humuhumu33 closed this Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant