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

Expose generalize tactic to the user #333

Open
jonsterling opened this issue Sep 17, 2018 · 2 comments
Open

Expose generalize tactic to the user #333

jonsterling opened this issue Sep 17, 2018 · 2 comments

Comments

@jonsterling
Copy link
Collaborator

The “generalize” tactic is useful. We should expose it to the user!

@favonia
Copy link
Collaborator

favonia commented Sep 18, 2018

What does it do?

@jonsterling
Copy link
Collaborator Author

jonsterling commented Sep 18, 2018

@favonia If you are in a goal like !- P x, it changes the goal to !- (x : A) -> P x. This is used internally in the pattern inversion tactics, for instance.

Later when we add equality types, another version of the tactic that will be useful is one that turns the goal to !- (y : A) (p : x = y) -> P y. This will be essential for when we add indexed inductive types in the future.

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