|
|
CPSC 201: Introduction to Computer Science |
|
|||||||||||||||
|
|
|
|
Instructor: Carsten Schürmann Department of Computer Science Yale University Time: MWF 11:30-12:20 Room: AKW200 |
|
|
||||||||||||
|
|
Lecture 5In this lecture we start to talk about the relation between inductive datatypes and correctness. In fact, there is a strong link between the two. In mathematicians we know how to do inductive proofs over natural numbers, and in computer science, we push this principle forwards and generalize it to a principle of structural induction over datatype declarations. In this lecture, we review mathematical induction using factorial numbers as example. Code: poker.sml. Reading: Programming Standard ML.
|
|
||||||||||||||