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

refine_struct: case tags not working? #4779

Open
bryangingechen opened this issue Oct 25, 2020 · 2 comments
Open

refine_struct: case tags not working? #4779

bryangingechen opened this issue Oct 25, 2020 · 2 comments
Labels
t-meta Tactics, attributes or user commands

Comments

@bryangingechen
Copy link
Collaborator

MWE:

import tactic

structure blah : Type :=
(f1 : ℕ)
(f2 : ℕ)

example : blah :=
begin
  refine_struct {..},
  case f1 {},
  /-
Invalid `case`: there is no goal tagged with suffix [f1].
state:
2 goals
case blah, f1
⊢ ℕ

case blah, f2
⊢ ℕ
-/
end

Also, the case tags don't show up in the widget view of the tactic state in VS Code (they still show up if I switch to the plain text view).

@bryangingechen bryangingechen added the t-meta Tactics, attributes or user commands label Oct 25, 2020
@bryangingechen
Copy link
Collaborator Author

@cipher1024 notes on Zulip that field f1 works instead.

Leaving this open for now since the tactic doc entry doesn't mention this (and the (text mode) tactic state says case), so there's still some potential for confusion here.

@cipher1024
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-meta Tactics, attributes or user commands
Projects
None yet
Development

No branches or pull requests

2 participants