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

fin_cases breaks on intervals of Fin #14652

Open
shortc1rcuit opened this issue Jul 11, 2024 · 0 comments
Open

fin_cases breaks on intervals of Fin #14652

shortc1rcuit opened this issue Jul 11, 2024 · 0 comments

Comments

@shortc1rcuit
Copy link

fin_cases fails on some intervals over the type Fin (k + 2). For example:

import Mathlib.Tactic

example (k : ℕ) (x : Fin (k + 2)) (hx : x ∈ Finset.Iic 1) : True := by
  fin_cases hx

and

import Mathlib.Tactic

example (k : ℕ) (x : Fin (k + 2)) (hx : x ∈ Finset.Icc 0 1) : True := by
  fin_cases hx

should each create two cases, (x = ⊥ and x = 1 in the first example, x = 0 and x = 1 in the second). Instead they both return the error "(kernel) declaration has metavariables '_example'". More examples of this can be found in this thread on the Lean Zulip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant