Skip to content
This repository was archived by the owner on Nov 6, 2026. It is now read-only.

[Merged by Bors] - feat(algebra, logic): Pi instances for nontrivial and monoid_with_zero - #4766

Closed
eric-wieser wants to merge 11 commits into
masterfrom
pi-instances
Closed

eric-wieser wants to merge 11 commits into
masterfrom
pi-instances

Conversation

@eric-wieser

Copy link
Copy Markdown
Member

@eric-wieser
eric-wieser requested a review from urkud October 24, 2020 17:07
@eric-wieser eric-wieser changed the title Pi instances for nontrivial and monoid_with_zero feat(algebra, logic): Pi instances for nontrivial and monoid_with_zero Oct 24, 2020
@urkud

urkud commented Oct 24, 2020

Copy link
Copy Markdown
Member

The proof of nontrivial shouldn't depend on [has_zero]. Instead, you should have

def pi.nontrivial' {α} {β : α → Sort*} [Π j, nonempty (β j)] (i : α) [nontrivial β i] : nontrivial (Π i, β i) := sorry

instance pi.nontrivial {α} [inhabited α] {β : α → Sort*} [Π i, nonempty (β i)] [nontrivial (deafult α)] : nontrivial (Π i, β i) :=
pi.nontrivial' (default α)

@eric-wieser

Copy link
Copy Markdown
Member Author

Good point, I've updated to use those dependencies instead.

Comment thread src/logic/nontrivial.lean Resolved
@bryangingechen bryangingechen added the awaiting-review The author would like community review of the PR label Oct 25, 2020
Comment thread src/logic/function/basic.lean Resolved
Comment thread src/logic/nontrivial.lean Resolved
Comment thread src/logic/nontrivial.lean Resolved
Comment thread src/logic/nontrivial.lean Resolved
@Vierkantor Vierkantor added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Oct 27, 2020
Comment thread src/logic/nontrivial.lean Resolved

@Vierkantor Vierkantor left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @urkud, any suggestions?

Comment thread src/algebra/group/pi.lean Resolved
@urkud

urkud commented Oct 28, 2020

Copy link
Copy Markdown
Member

Otherwise LGTM
bors d+

@bors

bors Bot commented Oct 28, 2020

Copy link
Copy Markdown

✌️ eric-wieser can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

Comment thread src/algebra/group/pi.lean Resolved
@eric-wieser eric-wieser added awaiting-review The author would like community review of the PR delegated The PR author may merge after reviewing final suggestions. and removed awaiting-author A reviewer has asked the author a question or requested changes labels Oct 30, 2020
@eric-wieser eric-wieser removed the awaiting-review The author would like community review of the PR label Oct 30, 2020
@eric-wieser

Copy link
Copy Markdown
Member Author

bors r+

bors Bot pushed a commit that referenced this pull request Oct 30, 2020
@bors

bors Bot commented Oct 30, 2020

Copy link
Copy Markdown

Build failed (retrying...):

bors Bot pushed a commit that referenced this pull request Oct 30, 2020
@bors

bors Bot commented Oct 30, 2020

Copy link
Copy Markdown

Pull request successfully merged into master.

Build succeeded:

@bors bors Bot changed the title feat(algebra, logic): Pi instances for nontrivial and monoid_with_zero [Merged by Bors] - feat(algebra, logic): Pi instances for nontrivial and monoid_with_zero Oct 30, 2020
@bors bors Bot closed this Oct 30, 2020
@bors
bors Bot deleted the pi-instances branch October 30, 2020 17:07
lecopivo pushed a commit to lecopivo/mathlib that referenced this pull request Oct 31, 2020
YaelDillies added a commit to leanprover-community/mathlib4 that referenced this pull request Apr 20, 2024
Move everything that could not be additivised out of `Algebra.Group.Pi.Lemmas`:
* `MulZeroClass`, `MulZeroOneClass`, etc... instances go to a new `Algebra.GroupWithZero.Pi` file. I credit Eric W. for leanprover-community/mathlib3#4766.
* `AddMonoidWithOne`, `AddGroupWithOne` instances go to `Algebra.Ring.Pi`.

Also fix a bunch of `single` that should have been `mulSingle`.
YaelDillies added a commit to leanprover-community/mathlib4 that referenced this pull request Apr 21, 2024
Move everything that can't be additivised out of `Algebra.Group.Pi.Lemmas`:
* `MulZeroClass`, `MulZeroOneClass`, etc... instances go to a new `Algebra.GroupWithZero.Pi` file. I credit Eric W. for leanprover-community/mathlib3#4766.
* `AddMonoidWithOne`, `AddGroupWithOne` instances go to `Algebra.Ring.Pi`.
mathlib-bors Bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Apr 29, 2024
Move everything that can't be additivised out of `Algebra.Group.Pi.Lemmas`:
* `MulZeroClass`, `MulZeroOneClass`, etc... instances go to a new `Algebra.GroupWithZero.Pi` file. I credit Eric W. for leanprover-community/mathlib3#4766.
* `AddMonoidWithOne`, `AddGroupWithOne` instances go to `Algebra.Ring.Pi`.
apnelson1 pushed a commit to leanprover-community/mathlib4 that referenced this pull request May 12, 2024
Move everything that can't be additivised out of `Algebra.Group.Pi.Lemmas`:
* `MulZeroClass`, `MulZeroOneClass`, etc... instances go to a new `Algebra.GroupWithZero.Pi` file. I credit Eric W. for leanprover-community/mathlib3#4766.
* `AddMonoidWithOne`, `AddGroupWithOne` instances go to `Algebra.Ring.Pi`.
callesonne pushed a commit to leanprover-community/mathlib4 that referenced this pull request May 16, 2024
Move everything that can't be additivised out of `Algebra.Group.Pi.Lemmas`:
* `MulZeroClass`, `MulZeroOneClass`, etc... instances go to a new `Algebra.GroupWithZero.Pi` file. I credit Eric W. for leanprover-community/mathlib3#4766.
* `AddMonoidWithOne`, `AddGroupWithOne` instances go to `Algebra.Ring.Pi`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

delegated The PR author may merge after reviewing final suggestions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants