fp-lean
fp-lean copied to clipboard
Ch 4.2 Even Number Literals exercise has an outdated hint
For the base instance, it is necessary to write
OfNat Even Nat.zero
instead ofOfNat Even 0
.
After https://github.com/leanprover/lean4/issues/1389 was closed, OfNat
instances defined with Nat
literals could be resolved directly, so this hint is outdated. I did this exercise using OfNat Even 0
, and it works fine.