Lesson - Elementary Logic (MMW)
Lesson - Elementary Logic (MMW)
Lesson - Elementary Logic (MMW)
A proposition (or statement) is a sentence that is either true or false (without additional
information).
The logical connectives are defined by truth tables (but have English language
counterparts).
Conjunction ^ And
Disjunction v or (inclusive)
Negation ~ Not
Conditional ⇒ If…then….
Examples:
2. A denial of P ⇒ Q is P ^ ~ Q.
Examples:
1. A v (B ^ C) ⇔ (A v B) ^ (A v C) Distributive law
2. ~ (A v B) ⇔ ~ A ^ ~ B
3. P ⇔ ~ (~ P)
A contradiction is a statement which is always false.
The contrapositive of the statement if P then Q is if ~Q then ~P. An implication and its
contrapositive are logically equivalent, so one can always be used in place of the other.
Examples:
2. y = 5.
However, a predicate is not a proposition, it does not have a truth value. One can
however use quantifiers to make propositions about predicates. For instance, the
universal/general quantifier (∀) is used to say that a given predicate is true for all
possible values of its variables. This is a proposition, since it is either true or false.
Similarly, the existential quantifier (∃) is used to say that there is some value of the
variables which makes the predicate a true statement.
Examples: