Basic operations on the integers #
This file contains some basic lemmas about integers.
See note [foundational algebra order theory].
TODO #
Split this file into:
succ and pred #
nat abs #
theorem
Int.natAbs_add_of_nonneg
{a : ℤ}
{b : ℤ}
:
0 ≤ a → 0 ≤ b → Int.natAbs (a + b) = Int.natAbs a + Int.natAbs b
theorem
Int.natAbs_add_of_nonpos
{a : ℤ}
{b : ℤ}
(ha : a ≤ 0)
(hb : b ≤ 0)
:
Int.natAbs (a + b) = Int.natAbs a + Int.natAbs b
@[deprecated Int.natAbs_ne_zero]
/
#
mod #
properties of /
and %
#
toNat #
@[deprecated Int.ofNat_eq_natCast]
Alias of Int.ofNat_eq_natCast
.
@[deprecated Int.natCast_inj]
Alias of Int.natCast_inj
.
@[deprecated Int.natCast_sub]
Alias of Int.natCast_sub
.
@[deprecated Int.natCast_nonneg]
Alias of Int.natCast_nonneg
.
@[deprecated Int.sign_natCast_add_one]
Alias of Int.sign_natCast_add_one
.
@[deprecated Int.natCast_succ]
Alias of Int.natCast_succ
.
@[deprecated Int.succ_neg_natCast_succ]
Alias of Int.succ_neg_natCast_succ
.
@[deprecated Int.natCast_pred_of_pos]
Alias of Int.natCast_pred_of_pos
.
@[deprecated Int.natCast_div]
Alias of Int.natCast_div
.
@[deprecated Int.natCast_ediv]
Alias of Int.natCast_ediv
.
@[deprecated Int.sign_natCast_of_ne_zero]
Alias of Int.sign_natCast_of_ne_zero
.
@[deprecated Int.toNat_natCast]
Alias of Int.toNat_natCast
.
@[deprecated Int.toNat_natCast_add_one]
Alias of Int.toNat_natCast_add_one
.