ℤ facts #
theorem
Int.coe_natAbs_eq_self
{R : Type u_1}
[Ring R]
[LinearOrder R]
[IsStrictOrderedRing R]
{a : ℤ}
(h : 0 ≤ a)
:
Coercion of natAbs to any linearly ordered ring is equal to a for nonnegative a
theorem
Int.coe_natAbs_eq_neg
{R : Type u_1}
[Ring R]
[LinearOrder R]
[IsStrictOrderedRing R]
{a : ℤ}
(h : a ≤ 0)
:
Coercion of natAbs to any linearly ordered ring is equal to -a for nonpositive a
theorem
Int.induction_overlap
{p : ℤ → Prop}
(hi : ∀ (n : ℕ), p ↑n)
(lo : ∀ (n : ℕ), p (-↑n))
(n : ℤ)
:
p n
p is true for all integers if it is true for nonnegative and nonpositive integers.
This is a slightly nicer induction principle on the integers that covers zero twice to reduce notational clutter.