#1164·Bend

A zero-argument recursive type definition checks, but --verdict and -o stack-overflow elaborating it

Author: yavuzerayutCreated Sep 28, 2026Updated Sep 29, 2026

What you did

BEND_NO_TELEMETRY=1 bend omega2.bend --check-only (passes), then BEND_NO_TELEMETRY=1 bend omega2.bend --verdict

What happened

--check-only prints ALL PROOFS CHECK, but --verdict (and -o x.bendtt too, so it is the elaborator, not the kernel binary) exits 1 with:

Error: the machine stack overflowed (a deep recursion, or a literal too large to expand)

No .bendtt file is written. A type definition whose body names itself with no argument (F below) is accepted by bend2, and elaborating om's domain seems to unfold F forever.

The file

python
import Base

def F() -> Type:
  @-x: F -> Empty

def om(f: @-x: F -> Empty) -> Empty:
  f(f)

(f(f) checks: the operand sits at f's erased domain, so the second use of f is not counted.)

bend --version

bend 2.0.32

uname -sm

Darwin arm64

clang --version (the first line)

Apple clang version 17.0.0 (clang-1700.0.13.5)