LibreCanon › Debate
AI Canon. Written and cross-checked by AI reviewers against cited sources; not yet reviewed by a human. Errors are possible. What this means

Necessary and sufficient conditions, clearly

A necessary condition is something without which a result cannot happen. A sufficient condition is something that guarantees the result. The two ideas are the two directions of a single if … then statement, and one error with them is reading that statement backwards. This article builds the definitions from the treatment of the conditional and biconditional in the open logic text Sets, Logic, Computation (OpenLogic Project) [1–6] and in chapter 2 of OpenStax Contemporary Mathematics [7–10]. It then turns to causes, following Book III of John Stuart Mill’s A System of Logic [11–14], with a short passage from William James that states the distinction in one example [15]. Where an example is not taken from a source it is marked as ours. Related articles: The structure of a syllogism for valid argument forms, The Problem of Induction: Hume's Challenge for the problem of inferring causes from experience, and The Socratic Method as a Tool for Inquiry for definitions tested by counterexample.

The two definitions

Take two statements, p and q, and the conditional if p, then q. Contemporary Mathematics calls the part after if the hypothesis or antecedent, and the part after then the conclusion or consequent [7]. OpenLogic writes the conditional as p → q and notes that other books use ⇒ or ⊃ for the same connective [2].

When if p, then q is true:

  • p is sufficient for q. Whenever p holds, q holds as well. Establishing p is enough to establish q.
  • q is necessary for p. p cannot hold without q. If q fails, p fails too.

These are not two facts. They are one fact described from each end. Being a square is sufficient for being a rectangle and being a rectangle is necessary for being a square both say: every square is a rectangle (our example).

OpenLogic uses the word sufficient in exactly this sense when it describes rules of proof: “A rule of inference is a conditional statement that gives a sufficient condition for a sentence in a derivation to be justified” [4]. Modus ponens, its example, says that B is justified when A and A → B already are. The presence of those two lines is enough; nothing further is required [4].

The set picture

The same relation can be drawn with sets. OpenLogic defines A as a subset of B (written A ⊆ B) when each member of A belongs to B [1]. Contemporary Mathematics uses this picture for the conditional “If you play guitar, then you are a musician”: the set of guitarists sits inside the set of musicians [10]. In the terms of this article (our reading of that diagram):

  • Being inside the small set (guitarists) is sufficient for being inside the large set (musicians).
  • Being inside the large set is necessary for being inside the small one: nobody is a guitarist without being a musician.
  • Being inside the large set is not sufficient for being in the small one: there are musicians who do not play guitar.

A sufficient condition is the narrower set; a necessary condition is the wider set that contains it.

The truth tables

Contemporary Mathematics introduces the conditional with the remark that it “is a promise or contract” [8]. Its example is a parent who says that if the child does the homework, the child may play video games. The promise is broken only when the homework is done and the games are refused. If the homework is not done, no promise was triggered, so no promise can have been broken, whatever happens to the games [8]. That gives the four rows:

Row p q p → q
1 T T T
2 T F F
3 F T T
4 F F T

OpenLogic states the same rule as part of its definition of satisfaction in a structure: a conditional is satisfied exactly when its antecedent is not satisfied, or its consequent is satisfied, or both [3]. The only false row is the one where p is true and q is false [7, 8].

Read the table against the two definitions. p is sufficient for q rules out exactly one combination: p true with q false. q is necessary for p rules out exactly the same combination, because it forbids p holding when q does not. That is why the two descriptions are one fact.

The biconditional is written p ↔ q and read p if and only if q. It is true when p and q have the same truth value and false otherwise [7, 8]:

Row p q p ↔ q
1 T T T
2 T F F
3 F T F
4 F F T

OpenLogic treats ↔ as an abbreviation: A ↔ B stands for (A → B) ∧ (B → A), the conjunction of the two conditionals [2]. Its appendix on proofs says the same thing in prose: a biconditional is two conditionals put together, and one way to prove it is to prove each direction separately [5]. In the vocabulary here, p ↔ q says that p is both necessary and sufficient for q.

Translating everyday wording

Ordinary language and textbook mathematics state conditionals in many ways. OpenLogic gives q if p, q, provided p, and also p only if q as alternatives to if p then q, and says that all of them mean the same and are proved the same way: assume p, derive q [5]. The following table collects common forms. The first column is the wording; the second is the conditional it expresses; the third says which condition is which. The rows for only if, if and provided follow OpenLogic [5]; the rows for is necessary for, is sufficient for, whenever, requires and unless are our translations, built from the definitions above.

Wording Conditional Reading
If p, then q p → q p sufficient, q necessary
q if p p → q same
p only if q p → q same
q, provided p p → q same
p is sufficient for q p → q same
q is necessary for p p → q same
q whenever p p → q same
p requires q p → q same
p unless q (not q) → p not-q sufficient for p
p if and only if q p ↔ q each necessary and sufficient for the other

We take two rows in detail.

Only if. You may board only if you have a boarding pass (our example) states a necessary condition: no pass, no boarding. It does not promise that a pass gets you on the plane; you may also need identification, a seat, and to arrive before the door closes. Only if introduces the necessary condition, and the word if alone introduces the sufficient one. p if q and p only if q point in opposite directions.

Unless. The plant will die unless it is watered (our example) says: if it is not watered, it will die. Lack of water is sufficient for death. It does not say that watering will save the plant, which may die of frost.

Converse, inverse and contrapositive

Contemporary Mathematics forms three related statements from a conditional “if p, then q” [9]:

  • the converse, if q, then p, by swapping hypothesis and conclusion;
  • the inverse, if not p, then not q, by negating both;
  • the contrapositive, if not q, then not p, by swapping and negating.

Its comparison table shows that the contrapositive always agrees in truth value with the original conditional, and the converse always agrees in truth value with the inverse, but the conditional and its converse can differ [9]. The full table (columns recomputed by us from the conditional rule, our check):

Row p q p → q not-q → not-p q → p not-p → not-q
1 true true true true true true
2 true false false false true true
3 false true true true false false
4 false false true true true true

The p → q and contrapositive columns match in every row, as do the converse and inverse columns. Rows 2 and 3 show the conditional and its converse coming apart.

This table is the formal content of the necessary/sufficient pair:

  • The contrapositive is the necessary reading spelled out. If not q, then not p says that without q there is no p.
  • The converse swaps the roles. If the converse were also true, q would be sufficient for p and p necessary for q, and the two together would make a biconditional.

Two common mistakes

Mistake 1: treating a necessary condition as sufficient (or the reverse)

One error is to hear q is necessary for p and conclude that q will produce p. William James puts the point with a proverb. The French say that you cannot make an omelet without breaking eggs, so “the breaking of eggs is a necessary condition of the omelet”. James then asks: “Does an omelet appear whenever three eggs are broken?” [15]. He uses this against Grant Allen, who held Greek culture to be “absolutely and unreservedly the product of the geographical Hellas”; James takes the trade that geography allowed as the candidate condition. Granting that such trade may have been necessary, James argues, if it were sufficient then the Phoenicians should have outstripped the Greeks [15]. The structure of James’s reply is the standard one: a claim of sufficiency is refuted by one case where the condition is present and the result absent.

The reverse error also occurs: hearing that something is sufficient and treating it as the only route. Rain is sufficient to wet the street, but a burst water main also wets it (our example). Wet streets do not show that it rained.

Mistake 2: affirming the consequent

The second mistake is an argument form. Among the valid forms for conditionals, Contemporary Mathematics gives these two [10]:

  1. Law of detachment (modus ponens). Premises: p → q; p. Conclusion: q.
  2. “Law of denying the consequent” (modus tollens). Premises: p → q; not q. Conclusion: not p.

Its exercises then ask the reader to test two further forms, which it names “denying the hypothesis” and “affirming the consequent” [10]:

  1. Affirming the consequent. Premises: p → q; q. Conclusion: p.
  2. Denying the hypothesis (also called denying the antecedent, a name not used in the source). Premises: p → q; not p. Conclusion: not q.

Forms 3 and 4 are invalid. The check is the truth table (our check). An argument form is valid when no row makes all premises true and the conclusion false [10]. For form 3, look at row 3 of the conditional table: p false, q true. There p → q is true and q is true, so both premises hold, yet the conclusion p is false. For form 4, the same row works: p → q true and not-p true, but the conclusion not-q is false.

With the guitarist example [10]: If someone plays guitar, they are a musician. Ana is a musician. So Ana plays guitar (names and the second premise ours). Ana may be a pianist. Being a musician is necessary for playing guitar, not sufficient for it, and affirming the consequent treats it as sufficient. Denying the hypothesis makes the matching error: Ana does not play guitar, so she is not a musician treats playing guitar as necessary for being a musician.

So the two named fallacies are the two confusions of the previous subsection written as argument forms. Affirming the consequent treats a necessary condition as sufficient; denying the hypothesis treats a sufficient condition as necessary.

Necessary and sufficient together: definitions

A condition that is both necessary and sufficient picks out exactly the cases in question, no more and no fewer. That is the job a definition is asked to do, and mathematical texts state definitions as biconditionals. OpenLogic’s glossary, for example, says a function is injective if and only if each element of the target has at most one element mapped to it [6]. Its treatment of sets gives the template: sets are equal “iff they are subsets of one another” [1]. In the set picture above, mutual containment is exactly what turns a one-way condition into a two-way one.

Testing a proposed definition therefore has two parts, matching the two halves of the biconditional (our analysis):

  1. Is it sufficient? Look for something that meets the definition but is not an instance of the thing defined. A square is a four-sided figure fails here: a non-square rectangle has four sides.
  2. Is it necessary? Look for an instance of the thing defined that does not meet the definition. A square is a rectangle with sides of length 1 fails here: a square of side 2 is excluded.

A definition that is too broad fails the first test; one that is too narrow fails the second. The Socratic dialogues discussed in The Socratic Method as a Tool for Inquiry run on these two tests.

Causes and conditions in Mill

Mill applies the vocabulary of conditions to causation in Book III, Chapter V of A System of Logic [11, 12].

The cause is the whole set of conditions

Mill observes that an effect seldom, if ever, follows a single antecedent invariably. The invariable sequence usually holds between the effect and several antecedents together, all of which must be present for the effect to be certain [11]. In ordinary speech one of them is very commonly singled out as “the cause” and the rest are called conditions. His example: someone dies as a result of eating a particular dish, and people would be apt to say the dish caused the death. But the death followed from the eating “combined with a particular bodily constitution, a particular state of present health, and perhaps even a certain state of the atmosphere” [11]. Of these Mill writes: “All the conditions were equally indispensable to the production of the consequent” [11]. He uses the term “necessary condition” himself in a second example. A man who has taken mercury goes outside and catches a cold, and the cold might be put down to exposure; but “his having taken mercury may have been a necessary condition of his catching cold” [11].

His conclusion is: “The cause, then, philosophically speaking, is the sum total of the conditions, positive and negative taken together” [11]. In his examples, the condition everyday speech names as the cause is the last one to occur, the event that completes the set, while the others are standing states that may have been present for a long time; but Mill adds that no rule is always kept, that the choice is capricious, and that the name usually goes to the condition whose share is superficially the most conspicuous, or to the one the speaker happens to be insisting on [11].

Mill also counts negative conditions, the absence of anything that would prevent the effect. An army is surprised because a sentinel left his post. Mill says the absence produced nothing; what is meant is that “the event would not have happened if he had been at his duty” [11]. That is a statement of necessity in the sense used here: the sentinel’s absence was required for the surprise. Mill then sums up all such negative conditions under one heading, “the absence of counteracting causes” [11].

In this article’s vocabulary (our gloss, not Mill’s wording): Mill’s complete set of conditions is a sufficient condition, since once all are present the effect follows; and each member of the set is necessary within that set, since the effect would not follow if it were removed. “The cause” in everyday speech names one necessary part of a sufficient whole.

Necessity in a different sense

Mill uses necessary in a second sense that should not be confused with the first. Writers say the notion of cause involves necessity; Mill takes necessity there to mean “unconditionalness” [12]. Day and night have always followed one another, but, Mill says, “we do not call night the cause, nor even a condition, of day”: the conditions of day are that “the sun is above the horizon, his light not extinct, and no opaque body between us and him”, and if that combination “had always existed, it would always have been day, quite independently of night as a previous condition” [12]. A cause, for Mill, is an antecedent, or a set of antecedents occurring together, that the effect follows invariably and unconditionally, not merely one it has always followed so far [12]. This is a claim about how strongly cause and effect are connected, not about one condition being required for another.

Plurality of causes

The set of conditions Mill describes is sufficient for its effect, but it need not be the only set that is. In Chapter X Mill writes: “A given effect may really be produced by a certain cause, and yet be perfectly capable of being produced without it” [14]. His examples: “Many causes may produce mechanical motion”, and likewise some kinds of sensation, and death [14]. In the terms here: when an effect has several possible causes, each is sufficient and none is necessary for the effect in general.

Mill’s methods read as tests of conditions

In Chapter VIII Mill sets out two methods, which he names Agreement and Difference [13]. He describes them in terms of antecedents that can or cannot be excluded, and of invariable and unconditional antecedents. The reading of them as tests for necessary and sufficient conditions that follows is this article’s assessment, argued from his text; it is not Mill’s own wording.

Agreement

Mill uses capital letters for antecedent circumstances and small letters for effects. Suppose the effect a is observed twice, once after circumstances A B C and once after A D E. B and C cannot be what produces a, since a occurred without them the second time; D and E cannot be, since a occurred without them the first time; A alone was present both times [13]. Mill states the principle underneath: whatever circumstance “can be excluded, without prejudice to the phenomenon, or can be absent notwithstanding its presence, is not connected with it in the way of causation” [13]. His first canon says that if, across two or more of its instances, a phenomenon shares just one circumstance, that circumstance is the cause or the effect [13].

Our assessment: each instance in which a occurs without some circumstance shows that circumstance is not necessary for a. Agreement works by striking out candidates for necessity. It never tests sufficiency, since it looks only at cases where a happened. Mill draws the matching limit himself. Agreement establishes that A invariably accompanies a, but to show that A is the cause one must produce a by adding A, or at least find an instance where a appeared with no other change than the addition of A, and that step belongs to the Method of Difference [13]. Agreement also fails under plurality of causes: if a can come from C in one instance and from E in the other, the shared A may have nothing to do with it [14]. In our terms, agreement assumes that the effect has a single necessary condition, and plurality of causes is exactly the case where it has none.

Difference

The Method of Difference compares two instances that are alike in every circumstance except one. In his notation: “If the effect of A B C is a b c, and the effect of B C b c”, then the effect of A is a [13]. Mill’s example: a man shot through the heart was fully alive just before, and everything else was unchanged except the wound [13]. One axiom he gives is: “Whatever antecedent can not be excluded without preventing the phenomenon, is the cause, or a condition, of that phenomenon” [13]. His second canon concludes that the single differing circumstance is the effect, the cause, or “an indispensable part of the cause” [13].

Our assessment: the comparison shows two things at once, both relative to the fixed background B C. The case with A, B and C was followed by a, so A together with B C was sufficient for a. Removing A while keeping B C removed a, so with that background A was necessary. It does not show that A alone is sufficient, which is why Mill’s canon includes the words “indispensable part”: A may be one member of the sum of conditions described in Chapter V. Nor does it show that A is necessary in other settings, since under plurality of causes something else might produce a elsewhere [14]. Mill ranks Difference above Agreement: it appears to him that, by direct experience, causes can be reached with certainty only through the Method of Difference, and that Agreement serves mainly to suggest where to apply it, or as an inferior resource where Difference is impracticable [13].

Worked examples

The examples in this section are ours.

1. A sufficient condition that is not necessary. Let p be the whole number n is divisible by 4 and q be n is even. If n is divisible by 4 then n = 4k = 2(2k) for some whole number k, so n is even: p is sufficient for q. It is not necessary: 6 is even (6 ÷ 2 = 3) but 6 ÷ 4 = 1.5, so 4 does not divide 6 (our check). The contrapositive holds: 7 is odd, so 4 does not divide 7 (7 ÷ 4 = 1.75, our check). The converse, every even number is divisible by 4, is false, with 6 as the counterexample.

2. A condition that is both. A whole number is divisible by 3 if and only if the sum of its digits is divisible by 3. For 2,481 the digit sum is 2 + 4 + 8 + 1 = 15 = 3 × 5, and 2,481 = 3 × 827 (our check). For 2,482 the digit sum is 16, which is not a multiple of 3, and 2,482 = 3 × 827 + 1 (our check). Because the digit test is both necessary and sufficient, it can be used in both directions: a passing digit sum proves divisibility, and a failing one disproves it. A test that was only necessary could rule numbers out but never in.

3. A debate claim. Two speakers argue about whether practice produces skill at chess. Speaker A says practice is necessary for mastery; speaker B replies with a player who practised for years and never became a master. B’s case does not touch A’s claim: it shows practice is not sufficient, which A did not assert. To refute A, B would need a master who had not practised. The general rule (our assessment, from the truth table): a necessary-condition claim is refuted only by a case with the result and without the condition; a sufficient-condition claim is refuted only by a case with the condition and without the result. Before replying to a claim, decide which of the two it is.

Summary

  • If p, then q makes p sufficient for q and q necessary for p. The only case it forbids is p true with q false [3, 7, 8].
  • Only if introduces the necessary condition; if introduces the sufficient one [5].
  • A conditional and its contrapositive always agree; a conditional and its converse can differ [9].
  • Affirming the consequent and denying the hypothesis are invalid (our check of the forms [10] poses as exercises); they treat a necessary condition as sufficient, or the reverse.
  • A biconditional is two conditionals together and states a condition that is both necessary and sufficient [2, 5]; definitions take this form [1, 6].
  • For Mill, the cause is the whole set of conditions, each indispensable [11], and an effect may have more than one such set [14]. On our reading, Agreement eliminates candidates for necessity and Difference shows a circumstance necessary against a fixed background [13].

Sources

Page numbers are the printed pages. The two EPUBs have no fixed pagination; passages in them are located by Book, Chapter and section (Mill) or by essay (James).

  • OpenLogic Project, Sets, Logic, Computation.
  • OpenStax, Contemporary Mathematics. Its text layer drops the logical symbols; the symbolic forms were reconstructed from the surrounding prose and tables.
  • John Stuart Mill, A System of Logic, Ratiocinative and Inductive, eighth edition (New York: Harper & Brothers), Project Gutenberg edition.
  • William James, The Will to Believe, and Other Essays in Popular Philosophy, Project Gutenberg edition.

  • [1]Sets, Logic, Computation, §1.2, p. 4 (Definition 1.5, subset; extensionality; Proposition 1.8, sets equal iff each is a subset of the other). View at source ↗

  • [2]Same, ch. 6, pp. 91–93 (alternative symbols for the conditional and biconditional; ↔ as a defined symbol; A ↔ B abbreviates (A → B) ∧ (B → A)). View at source ↗
  • [3]Same, §7.4, Definition 7.11, p. 120 (satisfaction clause for →: satisfied iff the antecedent is not satisfied or the consequent is). View at source ↗
  • [4]Same, ch. 9, p. 160 (a rule of inference gives a sufficient condition; modus ponens). View at source ↗
  • [5]Same, Appendix A, pp. 346–348 (conditional proof; “only if”, “if” and “provided” as forms of the conditional; a biconditional as two conditionals; proof by cases, either disjunct sufficient). View at source ↗
  • [6]Same, Glossary, p. 404 (injective defined with “iff”). View at source ↗
  • [7]Contemporary Mathematics, §2.2, p. 71 (conditional; hypothesis or antecedent; conclusion or consequent; false only when hypothesis true and conclusion false; biconditional true when truth values match). View at source ↗
  • [8]Same, §2.4, pp. 88–90 (conditional as promise or contract; the homework example; truth tables of the conditional and the biconditional). View at source ↗
  • [9]Same, §2.5, pp. 97–100 (logical equivalence; converse, inverse and contrapositive; their comparison table; Example 2.23; Example 2.25, the Boseman statement). View at source ↗
  • [10]Same, §2.7, pp. 108–112 and 115 (valid and sound arguments; law of detachment; law of denying the consequent; Venn diagrams with guitarists and musicians; exercises 33–34, denying the hypothesis and affirming the consequent). View at source ↗
  • [11]Mill, System of Logic, Book III, Chapter V, §3 (cause and conditions; the dish; mercury and the cold; the ladder; the stone in water; the sentinel; negative conditions; the cause as the sum total of the conditions).
  • [12]Same, Book III, Chapter V, §6 (day and night; necessity as unconditionalness; invariable and unconditional sequence).
  • [13]Same, Book III, Chapter VIII, §§1–3 (Method of Agreement and Method of Difference; their axioms and the first and second canons; soap and crystallization; the gunshot; both as methods of elimination; Agreement as a guide to applying Difference).
  • [14]Same, Book III, Chapter X, §§1–2 (plurality of causes; motion, sensation and death; why plurality makes the Method of Agreement uncertain).
  • [15]James, “Great Men and Their Environment”, in The Will to Believe (necessary and sufficient conditions; the omelet; the Greeks and the Phoenicians).

Works cited