Test (a) p ∨ q, ¬p ∴ q and (b) p → q, ¬p ∴ ¬q for validity.
An argument is valid when its conclusion must be true whenever all its premises are true. Validity is tested by truth tables or derived with rules of inference such as modus ponens; predicates and quantifiers extend this reasoning to statements about “all” and “some”.
An argument is a finite list of propositions called premises (hypotheses) P₁, P₂, …, Pₙ followed by a conclusion C. It is usually written with the premises stacked above a line and the conclusion below, marked ∴ (“therefore”).
The argument is valid if the conclusion is true in every situation in which all the premises are true. Equivalently, (P₁ ∧ P₂ ∧ … ∧ Pₙ) → C is a tautology. Validity depends only on the form of the argument — the pattern of connectives — not on the subject matter, and not on whether the premises happen to be true.
“All birds can fly. A penguin is a bird. ∴ A penguin can fly.” is valid but unsound: the form is flawless, but the first premise is false. “If 2 + 2 = 4, then Kerala is in India. Kerala is in India. ∴ 2 + 2 = 4.” has true premises and a true conclusion, yet it is invalid — its form (affirming the consequent) can carry true premises to a false conclusion.
| p | q | r | p → q | q → r | p → r | Critical? |
|---|---|---|---|---|---|---|
| T | T | T | T | T | T | yes — C is T |
| T | T | F | T | F | F | no |
| T | F | T | F | T | T | no |
| T | F | F | F | T | F | no |
| F | T | T | T | T | T | yes — C is T |
| F | T | F | T | F | T | no |
| F | F | T | T | T | T | yes — C is T |
| F | F | F | T | T | T | yes — C is T |
| p | q | Premise p → q | Premise q | Conclusion p | Verdict |
|---|---|---|---|---|---|
| T | T | T | T | T | critical, C true |
| T | F | F | F | T | not critical |
| F | T | T | T | F | critical, C FALSE → counterexample |
| F | F | T | F | F | not critical |
In words: “If it is a holiday, the office is closed. The office is closed. ∴ It is a holiday.” The counterexample row describes an office closed for repairs on a working day. One counterexample is enough to sink an argument form.
Truth tables double with every variable — an argument in 6 variables needs 64 rows. Instead, we build a chain of statements from the premises to the conclusion, each step justified by a rule of inference: a small valid argument form whose underlying implication is a tautology.
| Rule | From | Infer | Tautology behind it |
|---|---|---|---|
| Modus ponens (law of detachment) | p, p → q | q | [p ∧ (p → q)] → q |
| Modus tollens | ¬q, p → q | ¬p | [¬q ∧ (p → q)] → ¬p |
| Hypothetical syllogism (chain rule) | p → q, q → r | p → r | [(p → q) ∧ (q → r)] → (p → r) |
| Disjunctive syllogism | p ∨ q, ¬p | q | [(p ∨ q) ∧ ¬p] → q |
| Addition | p | p ∨ q | p → (p ∨ q) |
| Simplification | p ∧ q | p | (p ∧ q) → p |
| Conjunction | p, q | p ∧ q | (p ∧ q) → (p ∧ q) — combines two lines |
| Resolution | p ∨ q, ¬p ∨ r | q ∨ r | [(p ∨ q) ∧ (¬p ∨ r)] → (q ∨ r) |
| Constructive dilemma | p → q, r → s, p ∨ r | q ∨ s | [(p → q) ∧ (r → s) ∧ (p ∨ r)] → (q ∨ s) |
| Destructive dilemma | p → q, r → s, ¬q ∨ ¬s | ¬p ∨ ¬r | [(p → q) ∧ (r → s) ∧ (¬q ∨ ¬s)] → (¬p ∨ ¬r) |
Besides these one-way rules, any equivalence from the algebra of propositions may rewrite a line in either direction (the rule of replacement) — for example ¬(p ∧ q) may be replaced by ¬p ∨ ¬q, or p → q by ¬q → ¬p.
A formal fallacy is an invalid argument form that resembles a valid one. Each of the first three fallacies below has a counterexample row with true premises and a false conclusion. Begging the question is different: it is an informal fallacy — its form (C ∴ C) is technically valid, but the proof assumes what it sets out to prove.
| Fallacy | Form | Imitates | Counterexample row |
|---|---|---|---|
| Affirming the consequent | p → q, q ∴ p | Modus ponens | p = F, q = T |
| Denying the antecedent | p → q, ¬p ∴ ¬q | Modus tollens | p = F, q = T |
| Affirming a disjunct | p ∨ q, p ∴ ¬q | Disjunctive syllogism | p = T, q = T |
| Begging the question (circular reasoning) | uses C, or something equivalent to C, as a premise | A genuine proof | — (the proof assumes what it proves) |
A formal proof is a numbered list of statements. Each line is either a premise or follows from earlier lines by a rule of inference or an equivalence; the reason and the line numbers are written beside it, and the last line is the conclusion.
Premises: “The backup did not run and the disk is full.” “The report is generated only if the backup ran.” “If the report is not generated, an alert is sent.” “If an alert is sent, the admin is paged.” Conclusion: “The admin is paged.” With b: backup ran, d: disk full, r: report generated, a: alert sent, m: admin paged, the premises are ¬b ∧ d, r → b, ¬r → a, a → m and the conclusion is m.
| # | Statement | Reason |
|---|---|---|
| 1 | ¬b ∧ d | Premise |
| 2 | ¬b | Simplification (1) |
| 3 | r → b | Premise |
| 4 | ¬r | Modus tollens (2, 3) |
| 5 | ¬r → a | Premise |
| 6 | a | Modus ponens (4, 5) |
| 7 | a → m | Premise |
| 8 | m | Modus ponens (6, 7) |
Two indirect techniques are worth knowing. Proof by contradiction (reductio ad absurdum): add ¬C to the premises and derive some s ∧ ¬s; then the original argument is valid. Conditional proof (the deduction theorem): to prove a conclusion of the form A → B, add A as an extra premise and derive B.
Resolution refutation mechanises the first idea: write every premise and ¬C as clauses (CNF), then keep resolving pairs that contain a complementary literal. Reaching the empty clause (a contradiction) proves validity. For instance, from p ∨ q and ¬p ∨ r we resolve to q ∨ r; resolving that with ¬q ∨ r gives r ∨ r ≡ r.
Propositional logic cannot look inside “every student passed”. Predicate logic splits such a sentence into a predicate P(x) — a property or relation containing variables — and a domain (universe of discourse) over which the variables range. If P(x) is “x > 3”, then P(x) itself is not a proposition, but P(5) is (true) and P(2) is (false).
Quantifiers turn predicates into propositions. The universal quantifier ∀x P(x) (“for all x”, “for every x”, “for each x”) is true when P(x) holds for every x in the domain. The existential quantifier ∃x P(x) (“there exists x”, “for some x”, “at least one x”) is true when P(x) holds for at least one x. ∃!x P(x) means “there is exactly one x”. A variable inside a quantifier's scope is bound; otherwise it is free, and a formula with free variables is not yet a proposition.
| Statement | Truth value | Why |
|---|---|---|
| ∀x (x² ≥ 0), x an integer | T | No integer has a negative square |
| ∀x (x² > 0), x an integer | F | Counterexample x = 0 |
| ∃x (x² = 2), x an integer | F | √2 is not an integer |
| ∃x (x² = 2), x a real number | T | x = √2 — changing the domain changes the answer |
| ∃!x (x + 3 = 0), x an integer | T | Only x = −3 works |
| English | Correct form | Tempting wrong form |
|---|---|---|
| All A are B | ∀x (A(x) → B(x)) | ∀x (A(x) ∧ B(x)) — claims every object is an A |
| Some A are B | ∃x (A(x) ∧ B(x)) | ∃x (A(x) → B(x)) — true as soon as anything is not an A |
| No A is B | ∀x (A(x) → ¬B(x)), i.e. ¬∃x (A(x) ∧ B(x)) | ¬∀x (A(x) → B(x)) — that means “some A is not B” |
| Some A are not B | ∃x (A(x) ∧ ¬B(x)), i.e. ¬∀x (A(x) → B(x)) | ∃x (A(x) → ¬B(x)) |
So the negation of “Every server in the cluster has a backup” is “Some server in the cluster has no backup” — not “No server has a backup”. Negating “Some applicant is eligible” gives “No applicant is eligible”.
With nested quantifiers the order matters when the quantifiers differ. Over the integers, ∀x ∃y (x + y = 0) is true — each x has its own partner y = −x — but ∃y ∀x (x + y = 0) is false, because no single y works for every x. In general ∃y ∀x P(x, y) implies ∀x ∃y P(x, y), but not conversely. Quantifiers of the same kind commute: ∀x ∀y ≡ ∀y ∀x and ∃x ∃y ≡ ∃y ∃x.
| Always holds | Fails in general |
|---|---|
| ∀x (P(x) ∧ Q(x)) ≡ ∀x P(x) ∧ ∀x Q(x) | ∀x (P(x) ∨ Q(x)) ≡ ∀x P(x) ∨ ∀x Q(x) (every integer is even or odd, yet not all are even and not all are odd) |
| ∃x (P(x) ∨ Q(x)) ≡ ∃x P(x) ∨ ∃x Q(x) | ∃x (P(x) ∧ Q(x)) ≡ ∃x P(x) ∧ ∃x Q(x) (some integer is even and some is odd, yet none is both) |
| Rule | From | Infer |
|---|---|---|
| Universal instantiation (UI) | ∀x P(x) | P(c) for any particular c in the domain |
| Universal generalization (UG) | P(c) for an arbitrary c | ∀x P(x) |
| Existential instantiation (EI) | ∃x P(x) | P(c) for some element c (a new name, nothing else assumed) |
| Existential generalization (EG) | P(c) for some particular c | ∃x P(x) |
Combining UI with modus ponens gives universal modus ponens: ∀x (P(x) → Q(x)) and P(a) ∴ Q(a). Aristotle's classic — “All men are mortal; Socrates is a man; therefore Socrates is mortal” — is exactly this form.
Try the problem first, then reveal the working one step at a time.
Test (a) p ∨ q, ¬p ∴ q and (b) p → q, ¬p ∴ ¬q for validity.
Premises: “If the exam is postponed, the hall is free.” “If the hall is free, the cultural programme is held.” “The cultural programme is not held.” “Either the exam is postponed or the results are delayed.” Prove: “The results are delayed.”
Negate, simplifying so that no ¬ stands in front of a quantifier: (a) ∀x ∃y (x < y) over the integers; (b) “Every student has submitted at least one assignment.”
Show by resolution that p → q, q → r, p ∴ r is valid.
Test the argument: “If I study, I pass. I passed. Therefore I studied.” Is it valid? Name the pattern.
Give a formal proof: premises p → q, ¬q ∨ r, ¬r; conclusion ¬p.
Negate ∀x ∃y (x + y = 0) and decide the truth value of the original and of its negation when the domain is (a) the integers ℤ, (b) the natural numbers {0, 1, 2, …}.
Name the rule of inference used: (a) “It is a weekday or a holiday. It is not a weekday. So it is a holiday.” (b) “If the input is valid, the form is saved. The form was not saved. So the input was not valid.” (c) “The server is up. So the server is up or the network is slow.” (d) “If it rains, I take the bus. If I take the bus, I am late. So if it rains, I am late.”
With C(x): “x is a CS student” and F(x): “x fails Discrete Maths”, symbolise “No CS student fails Discrete Maths”, then write its negation in symbols and in English.
10 questions. 70 % passes the topic quiz (+30 XP, +20 more for 100 %). Exam scoring: +1 correct, −⅓ wrong.
Modelled on real KPSC questions (reworded) with the same concept and answer; each links to its original paper.