leanprover / leanprover/lean4

Misleading `simp` mention in `cbv` error message

Open
#13,719 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug P-medium
Dominant language
Lean
Stars
9.2k
Forks
990
Avg merge
1d 17h
Merged PRs (30d)
175

Description

Prerequisites
Description

simp being mentioned instead of cbv in a failing tactic execution.

Context

Newly introduced cbv tactic

Steps to Reproduce

A simple code like

def fact : Nat → Nat
| 0 => 1
| n+1 => (n+1) * fact n

set_option cbv.maxSteps 20 in
example : fact 5 > 0 := by
  cbv

generates a somewhat misleading message involving simp (it should be cbv)

`simp` failed: maximum number of steps exceeded
Image

Expected behavior: `cbv` failed: maximum number of steps exceeded

Actual behavior: `simp` failed: maximum number of steps exceeded

Versions

4.30.0-rc2/ 4.31.0-nightly-2026-05-12

Impact

Low

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the minimal fact example with set_option cbv.maxSteps 20 and search the tactic implementation for the exact simp failure text. Update the error wording so this cbv invocation reports cbv, then rerun the reproduction and confirm the message matches the expected behavior.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.