Parity of integers #
Parity #
@[instance_reducible]
Equations
- x✝.instDecidablePredEven = decidable_of_iff (x✝ % 2 = 0) ⋯
@[instance_reducible]
IsSquare can be decided on ℤ by checking against the square root.
Equations
- m.instDecidablePredIsSquare = decidable_of_iff' (Int.sqrt m * Int.sqrt m = m) ⋯