Documentation

Mathlib.Algebra.Order.Ring.Int

The integers form a linear ordered ring #

This file contains:

Recursors #

Extra instances to short-circuit type class resolution #

These also prevent non-computable instances being used to construct these instances non-computably.

Equations
Equations

Miscellaneous lemmas #

theorem Int.isCompl_even_odd :
IsCompl {n : ℤ | Even n} {n : ℤ | Odd n}
theorem Nat.cast_natAbs {α : Type u_1} [AddGroupWithOne α] (n : ℤ) :
↑n.natAbs = ↑|n|
theorem Int.cast_mul_eq_zsmul_cast {α : Type u_1} [AddCommGroupWithOne α] (m : ℤ) (n : ℤ) :
↑(m * n) = m • ↑n

Note this holds in marginally more generality than Int.cast_mul

theorem Int.two_le_iff_pos_of_even {m : ℤ} (even : Even m) :
2 ≤ m ↔ 0 < m
theorem Int.add_two_le_iff_lt_of_even_sub {m : ℤ} {n : ℤ} (even : Even (n - m)) :
m + 2 ≤ n ↔ m < n