Skip to content

toolchain: move the pinned compiler to bend 2.0.38 - #26

Merged
MuhDur merged 2 commits into
bendlib:mainfrom
nohzafk:toolchain-2.0.38
Oct 21, 2026
Merged

MuhDur merged 2 commits into
bendlib:mainfrom
nohzafk:toolchain-2.0.38

Conversation

@nohzafk

@nohzafk nohzafk commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Bend 2.0.38 (released 2026-10-20) breaks bend-mathlib 0.7.3.0 in two places (PLAN F39):

  • String.order is defined directly, not through String.cmp. internal_order_cmp now uses the bridge proof already prepared in research/candidates/base-next-bridges.bend.
  • List.all / any / find / contains short-circuit through a thunk (List.all.if(u => List.all(t), f(h)), List.any.if, List.find.if), and List.find.put is removed. The four cons bridges in list.bend are now proved by cases on the head's test; internal_find_put replaces the removed Base helper; the proofs that still unfolded these functions directly (all_append, any_append, contains_append, mem_cons_self, mem_cons_of_mem, sorted_cons_cons_elim_*, and some internal_ helpers) go through the bridges.

No law statement or public def signature changes (lock.ts --check --against bend-mathlib-v0.7.3.0: 0 failed).

--verdict (second commit): every module passes bend --verdict on 2.0.38. sorted_cons_cons_elim_le/tail now go through internal_sorted_cons_test (head written as (x, y)), since internal_all_cons_test at a variable pair head is a TypeScript/BendTT mismatch under --verdict. 2.0.38 includes bendlang/bend#1580, so algebra, order, sort and all pass --verdict as well: the verdict job now checks every module with it and drops the kernel-only fallback; README, SKILL and PLAN F38 say so.

Gate on bend 2.0.38 (macOS arm64):

  • check.ts packages/bend-mathlib: 11/11 green; bendlib-kernel-list: 1/1
  • lawcheck on every module: pass; lint --erasure: 0 findings; twins up to date
  • --verdict: ALL PROOFS CHECK on all 11 modules and the kernel package
  • lock: 789 locked, 789 published; index up to date; comments: 0 findings
  • bun test tools/: all pass except the 3 docs e2e status assertions, which fail on macOS only because the checker's ulimit -v is unsupported there (independent of this change; CI runs Linux)

Not done here: re-running the F-fact replay (research/experiments/run.sh) and the SKILL's worked proof on 2.0.38, so AGENTS.md line 43 and SKILL.md still say 2.0.37. A bend-mathlib release on 2.0.38 would let downstream packages (e.g. bend-schema) move to 2.0.38.

Pin the v2.0.38 archives and source files at 0a57ca0d. Base 2.0.38 defines
String.order directly (PLAN F39) and short-circuits List.all/any/find/contains
through List.*.if thunks, with List.find.put removed.

- string.bend: internal_order_cmp gets the bridge proof from
  research/candidates/base-next-bridges.bend.
- list.bend: the cons bridges are proved by cases on the head's test
  (internal_all_if, internal_any_if, internal_find_if; internal_find_put stands
  in for the removed List.find.put), and the proofs that still unfolded
  List.all/any/contains go through them. No law statement or public def changes.
- Goldens regenerated: only the version field changes.

Full gate green on 2.0.38: 11/11 modules, lawcheck, lint, twins, lock
(789/789, 0 failed against bend-mathlib-v0.7.3.0), index. bun test tools/
passes except the docs e2e statuses on macOS, where the checker's ulimit -v
is unsupported (unrelated to this change; CI is Linux).
sorted_cons_cons_elim_le/tail called internal_all_cons_test with a
variable pair head, which --verdict reports as a TypeScript/BendTT
mismatch. internal_sorted_cons_test states the step with the head
written as (x, y), like internal_sorted_cons_true/false.

2.0.38 takes a ~ constant's model from a concrete call of its law
(bendlang/bend#1580), so algebra, order, sort and all now pass
--verdict too: the verdict job checks every module with it and the
kernel-only fallback for them goes. README, SKILL and PLAN F38 follow.
@MuhDur
MuhDur merged commit 6c4e28f into bendlib:main Oct 21, 2026
16 checks passed
MuhDur added a commit that referenced this pull request Oct 21, 2026
…nd 2.0.38, every module passes --verdict

Bend 2.0.38 changed Base (List.all/any/find/contains short-circuit through a thunk, String.order
defined directly), so 0.7.3.0 no longer checks on it; PR #26 from @nohzafk re-proved the internal
bridges, with no statement changes. 2.0.38 also includes bendlang/bend#1580, so algebra, order, sort
and all pass `bend --verdict` like the other modules: a --verdict project can import any of them
(issue #25). release.ts now requires a clean --verdict on every module.

Verified from an empty BEND_LIB: importing 0.7.4.0's nat, sort and all prints ALL PROOFS CHECK under
--check-only and --verdict; the README and SKILL examples check against the hub package.

Closes bend-3ev

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NJjQ47v3mvnKmc8XojZitg
@MuhDur

MuhDur commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Thanks @nohzafk, a clean port. It shipped as bend-mathlib 0.7.4.0 (0xcdaf59a0332a2e0cdb289bf7a32fba62). I also made release.ts require --verdict on every module and fixed the F4 experiment helper for the new List.all.

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.

2 participants