Media Summary: Structural induction can be used to prove the correctness of functions on lists Textbook: Drilling down into the parts of a function specification: preconditions, postconditions, Developing an implementation of a data abstraction, as an ongoing
Example Proof Preorder And Length Ocaml Programming Chapter 6 Video 31 - Detailed Analysis & Overview
Structural induction can be used to prove the correctness of functions on lists Textbook: Drilling down into the parts of a function specification: preconditions, postconditions, Developing an implementation of a data abstraction, as an ongoing Abstraction functions are...abstract. So how could you implement them? Conversion to strings is an Structural induction can be used to prove the correctness of functions on trees Textbook: A notion of "behavioral equality" is at the heart of reasoning about the correctness of functional programs Textbook: ...
Defining a persistent stack data structure as an Representation invariants can be implemented and used to Developing a second implementation of a data abstraction, as an ongoing A template for function specifications Textbook: How to implement a function that counts up with every invocation, using references Textbook: The abstraction function is the key piece of documentation an implementer needs to write; it relates the implementer's view of the ...