You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Production: a looped fallible function cannot tail-call another fallible function (LLB6005) #279
A looped (tail-recursive) fallible function whose tail position calls a different fallible function has no Rust rendering. lexlean check and lexlean build pass. lexlean production build fails with LLB6005 and lexlean verify with LLI9001. Reproduced at release/v0.49796067, Lean 4.32.1.
error[LLB6005]: root `Repro.Main.run`: package `repro_tailcall` for rust-std: arithmetic: the fallible call of f2 does not propagate its overflow
error[LLI9001]: phase verify: Repro.Main.run has no rendering in rust-std: arithmetic: the fallible call of f2 does not propagate its overflow
Claiming this one. Plan: reproduce on release/v0.5, locate the rule in calculus/rust (lower.rs succeed → tail.rs looped/retarget → validate.rs Checker::call), register a row + scenario + failing fixture first (R3), then the rendering, with plants recorded in VERIFICATION.md. Targeting release/v0.5; say if you want it on another line.
Maintainer note for the 0.5.0 line, no new issue (moratorium, #15): a fallible closure application (Expr::Apply) at a loop's end is still refused today, because apply_types_expr enters Expr::Loop with tail = false (validate.rs:722) and refuses the application at validate.rs:683-688 as a dropped failure (LLB6005). Fail-closed, same class as this issue; fix is a few lines in apply_types_expr plus the bootstrap twin and one BS-05 vector, after the tag.
Activity
humuhumu33 commentedon Oct 22, 2026
Claiming this one. Plan: reproduce on release/v0.5, locate the rule in calculus/rust (lower.rs succeed → tail.rs looped/retarget → validate.rs Checker::call), register a row + scenario + failing fixture first (R3), then the rendering, with plants recorded in VERIFICATION.md. Targeting release/v0.5; say if you want it on another line.
RB-21: the Rust records bind the compiler build, the register is 446 (#…
Merge pull request #300 from UOR-Foundation/claude/issue-279-loop-end…
humuhumu33 commentedon Oct 25, 2026
Landed in #300 (a1c40ab on release/v0.5): fallible tail call (LLB6005), RB-21, register 449.
afflom commentedon Oct 25, 2026
Maintainer note for the 0.5.0 line, no new issue (moratorium, #15): a fallible closure application (
Expr::Apply) at a loop's end is still refused today, becauseapply_types_exprentersExpr::Loopwithtail = false(validate.rs:722) and refuses the application atvalidate.rs:683-688as a dropped failure (LLB6005). Fail-closed, same class as this issue; fix is a few lines inapply_types_exprplus the bootstrap twin and one BS-05 vector, after the tag.Generated by Claude Code