Repository navigation
BS-51: the scopes, references and outer shape of an LSE expression as source (#269) - #523
Draft
humuhumu33 wants to merge 2 commits into
Draft
humuhumu33 wants to merge 2 commits into
humuhumu33 wants to merge 2 commits into
Conversation
… 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
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.
Second slice of the lexicon closure of #269.
bootstrap/src/LseScopes.lex.texholds three production roots tolexicon::lse:checkScopes(Lse::check_scopes),referencedConsts(Lse::referenced_consts) andouterShape(outer_explicit_binderswith whetherresultis 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)inlexicon_lse.rs(BS-52 makes the same change).Case (
conformance_bs_51, run on WSL over26e5e0ace). 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.
2dc791f430applies regenerate.yml run 43316828339 (base99235f808c, which also setsmax_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).