[Merged by Bors] - feat: port Order.Lattice#642
[Merged by Bors] - feat: port Order.Lattice#642Ruben-VandeVelde wants to merge 38 commits intomasterfrom
Conversation
|
Anyone should feel free to work on this; I'll take another look later. |
|
To do:
I don't know how to fix these issues, so help very much welcome |
Mathlib/Order/Basic.lean
Outdated
| (The lexicographic ordering is defined in `Order.Lexicographic`, and the instances are | ||
| available via the type synonym `α ×ₗ β = α × β`.) -/ | ||
| instance (α : Type u) (β : Type v) [PartialOrder α] [PartialOrder β] : PartialOrder (α × β) where | ||
| instance partialOrder (α : Type u) (β : Type v) [PartialOrder α] [PartialOrder β] : |
There was a problem hiding this comment.
What is the reason to force lowercase p here?
There was a problem hiding this comment.
It was my understanding that instances are named like defs with lowerCamelCase, is that wrong? Alternatively I could try to drop the explicit names
There was a problem hiding this comment.
I don't know. I started looking at mathlib 4 port less than 24h ago. So, I'm asking stupid questions. It seems strange to me to use explicit names for all instances.
There was a problem hiding this comment.
I removed the explicit names for everything except
OrderDual.semilatticeSup
OrderDual.semilatticeInf
OrderDual.distribLattice
There was a problem hiding this comment.
If you wanted to name this instance, this would be the correct name. The rule is that CamelCase names get turned into lowerCamelCase when used in definitions referring to them.
|
bors merge |
Tracking mathlib commit: [fd47bdf09e90f553519c712378e651975fe8c829](leanprover-community/mathlib3@fd47bdf) Co-authored-by: David Wärn <codwarn@gmail.com> Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Scott Morrison <scott@tqft.net>
|
Pull request successfully merged into master. Build succeeded:
|
Regenerated from the [port status wiki page](https://github.com/leanprover-community/mathlib/wiki/mathlib4-port-status). Relates to the following PRs: * `algebra.group.semiconj`: leanprover-community/mathlib4#717 * `algebra.group_with_zero.basic`: leanprover-community/mathlib4#669 * `algebra.group_with_zero.inj_surj`: leanprover-community/mathlib4#722 * `algebra.ring.inj_surj`: leanprover-community/mathlib4#734 * `algebra.ring.units`: leanprover-community/mathlib4#746 * `data.finite.defs`: leanprover-community/mathlib4#698 * `order.lattice`: leanprover-community/mathlib4#642
Regenerated from the [port status wiki page](https://github.com/leanprover-community/mathlib/wiki/mathlib4-port-status). Relates to the following PRs: * `algebra.group.semiconj`: leanprover-community/mathlib4#717 * `algebra.group_with_zero.basic`: leanprover-community/mathlib4#669 * `algebra.group_with_zero.inj_surj`: leanprover-community/mathlib4#722 * `algebra.ring.inj_surj`: leanprover-community/mathlib4#734 * `algebra.ring.units`: leanprover-community/mathlib4#746 * `data.finite.defs`: leanprover-community/mathlib4#698 * `order.lattice`: leanprover-community/mathlib4#642
Regenerated from the [port status wiki page](https://github.com/leanprover-community/mathlib/wiki/mathlib4-port-status). Relates to the following PRs: * `algebra.group.semiconj`: leanprover-community/mathlib4#717 * `algebra.group_with_zero.basic`: leanprover-community/mathlib4#669 * `algebra.group_with_zero.inj_surj`: leanprover-community/mathlib4#722 * `algebra.ring.inj_surj`: leanprover-community/mathlib4#734 * `algebra.ring.units`: leanprover-community/mathlib4#746 * `data.finite.defs`: leanprover-community/mathlib4#698 * `order.lattice`: leanprover-community/mathlib4#642
- [x] depends on: #642 - [x] depends on: leanprover-community/mathlib3#17730 Tracking mathlib commit: [e50b8c261b0a000b806ec0e1356b41945eda61f7](leanprover-community/mathlib3@e50b8c2) Co-authored-by: David Wärn <codwarn@gmail.com> Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Scott Morrison <scott@tqft.net>
Tracking mathlib commit: fd47bdf09e90f553519c712378e651975fe8c829