Skip to content

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

Closed
dwarn wants to merge 2 commits intomasterfrom
game_add
Closed

[Merged by Bors] - feat: port Order.GameAdd#645
dwarn wants to merge 2 commits intomasterfrom
game_add

Conversation

@dwarn
Copy link
Copy Markdown
Contributor

@dwarn dwarn commented Nov 18, 2022

mathlib SHA: fd47bdf09e90f553519c712378e651975fe8c829

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

@mcdoll mcdoll left a comment

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.

-/


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

/-- 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) :
Copy link
Copy Markdown
Member

@mcdoll mcdoll Nov 20, 2022

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
Copy link
Copy Markdown
Contributor

kim-em commented Nov 20, 2022

After making the changes, Moritz suggested,

bors d+

@bors
Copy link
Copy Markdown

bors bot commented Nov 20, 2022

✌️ 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
Copy link
Copy Markdown
Contributor Author

dwarn commented Nov 20, 2022

bors r+

bors bot pushed a commit that referenced this pull request Nov 20, 2022
mathlib SHA: fd47bdf09e90f553519c712378e651975fe8c829
@bors
Copy link
Copy Markdown

bors bot commented Nov 20, 2022

Pull request successfully merged into master.

Build succeeded:

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