Skip to content

[Merged by Bors] - feat: port algebra.order.monoid.lemmas#608

Closed
hrmacbeth wants to merge 14 commits intomasterfrom
hrmacbeth-algebra-monoid-lemmas
Closed

[Merged by Bors] - feat: port algebra.order.monoid.lemmas#608
hrmacbeth wants to merge 14 commits intomasterfrom
hrmacbeth-algebra-monoid-lemmas

Conversation

@hrmacbeth
Copy link
Copy Markdown
Member

@hrmacbeth hrmacbeth commented Nov 15, 2022

I had to change one proof due to a to_additive issue, see Zulip.

mathlib3 sha: 7cca171008afb30576d2d4c51173700a780c23d0

Diff from mathport output

@hrmacbeth hrmacbeth changed the title feat: port algebra.monoid.lemmas feat: port algebra.order.monoid.lemmas Nov 15, 2022
@hrmacbeth hrmacbeth added help-wanted The author needs attention to resolve issues WIP Work in progress mathlib-port This is a port of a theory file from mathlib. blocked-by-theory-file and removed blocked-by-theory-file labels Nov 15, 2022
@hrmacbeth hrmacbeth added blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) and removed help-wanted The author needs attention to resolve issues WIP Work in progress labels Nov 16, 2022
@Ruben-VandeVelde
Copy link
Copy Markdown
Contributor

Note the existing Mathlib.Algebra.Order.MonoidLemmas as well

@hrmacbeth
Copy link
Copy Markdown
Member Author

Note the existing Mathlib.Algebra.Order.MonoidLemmas as well

Yes, I cannibalized the ~10 lemmas ported there (but didn't yet incorporate the deletion of that file into this PR -- I will when everything else is ready).

@kim-em kim-em removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Nov 18, 2022
@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Nov 18, 2022

@hrmacbeth, why is this marked as depending on #591 (Order.Monotone). Hopefully that has merged succesfully by now in any case.

@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Nov 18, 2022

Oh, I see, you need to add the import still!

Comment on lines +165 to +166
(h₁ : a < b) (h₂ : c < d) :
a * c < b * d :=
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
(h₁ : a < b) (h₂ : c < d) :
a * c < b * d :=
(h₁ : a < b) (h₂ : c < d) : a * c < b * d :=

We could save a line here like this (I've been doing this, giving no special preference for a new line after :), but it's not important. (And eventually an automatic reformatter may take care of all this.)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Just to check, is the situation that mathlib is agnostic on newline after :?

Or is there a preference for newline after : but it's not worth enforcing it here because it's not provided by mathport output and there might be an automatic reformatter someday?

Or is there a preference for no newline after :?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Preference for no newline after :. (But slight preference for after the colon rather than in the midst of arguments or in the middle of the return type.)

@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Nov 18, 2022

Looks great, besides the unfortunately tedious problem with #aligns for to_additive statements.

@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Nov 20, 2022

bors merge

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

bors bot commented Nov 20, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: port algebra.order.monoid.lemmas [Merged by Bors] - feat: port algebra.order.monoid.lemmas Nov 20, 2022
@bors bors bot closed this Nov 20, 2022
@bors bors bot deleted the hrmacbeth-algebra-monoid-lemmas branch November 20, 2022 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

4 participants