Proofs in propositional logic work by applying rules one step at a time. Inference rules let you derive new lines from existing ones. Equivalence rules let you replace a formula — or part of a formula — with a logically equivalent form.
| # | Formula | Justification |
|---|---|---|
| 1 | P → Q | Premise |
| 2 | Q → R | Premise |
| 3 | P | Premise |
| 4 | P → R | 1, 2 HS |
| 5 | R | 4, 3 MP |
| # | Formula | Justification |
|---|---|---|
| 1 | P → Q | Premise |
| 2 | ~Q | Premise |
| 3 | ~P ∨ R | Premise |
| 4 | ~P | 1, 2 MT |
| 5 | R | 3, 4 DS |
| # | Formula | Justification |
|---|---|---|
| 1 | ~(P ∧ ~Q) | Premise |
| 2 | P | Premise |
| 3 | ~P ∨ ~~Q | 1 DeM |
| 4 | ~P ∨ Q | 3 DN |
| 5 | Q | 4, 2 DS |
| # | Formula | Justification |
|---|---|---|
| 1 | P ∧ R | Premise |
| 2 | P → Q | Premise |
| 3 | R → S | Premise |
| 4 | P | 1 Simp |
| 5 | R | 1 Simp |
| 6 | Q | 2, 4 MP |
| 7 | S | 3, 5 MP |
| 8 | Q ∧ S | 6, 7 Conj |