In 3. Interlude of the Functional Programming in Lean book, one of the exercises asks the reader to prove by simp
some few theorems, one of them is "Hello, ".append "world" = "Hello, world"
. However, when I write
theorem appendHelloWorld : "Hello, ".append "world" = "Hello, world" := by simp
I get an error message telling that simp made no progress
. How should I write the theorem to solve the exercise?
by simp
doesn’t work in the current version of Lean.by rfl
does work however. I would make an issue on the book’s GitHub or reach out to the author. $\endgroup$