[Merged by Bors] - feat: port Algebra.Group.WithOne.Defs#841
[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.
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.
| -- 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.
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/mathlib3#17820 I'm planning to wait until leanprover-community/mathlib3#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