DS - W2 - Lecture 2
DS - W2 - Lecture 2
P Q PQ
true true true
true false false
false true true
false false true
Conditional Statements
Biconditional Statements
Definition: Let p and q be propositions. The biconditional
statement pq, is the proposition “p if and
only if q”.
The biconditional (bi-implication) statement p
q is true when p and q have same truth
values and is false otherwise.
Example: You can take the flight if and only if you buy a ticket.
Biconditional (if and only if)
It is not hot. p
It is hot and sunny. pq
It is hot or sunny. pq
Translating from English to Logic
In logic form:
p(pq)
Composite Statements
• Statements and operators can be combined in any way to
form new statements.
P Q P Q (P)(Q)
true true false false false
true false false true true
false true true false true
false false true true true
Logical Equivalence
Definition
Two proposition form are called logically equivalent if
and only if they have identical truth values for each
possible substitution of propositions for their
proposition variable.
Solution
p ¬p ¬ (¬p)
T F T
F T F
• De Morgan’s Laws
• Tautology
• Contradiction
• Laws of Logic
Tautologies and Contradictions
Examples:
• R(R)
((PQ)(P)(Q))
De Morgan’s laws
De Morgan’s laws state that:
The negation of an and proposition is
logically equivalent to the or proposition in
which each component is negated.