Preface
Basics: Functional Programming in Coq
- Introduction
- Enumerated Types
- Proof by Simplification
- Proof by Rewriting
- Proof by Case Analysis
- More Exercises
Induction: Proof by Induction
Lists: Working with Structured Data
Poly: Polymorphism and Higher-Order Functions
Tactics: More Basic Tactics
- The apply Tactic
- The apply ... with ... Tactic
- The inversion tactic
- Using Tactics on Hypotheses
- Varying the Induction Hypothesis
- Unfolding Definitions
- Using destruct on Compound Expressions
- Review
- Additional Exercises
Logic: Logic in Coq
IndProp: Inductively Defined Propositions
- Inductively Defined Propositions
- Using Evidence in Proofs
- Inductive Relations
- Case Study: Regular Expressions
- Improving Reflection
- Additional Exercises
Maps: Total and Partial Maps
ProofObjects: The Curry-Howard Correspondence
- Proof Scripts
- Quantifiers, Implications, Functions
- Connectives as Inductive Types
- Programming with Tactics
- Equality
IndPrinciples: Induction Principles
- Basics
- Polymorphism
- Induction Hypotheses
- More on the induction Tactic
- Induction Principles in Prop
- Formal vs. Informal Proofs by Induction
SfLib: Software Foundations Library
Rel: Properties of Relations
Imp: Simple Imperative Programs
- Arithmetic and Boolean Expressions
- Coq Automation
- Evaluation as a Relation
- Expressions With Variables
- Commands
- Evaluation
- Reasoning About Imp Programs
- Additional Exercises
ImpParser: Lexing and Parsing in Coq
ImpCEvalFun: Evaluation Function for Imp
- A Broken Evaluator
- A Step-Indexed Evaluator
- Relational vs. Step-Indexed Evaluation
- Determinism of Evaluation Again
Extraction: Extracting ML from Coq
Equiv: Program Equivalence
- Behavioral Equivalence
- Properties of Behavioral Equivalence
- Program Transformations
- Proving That Programs Are Not Equivalent
- Extended Exercise: Nondeterministic Imp
- Additional Exercises
Hoare: Hoare Logic, Part I
Hoare2: Hoare Logic, Part II
- Decorated Programs
- Finding Loop Invariants
- Weakest Preconditions (Optional)
- Formal Decorated Programs (Optional)
HoareAsLogic: Hoare Logic as a Logic
Smallstep: Small-step Operational Semantics
- A Toy Language
- Relations
- Multi-Step Reduction
- Small-Step Imp
- Concurrent Imp
- A Small-Step Stack Machine
Auto: More Automation
Types: Type Systems
Stlc: The Simply Typed Lambda-Calculus
StlcProp: Properties of STLC
MoreStlc: More on the Simply Typed Lambda-Calculus
Sub: Subtyping
Typechecking
Records: Adding Records to STLC
References: Typing Mutable References
- Definitions
- Syntax
- Pragmatics
- Operational Semantics
- Typing
- Properties
- References and Nontermination
- Additional Exercises
RecordSub: Subtyping with Records
Norm: Normalization of STLC
LibTactics: A Collection of Handy General-Purpose Tactics
- Tools for programming with Ltac
- Identity continuation
- Untyped arguments for tactics
- Optional arguments for tactics
- Wildcard arguments for tactics
- Position markers
- List of arguments for tactics
- Databases of lemmas
- On-the-fly removal of hypotheses
- Numbers as arguments
- Testing tactics
- Check no evar in goal
- Helper function for introducing evars
- Tagging of hypotheses
- Tagging of hypotheses
- Deconstructing terms
- Action at occurence and action not at occurence
- An alias for eq
- Common tactics for simplifying goals like intuition
- Backward and forward chaining
- Introduction and generalization
- Rewriting
- Inversion
- Induction
- Coinduction
- Decidable equality
- Equivalence
- N-ary Conjunctions and Disjunctions
- Tactics to prove typeclass instances
- Tactics to invoke automation
- Tactics to sort out the proof context
- Tactics for development purposes
- Compatibility with standard library
- Additional notations for Coq
UseTactics: Tactic Library for Coq: A Gentle Introduction
- Tactics for introduction and case analysis
- Tactics for n-ary connectives
- Tactics for working with equality
- Some convenient shorthands
- Tactics for advanced lemma instantiation
- Summary
UseAuto: Theory and Practice of Automation in Coq Proofs
- Basic Features of Proof Search
- How Proof Search Works
- Examples of Use of Automation
- Advanced Topics in Proof Search
- Decision Procedures
- Summary
PE: Partial Evaluation
- Generalizing Constant Folding
- Partial Evaluation of Commands, Without Loops
- Partial Evaluation of Loops
- Partial Evaluation of Flowchart Programs