Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simp? does not work in conv mode #6164

Open
3 tasks done
MichaelStollBayreuth opened this issue Nov 21, 2024 · 1 comment
Open
3 tasks done

simp? does not work in conv mode #6164

MichaelStollBayreuth opened this issue Nov 21, 2024 · 1 comment
Labels
bug Something isn't working P-medium We may work on this issue if we find the time

Comments

@MichaelStollBayreuth
Copy link

Prerequisites

Please put an X between the brackets as you perform the following steps:

Description

Trying to use simp? in conv mode gives an error "unexpected identifier; expected command".

Context

simp and simp only are valid tactics in conv mode. So it would be natural if simp? would also work (and allow to replace simp calls by simp only calls for efficiency).

See the discussion on Zulip.

Steps to Reproduce

MWE:

example (n : Nat) : 123 + 2 * n = 123 + (n + n) := by
  conv =>
    enter [1, 2]
    simp? -- error

Expected behavior:

simp? should work in conv mode in the same way as it does normally.

Actual behavior:

simp? in conv mode results in an error.

Versions

Lean 4.15.0-nightly-2024-11-21
Target: x86_64-unknown-linux-gnu

Impact

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

@MichaelStollBayreuth MichaelStollBayreuth added the bug Something isn't working label Nov 21, 2024
@kim-em
Copy link
Collaborator

kim-em commented Nov 21, 2024

I think this would not be too hard to implement. If anyone would like to submit a PR we would surely review it!

@leanprover-bot leanprover-bot added the P-medium We may work on this issue if we find the time label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P-medium We may work on this issue if we find the time
Projects
None yet
Development

No branches or pull requests

3 participants