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

rcases doesn't seem to support ?_ placeholders #116

Open
Ruben-VandeVelde opened this issue Apr 16, 2023 · 1 comment
Open

rcases doesn't seem to support ?_ placeholders #116

Ruben-VandeVelde opened this issue Apr 16, 2023 · 1 comment

Comments

@Ruben-VandeVelde
Copy link
Contributor

import Std.Tactic.RCases

theorem aux (h : 0 < 2) : ∃ n : Nat, n = 2 := ⟨2, rfl⟩

example : True := by
  rcases aux ?_ with ⟨x, h⟩
  trivial

I would expect a side goal to be created (like in lean3), but get "don't know how to synthesize placeholder for argument 'h'"

@alreadydone
Copy link

Currently my workaround is

have := aux ?_
rcases this with ⟨x, h⟩

which is kind of annoying.

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

2 participants