mathlib documentation

data.nat.succ_pred

Successors and predecessors of naturals #

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

@[protected, instance]
Equations
@[protected, instance]
Equations
theorem nat.succ_iterate (a n : ) :
nat.succ^[n] a = a + n
theorem nat.pred_iterate (a n : ) :
nat.pred^[n] a = a - n
@[protected, instance]
@[protected, instance]