Parity #
Equations
- x.instDecidablePredEven = decidable_of_iff (x % 2 = 0) ⋯
IsSquare
can be decided on ℕ
by checking against the square root.
Equations
- m.instDecidablePredIsSquare = decidable_of_iff' (m.sqrt * m.sqrt = m) ⋯
IsSquare
can be decided on ℕ
by checking against the square root.