Repository navigation
[Merged by Bors] - feat(LinearMap, RingHom, FirstOrder.Language.Hom): simp lemma for composing domRestrict and codRestrict - #38693
Conversation
PR summary 6299e88801Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
Yes please! At least, for all the ones that already have both definitions |
|
So it turns out there aren't many types that have both domRestrict and codRestrict defined. I have found the following
|
j-loreaux
left a comment
There was a problem hiding this comment.
Arguably f and p could be implicit, but I think in practice it makes more sense to leave them explicit. Thanks for splitting this out!
bors merge
|
bors r- |
|
Canceled. Address comments or fix if necessary, and then someone with permission can run |
1 similar comment
|
Canceled. Address comments or fix if necessary, and then someone with permission can run |
|
Can you please verify that this correctly simplifies bors d+ |
|
✌️ wwylele can now approve this pull request. To approve and merge a pull request, simply reply with |
|
I did locally for LinearMap, but I can double check the other two when I get home |
|
It turns out
I'll leave this open for a day and merge it if there is no other comments |
|
Otherwise looks good, thanks! |
Co-authored-by: Eric Wieser <[email protected]>
Co-authored-by: Eric Wieser <[email protected]>
|
Thanks for catching the obvious naming error 😅 Let me do another double check of everything |
|
This looks good to me now, feel free to merge once you're convinced. I haven't fully checked that you've covered every possible such declaration, but what matters most is getting sufficient coverage that someone who notices it is missing has an obvious pattern to follow. |
|
bors r+ |
…posing domRestrict and codRestrict (#38693)
|
Pull request successfully merged into master. Build succeeded: |
…posing domRestrict and codRestrict (leanprover-community#38693)
…posing domRestrict and codRestrict (leanprover-community#38693)
I am aware that this lemma is true for all function-like classes that hasdomRestrictandcodRestrict. I didn't add the same for all of them, and only added the one I needed in #37295. Should we manually add this for all function classes? Or there should be some metaprogramming to generate them?