Functional Programming & Proofs


V. Coq proof assistant

  1. Sample proofs

b. Proof using trees
The following example gives the illustration of binary trees with two functions: "size" that counts the numbers of values (similar to the length of a list), and "swap" that mirror a tree.

source


6 - 7