mathlib3 documentation

data.int.succ_pred

Successors and predecessors of integers #

THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.

In this file, we show that ℤ is both an archimedean succ_order and an archimedean pred_order.

@[protected, instance, reducible]
Equations
@[protected, instance, reducible]
Equations
theorem int.pos_iff_one_le {a : ℤ} :
0 < a ↔ 1 ≤ a
theorem int.succ_iterate (a : ℤ) (n : ℕ) :
theorem int.pred_iterate (a : ℤ) (n : ℕ) :
@[protected, instance]
@[protected, instance]

Covering relation #

@[protected]
theorem int.covby_iff_succ_eq {m n : ℤ} :
m ⋖ n ↔ m + 1 = n
@[simp]
theorem int.sub_one_covby (z : ℤ) :
z - 1 ⋖ z
@[simp]
theorem int.covby_add_one (z : ℤ) :
z ⋖ z + 1
@[simp, norm_cast]
theorem nat.cast_int_covby_iff {a b : ℕ} :
↑a ⋖ ↑b ↔ a ⋖ b
theorem covby.cast_int {a b : ℕ} :
a ⋖ b → ↑a ⋖ ↑b

Alias of the reverse direction of nat.cast_int_covby_iff.