lean4-htt/src/Std/Data/Iterators
Paul Reichert 0725349bbd
feat: high-level order typeclasses (#9729)
This PR introduces a canonical way to endow a type with an order
structure. The basic operations (`LE`, `LT`, `Min`, `Max`, and in later
PRs `BEq`, `Ord`, ...) and any higher-level property (a preorder, a
partial order, a linear order etc.) are then put in relation to `LE` as
necessary. The PR provides `IsLinearOrder` instances for many core types
and updates the signatures of some lemmas.

**BREAKING CHANGES:**

* The requirements of the `lt_of_le_of_lt`/`le_trans` lemmas for
`Vector`, `List` and `Array` are simplified. They now require an
`IsLinearOrder` instance. The new requirements are logically equivalent
to the old ones, but the `IsLinearOrder` instance is not automatically
inferred from the smaller typeclasses.
* Hypotheses of type `Std.Total (¬ · < · : α → α → Prop)` are replaced
with the equivalent class `Std.Asymm (· < · : α → α → Prop)`. Breakage
should be limited because there is now an instance that derives the
latter from the former.
* In `Init.Data.List.MinMax`, multiple theorem signatures are modified,
replacing explicit parameters for antisymmetry, totality, `min_ex_or`
etc. with corresponding instance parameters.
2025-08-11 14:55:17 +00:00
..
Combinators chore: fix spelling errors (#9175) 2025-07-24 23:35:32 +00:00
Lemmas feat: high-level order typeclasses (#9729) 2025-08-11 14:55:17 +00:00
Producers refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
Combinators.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
Lemmas.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
Producers.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00