DISCRETE MATH • LOGIC AND PROOF

Determine validity of arguments using logical rules

Master the inference rules and proof strategies that distinguish sound reasoning from logical fallacies.

Historical Context & Motivation

The question of what constitutes a valid argument has occupied thinkers for well over two millennia, originating in the philosophical traditions of ancient Greece. Before formal logic existed, disputes about governance, ethics, and natural philosophy were settled through rhetoric — persuasion rather than proof. The development of formal deductive reasoning transformed this landscape by providing a mechanical method to determine whether a conclusion genuinely follows from its premises, independent of the subject matter or the speaker's charisma.

~350 BCE
Aristotelian Syllogistics
Aristotle's Prior Analytics introduces the syllogism — the first systematic framework for classifying valid argument forms. He identifies 256 possible syllogistic forms and proves exactly 24 are valid.
~300 BCE
Stoic Propositional Logic
Chrysippus and the Stoic logicians shift focus from categorical terms to propositions connected by 'if…then,' 'or,' and 'not,' laying the groundwork for modern propositional logic and rules like modus ponens.
1847
Boole's Algebraic Logic
George Boole publishes The Mathematical Analysis of Logic, encoding logical propositions as algebraic equations and enabling mechanical verification of argument validity through calculation.
1879
Frege's Predicate Calculus
Gottlob Frege's Begriffsschrift introduces quantifiers (∀, ∃) and a formal proof system, extending validity checking to arguments about 'all' and 'some' — the birth of first-order logic.
1930s
Gödel's Completeness Theorem
Kurt Gödel proves that every valid first-order argument has a finite formal proof, establishing that the rules of inference are sufficient to derive all logical truths — a cornerstone result for the field.

Today, determining argument validity is not merely an exercise in philosophy; it underpins software verification, database query optimization, automated theorem proving, and the design of artificial intelligence systems. The central question this lesson addresses is precise: given a set of premises and a proposed conclusion, how do we rigorously determine whether the argument is valid using the standard rules of propositional and predicate logic?

Core Principles & Definitions

Before applying any rule of inference, it is essential to fix the terminology precisely. An argument is a finite sequence of propositions — the premises — followed by a single proposition called the conclusion. We say the argument is valid if and only if it is impossible for every premise to be true while the conclusion is false. Validity concerns form, not factual accuracy; an argument can be valid yet have false premises, and conversely, every premise and the conclusion can be true while the argument remains invalid.

1

Validity vs. Soundness

An argument is valid if its form guarantees truth-preservation. It is sound if it is valid and all premises are actually true. Validity is a structural property; soundness adds factual correctness.
2

Tautology & Contradiction

A tautology is true under every truth assignment (e.g., p ∨ ¬p). A contradiction is false under every truth assignment (e.g., p ∧ ¬p). An argument is valid iff (P₁ ∧ P₂ ∧ … ∧ Pₙ) → C is a tautology.
3

Rules of Inference

These are pre-verified valid argument templates — such as modus ponens and hypothetical syllogism. By chaining these rules, we construct formal proofs that certify an argument's validity without exhaustive truth-table enumeration.
4

Logical Equivalences

Two propositions are logically equivalent (≡) if they share the same truth value in every interpretation. Equivalences like De Morgan's laws and contraposition allow us to rewrite premises into forms amenable to applying inference rules.
KEY TAKEAWAY
Think of a valid argument like a locked pipeline: if you pump truth into every input (premise), truth must flow out the output (conclusion). The pipeline's shape — its logical form — is what guarantees this, regardless of what substance you actually pump through it. A rule of inference is a certified pipe segment that has been pre-tested to never leak.

Visual Explanation — Rules of Inference Map

The eight standard rules of inference, grouped into elimination rules (which decompose compound propositions) and introduction rules (which construct compound propositions). Each card shows the premises above the turnstile (∴) and the conclusion below.

The diagram above presents the eight rules as modular building blocks. In practice, you will chain several of these rules together to form a formal proof — a sequence of statements where each statement is either a premise or follows from previous statements by exactly one rule. The elimination rules are especially powerful in the early steps of a proof when you need to 'unpack' conditional and disjunctive premises, while the introduction rules become important toward the end when you must assemble the target conclusion from simpler pieces you have derived.

Mathematical Framework

An argument with premises P₁, P₂, …, Pₙ and conclusion C is formally written as P₁, P₂, …, Pₙ ∴ C. The argument is valid if and only if the conditional (P₁ ∧ P₂ ∧ … ∧ Pₙ) → C is a tautology. Equivalently, there exists no truth-value assignment under which all premises are true and the conclusion is false. Two principal methods exist for establishing validity: exhaustive truth-table verification and constructive formal proof using rules of inference.

VALIDITY CONDITION
(P₁ ∧ P₂ ∧ … ∧ Pₙ) → C ≡ T (tautology)
P₁, P₂, …, Pₙ are the premises; C is the conclusion. The argument is valid precisely when this conditional is true for every possible truth assignment to the propositional variables.
MODUS PONENS (MP)
p → q, p ⊢ q
If the conditional p → q holds and the antecedent p is true, then the consequent q must be true. The symbol ⊢ denotes syntactic derivability (provability).
MODUS TOLLENS (MT)
p → q, ¬q ⊢ ¬p
The contrapositive reasoning pattern: if p → q is given and the consequent q is false, then the antecedent p must also be false. This is equivalent to applying MP on the contrapositive ¬q → ¬p.
HYPOTHETICAL SYLLOGISM (HS)
p → q, q → r ⊢ p → r
Two conditionals sharing a middle term can be chained: if p implies q and q implies r, then p implies r. This is the logical analogue of function composition in algebra.

Beyond these primary rules, logical equivalences serve as rewriting tools that allow you to transform premises into more useful forms without altering their truth value. De Morgan's laws (¬(p ∧ q) ≡ ¬p ∨ ¬q and ¬(p ∨ q) ≡ ¬p ∧ ¬q), the law of contraposition (p → q ≡ ¬q → ¬p), and the material conditional identity (p → q ≡ ¬p ∨ q) are the most frequently deployed equivalences in proof construction. Think of equivalences as interchangeable machine parts that maintain the argument's logical integrity while reshaping it into a form where an inference rule can fire.

Common Fallacies & Classification

Recognizing invalid argument forms is as important as mastering valid ones. Two formal fallacies are particularly insidious because they superficially resemble valid rules. The fallacy of affirming the consequent (p → q, q ∴ p) looks like modus ponens but affirms the wrong component; knowing that rain implies wet streets does not let you conclude from wet streets that it rained — a sprinkler could be responsible. Similarly, the fallacy of denying the antecedent (p → q, ¬p ∴ ¬q) resembles modus tollens but denies the wrong component; knowing that studying leads to passing does not let you conclude from not studying that you will fail, since other factors could suffice.

Side-by-side comparison of valid rules (modus ponens and modus tollens) versus their fallacious counterparts (affirming the consequent and denying the antecedent), with a concrete counterexample demonstrating invalidity.
Summary of key valid and invalid argument forms
Argument FormNameValid?Quick Test
p → q, p ∴ qModus PonensYesAffirms the antecedent
p → q, ¬q ∴ ¬pModus TollensYesDenies the consequent
p → q, q ∴ pAffirming ConsequentNoAffirms the consequent — wrong component
p → q, ¬p ∴ ¬qDenying AntecedentNoDenies the antecedent — wrong component
p → q, q → r ∴ p → rHypothetical SyllogismYesChains conditionals via shared middle term
p ∨ q, ¬p ∴ qDisjunctive SyllogismYesEliminates one disjunct

Worked Example — Constructing a Formal Proof

Consider the following argument. We are given three premises and must derive the conclusion r using only the standard rules of inference and logical equivalences.

📝 Problem Statement
Premises: (1) p → q, (2) ¬q ∨ r, (3) p. Conclusion: r. Prove that this argument is valid by constructing a formal proof.
Formal Proof of Validity
1
Step 1 — List the premisesWe begin by writing down each premise and numbering the lines. Line 1: p → q (Premise). Line 2: ¬q ∨ r (Premise). Line 3: p (Premise). Our target conclusion is r.
2
Step 2 — Apply Modus Ponens to lines 1 and 3Lines 1 and 3 match the modus ponens template: we have p → q and p. Therefore, we may derive q. We record this as Line 4.
Line 4: q (by MP, lines 1, 3)
3
Step 3 — Rewrite line 2 using material conditionalThe premise ¬q ∨ r is logically equivalent to q → r by the material conditional equivalence (p → q ≡ ¬p ∨ q, applied with p = q and q = r). We write this as Line 5.
Line 5: q → r (by logical equivalence, line 2)
4
Step 4 — Apply Modus Ponens to lines 4 and 5Now lines 4 and 5 form another modus ponens instance: we have q → r and q. Therefore, we derive r.
Line 6: r (by MP, lines 5, 4) — Conclusion derived. QED.

Note the proof strategy: we recognized that the second premise, though phrased as a disjunction, is equivalent to a conditional, and this rewriting allowed us to cascade two applications of modus ponens to reach the goal. Identifying such rewriting opportunities is a critical skill in constructing efficient proofs. An alternative approach would have been to use hypothetical syllogism on lines 1 and 5 to get p → r, then applying modus ponens with line 3 — arriving at the same result in the same number of steps.

Proof Methods — Strengths & Limitations

There are several methods for determining argument validity, each with distinct trade-offs. The truth-table method is exhaustive and mechanical: construct a truth table for all propositional variables, evaluate the premises and conclusion in every row, and check whether there is any row in which all premises are true but the conclusion is false. If no such row exists, the argument is valid. This method is conceptually simple but grows exponentially — with n variables, you must evaluate 2ⁿ rows. The formal proof method uses inference rules to derive the conclusion from the premises, typically requiring far fewer steps, but it demands strategic insight to select the right rules. A third approach, proof by contradiction (indirect proof), assumes the negation of the conclusion alongside the premises and derives a contradiction, thereby establishing validity.

Comparison of validity-checking methods
MethodStrengthsLimitations
Truth TableCompletely mechanical; requires no creative insight; also proves invalidity by exhibiting a counterexample row.Exponential growth (2ⁿ rows for n variables); impractical for arguments with more than 5–6 variables.
Formal Proof (Direct)Compact and elegant; scales well to many variables; mirrors mathematical proof practices.Requires strategic selection of rules; cannot directly prove invalidity; may involve trial and error.
Proof by ContradictionPowerful when the conclusion is complex (especially negations or conditionals); often shorter than direct proof.Can be conceptually confusing; requires managing the assumed negation carefully.
Resolution (Automated)Used in automated theorem provers and AI systems; systematic CNF conversion ensures completeness.Requires conversion to conjunctive normal form; resulting proofs can be long and non-intuitive.
KEY TAKEAWAY
Think of the truth-table method as brute-force search: it checks every possible state of the world, like testing a circuit with every combination of switch positions. A formal proof is more like an engineering analysis: rather than testing every combination, you reason about the circuit's structure to prove it must behave correctly. Both approaches answer the same question, but the structural method scales far better to complex systems — which is precisely why computer scientists and mathematicians prefer inference-rule proofs for real-world applications.

Connections to Advanced Theory

The rules of inference studied in propositional logic are the foundation upon which more expressive logical systems are built. In first-order predicate logic, the same propositional rules apply, augmented by four additional rules for handling quantifiers: universal instantiation (∀x P(x) ⊢ P(c)), universal generalization (P(c) for arbitrary c ⊢ ∀x P(x)), existential instantiation (∃x P(x) ⊢ P(c) for a fresh constant c), and existential generalization (P(c) ⊢ ∃x P(x)). Mastery of propositional inference is prerequisite to working fluently in this richer setting.

Propositional logic vs. first-order predicate logic
FeaturePropositional LogicFirst-Order Predicate Logic
Basic unitsAtomic propositions (p, q, r)Predicates with variables — P(x), Q(x, y)
Connectives¬, ∧, ∨, →, ↔Same, plus quantifiers ∀ and ∃
Inference rules8 standard propositional rules8 propositional + 4 quantifier rules
DecidabilityDecidable (truth tables always terminate)Semi-decidable (valid proofs exist but search may not terminate)
ApplicationsCircuit design, Boolean satisfiabilityDatabase queries, software verification, mathematical proofs

Beyond first-order logic, the inference-rule paradigm extends into natural deduction systems (developed by Gentzen and Jaśkowski in the 1930s), sequent calculi, and type theory — the latter forming the foundation of modern proof assistants like Coq, Lean, and Isabelle. In all these systems, the core idea remains unchanged: validity is established by applying certified transformation rules to derive a conclusion from premises. The propositional rules you learn here are the atoms from which these more powerful systems are constructed.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain why an argument can be valid even when its conclusion is false. Provide a concrete example of such an argument with exactly two premises.
PROBLEM 2BASIC CALCULATION
Determine whether the following argument is valid using a truth table: Premises: p → q, q → r. Conclusion: p → r. Identify the rule of inference this argument form represents.
PROBLEM 3INTERMEDIATE
Construct a formal proof for the following argument. Premises: (1) p ∨ q, (2) ¬p, (3) q → (r ∧ s). Conclusion: s. State the rule used at each step.
PROBLEM 4APPLIED
A software verification system models the following requirements: (1) If the user is authenticated (a), then the session token is valid (t). (2) If the session token is valid (t), then the API request is authorized (r). (3) If the API request is not authorized (¬r), then the system logs an error (e). (4) The user is authenticated (a). (5) The system does not log an error (¬e). Is this set of premises consistent? If so, what can be concluded about r? Derive r formally.
PROBLEM 5CRITICAL THINKING
Consider the argument: Premises: (1) p → (q ∨ r), (2) ¬q, (3) ¬r. Conclusion: ¬p. Prove this argument is valid using two different methods: (a) a direct formal proof using rules of inference, and (b) a proof by contradiction (indirect proof). Compare the strategies and discuss when each approach might be preferred.

Summary & Review

An argument is valid if and only if it is impossible for all premises to be true while the conclusion is false — equivalently, if the conditional (P₁ ∧ P₂ ∧ … ∧ Pₙ) → C is a tautology. Validity is a structural property of the argument's form, independent of the actual truth values of its component propositions. The eight standard rules of inferencemodus ponens, modus tollens, hypothetical syllogism, disjunctive syllogism, addition, simplification, conjunction, and resolution — are pre-verified valid argument templates that can be chained together to construct formal proofs.

Two common formal fallacies — affirming the consequent and denying the antecedent — must be carefully distinguished from modus ponens and modus tollens respectively. Validity can be checked by truth tables (exhaustive but exponential), by direct formal proof (compact but requires strategic insight), or by proof by contradiction (especially effective for negated conclusions). Logical equivalences such as De Morgan's laws and contraposition serve as rewriting tools that reshape premises into forms amenable to rule application. These propositional techniques form the indispensable foundation for predicate logic, natural deduction, and automated theorem proving.

Varsity Tutors • Discrete Math • Determine validity of arguments using logical rules