CS 245, Fall 2017, Instructor-Specific Page for Alice Gao

My website

Roadmaps of CS 245

Propositional logic

Predicate logic

Program verification

Undecidability

Resources

Introduction and Propositional Logic

(Slides) Intro to Logic and Propositional Logic

(Slides) Propositional Logic: Translations, Syntax

Propositional Logic: Transltions and Syntax

Propositional Logic: Structural Induction

Template for well-formed formulas

Example: Brackets in well-formed formulas

Example: Brackets in proper prefixes

Unique readability theorem

Template for any recursive structure

Propositional Logic: Semantics

(Slides) Propositional Logic: Semantics

The meaning of the connectives

Valuation trees

Tautology, contradiction, and/or satisfiable

Logical equivalence

Proving that a set of connectives is adequate

Proving that a set of connectives is not adequate

Propositional Logic: Semantic Entailment and Natural Deduction

(Slides) Propositional Logic: Semantic Entailment and Natural Deduction

Proving or disproving semantic entailment

Natural deduction rules and examples

The onnagata problem

The superman problem

The knights and knaves problem

Implication proof 1

Implication proof 2

A4Q1b and c (posted on Learn)

Soundness and completeness of natural deduction


Predicate Logic

(Slides) Predicate Logic: Translations

Translation examples

Summary of translations and exercises

(Slides) Predicate Logic: Syntax

Syntax

Careful subsitution

Predicate Logic: Semantics

Evaluating terms and formulas without quantifiers

Evaluate quantified formulas

Common questions about defining an environment

Interpreting the quantifiers

Predicate Logic: Semantic Entailment and Natural Deduction

Proving and disproving semantic entailment

Natural deduction rules and examples

Natural deduction proofs that don't work

Soundness and completeness

Axioms for equality

Peano Arithmetic 1

Peano Arithmetic 2


Program Verification

(Slides) Program Verification

(Slides) Program Verification: Array Assignments

Assignments and Conditional Statements

While loops - proving partial correctness and termination

Examples of finding invariants for while loops

Array assignment

Reversing an array (array assignment and while loops)


Undecidability

Undecidability (empty)

Undercidability: Reduction (empty)

Undecidability solutions

Decidability example

Midterm Review (Fall 2017)

Semantic Entailment (New Tue Oct 31)

Soundness and completeness (posted on Learn) (New Tue Oct 31)

Additional problems

Summaries of Feedback

Oct 5 feedback by 8:30am section

Oct 5 feedback by 10am section