You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--verdict: a template lambda that captures a run-time value inside a type is out of scope for BendTT, but bend2 accepts it #1483
$ bend u1.bend --check-only
ALL PROOFS CHECK
$ bend u1.bend --verdict
SOME PROOFS FAIL
Sorry - this is a mismatch between the TypeScript implementation, and the formalized BendTT kernel. ...
$ bend u1.bend -o u1.bendtt
BendTT: out of scope, so not in u1.bendtt:
- least: a template argument that depends on a run-time value
- least_nil: names least, out of scope: a template argument that depends on a run-time value
The same template applied in live code is rejected by bend2 itself, with a clear message (expected : a template applied to closed ~ arguments (lo is a variable here, not comptime: pass it at run time)). Inside a type, bend2 accepts it and only --verdict fails, with the generic mismatch message.
Expected
One of:
the BendTT translation handles a template lambda that captures a variable in a dead position (a type), or
bend2 rejects it there too, with the same message it gives in live code, so the check and --verdict agree.
Impact
bend-mathlib's sort.bend states "every element is at least lo" this way (internal_least), so all its merge-sort lemmas (merge_by_sorted, msort_by_sorted and helpers) are out of scope under --verdict. This is separate from #1182, which is the ~le_total part of the same file.
Related: #1182, #1180 (closed; a different "depends on a run-time value" case).
changed the title [-]Title: --verdict: a template lambda that captures a run-time value inside a type is out of scope for BendTT, but bend2 accepts it[/-][+]--verdict: a template lambda that captures a run-time value inside a type is out of scope for BendTT, but bend2 accepts it[/+]on Oct 11, 2026
Activity
[-]Title: --verdict: a template lambda that captures a run-time value inside a type is out of scope for BendTT, but bend2 accepts it[/-][+]--verdict: a template lambda that captures a run-time value inside a type is out of scope for BendTT, but bend2 accepts it[/+]Release bend-mathlib 0.7.3.0 (0xf8a2f05bbfb67041ce3d1eaece892a1a): so…