Skip to content

RFM: comparison operands are never judged in v2 infer (below floor, measured) - #13311

Merged
gunbai-bot[bot] merged 2 commits into
mainfrom
session/stern-swift-290-cmp-rfm
Oct 6, 2026
Merged

gunbai-bot[bot] merged 2 commits into
mainfrom
session/stern-swift-290-cmp-rfm

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Files one recurring-failure-mode row, comparison_operands_never_judged_in_v2_infer. No code changes.

The class. In v2 infer, ==, !=, <, <=, >, >= never judge their operands against each other.

  • infer_binary_algebra_field answers a field only for AlgebraPrimitive operators. For EqualityComparison and OrderingComparison it answers Absent.
  • Such a Transform therefore stays GroundingNotDerived, and infer_unify_transform_operand_types is never reached.

Second population, same class (calm-boar-904). - canonicalizes to AlgebraInverseCompose, which infer_binary_algebra_field also answers Absent for, so subtraction operands are never judged either. Specimen: v2.std.node's count(children) - positional_child_count(children), a Nat minus an Int, passes silently. The trigger covers both populations together.

Measured. On session/stern-swift-290-literal, fn k(n: Nat) -> Bool { n == (0 + 1) } (std.nat Nat compared with an Int) is accepted. That is below the floor (DESIGN §4b).

Rung found at: below floor. Ceiling: structurally guaranteed. Next trigger: an infer arm that judges comparison operands through the equality/ordering structure, via the same inhabitance rows #13060's operator arm reads. Owner: the #13060 operator route (per calm-boar-904).

Found while measuring the reach of the XL-2 literal-elaboration change. Filed as its own PR, per lively-crane-656.

🤖 Generated with Claude Code

…easured)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…perator population; node.dag count - positional_child_count specimen

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@gunbai-bot
gunbai-bot Bot added this pull request to the merge queue Oct 5, 2026
Merged via the queue into main with commit ed0e5af Oct 6, 2026
4 checks passed
@gunbai-bot
gunbai-bot Bot deleted the session/stern-swift-290-cmp-rfm branch October 6, 2026 11:26
gunbai-bot Bot pushed a commit that referenced this pull request Oct 6, 2026
…ipts alongside the wcag-half receipt (#13414, via main) and #13311's operand-judgement boundary in the same RFM row
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.

0 participants