Skip to content

Self-hosting: the front end after the primitive scanner (grammar, surface, lexicon, link, elaboration) as language-1.2 source #269

Open

Description

@humuhumu33

Child of #92 (stage 8 of #27). Part of v0.4's objective: LexLean compiles itself.

Scope

BS-03 made the primitive scanner (§12.2) language-1.2 source. The rest of the front end is still Rust: lexicon packages and their closure (lexicon/), the grammar (grammar/), the surface notation (surface/), linking (link.rs, source_package.rs), the typed IR and its canonical serialization (ir/, the largest module after production/), and elaboration (elaborate/). This issue authors them as language-1.2 .lex.tex in bootstrap/, certified as production roots.

Done when

  • lock, check and build of every committed project run through the certified front end and agree with the Rust oracle byte for byte (diagnostics, IR, identities).

Each part follows the standing R3 discipline of #15: register rows in model/ids.toml and SPEC §31, one scenario and one conformance_<id> test per row, positive and negative fixtures, a planted defect recorded in VERIFICATION.md, and the Rust module kept as the stage-0 oracle (differential to the byte) until the fixed point of #92 removes it.


Generated by Claude Code

Activity

  1. added this to the LexLean v0.4 milestone on Oct 22, 2026
  2. added
    enhancementNew feature or request
    self-hostingLexLean compiling itself: compiler in .lex.tex, certified, built by its own pipeline
    on Oct 22, 2026
  3. changed the title [-][v0.4] Self-hosting: the front end after the primitive scanner (grammar, surface, lexicon, link, elaboration) as language-1.2 source[/-] [+]Self-hosting: the front end after the primitive scanner (grammar, surface, lexicon, link, elaboration) as language-1.2 source[/+] on Oct 22, 2026
  4. removed this from the LexLean v0.4 milestone on Oct 22, 2026
  5. added 3 commits that reference this issue on Nov 3, 2026
  6. afflom commented on Nov 13, 2026

    @afflom
    Member

    Landing order for the open BS drafts (checked 2026-11-13 19:40Z; no duplicates among them, nothing merged or closed):


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestself-hostingLexLean compiling itself: compiler in .lex.tex, certified, built by its own pipeline

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions