Parity of integers #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
This file contains theorems about the even
and odd
predicates on the integers.
Tags #
even, odd
@[protected, instance]
Equations
- int.even.decidable_pred = λ (n : ℤ), decidable_of_iff (n % 2 = 0) _
@[protected, instance]
Equations
- int.odd.decidable_pred = λ (n : ℤ), decidable_of_iff (¬even n) _
@[protected]
Alias of the reverse direction of int.nat_abs_even
.
@[protected]
Alias of the reverse direction of int.nat_abs_odd
.