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

split fails on Array matches #3483

Closed
digama0 opened this issue Feb 23, 2024 · 1 comment
Closed

split fails on Array matches #3483

digama0 opened this issue Feb 23, 2024 · 1 comment
Labels
bug Something isn't working new-user-papercuts Issue likely to confuse or otherwise negatively affect new users, even if only a little

Comments

@digama0
Copy link
Collaborator

digama0 commented Feb 23, 2024

def foo {α} : Array α → Array α 
  | #[a] => #[a]
  | as => as

theorem foo_eq {α} (as : Array α) : foo as = as := by
  unfold foo; split <;> rfl -- split failed

Using simp [foo] instead gives the more helpful error message failed to generate equality theorems for `match` expression `foo.match_1` .

Tested on Lean (version 4.7.0-nightly-2024-02-23, x86_64-unknown-linux-gnu, commit 5a32473f6695, Release)

@digama0 digama0 added the bug Something isn't working label Feb 23, 2024
@kim-em kim-em added the new-user-papercuts Issue likely to confuse or otherwise negatively affect new users, even if only a little label Apr 22, 2024
@Kha
Copy link
Member

Kha commented Sep 13, 2024

Now covered by #5339

@Kha Kha closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 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 new-user-papercuts Issue likely to confuse or otherwise negatively affect new users, even if only a little
Projects
None yet
Development

No branches or pull requests

3 participants