mathlib3
99e308d3 - chore(parity): even and odd in semiring (#4473)

Commit
5 years ago
chore(parity): even and odd in semiring (#4473) Replaces the ad-hoc `nat.even`, `nat.odd`, `int.even` and `int.odd` by definitions that make sense in semirings and get that `odd` can be `rintros`/`rcases`'ed. This requires almost no change except that `even` is not longer usable as a dot notation (which I see as a feature since I find `even n` to be more readable than `n.even`). Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Author
Parents
Loading