Documentation

Mathlib.Data.Int.SuccPred

Successors and predecessors of integers #

In this file, we show that ℤ is both an archimedean SuccOrder and an archimedean PredOrder.

@[reducible, inline]
Equations
@[reducible, inline]
Equations
@[deprecated Order.one_le_iff_pos (since := "2024-09-04")]
theorem Int.pos_iff_one_le {a : ℤ} :
0 < a ↔ 1 ≤ a
@[deprecated Order.succ_iterate (since := "2024-09-04")]
theorem Int.succ_iterate (a : ℤ) (n : ℕ) :
succ^[n] a = a + ↑n
@[deprecated Order.pred_iterate (since := "2024-09-04")]
theorem Int.pred_iterate (a : ℤ) (n : ℕ) :
pred^[n] a = a - ↑n

Covering relation #

@[deprecated Order.covBy_iff_add_one_eq (since := "2024-09-04")]
theorem Int.covBy_iff_succ_eq {m n : ℤ} :
m ⋖ n ↔ m + 1 = n
@[deprecated Order.sub_one_covBy (since := "2024-09-04")]
theorem Int.sub_one_covBy (z : ℤ) :
z - 1 ⋖ z
@[deprecated Order.covBy_add_one (since := "2024-09-04")]
theorem Int.covBy_add_one (z : ℤ) :
z ⋖ z + 1
@[simp]
theorem Int.natCast_covBy {a b : ℕ} :
↑a ⋖ ↑b ↔ a ⋖ b
theorem CovBy.intCast {a b : ℕ} :
a ⋖ b → ↑a ⋖ ↑b

Alias of the reverse direction of Int.natCast_covBy.