mathlib documentation

core / init.data.int.comp_lemmas

@[protected]
theorem int.ne_neg_of_ne {a b : ℤ} :
a ≠ b → -a ≠ -b
@[protected]
theorem int.neg_ne_zero_of_ne {a : ℤ} :
a ≠ 0 → -a ≠ 0
@[protected]
theorem int.zero_ne_neg_of_ne {a : ℤ} (h : 0 ≠ a) :
0 ≠ -a
@[protected]
theorem int.neg_ne_of_pos {a b : ℤ} :
0 < a → 0 < b → -a ≠ b
@[protected]
theorem int.ne_neg_of_pos {a b : ℤ} :
0 < a → 0 < b → a ≠ -b
@[protected]
theorem int.one_pos  :
0 < 1
@[protected]
theorem int.bit0_pos {a : ℤ} :
0 < a → 0 < bit0 a
@[protected]
theorem int.bit1_pos {a : ℤ} :
0 ≤ a → 0 < bit1 a
@[protected]
theorem int.zero_nonneg  :
0 ≤ 0
@[protected]
theorem int.one_nonneg  :
0 ≤ 1
@[protected]
theorem int.bit0_nonneg {a : ℤ} :
0 ≤ a → 0 ≤ bit0 a
@[protected]
theorem int.bit1_nonneg {a : ℤ} :
0 ≤ a → 0 ≤ bit1 a
@[protected]
theorem int.nonneg_of_pos {a : ℤ} :
0 < a → 0 ≤ a
theorem int.zero_le_of_nat (n : ℕ) :
theorem int.ne_of_nat_abs_ne_nat_abs_of_nonneg {a b : ℤ} (ha : 0 ≤ a) (hb : 0 ≤ b) (h : a.nat_abs ≠ b.nat_abs) :
a ≠ b
@[protected]
theorem int.ne_of_nat_ne_nonneg_case {a b : ℤ} {n m : ℕ} (ha : 0 ≤ a) (hb : 0 ≤ b) (e1 : a.nat_abs = n) (e2 : b.nat_abs = m) (h : n ≠ m) :
a ≠ b
@[protected]
theorem int.nat_abs_add_nonneg {a b : ℤ} :
0 ≤ a → 0 ≤ b → (a + b).nat_abs = a.nat_abs + b.nat_abs
@[protected]
theorem int.nat_abs_add_neg {a b : ℤ} :
a < 0 → b < 0 → (a + b).nat_abs = a.nat_abs + b.nat_abs
@[protected]
theorem int.nat_abs_bit0 (a : ℤ) :
@[protected]
theorem int.nat_abs_bit0_step {a : ℤ} {n : ℕ} (h : a.nat_abs = n) :
@[protected]
theorem int.nat_abs_bit1_nonneg {a : ℤ} (h : 0 ≤ a) :
@[protected]
theorem int.nat_abs_bit1_nonneg_step {a : ℤ} {n : ℕ} (h₁ : 0 ≤ a) (h₂ : a.nat_abs = n) :