Mathlib v3 is deprecated. Go to Mathlib v4

Commit 2021-06-25 18:48 6666ba2f

View on Github →

fix(real/sign): make real.sign 0 = 0 to match int.sign 0 (#8080) Previously sign 0 = 1 which is quite an unusual definition. This definition brings things in line with int.sign, and include a proof of this fact. A future refactor could probably introduce a sign for all rings with a partial order

Estimated changes

modified def real.sign
modified theorem real.sign_apply_eq
added theorem real.sign_eq_zero_iff
added theorem real.sign_int_cast
modified theorem real.sign_neg
deleted theorem real.sign_of_not_neg
added theorem real.sign_of_pos
deleted theorem real.sign_of_zero_le
modified theorem real.sign_zero