Skip to content

prototype #1632.5: show both sides of a false {==} - #1735

Closed
adeerkhan wants to merge 6 commits into
bendlang:mainfrom
adeerkhan:proto/1632-5-rfl-sides
Closed

adeerkhan wants to merge 6 commits into
bendlang:mainfrom
adeerkhan:proto/1632-5-rfl-sides

Conversation

@adeerkhan

@adeerkhan adeerkhan commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

This is a prototype for proposal 5 of #1632 (a false {==}), in reply to the request to prototype 1–7. It is opened against bendlang/bend for review: bend2/bend.ts is human-written per AGENTS.md, so it is not a merge request as it stands. The branch is proto/1632-5-rfl-sides on the fork, cdaf1bf5, rebased on main; the repo gate is green.
Changed check-rfl (bend.ts:3668). The two sides are printed as written, then their normal forms. The normal form is the weak head normal form when that is short (it is one step) and the strong one otherwise, so a big side does not print thousands of constructors: build(3000n) reads build(3000n) => LC{build(2999n)}. Both columns print the way the rest of the error prints, markers included. I used ASCII => where your sketch had ⟶; happy to switch.

Your repro:

SOME PROOFS FAIL
Error:
- message  : {==} needs both sides to compute to the same value
Location: bad
6 | def bad() -> {add3(4) == 8 : U32}:
7>|   {==}
  |   ^^^^
8 | 
- left     : add3(4)  =>  7
- right    : 8  =>  8

21 existing tests with a false {==} regenerate.

@Lorenzobattistela

Copy link
Copy Markdown
Collaborator

Closed in favor of #2002

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.

3 participants