1 Propositional Logic
1.1 Propositions
A declarative statement, i.e. either true or false
1.2 Compound propositions
Logical operators or logical connectives
- Precedence
- Negation
| T | F |
| F | T |
- Conjunction
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | F |
- Disjunction
| T | T | T |
| T | F | T |
| F | T | T |
| F | F | F |
- Exclusive Or
True when exactly one of and is true
| T | T | F |
| T | F | T |
| F | T | T |
| F | F | F |
- Implication
is a sufficient condition of
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
| T | T | F | T | T | T |
| T | F | F | F | T | T |
| F | T | T | T | F | T |
| F | F | T | T | T | T |
- Biconditional
if and only if
| T | T | T |
| T | F | T |
| F | T | F |
| F | F | T |
- Converse
The converse of is , equivalent to inverse
| T | T | T | T |
| T | F | F | T |
| F | T | T | F |
| F | F | T | T |
- Inverse
The inverse of is , equivalent to converse
| T | T | F | F | T | T |
| T | F | F | T | F | T |
| F | T | T | F | T | F |
| F | F | T | T | T | T |
- Contrapositive
The contrapositive of is
| T | T | F | F | T | T |
| T | F | F | T | F | F |
| F | T | T | F | T | T |
| F | F | T | T | T | T |
1.3 Propositional Equivalences
- Tautology
A compound proposition that is always true, e.g.
| T | F | T |
| F | T | T |
- Contradiction
A compound proposition that is always false, e.g.
| T | F | F |
| F | T | F |
- Contingency
A compound proposition that is neither a tautology or contingency, e.g.
| T | F | F |
| F | T | T |
1.4 Logical Equivalent
The compound propositions and are called logically equivalent if is a tautology, i.e.
- Identity Laws
- Domination Laws
- Idempotent Laws
- Double Negation Laws
- Commutative Laws
- De Morgan’s Laws
| T | T | T | F | F | F | F | T |
| T | F | T | F | F | T | F | T |
| F | T | T | F | T | F | F | T |
| F | F | F | T | T | T | T | T |
- Associative Laws
- Distributive Laws
- Absorption Laws
- Negation Laws
2 Predicate Logic
- Quantifiers
- Quantifiers with Restricted Domains
- Distribution
- De Morgan’s Laws for Quantifiers
- Nested Quantifiers
- Null Quantifications
Does not work for implication
3 Inference and Proofs
3.1 Proof Terminology
- Theorem
- A statement that can be shown to be true
- Axiom
- A statement that is assumed to be true
- Lemma
- A less important theorem
- Proof
- A valid argument that establish the truth of a theorem
- Corollary
- A theorem that can be established directly from a theorem
- Conjecture
- A statement that is proposed to be a true statement
3.2 Rules of Inference for Propositional Logic
- Modus Ponens
- Modus Tollens
- Hypothetical Syllogism
- Disjunctive Syllogism
- Addition
- Simplification
- Conjunction
- Resolution
3.3 Rules of Inference for Predicate Logic
- Universal Instantiation
- Universal Generalization
- Existential Instantiation
- Existential Generalization
3.4 Direct Proof
For , we assume is true, then we show is true in the final step
3.5 Proof by Contraposition
Since , we take as a hypothesis and show that must follow
3.6 Proof by Contradiction
To prove is true
Assume is false, i.e. is true
Then derive a contradiction, which means the assumption that is true is false
Therefore is true
3.6.1 Proof by Contradiction for Conditional Statement
To prove
Assume
Arrive at a contradiction, i.e.