
Formal Methods Explained with Max Example

Formal methods with Hillel Wayne
Topic 4 of 17
Published Jul 29, 2026 · Clip 18:14–24:24 (6:10)
Hillel explains formal methods via a max function example: writing tests relies on implicit knowledge of what the function should do; formal methods make that knowledge an explicit specification and verify the function matches it, ideally for all possible inputs via proof. He contrasts hand proofs with automated theorem provers, then explains why formal methods aren't used for everything: real domain problems require so much context (file systems, encodings, permissions, symlinks) that writing the spec becomes a nightmare, and a 99%-correct imperative program is usually good enough.