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
feat(simps): allow the user to specify the projections #1630
Conversation
fpvandoorn
commented
Oct 29, 2019
- Also add option to shorten generated lemma names
- Add the attribute to more places in the category_theory library
- The projection lemmas of inl_ and inr_ are now called inl__obj and similar
- This PR is on top of feat(tactic/simps): allow let-expressions #1626
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll leave the simps
changes to be reviewed by someone more familiar with the category theory library. These are just minor doc comments.
@@ -1186,7 +1186,7 @@ begin | |||
end | |||
``` | |||
|
|||
Although `reassoc_of` is not a tactic or a meta program, its type is generated | |||
Although `reassoc_of` is not a tactic or a meta program, its type is generated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cipher1024, I think you're often committing changes with trailing whitespaces, that then result in spurious diffs as other people edit these files. Would you mind enabling "files.trimTrailingWhitespace": true
if you use VS Code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, @cipher1024 is a hardcore emacs user 😺 But I'm sure there is an emacs equivalent...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes: (add-hook 'before-save-hook 'delete-trailing-whitespace)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to apologize. I have that setting but often, I use the github interface to write missing documentation. Is there a setting for github to trim the spaces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a few comments in the category_theory changes, explaining in a few places why we were specifying the @[simp]
lemmas to build explicitly. I'm happy otherwise, but didn't read the tactic side of this PR.
Also add option to shorten generated lemma names Add the attribute to more places in the category_theory library The projection lemmas of inl_ and inr_ are now called inl__obj and similar
Co-Authored-By: Scott Morrison <scott@tqft.net>
Co-Authored-By: Scott Morrison <scott@tqft.net>
Co-Authored-By: Scott Morrison <scott@tqft.net>
26bcf12
to
2a7266c
Compare
@semorrison approves the library changes and the tactic work looks good to me, so I think this is ready. Tagging @rwbarton in case he has an opinion since he's commented on earlier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absent any word from him, I'll merge tonight.
Oops, I'm a little late!
…mmunity#1630) * feat(simps): allow the user to specify the projections Also add option to shorten generated lemma names Add the attribute to more places in the category_theory library The projection lemmas of inl_ and inr_ are now called inl__obj and similar * use simps partially in limits/cones and whiskering * revert whiskering * rename last_name to short_name * Update src/category_theory/products/basic.lean * Update src/category_theory/limits/cones.lean Co-Authored-By: Scott Morrison <scott@tqft.net> * Update src/category_theory/products/associator.lean Co-Authored-By: Scott Morrison <scott@tqft.net> * Update src/data/string/defs.lean Co-Authored-By: Scott Morrison <scott@tqft.net> * clarify is_eta_expansion docstrings