Skip to content

BS-50: the tables and predicates of the lexicon entry schema as source (#269) - #522

Draft
humuhumu33 wants to merge 3 commits into
release/v0.4from
claude/issue-269-lexicon-schema-r2
Draft

humuhumu33 wants to merge 3 commits into
release/v0.4from
claude/issue-269-lexicon-schema-r2

Conversation

@humuhumu33

Copy link
Copy Markdown
Contributor

First slice of the lexicon closure of #269. bootstrap/src/LexiconSchema.lex.tex holds six production roots to lexicon::entry and lexicon::package:

  • tokenIndex: the category, frame, channel, associativity and feature tokens
  • shapeFacts: frame_permitted, Frame::fixed_arity and the category facts
  • surfaceSafety: surface_safety over the atoms of BS-03, with is_math_safe_scalar
  • isLeanName, tomlCommentAt, entryPath

None admits recursion; all declare allocation and overflow.

Case (conformance_bs_50, run on WSL over 26e5e0ace). 838 named vectors, the committed lexicon entries (1,064 forms, 725 Lean names, 1,007 entry IDs) and 2,738 TOML files, plus seeded inputs. The evaluator agrees on 8,317 runs and rustc on 18,500; all 24 planted defects are detected by their own vectors.

Regenerated. 25a32dba5a applies regenerate.yml run 43335516555 (base 20cc174194): the export with LexiconSchema's six packages, the oracles, the verify records, and the counts of BS-05 to BS-08 and BS-11 to BS-15 (manifests 330 -> 336). Two commits before it: max_child_output_bytes = 268435456 (the maintainer's decision), and segAt, because the kernel rejected certificate B of an if whose condition is (second st) of a pair (LLV7015 in run 43316802288; the message names the root CalculusCheck.checkProgram, but the function is LexiconSchema.leanStep). Ready for the parent's batch landing; it stays a draft.

🤖 Generated with Claude Code


Supersedes #500 (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 3 commits November 13, 2026 17:44
#269)

LexiconSchema holds six production roots to lexicon::entry and
lexicon::package: tokenIndex (the category, frame, channel, associativity
and feature tokens), shapeFacts (frame_permitted, fixed_arity and the
category facts), surfaceSafety (surface_safety over the atoms of BS-03, with
is_math_safe_scalar), isLeanName, tomlCommentAt and entryPath. None admits
recursion. The case holds them to the oracle on 838 named vectors, the
committed lexicon entries and TOML files, and seeded inputs; 24 planted
defects are each detected by their own vector.

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

Certificate B of leanStep was rejected by the kernel (LLV7015 in regeneration run
43316802288): the preservation proof of an `if` whose condition is `(second st)` of a
pair does not type-check. The condition now reads the flag through `segAt`, as
every certified condition that is a call does; the two plant sites follow it.

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