-
Notifications
You must be signed in to change notification settings - Fork 251
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: port Algebra.Group.WithOne.Defs #841
Conversation
Things of note here:
|
-- example [Semigroup α] : | ||
-- @Monoid.toMulOneClass _ (@instMonoidWithOne α _) = @instMulOneClassWithOne α _ := | ||
-- 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.
Delete?
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'd have to make a corresponding PR to mathlib3 then, right? https://github.com/leanprover-community/mathlib/blob/c982179ec21091d3e102d8a5d9f5fe06c8fafb73/src/algebra/group/with_one/defs.lean#L127-L128
If you can remember it, could you add a porting note to the proof you had to rewrite for lack of |
bors d+ Please update the wiki page when you merge. |
✌️ kbuzzard can now approve this pull request. To approve and merge a pull request, simply reply with |
-- porting note: in Lean 4 this is a syntactic tautology | ||
-- @[to_additive] | ||
-- theorem some_eq_coe {a : α} : (some a : WithOne α) = ↑a := | ||
-- rfl | ||
-- #align with_one.some_eq_coe WithOne.some_eq_coe |
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.
-- porting note: in Lean 4 this is a syntactic tautology | |
-- @[to_additive] | |
-- theorem some_eq_coe {a : α} : (some a : WithOne α) = ↑a := | |
-- rfl | |
-- #align with_one.some_eq_coe WithOne.some_eq_coe | |
#noalign with_one.some_eq_coe |
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.
And with_zero.some_eq_coe
too!
OK I just realised that every |
Oh nice, it doesn't take hours to compile like mathlib3 :-) |
bors r+ |
bors merge |
mathlib3 commit hash e574b1a4e891376b0ef974b926da39e05da12a06
Build failed (retrying...): |
mathlib3 commit hash e574b1a4e891376b0ef974b926da39e05da12a06
Build failed (retrying...):
|
mathlib3 commit hash e574b1a4e891376b0ef974b926da39e05da12a06
Build failed: |
…ra-group-with-one-defs
bors merge |
mathlib3 commit hash e574b1a4e891376b0ef974b926da39e05da12a06 Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Scott Morrison <scott@tqft.net>
Pull request successfully merged into master. Build succeeded: |
Regenerated from the [port status wiki page](https://github.com/leanprover-community/mathlib/wiki/mathlib4-port-status). Relates to the following PRs: * `algebra.divisibility.basic`: leanprover-community/mathlib4#833 * `algebra.group.with_one.defs`: leanprover-community/mathlib4#841 * `algebra.hom.commute`: leanprover-community/mathlib4#831 * `algebra.hom.group`: leanprover-community/mathlib4#659 * `algebra.hom.units`: leanprover-community/mathlib4#745 * `algebra.ring.basic`: leanprover-community/mathlib4#830 * `category_theory.natural_isomorphism`: leanprover-community/mathlib4#820 * `combinatorics.quiver.connected_component`: leanprover-community/mathlib4#836 * `combinatorics.quiver.subquiver`: leanprover-community/mathlib4#828 Co-authored-by: Johan Commelin <johan@commelin.net>
mathlib3 SHA: dad7ecf9a1feae63e6e49f07619b7087403fb8d4 Ports Algebra.Order.Monoid.WithZero.[Defs, Basic]. - [x] depends on #841 - [x] depends on leanprover-community/mathlib#17820 I'm planning to wait until leanprover-community/mathlib#17820 is approved before doing a final refactor to move lemmas where they're needed. Co-authored-by: thirdsgames <thirdsgames2018@gmail.com> Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: zeramorphic <zeramorphic@proton.me>
mathlib3 commit hash e574b1a4e891376b0ef974b926da39e05da12a06