Skip to content

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

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

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

Conversation

@humuhumu33

@humuhumu33 humuhumu33 commented Nov 12, 2026 •

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

humuhumu33 and others added 3 commits November 12, 2026 21:07
… 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>
…iner's decision)

The Lean extraction of the production export with BS-51 writes more than the
33,554,432 bytes max_child_output_bytes allowed (LLS8002 in the regeneration
run 43308029226); Ilya chose 268435456, as for BS-65 and RB-24. A semantic
input, so the lock moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Applied from regenerate.yml run 43316828339 (base 99235f8): the bootstrap
export with the three packages of LseScopes, the build oracles, the verify
records, and the counts of BS-05 to BS-08 and BS-11 to BS-15 the count
writer moved (manifests 330 -> 333).

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

@afflom afflom left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current product adoption credited at2dc791f4. The full PR-versus-base inventory has47 build,1,335 verification and137 export paths; these are inventory counts, not a claim that every path was newly regenerated. The three LseScopes packages are present, and sampled build/check_scopes provenance agrees on compiler semantics and source semantic identity. This supersedes the earlier missing-products statement for this standalone branch; bounded sampling is not whole-product acceptance.

The parent batch route stated in the body remains the efficient delivery path. Reuse these applicable products and retained producer43316828339 evidence when composing the batch. Latest #500a0ab and #502bc8e helper/projection changes received bounded source review without a new demonstrated semantic blocker; their missing products and necessary qualification remain with the existing owner. #502's new Quot.sound/propext declarations still require the existing exact policy/kernel acceptance. Preserve all roots and shared helper changes in the one composition, rather than launching duplicate standalone producers.

All three remain drafts. No runtime, writer, producer rerun, readiness transition or merge was performed; #269 remains open.

humuhumu33 and others added 2 commits November 13, 2026 05:39
Generated files take release's side for the regeneration to rewrite; release
carries max_child_output_bytes = 268435456, so this slice's own sentence and
entry for it give way to RB-24's. The register is 495 IDs; the lock follows the
new language-1.2 compiler-semantics ID.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The merge of release/v0.4 kept this slice's earlier regenerated records,
exports and counts where release had moved under RB-24's compiler-semantics
ID. They are release's again, and the slice is registered on top (register
495 IDs), so the regeneration writes everything from one tree.

Co-Authored-By: Claude Opus 5.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.

2 participants