Skip to content

BendTT kernel runs out of fuel on shared cells bend2 compares once #1555

Closed as duplicate

Description

@Lorenzobattistela

tests/check/conversion_shared_cells_once.bend (from #1151) checks that bend2 compares a shared graph once: each level of root_loop(d, x) and root_rec(d, x) uses the level below twice, so walking it as a tree takes 2^d steps. bend2 merges equal shared cells and passes at any depth. The BendTT kernel doesn't share them, so it walks the tree and runs out of fuel.

On main (e78dc9c), with the kernel built from bend2/bendtt.lean:

  • agree_16: ALL PROOFS CHECK in 0.6 s
  • agree_20, agree_24, agree_32: SOME PROOFS FAIL after about 7 s (BendTT: out of fuel), with the mismatch message

So --verdict gives a false reject for any program that relies on this sharing past about 20 levels. gates/safe.ts reported it as the only ! in tests (1635 files).

The gate PR for #1312 lowers the test to 16 levels so the safe gate starts clean. The real fix is for the kernel to compare shared cells once, like bend2 does. When it does, the test can go back to 32 levels.

Activity

  1. Lorenzobattistela commented on Oct 14, 2026

    @Lorenzobattistela
    CollaboratorAuthor

    Duplicate of #1193. The timings are now on that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions