Discussion 0A
Ming Li
OH: Th 3 to 4pm in Soda 651
Discussion: TuTh 5 to 6pm in Dwinelle 105
Logistics: Piazza and sp19@eecs70.org

Introductions

  • your name
  • one interesting thing you did over break
  • one movie you are embarrassed to have not seen yet

Review

Propositional Logic

  • proposition: statement that evaluates to true or false
  • conjunction: PQP \land Q, P and QP \text{ and } Q
  • disjunction: PQP \lor Q, P or QP \text{ or } Q
  • negation: ¬P\lnot P, not P\text{not } P
  • implication: PQP \Rightarrow Q, ¬PQ\lnot P \lor Q
  • when PP is false, the implication is true regardless of QQ. this is called a vacuous statement
  • hypothesisconclusion\text{hypothesis} \Rightarrow \text{conclusion}
  • given an implication PQP \Rightarrow Q
  • contrapositive: ¬Q¬P\lnot Q \Rightarrow \lnot P
  • has the same truth value
  • (PQ)(¬PQ)(Q¬P)(¬Q¬P)(P \Rightarrow Q) \equiv (\lnot P \lor Q) \equiv (Q \lor \lnot P) \equiv (\lnot Q \Rightarrow \lnot P)
  • converse: QPQ \Rightarrow P
  • not necessarily the same truth value
  • PQP \equiv Q means both PQP \Rightarrow Q and QPQ \Rightarrow P

Quantifiers

  • universal quantifier: \forall, for all
  • xP(x)\forall x P(x) is whether P(x)P(x) evaluates to true for all values of xx
  • existential quantifier: \exists, there exists
  • xP(x)\exists x P(x) is whether P(x)P(x) evaluates to true for some value of xx

Negation

  • ¬(PQ)(¬P¬Q)\lnot (P \land Q) \equiv (\lnot P \lor \lnot Q)
  • ¬(PQ)(¬P¬Q)\lnot (P \lor Q) \equiv (\lnot P \land \lnot Q)
  • ¬(xP(x))x¬P(x)\lnot (\forall x P(x)) \equiv \exists x \lnot P(x)
  • ¬(xP(x))x¬P(x)\lnot (\exists x P(x)) \equiv \forall x \lnot P(x)