Mathlib v3 is deprecated. Go to Mathlib v4

Commit 2020-10-27 11:55 e0b153b2

View on Github →

refactor(*): drop decidable_linear_order, switch to Lean 3.22.0 (#4762) The main non-bc change in Lean 3.22.0 is leanprover-community/lean#484 which merges linear_order with decidable_linear_order. This is the mathlib part of this PR.

List of API changes

  • All *linear_order* typeclasses now imply decidability of (≤), (<), and (=).
  • Drop classical.DLO.
  • Drop discrete_linear_ordered_field, use linear_ordered_field instead.
  • Drop decidable_linear_ordered_semiring, use linear_ordered_semiring instead.
  • Drop decidable_linear_ordered_comm_ring, use linear_ordered_comm_ring instead;
  • Rename decidable_linear_ordered_cancel_add_comm_monoid to linear_ordered_cancel_add_comm_monoid.
  • Rename decidable_linear_ordered_add_comm_group to linear_ordered_add_comm_group.
  • Modify some lemmas to use weaker typeclass assumptions.
  • Add more lemmas about ordering.compares, including linear_order_of_compares which constructs a linear_order instance from cmp function.

Estimated changes

modified theorem int.cast_abs
modified theorem int.cast_max
modified theorem int.cast_min
modified theorem nat.abs_cast
modified theorem nat.cast_max
modified theorem nat.cast_min
modified theorem rat.cast_abs
modified theorem rat.cast_max
modified theorem rat.cast_min
modified theorem with_bot.coe_le_coe
modified theorem with_bot.inf_eq_min
modified theorem with_bot.lattice_eq_DLO
modified theorem with_bot.some_le_some
modified theorem with_bot.sup_eq_max
modified theorem with_top.inf_eq_min
modified theorem with_top.lattice_eq_DLO
modified theorem with_top.sup_eq_max
modified theorem is_greatest.insert
modified theorem is_greatest.union
modified theorem is_greatest_pair
modified theorem is_least.insert
modified theorem is_least.union
modified theorem is_least_pair
modified theorem inf_eq_min
modified theorem sup_eq_max