Skip to content

[Merged by Bors] - feat: port Order.GameAdd - #645

Closed
dwarn wants to merge 2 commits into
masterfrom
game_add
Closed

dwarn wants to merge 2 commits into
masterfrom
game_add

Conversation

@dwarn

@dwarn dwarn commented Nov 18, 2022

Copy link
Copy Markdown
Contributor

mathlib SHA: fd47bdf09e90f553519c712378e651975fe8c829

@dwarn dwarn added mathlib-port This is a port of a theory file from mathlib. awaiting-review labels Nov 18, 2022

@mcdoll mcdoll left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

I like autoimplicits here, because α and β are almost always just arbitrary types.

Comment thread Mathlib/Order/GameAdd.lean Outdated
-/


variable {α β : Type _} (rα : α → α → Prop) (rβ : β → β → Prop)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
variable {α β : Type _} (rα : α → α → Prop) (rβ : β → β → Prop)
variable (rα : α → α → Prop) (rβ : β → β → Prop)

see https://github.com/leanprover-community/mathlib4/wiki#auto-implicits

Comment thread Mathlib/Order/GameAdd.lean Outdated
/-- If `a` is accessible under `rα` and `b` is accessible under `rβ`, then `(a, b)` is
accessible under `Prod.GameAdd rα rβ`. Notice that `Prod.lexAccessible` requires the
stronger condition `∀ b, Acc rβ b`. -/
theorem Acc.prod_gameAdd {a b} (ha : Acc rα a) (hb : Acc rβ b) :

@mcdoll mcdoll Nov 20, 2022 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
theorem Acc.prod_gameAdd {a b} (ha : Acc rα a) (hb : Acc rβ b) :
theorem Acc.prod_gameAdd (ha : Acc rα a) (hb : Acc rβ b) :

I don't understand why these variables are mentioned

@kim-em

kim-em commented Nov 20, 2022

Copy link
Copy Markdown
Contributor

After making the changes, Moritz suggested,

bors d+

@bors

bors Bot commented Nov 20, 2022

Copy link
Copy Markdown

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

@kim-em kim-em added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Nov 20, 2022
@dwarn

dwarn commented Nov 20, 2022

Copy link
Copy Markdown
Contributor Author

bors r+

bors Bot pushed a commit that referenced this pull request Nov 20, 2022
mathlib SHA: fd47bdf09e90f553519c712378e651975fe8c829
@bors

bors Bot commented Nov 20, 2022

Copy link
Copy Markdown

Pull request successfully merged into master.

Build succeeded:

@bors bors Bot changed the title feat: port Order.GameAdd [Merged by Bors] - feat: port Order.GameAdd Nov 20, 2022
@bors bors Bot closed this Nov 20, 2022
@bors
bors Bot deleted the game_add branch November 20, 2022 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). mathlib-port This is a port of a theory file from mathlib.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants