A statement or proposition is a declarative sentence that is either true (T) or false (F), but not both.
Notations: We use lowercase letters like p, q, r, ... to represent propositions.
Connectives are used to combine simple propositions into compound propositions.
| Operator | Name | Symbol | Meaning |
|---|---|---|---|
| Negation | NOT | ¬ p (or p') | "It is not the case that p." |
| Conjunction | AND | p \land q | "p and q" |
| Disjunction | OR | p \lor q | "p or q" (inclusive) |
| Implication | IF...THEN | p \to q | "If p, then q." (p is hypothesis, q is conclusion) |
| Biconditional | IF AND ONLY IF | p ≤ftrightarrow q | "p if and only if q" |
| p | q | ¬ p | p \land q | p \lor q | p \to q | p ≤ftrightarrow q |
|---|---|---|---|---|---|---|
| T | T | F | T | T | T | T |
| T | F | F | F | T | F | F |
| F | T | T | F | T | T | F |
| F | F | T | F | F | T | T |
A normal form is a standard way of writing a logical expression. This is crucial for simplifying and comparing propositions.
A formula is in DNF if it is a sum of minterms (a disjunction of conjunctions). A Principal DNF (PDNF) is a DNF where each conjunction (minterm) contains every variable or its negation exactly once.
Example: (p \land q \land ¬ r) \lor (¬ p \land q \land r) is in PDNF.
A formula is in CNF if it is a product of maxterms (a conjunction of disjunctions). A Principal CNF (PCNF) is a CNF where each disjunction (maxterm) contains every variable or its negation exactly once.
Example: (p \lor q \lor ¬ r) \land (¬ p \lor q \lor r) is in PCNF.
Two propositions P and Q are logically equivalent (written P ≡ Q or P ⇔ Q) if they have the same truth table. That is, P ≤ftrightarrow Q is a tautology.
Propositional logic is limited. We cannot, for example, express "All men are mortal." We need predicates and quantifiers.
A predicate is a property or relation that a variable or set of variables can have. It becomes a proposition when the variables are assigned specific values from a domain of discourse.
Example: Let P(x) be the predicate "x > 3." The domain is the set of integers.
Quantifiers turn predicates into propositions by specifying "how many" variables satisfy the predicate.
Inference theory deals with determining the validity of an argument. An argument is a sequence of propositions (premises) that lead to another proposition (conclusion). An argument is valid if the conclusion is true whenever all the premises are true.
| Rule Name | Premises | Conclusion |
|---|---|---|
| Modus Ponens | p p \to q | ∴ q |
| Modus Tollens | ¬ q p \to q | ∴ ¬ p |
| Hypothetical Syllogism | p \to q q \to r | ∴ p \to r |
| Disjunctive Syllogism | p \lor q ¬ p | ∴ q |
| Addition | p | ∴ p \lor q |
| Simplification | p \land q | ∴ p |