Skip to content
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

feat(*): some simple lemmas about sets and finite sets #1903

Merged
merged 9 commits into from Jan 26, 2020
Merged

Conversation

urkud
Copy link
Member

@urkud urkud commented Jan 25, 2020

TO CONTRIBUTORS:

Make sure you have:

  • reviewed and applied the coding style: coding, naming
  • reviewed and applied the documentation requirements
  • for tactics:
  • make sure definitions and lemmas are put in the right files
  • make sure definitions and lemmas are not redundant

If this PR is related to a discussion on Zulip, please include a link in the discussion.

For reviewers: code review check list

@urkud urkud added the WIP Work in progress label Jan 25, 2020
@urkud urkud added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Jan 25, 2020
src/algebra/big_operators.lean Outdated Show resolved Hide resolved
src/data/fintype.lean Outdated Show resolved Hide resolved
src/data/fintype.lean Outdated Show resolved Hide resolved
src/data/fintype.lean Outdated Show resolved Hide resolved
@urkud urkud 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 Jan 25, 2020
src/algebra/big_operators.lean Show resolved Hide resolved
src/data/fintype.lean Outdated Show resolved Hide resolved
urkud and others added 5 commits January 25, 2020 14:27
Co-Authored-By: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>
This reverts commit 17c89a8. It
breaks compile if we rewrite right to left.
@sgouezel sgouezel added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) labels Jan 25, 2020
Copy link
Collaborator

@sgouezel sgouezel left a comment

Choose a reason for hiding this comment

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

This is good for me. @ChrisHughes24 , if you are happy, you get set this to ready to merge.

@ChrisHughes24 ChrisHughes24 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 Jan 25, 2020
exact fin.cases (or.inl rfl) (λ i, or.inr ⟨i, trivial, rfl⟩) m
end

theorem fin.prod_univ_succ [comm_monoid β] {n:ℕ} (f : fin n.succ → β) :
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add a comment why this does not work with to_additive (I guess this is because of the 0?) and that the to_additive version will be registered in fin.sum_univ_succ.

Copy link
Member Author

Choose a reason for hiding this comment

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

As far as I understand, it's because +1 is used somewhere in the proof, and to_additive tries to replace it with +0.

@mergify mergify bot merged commit 9decec2 into master Jan 26, 2020
@mergify mergify bot deleted the set-finset branch January 26, 2020 01:12
mergify bot pushed a commit that referenced this pull request Jan 27, 2020
anrddh pushed a commit to anrddh/mathlib that referenced this pull request May 15, 2020
…mmunity#1903)

* feat(*): some simple lemmas about sets and finite sets

* More lemmas, simplify proofs

* Introduce `finsup.nonempty` and use it.

* Update src/algebra/big_operators.lean

Co-Authored-By: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>

* Revert "Update src/algebra/big_operators.lean"

This reverts commit 17c89a8. It
breaks compile if we rewrite right to left.

* simp, to_additive

* Add a missing docstring

Co-authored-by: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
anrddh pushed a commit to anrddh/mathlib that referenced this pull request May 16, 2020
…mmunity#1903)

* feat(*): some simple lemmas about sets and finite sets

* More lemmas, simplify proofs

* Introduce `finsup.nonempty` and use it.

* Update src/algebra/big_operators.lean

Co-Authored-By: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>

* Revert "Update src/algebra/big_operators.lean"

This reverts commit 17c89a8. It
breaks compile if we rewrite right to left.

* simp, to_additive

* Add a missing docstring

Co-authored-by: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants