Elaborate live Grammar-v1 relation operands exactly - #501
Merged
Conversation
abiggerhammer
force-pushed
the
phase1-surf-008-bound-relation-elaboration
branch
from
September 1, 2026 15:06
c6dd015 to
5771f33
Compare
This was referenced Sep 1, 2026
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.
Summary
Continue Matrix
SURF-008/ ledgerPHIL-SURFACE-ELAB-001by composing the verified intrinsic-literal and live-simple-reference bridges into Grammar-v1 relation leaves, with the existing Core proposition sort checker as the competence boundary. Repair the Grammar-v1 proposition parser so relation operands are parsed as complete additive expressions before shorter proposition forms are selected.Contract
relation_propositionproduction first without consuming input, so identifier-, literal-, and parenthesis-led relation operands retain their full additive-expression structure;>/>=;checkPropositionSortschecker succeeds against the current Core state;Executable pressure
The existing
Phase1GrammarV1RelationElaborationMain.hsgate now also pressures binding-aware relation elaboration from real Grammar-v1 source: exact Nat ordering, mixed live-Nat/literal comparison, Boolean equality, UInt equality, and greater-than canonicalization. It parses projection and arithmetic relations including(n).field == nandn + 1 == mwhile confirming those richer operands still fail closed in the bounded elaborator, along with sort mismatch, Boolean ordering, unknown, qualified, specialized, called, consumed, and non-relation forms.This is the twenty-first bounded SURF-008 slice after #462, #464, #466, #468, #471, #474, #477, #478, #481, #482, #485, #486, #488, #489, #491, #492, #494, #496, #498, and #499; full Grammar-v1 elaboration correspondence remains open.