Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

[Merged by Bors] - move(algebra/order/monoid/*): relocate zero_le_one_class again#17820

Closed
astrainfinita wants to merge 2 commits intomasterfrom
FR_zero_le_one
Closed

[Merged by Bors] - move(algebra/order/monoid/*): relocate zero_le_one_class again#17820
astrainfinita wants to merge 2 commits intomasterfrom
FR_zero_le_one

Conversation

@astrainfinita
Copy link
Copy Markdown
Collaborator

@astrainfinita astrainfinita commented Dec 5, 2022

#17646 move zero_le_one_class to algebra.order.monoid.with_zero. This PR split things about zero_le_one_class into two files.

Also, all lemmas about numerics other than 0 and 1 require typeclass add_monoid_with_one now.

Zulip


Open in Gitpod

@astrainfinita astrainfinita added awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. t-algebra Algebra (groups, rings, fields etc) t-order Order hierarchy labels Dec 5, 2022
@astrainfinita astrainfinita changed the title chore(algebra/order/monoid/*): relocate zero_le_one_class again move(algebra/order/monoid/*): relocate zero_le_one_class again Dec 5, 2022
@astrainfinita astrainfinita requested a review from a team as a code owner December 5, 2022 06:06
@eric-wieser
Copy link
Copy Markdown
Member

This PR changes the typeclass assumptions (as discussed on Zulip) too right? Please make sure the PR description mentions that!

@github-actions github-actions bot removed the awaiting-CI The author would like to see what CI has to say before doing more work. label Dec 5, 2022
@astrainfinita
Copy link
Copy Markdown
Collaborator Author

Oh, I forgot that, there it is now.

@kim-em
Copy link
Copy Markdown
Collaborator

kim-em commented Dec 6, 2022

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Dec 6, 2022
bors bot pushed a commit that referenced this pull request Dec 6, 2022
)

#17646 move `zero_le_one_class` to `algebra.order.monoid.with_zero`. This PR split things about `zero_le_one_class` into two files.

Also, all lemmas about numerics other than 0 and 1 require typeclass `add_monoid_with_one` now.

[Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/OfNat)
@bors
Copy link
Copy Markdown

bors bot commented Dec 6, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title move(algebra/order/monoid/*): relocate zero_le_one_class again [Merged by Bors] - move(algebra/order/monoid/*): relocate zero_le_one_class again Dec 6, 2022
@bors bors bot closed this Dec 6, 2022
@bors bors bot deleted the FR_zero_le_one branch December 6, 2022 07:16
bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Dec 6, 2022
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>
bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Dec 7, 2022
Ported by hand from current mathlib: 07fee0ca54c320250c98bacf31ca5f288b2bcbe2

This is thoroughly ridiculous, but it my fault for merging leanprover-community/mathlib3#17820, see discussion on [zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/OfNat).

Rather than proving 1 + 1 = 2 (I feel ridiculous), these lemmas should just happen later in mathlib, with stronger typeclasses. But these files are holding up the port, so its better to get this ported as is, and we can make it more sensible later...

Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) t-algebra Algebra (groups, rings, fields etc) t-order Order hierarchy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants