Documentation

Mathlib.Data.Int.Order.Basic

The order relation on the integers #

theorem Int.le.elim {a b : } (h : a b) {P : Prop} (h' : ∀ (n : ), a + n = bP) :
P
theorem Int.le_of_ofNat_le_ofNat {m n : } :
m nm n

Alias of the forward direction of Int.ofNat_le.

theorem Int.ofNat_le_ofNat_of_le {m n : } :
m nm n

Alias of the reverse direction of Int.ofNat_le.

theorem Int.lt.elim {a b : } (h : a < b) {P : Prop} (h' : ∀ (n : ), a + n.succ = bP) :
P
theorem Int.lt_of_ofNat_lt_ofNat {n m : } :
n < mn < m

Alias of the forward direction of Int.ofNat_lt.

theorem Int.ofNat_lt_ofNat_of_lt {n m : } :
n < mn < m

Alias of the reverse direction of Int.ofNat_lt.

@[implicit_reducible]
Equations
  • One or more equations did not get rendered due to their size.
theorem Int.eq_zero_or_eq_zero_of_mul_eq_zero {a b : } :
a * b = 0a = 0 b = 0

Alias of the forward direction of Int.mul_eq_zero.

theorem Int.nonneg_or_nonpos_of_mul_nonneg {a b : } :
0 a * b0 a 0 b a 0 b 0
theorem Int.mul_nonneg_of_nonneg_or_nonpos {a b : } :
0 a 0 b a 0 b 00 a * b
theorem Int.mul_nonneg_iff {a b : } :
0 a * b 0 a 0 b a 0 b 0
theorem Int.mul_pos_iff {a b : } :
0 < a * b 0 < a 0 < b a < 0 b < 0
theorem Int.mul_nonpos_iff {a b : } :
a * b 0 0 a b 0 a 0 0 b
theorem Int.mul_neg_iff {a b : } :
a * b < 0 0 < a b < 0 a < 0 0 < b