Parity of natural numbers #
This file contains theorems about the even
and odd
predicates on the natural numbers.
Tags #
even, odd
@[protected, instance]
Equations
- nat.even.decidable_pred = λ (n : ℕ), decidable_of_iff (n % 2 = 0) _
@[protected, instance]
Equations
- nat.odd.decidable_pred = λ (n : ℕ), decidable_of_iff (¬even n) _
theorem
neg_one_pow_eq_one_iff_even
{R : Type u_1}
[monoid R]
[has_distrib_neg R]
{n : ℕ}
(h : -1 ≠ 1) :