-
Notifications
You must be signed in to change notification settings - Fork 259
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] - chore: replace anonymous morphism constructors with named fields #7015
Conversation
protected def subtype : H →* G := | ||
⟨⟨((↑) : H → G), rfl⟩, fun _ _ => rfl⟩ | ||
protected def subtype : H →* G where | ||
toFun := ((↑) : H → G); map_one' := rfl; map_mul' _ _ := rfl |
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.
This is a good example of where the angle bracket nesting was just confusing
@@ -19,19 +19,36 @@ variable {G H : Type*} | |||
def AddEquiv.toMultiplicative [AddZeroClass G] [AddZeroClass H] : | |||
G ≃+ H ≃ (Multiplicative G ≃* Multiplicative H) where | |||
toFun f := | |||
⟨⟨AddMonoidHom.toMultiplicative f.toAddMonoidHom, | |||
AddMonoidHom.toMultiplicative f.symm.toAddMonoidHom, f.1.3, f.1.4⟩, f.2⟩ | |||
invFun f := ⟨⟨f.toMonoidHom, f.symm.toMonoidHom, f.1.3, f.1.4⟩, f.2⟩ |
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.
This was incorrectly-typed
This PR/issue depends on:
|
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.
Thanks 🎉
bors merge
This makes it easier to refactor the order or inheritance structure of morphisms without having to change all of the anonymous constructors. This is far from exhaustive.
Build failed (retrying...): |
This makes it easier to refactor the order or inheritance structure of morphisms without having to change all of the anonymous constructors. This is far from exhaustive.
Pull request successfully merged into master. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
This makes it easier to refactor the order or inheritance structure of morphisms without having to change all of the anonymous constructors. This is far from exhaustive.
This makes it easier to refactor the order or inheritance structure of morphisms without having to change all of the anonymous constructors.
This is far from exhaustive.
Multiplicative
defs #7016