Mathlib v3 is deprecated. Go to Mathlib v4

Commit 2020-08-15 20:41 d40c06f0

View on Github →

feat(algebra/ordered_field): rewrite and cleanup (#3751) Group similar lemmas in a more intuitive way Add docstrings, module doc and section headers Simplify some proofs Remove some implications if they had a corresponding iff lemma. Add some more variants of some lemmas Rename some lemmas for consistency List of name changes (the lemma on the right might be a bi-implication, if the original version was an implication): add_midpoint -> add_sub_div_two_lt le_div_of_mul_le, mul_le_of_le_div -> le_div_iff lt_div_of_mul_lt, mul_lt_of_lt_div -> lt_div_iff div_le_of_le_mul -> div_le_iff' le_mul_of_div_le -> div_le_iff div_lt_of_pos_of_lt_mul -> div_lt_iff' mul_le_of_neg_of_div_le, div_le_of_neg_of_mul_le -> div_le_iff_of_neg mul_lt_of_neg_of_div_lt, div_lt_of_neg_of_mul_lt -> div_lt_iff_of_neg div_le_div_of_pos_of_le -> div_le_div_of_le div_le_div_of_neg_of_le -> div_le_div_of_nonpos_of_le div_lt_div_of_pos_of_lt -> div_lt_div_of_lt div_mul_le_div_mul_of_div_le_div_nonneg -> div_mul_le_div_mul_of_div_le_div one_le_div_of_le, le_of_one_le_div, one_le_div_iff_le -> one_le_div one_lt_div_of_lt, lt_of_one_lt_div, one_lt_div_iff_lt -> one_lt_div div_le_one_iff_le -> div_le_one div_lt_one_iff_lt -> div_lt_one one_div_le_of_pos_of_one_div_le -> one_div_le one_div_le_of_neg_of_one_div_le -> one_div_le_of_neg div_lt_div_of_pos_of_lt_of_pos -> div_lt_div_of_lt_left One regression I noticed in some other files: when using div_le_iff, and the argument is proven by some lemma about linear_ordered_semiring then Lean gives a type mismatch. Presumably this happens because the instance chain ordered_field -> has_le doesn't go via ordered_semiring. The fix is to give the type explicitly, for example using div_le_iff (t : (0 : ℝ) < _)

Estimated changes

deleted theorem add_midpoint
added theorem add_sub_div_two_lt
added theorem div_le_div_of_le
modified theorem div_le_div_of_le_left
modified theorem div_le_div_of_le_of_nonneg
deleted theorem div_le_div_of_neg_of_le
deleted theorem div_le_div_of_pos_of_le
added theorem div_le_iff_of_neg'
deleted theorem div_le_of_le_mul
deleted theorem div_le_of_neg_of_mul_le
added theorem div_le_one
deleted theorem div_le_one_iff_le
added theorem div_le_one_of_neg
added theorem div_lt_div_of_lt
added theorem div_lt_div_of_lt_left
deleted theorem div_lt_div_of_pos_of_lt
added theorem div_lt_iff_of_neg'
deleted theorem div_lt_of_neg_of_mul_lt
deleted theorem div_lt_of_pos_of_lt_mul
added theorem div_lt_one
deleted theorem div_lt_one_iff_lt
added theorem div_lt_one_of_neg
modified theorem div_two_lt_of_pos
modified theorem exists_add_lt_and_pos_of_lt
modified theorem half_pos
modified theorem inv_le_inv_of_le
added theorem inv_le_inv_of_neg
added theorem inv_le_of_neg
added theorem inv_lt_inv_of_neg
added theorem inv_lt_of_neg
added theorem le_div_iff_of_neg'
deleted theorem le_div_of_mul_le
added theorem le_inv_of_neg
deleted theorem le_mul_of_div_le
modified theorem le_of_forall_sub_le
modified theorem le_of_one_div_le_one_div
deleted theorem le_of_one_le_div
added theorem le_one_div
added theorem le_one_div_of_neg
added theorem lt_div_iff_of_neg'
deleted theorem lt_div_of_mul_lt
added theorem lt_inv_of_neg
modified theorem lt_of_one_div_lt_one_div
deleted theorem lt_of_one_lt_div
added theorem lt_one_div
added theorem lt_one_div_of_neg
modified theorem mul_le_mul_of_mul_div_le
deleted theorem mul_le_of_le_div
deleted theorem mul_le_of_neg_of_div_le
deleted theorem mul_lt_of_lt_div
deleted theorem mul_lt_of_neg_of_div_lt
modified theorem one_div_le_neg_one
added theorem one_div_le_of_neg
modified theorem one_div_le_one_div_of_le
modified theorem one_div_lt_neg_one
added theorem one_div_lt_of_neg
modified theorem one_div_lt_one_div_of_lt
added theorem one_le_div
deleted theorem one_le_div_iff_le
deleted theorem one_le_div_of_le
added theorem one_le_div_of_neg
modified theorem one_le_inv
modified theorem one_le_one_div
added theorem one_lt_div
deleted theorem one_lt_div_iff_lt
deleted theorem one_lt_div_of_lt
added theorem one_lt_div_of_neg
modified theorem one_lt_one_div