Lecture 004

Quantifiers

Existential Quantifier: (\exists x \in S)P(x) means "there exists an x in S such that P(x) holds." (某个)

Universal Quantifier: (\forall x \in S)P(x) mean "for every x in S, P(x) holds true". (全部)

Alternating Quantifiers

When both \exists and \forall in a statement, order matters. "All people loves some people"

Let P(x, y) denotes "x loves y"

  1. (\forall x \in U)(\exists y \in U)P(x, y) means "everybody loves somebody."
  2. (\exists y \in U)(\forall x \in U)P(x, y) means "there is somebody who is loved by everybody."

Truth Tables and Logical Connectives

Truth Table: a table with one row for each possible combination of truth values for the elementary propositions (sentence symbols) and columns containing the truth values for compound statements formed from them.

Negation(\lnot, \neg, \sim) Conjunction(\land, \wedge, \&) Disjunction(\lor, \vee, \parallel) Implication(\implies, \to, \Rightarrow, \rightarrow, \supset): P \implies Q \equiv \lnot P \lor Q

P Q P->Q
T T T
T F F
F T T
F F T
> When P is F, it has nothing to do with implication

Examples:


Homework due by noon Friday. TODO go to office hour

Table of Content