Logic, Type Systems, and Program Proof
-
Propositional Entailment and Countermodels
Check whether premises force a conclusion by translating failure of entailment into a satisfiability question.
-
Quantifier Order and First-Order Models
Read quantified statements against a domain and work out when a witness can depend on another variable.
-
Resolution and Clausal Refutation
Prove the soundness of the resolution rule and follow a short refutation down to the empty clause.
-
First-Order Unification and the Occurs Check
Solve term equations with substitutions and explain why a finite variable cannot denote a term that properly contains itself.
-
Natural Deduction and Proof Terms
Read introduction and elimination rules as operations on evidence and connect implication to function abstraction.
-
Capture-Avoiding Substitution and Alpha-Renaming
Evaluate a substitution where a bound name would otherwise capture the inserted free variable.
-
Small-Step Semantics and Evaluation Order
Specify a one-step reduction relation and use evaluation contexts to make the order of computation explicit.
-
Big-Step Semantics and Evaluation Derivations
Build a derivation from an environment to a result and explain what a missing derivation means in an inductive semantics.
-
Progress and Preservation in Type Soundness
Combine two local theorems into a claim about complete evaluation and see why each theorem has a distinct role.
-
The Simply Typed Lambda Calculus
Derive function types from application and abstraction rules and use self-application to expose a finite-type constraint.
-
Hindley–Milner Inference by Constraint Solving
Infer a function’s most general type by introducing unknowns and unifying the constraints generated by each application.
-
Let-Polymorphism and the Value Restriction
Explain when a let-bound definition can be reused at several types and how mutable allocation changes the rule.
-
Variance of Functions, Containers, and References
Derive covariance and contravariance from substitutability and see why read–write containers generally permit neither direction.
-
Algebraic Data Types as Sums and Products
Model selectable variants and simultaneous fields separately, then use cardinality to check a small representation.
-
Exhaustiveness and Redundancy in Pattern Matching
Find a concrete missing branch by expanding cases over a finite set of constructors and tracking which patterns remain useful.
-
Parametricity and Free Theorems
Use uniform behavior at a type variable to reason about a polymorphic function without reading its implementation.
-
Hoare Triples and Partial Correctness
Read a specification as a relationship between pre-state and post-state, and use a loop invariant to connect the two.
-
Weakest Preconditions for Assignments and Sequences
Calculate a necessary and sufficient precondition for a straight-line program by propagating the desired postcondition backward.
-
Separating Conjunction and the Frame Rule
Model the heap as disjoint fragments and prove a local update without restating all the memory it leaves untouched.
-
Temporal Specifications for Safety and Liveness
Write trace properties for request handling and distinguish a finite bad prefix from an indefinitely missing response.