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

PANIC at Lean.Expr.appFn! in Fin.isValue, in the presence of metadata #4983

Closed
3 tasks done
eric-wieser opened this issue Aug 11, 2024 · 0 comments · Fixed by #5159
Closed
3 tasks done

PANIC at Lean.Expr.appFn! in Fin.isValue, in the presence of metadata #4983

eric-wieser opened this issue Aug 11, 2024 · 0 comments · Fixed by #5159
Labels
bug Something isn't working P-high We will work on this issue

Comments

@eric-wieser
Copy link
Contributor

eric-wieser commented Aug 11, 2024

Prerequisites

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

Description

simp only [Fin.isValue] panics in the presence of expression metadata.
An easy way to construct such metadata is @& borrow notation, but in my non-mwe the metadata presumably came from elsewhere.

Context

Steps to Reproduce

  1. Run example : (@& (1 : Fin 2)) = 1 := by simp only [Fin.isValue]

Expected behavior: Succeeds

Actual behavior: Panics

Versions

4.11.0-rc1

Additional Information

Note that panics are not shown in the web editor

Impact

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

@eric-wieser eric-wieser added the bug Something isn't working label Aug 11, 2024
@leanprover-bot leanprover-bot added the P-high We will work on this issue label Aug 16, 2024
leodemoura added a commit that referenced this issue Aug 26, 2024
github-merge-queue bot pushed a commit that referenced this issue Aug 26, 2024
tobiasgrosser pushed a commit to opencompl/lean4 that referenced this issue Aug 26, 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-high We will work on this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants