fp-lean icon indicating copy to clipboard operation
fp-lean copied to clipboard

Ch 4.2 Even Number Literals exercise has an outdated hint

Open sanpoyur opened this issue 1 year ago • 1 comments

For the base instance, it is necessary to write OfNat Even Nat.zero instead of OfNat 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.

sanpoyur avatar Oct 25 '23 23:10 sanpoyur