Statement of Proposition: CSCI 1900 Discrete Structures
Statement of Proposition: CSCI 1900 Discrete Structures
CSCI 1900
Discrete Structures • Statement of proposition – a declarative
sentence that is either true or false, but not
both
Logical Operations • Examples:
Reading: Kolman, Section 2.1 – The earth is round: statement that is true
2+3=5: statement that is true
– Do you speak English? This is a question, not
a statement
CSCI 1900 – Discrete Structures Logical Operations – Page 1 CSCI 1900 – Discrete Structures Logical Operations – Page 2
1
Conjunction Disjunction
• If p and q are statements, then the • If p and q are statements, then the
conjunction of p and q is the compound disjunction of p and q is the compound
statement “p and q” statement “p or q”
• Denoted p∧q • Denoted p∨q
• p∧q is true only if both p and q are true • p∨q is true if either p or q are true
• Example: • Example:
– p: ETSU parking permits are expensive – p: I am a male
– q: ETSU has plenty of parking – q: I am under 40 years old
– p∧q = ? – p∨q = ?
CSCI 1900 – Discrete Structures Logical Operations – Page 7 CSCI 1900 – Discrete Structures Logical Operations – Page 8
CSCI 1900 – Discrete Structures Logical Operations – Page 9 CSCI 1900 – Discrete Structures Logical Operations – Page 10
CSCI 1900 – Discrete Structures Logical Operations – Page 11 CSCI 1900 – Discrete Structures Logical Operations – Page 12
2
Truth Tables are Important Tools Compound Statement Example
for this Material! (p ∧ q) ∨ (~p)
F F F T T
CSCI 1900 – Discrete Structures Logical Operations – Page 13 CSCI 1900 – Discrete Structures Logical Operations – Page 14
CSCI 1900 – Discrete Structures Logical Operations – Page 15 CSCI 1900 – Discrete Structures Logical Operations – Page 16
Universal quantification of a
Examples:
predicate P(x)
• Universal quantification of predicate P(x) = • P(x): -(-x) = x
For all values of x, P(x) is true – This predicate makes sense for all real
• Denoted ∀x P(x) numbers x.
– The universal quantification of P(x), ∀x P(x),
• The symbol ∀ is called the universal
is a true statement, because for all real
quantifier numbers, -(-x) = x
• The order in which multiple quantifications • Q(x): x+1<4
are considered does not affect the truth
– ∀x Q(x) is a false statement, because, for
value (e.g., ∀x ∀y P(x,y) ≡ ∀y ∀x P(x,y) ) example, Q(5) is not true
CSCI 1900 – Discrete Structures Logical Operations – Page 17 CSCI 1900 – Discrete Structures Logical Operations – Page 18
3
Applying both universal and
Existential quantification of a
existential quantification
predicate P(x)
• Order of application does matter
• Existential quantification of a predicate P(x) is
• Example: Let A and B be n x n matrices
the statement “There exists a value of x for
• The statement ∀A ∃B A + B = In
which P(x) is true.”
• Reads “for every A there is a B such that A + B =
• Denoted ∃x P(x) In”
• Existential quantification may be applied to • Prove by coming up for equations for bii and bij (j≠i)
several variables in a predicate • Now reverse the order: ∃B ∀A A + B = In
• Reads “there exists a B such that for all A A + B =
• The order in which multiple quantifications are In”
considered does not affect the truth value • THIS IS FALSE!
CSCI 1900 – Discrete Structures Logical Operations – Page 19 CSCI 1900 – Discrete Structures Logical Operations – Page 20
CSCI 1900 – Discrete Structures Logical Operations – Page 21 CSCI 1900 – Discrete Structures Logical Operations – Page 22