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

Look behind definitions (such that explicit unfolds are not needed) when performing rewrites #8

Open
dranov opened this issue Mar 4, 2024 · 3 comments

Comments

@dranov
Copy link
Contributor

dranov commented Mar 4, 2024

This is the behaviour Coq rewrite seems to have.

Currently in Lean, we either:

  1. Add a @[simp] attribute to the definition, which means it's always unfolded when simplification is called – which is annoying when a goal has multiple functions, only some of which we want to unfold, or
  2. Manually unfold before calling the rewrite, which is verbose
@volodeyka
Copy link
Contributor

volodeyka commented Mar 4, 2024

Could you check if erw tactic from Lean standard library solves this issue?
If it works, I will make srw call erw internally instead of rw

@volodeyka
Copy link
Contributor

Alright, I just tired, it doesn't work. Will it help if I add unfolding to intro patterns?

@dranov
Copy link
Contributor Author

dranov commented Mar 5, 2024

@volodeyka yes, it will definitely help to have unfolding via views e.g. /nseq

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