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

[Merged by Bors] - feat(tactic/simps): implement prefix names #7596

Closed
wants to merge 11 commits into from

Conversation

fpvandoorn
Copy link
Member

  • You can now write initialize_simps_projections equiv (to_fun → coe as_prefix) to add the projection name as a prefix to the simp lemmas: if you then write @[simps coe] def foo ... you get a lemma named coe_foo.
  • Remove the short_name option from simps_cfg. This was unused and not that useful.
  • Refactor some tuples used in the functions into structures.
  • Implements one item of @[simps] improvements #5489.

Requested by @b-mehta and @eric-wieser

Open in Gitpod

@fpvandoorn fpvandoorn added awaiting-author A reviewer has asked the author a question or requested changes t-meta Tactics, attributes or user commands labels May 13, 2021
@fpvandoorn fpvandoorn added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels May 13, 2021
@github-actions github-actions bot added the merge-conflict Please `git merge origin/master` then a bot will remove this label. label May 16, 2021
@github-actions github-actions bot removed the merge-conflict Please `git merge origin/master` then a bot will remove this label. label May 16, 2021
Copy link
Collaborator

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks! I'm not an experienced simps user, so I'll ask someone else to review it as well.

src/data/list/defs.lean Outdated Show resolved Hide resolved
src/tactic/simps.lean Outdated Show resolved Hide resolved
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Copy link
Collaborator

@b-mehta b-mehta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@semorrison
Copy link
Collaborator

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels May 26, 2021
bors bot pushed a commit that referenced this pull request May 26, 2021
* You can now write `initialize_simps_projections equiv (to_fun → coe as_prefix)` to add the projection name as a prefix to the simp lemmas: if you then write `@[simps coe] def foo ...` you get a lemma named `coe_foo`.
* Remove the `short_name` option from `simps_cfg`. This was unused and not that useful. 
* Refactor some tuples used in the functions into structures.
* Implements one item of #5489.
@bors
Copy link

bors bot commented May 26, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(tactic/simps): implement prefix names [Merged by Bors] - feat(tactic/simps): implement prefix names May 26, 2021
@bors bors bot closed this May 26, 2021
@bors bors bot deleted the simps_prefix branch May 26, 2021 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) t-meta Tactics, attributes or user commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants