Repository navigation
Description
Summary
The standard verification commands can pass without building the Lean proof kernel or checking its verdicts. Existing regression programs cover failures in translation and kernel checking, but the standard test run checks only the frontend. A small required kernel-verdict suite would make those regressions enforceable.
What Bend should do
Add a small, enforced kernel/verdict regression suite to the standard gate workflow. Build the current Lean source with the pinned Lean 4.34.0 toolchain, then test explicit expectations for accepted, rejected and out-of-scope programs. Treat build, transport and child-process failures as infrastructure failures. Keep the larger safe survey descriptive if useful; its known mismatches need individual expectations before enforcement.
Why
The standard runner runs repo, test, perf and ping. The test gate invokes --checkup; the separate safe survey exits zero after reporting. Thus the standard gates do not require a kernel build or the independent verdict. This is a coverage gap, rather than a violation of the survey's existing pass/fail contract.
There are already specific regression cases to enforce:
- #1181 reports frontend acceptance followed by a translator stack overflow, plus a nested-type case with unbounded memory growth. The inspected fix 25dc99a7 bounds translator model search and adds
model_no_base.bend. Its comment requires out-of-scope without exhausting the timeout, but its expected output only contains frontend proof-checking output. That expected output cannot distinguish bounded model search from the translator hanging. - #1133 reports a frontend-accepted
Equal.congproof rejected by the kernel. The inspected fix 3378e623 changes the kernel's application inference to annotate a lambda argument entering a dependent result type, adjusts the proof of checker soundness, and addscong_lambda_argument.bend. A frontend-only run cannot establish that this kernel-specific regression remains fixed. - e1ed2435 replaces the translator's reference/order-based recursive-group selection with live-cycle membership and adds
group_dead_forward.bend. The fixture's laws distinguish unrelated helpers from group members; the translator must preserve them too.
These are inspected commit diffs, not an inference that missing gates caused the original defects.
Reproduction on the current source
From the repository root, with Lean 4.34.0 available, run:
bun bend2/main.ts tests/proof/model_no_base.bend --checkup
bun bend2/main.ts tests/proof/model_no_base.bend --verdict
bun bend2/main.ts tests/proof/model_no_base.bend -o /tmp/no-model.bendtt
bun bend2/main.ts tests/proof/group_dead_forward.bend --verdict
bun bend2/main.ts tests/proof/cong_lambda_argument.bend --verdictObserved: --checkup exits 0; the second command exits 1 with SOME PROOFS FAIL followed by the line "Sorry - this is a mismatch between the TypeScript implementation, and the formalized BendTT kernel. ..."; export exits 0 and explicitly reports reflexive out of scope because there is no model for its specialized argument; the group and lambda-argument fixtures each exit 0 with ALL PROOFS CHECK. The expected out-of-scope case therefore requires more than a generic nonzero-exit expectation: a timeout or broken kernel must fail the regression test.
Acceptance criteria
- One documented standard verification command builds the current
bendtt.leanwith Lean 4.34.0 and runs the verdict suite. The default kernel cache is already keyed by a hash ofbendtt.lean(bend2/safe.ts:1480-1484);$BENDTToverrides it with any binary (L1476-1478). The suite either ignores$BENDTTor checks that it was built from the current source. - Start with the three fixtures above,
rewrite_motive_evidence.bend, and a small genuinely rejected case. Expectations distinguish kernel acceptance, intentional source/translation rejection and finite-model out-of-scope. Unexpected omission, timeout or infrastructure error fails. - The harness is tested with a failing kernel executable and an expired deadline; it reports each as a failure, never as an expected rejection.
Question for the maintainer
The standard run has a 30 s cap (gates/_run.ts:4, L16), and the survey's kernel is built on a Lean node (gates/safe.ts:12-13). Should the verdict suite join the four gates under that cap (with a prebuilt kernel), or run as a separate required command?
Verification limits
The entry points, three historical diffs and the linked report bodies were inspected. Historical failure outputs are attributed to their reporters; the old revisions were not executed. The commands above were rerun locally with Bun 1.4.2 on Darwin arm64 and a kernel built from the baseline source using Lean 4.34.0. No mini-cluster gate run was performed. This request concerns regression enforcement; it does not assert a live proof of Empty.
Source baseline: 2bfc83fd6cc6; the source CLI reports bend 2.0.35 through bun bend2/main.ts version.
Activity
Lorenzobattistela commentedon Oct 14, 2026
Maintainers run the gates on our cluster for every PR before merging:
repo,test,perfandsafe. GitHub CI runs onlygates/repo.ts, because it's cheap. The others need the minis, andsafeneeds a Lean-built kernel. With the number of PRs we get, running them on GitHub would cost too much. So Lean stays off GitHub on purpose.The real gap here is that
gates/safe.tsalways exits 0. That makes it a report someone has to read, not a gate. #1556 makes it exit non-zero on a false reject (!), a timeout (t) or an infrastructure error (e), and closes this issue.