#1175·Bend

A spliced inline lambda applied to a rebuilt column emits an un-annotated beta-redex, so --verdict rejects what bend2 accepts

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

What you did

BEND_NO_TELEMETRY=1 bend inl2b.bend --check-only, then --verdict

What happened

--check-only prints ALL PROOFS CHECK; --verdict fails with the TypeScript/kernel mismatch banner. The emitted BendTT contains an un-annotated beta-redex: a Kind-specialized parameter's inline-lambda value is spliced into the instance body and applied to a column-rebuilt tuple, emitting App(Lam, Tup) with no Ann around the lambda — the kernel's inference then fails with "expected an annotated term". When the same spliced lambda is applied to a plain variable instead, the kernel's bidirectional App-on-Var rule handles it and the file passes both gates.

Minimal shape (the erased -A: Kind(q1(f)) parameter forces f's field to specialize, splicing (y: Nat) => 1n into the body of run3's instance):

python
import Base

type Box is Type:
  Mk{fn: Nat -> Nat}

def q1(f: Box) -> Quant:
  match f:
    case Mk{g}: &1

def run3(f: Box, -A: Kind(q1(f)), +x: Nat) -> Nat:
  match f:
    case Mk{g}:
      match x:
        case 0n: g(x)
        case 1n+p: g(p)

def obs() -> Nat: run3(Mk{(y: Nat) => 1n}, Nat, 0n)

Emitted (the case 0n arm): (λx0 => (.Succ, ((.Zero, ()), ())) (.Zero, ())) — the lambda applied to the rebuilt tuple with no annotation, which the kernel rejects; the 1n+p arm's (λx0 => ...) x1 (variable argument) is accepted via the kernel's special App-on-Var rule.

Both gates agree on the trivial non-specialized variant, so this is specifically the spliced-lambda-at-non-Var-argument emission path.

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)