Proofs, Recursion & Automata

Structural Induction: Worked Examples

21:05

Plays from YouTube. Watch on YouTube

Why can reversing a list twice require proving a completely different lemma first?

Meet Structural Induction: Worked Examples: an animated exploration of mathematical recursion and its proof techniques.

We start with recursive list append and reverse definitions.

From there, we derive associativity, reverse-of-append, double reversal and accumulator correctness.

Then we use structural tree counting to show how smaller lemmas support a large theorem.

The big idea: sound recursive reasoning makes the smaller dependencies and the combining argument explicit.

Computer science and mathematics explained visually, one worked example at a time.