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) ⋯
@[deprecated Int.even_natCast (since := "2026-10-13")]
Alias of Int.even_natCast.