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

[Merged by Bors] - chore(set_theory/game/*): Protect ambiguous lemmas #13557

Closed
wants to merge 4 commits into from

Conversation

YaelDillies
Copy link
Collaborator

@YaelDillies YaelDillies commented Apr 20, 2022

Protect pgame.neg_zero and inline pgame.add_le_add_left and friends into covariant_class instances.


Open in Gitpod

@YaelDillies YaelDillies added the awaiting-review The author would like community review of the PR label Apr 20, 2022
@leanprover-community-bot-assistant leanprover-community-bot-assistant added blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. and removed blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. labels Apr 20, 2022
@leanprover-community-bot-assistant
Copy link
Collaborator

This PR/issue depends on:

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict Please `git merge origin/master` then a bot will remove this label. label Apr 20, 2022
@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the merge-conflict Please `git merge origin/master` then a bot will remove this label. label Apr 20, 2022
@vihdzp
Copy link
Collaborator

vihdzp commented Apr 20, 2022

I merged with master, since #13530 was just merged.

@vihdzp vihdzp self-assigned this Apr 20, 2022
src/set_theory/game/basic.lean Outdated Show resolved Hide resolved
src/set_theory/game/basic.lean Show resolved Hide resolved
src/set_theory/game/pgame.lean Outdated Show resolved Hide resolved
src/set_theory/game/pgame.lean Show resolved Hide resolved
src/set_theory/game/pgame.lean Outdated Show resolved Hide resolved
src/set_theory/game/pgame.lean Outdated Show resolved Hide resolved
src/set_theory/game/pgame.lean Outdated Show resolved Hide resolved
src/set_theory/game/pgame.lean Outdated Show resolved Hide resolved
YaelDillies and others added 2 commits April 21, 2022 09:17
Co-authored-by: Violeta Hernández <vi.hdz.p@gmail.com>
Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@leanprover-community-bot-assistant leanprover-community-bot-assistant 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 Apr 21, 2022
bors bot pushed a commit that referenced this pull request Apr 21, 2022
Protect `pgame.neg_zero` and inline `pgame.add_le_add_left` and friends into `covariant_class` instances.



Co-authored-by: Violeta Hernández <vi.hdz.p@gmail.com>
@bors
Copy link

bors bot commented Apr 21, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(set_theory/game/*): Protect ambiguous lemmas [Merged by Bors] - chore(set_theory/game/*): Protect ambiguous lemmas Apr 21, 2022
@bors bors bot closed this Apr 21, 2022
@bors bors bot deleted the protect_pgame branch April 21, 2022 19:29
@bors
Copy link

bors bot commented Apr 21, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title [Merged by Bors] - chore(set_theory/game/*): Protect ambiguous lemmas [Merged by Bors] - [Merged by Bors] - chore(set_theory/game/*): Protect ambiguous lemmas Apr 21, 2022
@YaelDillies YaelDillies changed the title [Merged by Bors] - [Merged by Bors] - chore(set_theory/game/*): Protect ambiguous lemmas [Merged by Bors] - chore(set_theory/game/*): Protect ambiguous lemmas Apr 21, 2022
@@ -152,7 +152,7 @@ lemma le_zero_iff {G : pgame} [G.impartial] : G ≤ 0 ↔ 0 ≤ G :=
by rw [le_zero_iff_zero_le_neg, le_congr (equiv_refl 0) (neg_equiv_self G)]

lemma lt_zero_iff {G : pgame} [G.impartial] : G < 0 ↔ 0 < G :=
by rw [lt_iff_neg_gt, neg_zero, lt_congr (equiv_refl 0) (neg_equiv_self G)]
by rw [lt_iff_neg_gt, pgame.neg_zero, lt_congr (equiv_refl 0) (neg_equiv_self G)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

why does pgame have its own neg_zero? do neither neg_zero nor neg_zero' work for it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, pgame is pretty badly behaved. Most results about pgame are not equalities but double inequalities (a ≤ b ∧ b ≤ a instead of a = b). pgame.neg_zero is actually the exception here. Once you take the antisymmetrization, you get game, which is much saner.

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

5 participants