leanprover / theorem_proving_in_lean

Theorem proving in Lean
Apache License 2.0
47 stars 46 forks source link

Exercise 4.6.4 doesn't contain definition of `even` #117

Closed martincmartin closed 1 year ago

martincmartin commented 2 years ago

In the exercises at the end of chapter 4, exercise 4 starts with:

import data.nat.basic

#check even

However, the check fails since even isn't defined.

is_even is defined earlier in the chapter as:

def is_even (a : nat) := ∃ b, a = 2 * b