I had difficulty explaining Nat.below and Nat.brecOn in Section Structural Recursion and Induction of Theorem Proving in Lean 4. Sadly, I'll have to record a video of myself doing it again because my explanation missed the point. Still, I'm glad that I understood course-of-values recursion so much better than I did four years ago.

I was able to prove that the definition of the Fibonacci function, which directly uses Nat.brecOn, is equivalent to the one that doesn't.

• Section Structural Recursion and Induction of Theorem Proving in Lean 4: lean-lang.org/theorem_proving_
• My proof: leanprover.zulipchat.com/#narr

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mathstodon.xyz/users/chabulhwi/statuses/116004471122771644 on your instance and quote it. (Note that quoting is not supported in Mastodon.)