CS 245 Logic and Computation
Lecture 7
Richard Trefler DC 2336 MW 3-4 http://www.student.math.uwaterloo.ca/˜cs245 uw.cs.cs245 cs245@student.uwaterloo.ca
– p.1/24
CS 245 Logic and Computation Lecture 7 Richard Trefler DC 2336 MW - - PowerPoint PPT Presentation
CS 245 Logic and Computation Lecture 7 Richard Trefler DC 2336 MW 3-4 http://www.student.math.uwaterloo.ca/cs245 uw.cs.cs245 cs245@student.uwaterloo.ca p.1/24 Propositional Logic 1. syntax (well-formed formulas) Syntax and
– p.1/24
TP )
ND)
ST)
– p.2/24
ST)
– p.3/24
– p.4/24
– p.5/24
CLOSED line #, line #
CLOSED line #, line #
– p.6/24
– p.7/24
– p.8/24
– p.9/24
– p.9/24
ST q
– p.9/24
CLOSED line #, line #
CLOSED line #, line #
– p.10/24
– p.11/24
– p.12/24
AND
NOT-AND
– p.13/24
ST q ∧ r
AND 1
CLOSED 5, 6 NOT-AND 3
CLOSED 2, 7
– p.14/24
– p.15/24
OR
NOT-OR
– p.16/24
– p.17/24
NOT-NOT
– p.18/24
IMPLIES
NOT-IMPLIES
– p.19/24
IFF
NOT-IFF
– p.20/24
ST
ST q then p1, p2, . . . , pn |
ST q
– p.21/24
– p.22/24
ST)
– p.23/24
– p.24/24