Skip to content

BS-51: the scopes, references and outer shape of an LSE expression as source (#269) - #523

Draft
humuhumu33 wants to merge 2 commits into
release/v0.4from
claude/issue-269-lse-scopes-r2
Draft

humuhumu33 wants to merge 2 commits into
release/v0.4from
claude/issue-269-lse-scopes-r2

Conversation

@humuhumu33

Copy link
Copy Markdown
Contributor

Second slice of the lexicon closure of #269. bootstrap/src/LseScopes.lex.tex holds three production roots to lexicon::lse: checkScopes (Lse::check_scopes), referencedConsts (Lse::referenced_consts) and outerShape (outer_explicit_binders with whether result is a sort). Each walks a BS-25 expression with an explicit work stack, bounded by the length of its text; none admits recursion.

The case reads BS-25's encoder and seeded expressions, which this PR makes pub(super) in lexicon_lse.rs (BS-52 makes the same change).

Case (conformance_bs_51, run on WSL over 26e5e0ace). 43 named vectors, the 417 committed signatures and defined values, and seeded expressions. The evaluator agrees on 2,194 runs and rustc on 7,294; all 14 planted defects are detected.

Regenerated. 2dc791f430 applies regenerate.yml run 43316828339 (base 99235f808c, which also sets max_child_output_bytes = 268435456, the maintainer's decision): the export with LseScopes' three packages, the oracles, the verify records, and the counts of BS-05 to BS-08 and BS-11 to BS-15 (manifests 330 -> 333). Ready for the parent's batch landing; it stays a draft.

🤖 Generated with Claude Code


Supersedes #501 (rebuilt onto release/v0.4 after RB-24 moved the compiler-semantics ID; the old branch and PR are left untouched).

humuhumu33 and others added 2 commits November 13, 2026 17:51
… source (#269)

LseScopes holds three production roots to lexicon::lse: checkScopes
(Lse::check_scopes), referencedConsts (Lse::referenced_consts) and
outerShape (outer_explicit_binders with whether result is a sort), each a
walk with an explicit work stack over the expressions of BS-25, bounded by
the length of the expression's text. None admits recursion. The case reads
BS-25's encoder and seeded expressions, made visible to their siblings; 14
planted defects are each detected by their own vector.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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