frap/README.md

38 lines
2.6 KiB
Markdown
Raw Normal View History

# Formal Reasoning About Programs
This is an in-progress, open-source book by [Adam Chlipala](http://adam.chlipala.net/) simultaneously introducing [the Coq proof assistant](http://coq.inria.fr/) and techniques for proving correctness of programs. That is, the game is doing completely rigorous, machine-checked mathematical proofs, showing that programs meet their specifications.
2017-02-09 17:25:45 +00:00
Just run `make` here to build everything, including the book `frap_book.pdf` and the accompanying Coq source modules. Alternatively, run `make lib' to build just the book library, not the chapter example files or PDF.
# Code associated with the different chapters
2017-02-09 17:25:45 +00:00
The main narrative, also present in the book PDF, presents standard program-proof ideas, without rigorous proofs. Matching Coq files here show how to make it rigorous. Interleaved with that narrative, there are also other lectures' worth of material, for building up more practical background on Coq itself. That secondary track appears in this list, too, at a higher level of indentation.
* Chapter 2: `BasicSyntax.v`
2017-02-09 18:54:58 +00:00
* `Polymorphism.v`: polymorphism and generic data structures
2017-02-20 21:06:33 +00:00
* Chapter 3: `DataAbstraction.v`
* Chapter 4: `Interpreters.v`
2018-02-18 17:49:36 +00:00
* `FirstClassFunctions.v`: functions as data; continuations and continuation-passing style
2017-02-20 21:06:33 +00:00
* Chapter 5: `TransitionSystems.v`
2017-03-01 19:06:11 +00:00
* `IntroToProofScripting.v`: writing scripts to find proofs in Coq
2017-02-20 21:06:33 +00:00
* Chapter 6: `ModelChecking.v`
2017-03-08 15:44:25 +00:00
* `ProofByReflection.v`: writing verified proof procedures in Coq
2017-02-20 21:06:33 +00:00
* Chapter 7: `OperationalSemantics.v`
2017-03-14 21:16:09 +00:00
* `LogicProgramming.v`: 'eauto' and friends, to automate proofs via logic programming
2017-02-20 21:06:33 +00:00
* Chapter 8: `AbstractInterpretation.v`
* Chapter 9: `CompilerCorrectness.v`
* Chapter 10: `LambdaCalculusAndTypeSoundness.v`
* Chapter 11: `TypesAndMutation.v`
* Chapter 12: `HoareLogic.v`
* Chapter 13: `DeepAndShallowEmbeddings.v`
* Chapter 14: `SeparationLogic.v`
* Chapter 15: `Connecting.v`
* Chapter 16: `ProgramDerivation.v`
* Chapter 17: `SharedMemory.v`
* Chapter 18: `ConcurrentSeparationLogic.v`
* Chapter 19: `MessagesAndRefinement.v`
2017-03-21 23:27:36 +00:00
There are also two supplementary files that are independent of the main narrative, for introducing programming with dependent types, a distinctive Coq feature that we neither use nor recommend for the problem sets, but which many students find interesting (and useful in other contexts).
* `SubsetTypes.v`: a first introduction to dependent types by attaching predicates to normal types (used after `CompilerCorrectness.v` in the last course offering)
2017-04-03 00:50:10 +00:00
* `DependentInductiveTypes.v`: building type dependency into datatype definitions (used after `LambdaCalculusAndTypeSoundness.v` in the last course offering)