-
Notifications
You must be signed in to change notification settings - Fork 297
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(extensionality): rename to ext
; generate ext
rules for structures
#1645
Conversation
What does this do? |
(Perhaps we should update the PR template so it prominently asks for a summary, before the checklist.) |
@semorrison Tell me I'm crazy, but didn't you use a tactic like this one in the category theory library? See https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/Equivalent.20of.20subtype.2Eeq.20for.20structures.3F/near/179768896 |
@cipher1024 Why the name change in this tactic? This is just |
Nope, I'd asked for it, but never got around to writing it. Good things come to those who wait! (Well, not usually.) |
This was my gut response too, but right now |
Independent of the above: are we consistent in the library about using |
I think there are also a lot of |
|
I didn't think of it. I'll use |
While we're renaming things, how about we shorten the `@[extensionality]`
tag to just `@[ext]`? This will then match the name of the tactic that uses
these lemmas.
…On Tue, Nov 5, 2019 at 2:37 AM Simon Hudon ***@***.***> wrote:
I didn't think of it. I'll use .ext. Also, I like the idea of merging
this with ext.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1645?email_source=notifications&email_token=AADUWBGXF57GRU76JZ7K4BLQSA6RZA5CNFSM4JIPGAS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC7VL2Y#issuecomment-549410283>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADUWBDOJDQ6STIJJTZFXETQSA6RZANCNFSM4JIPGASQ>
.
|
I agree |
Would it make sense to let |
I don't think that's a good idea. The change is very easy to make and having a synonym for an attribute is going to be messy and ugly. |
ext
; generate ext
rules for structures
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.
Looks good! Could you update the doc string for the ext
attribute and its entry in tactics.md
?
Co-Authored-By: Rob Lewis <Rob.y.lewis@gmail.com>
Co-Authored-By: Rob Lewis <Rob.y.lewis@gmail.com>
Co-Authored-By: Rob Lewis <Rob.y.lewis@gmail.com>
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.
Looks good! I think there are two related tasks remaining: replacing manually defined ext
lemmas with the attribute, and cleaning up naming issues. (We should uniformly use ext
, ext_iff
, eq
, etc.) I'll make an issue for this, it's material for another PR.
Looks like [skip ci] on the last commit message keeps mergify from doing its thing. Did a merge to get this rolling again. |
…tures (leanprover-community#1645) * Update core.lean * Update tactics.lean * integrate generation of extensionality lemma of structures into `ext` * Update src/tactic/ext.lean [skip ci] Co-Authored-By: Rob Lewis <Rob.y.lewis@gmail.com> * Update src/tactic/ext.lean [skip ci] Co-Authored-By: Rob Lewis <Rob.y.lewis@gmail.com> * Update src/tactic/ext.lean Co-Authored-By: Rob Lewis <Rob.y.lewis@gmail.com> * Update ext.lean [skip ci] * Update tactics.md [skip ci] * fix build * fix build
…tures (leanprover-community#1645) * Update core.lean * Update tactics.lean * integrate generation of extensionality lemma of structures into `ext` * Update src/tactic/ext.lean [skip ci] Co-Authored-By: Rob Lewis <Rob.y.lewis@gmail.com> * Update src/tactic/ext.lean [skip ci] Co-Authored-By: Rob Lewis <Rob.y.lewis@gmail.com> * Update src/tactic/ext.lean Co-Authored-By: Rob Lewis <Rob.y.lewis@gmail.com> * Update ext.lean [skip ci] * Update tactics.md [skip ci] * fix build * fix build
TO CONTRIBUTORS:
Make sure you have:
If this PR is related to a discussion on Zulip, please include a link in the discussion.
For reviewers: code review check list