1
Today
- Predicate calculus as a representation language
- Modal logic: beyond true and false
Alan Smaill KRI Jan 14 2008 2
Grammar for first-order logic
. . . aka predicate calculus Define terms by term ::= constant | var | fn symbol ( term list ) term list ::= term | term , term list
Alan Smaill KRI Jan 14 2008 3
Formulas (= making a statement)
form ::= pred ( term list ) | ¬ form | form ∨ form | form ∧ form | form → form | ∀ var form | ∃ var form Use precedence to disambiguate (or brackets).
Alan Smaill KRI Jan 14 2008 4
Semantics
We say what it is for a formula to be true under an interpretation in a structure. Write S for a structure together with an associated interpretation I. Given S, and a formula F , write S | = F for “F is true in S”. For details, see Russell and Norvig, chapter 8, section 2.
Alan Smaill KRI Jan 14 2008