Hypothetical syllogism
Type  Syllogism 

Field 

Statement  Whenever instances of [math]\displaystyle{ P \to Q }[/math], and [math]\displaystyle{ Q \to R }[/math] appear on lines of a proof, [math]\displaystyle{ P \to R }[/math] can be placed on a subsequent line. 
Transformation rules 

Propositional calculus 
Rules of inference 
Rules of replacement 
Predicate logic 
In classical logic, a hypothetical syllogism is a valid argument form, a deductive syllogism with a conditional statement for one or both of its premises. Ancient references point to the works of Theophrastus and Eudemus for the first investigation of this kind of syllogisms.^{[1]}^{[2]}
Types
Hypothetical syllogisms come in two types: mixed and pure. A mixed hypothetical syllogism has two premises: one conditional statement and one statement that either affirms or denies the antecedent or consequent of that conditional statement. For example,
 If P, then Q.
 P.
 ∴ Q.
In this example, the first premise is a conditional statement in which "P" is the antecedent and "Q" is the consequent. The second premise "affirms" the antecedent. The conclusion, that the consequent must be true, is deductively valid.
A mixed hypothetical syllogism has four possible forms, two of which are valid, while the other two are invalid. A valid mixed hypothetical syllogism either affirms the antecedent (modus ponens) or denies the consequent (modus tollens).^{[3]} An invalid hypothetical syllogism either affirms the consequent (fallacy of the converse) or denies the antecedent (fallacy of the inverse).
A pure hypothetical syllogism is a syllogism in which both premises and the conclusion are all conditional statements. The antecedent of one premise must match the consequent of the other for the conditional to be valid. Consequently, conditionals contain remained antecedent as antecedent and remained consequent as consequent.
 If P, then Q.
 If Q, then R.
 ∴ If P, then R.
An example in English:
 If I do not wake up, then I cannot go to work.
 If I cannot go to work, then I will not get paid.
 Therefore, if I do not wake up, then I will not get paid.
Propositional logic
In propositional logic, hypothetical syllogism is the name of a valid rule of inference (often abbreviated HS and sometimes also called the chain argument, chain rule, or the principle of transitivity of implication). The rule may be stated:
 [math]\displaystyle{ \frac{P \to Q, Q \to R}{\therefore P \to R} }[/math]
In other words, whenever instances of "[math]\displaystyle{ P \to Q }[/math]", and "[math]\displaystyle{ Q \to R }[/math]" appear on lines of a proof, "[math]\displaystyle{ P \to R }[/math]" can be placed on a subsequent line.
Applicability
The rule of hypothetical syllogism holds in classical logic, intuitionistic logic, most systems of relevance logic, and many other systems of logic. However, it does not hold in all logics, including, for example, nonmonotonic logic, probabilistic logic and default logic. The reason for this is that these logics describe defeasible reasoning, and conditionals that appear in realworld contexts typically allow for exceptions, default assumptions, ceteris paribus conditions, or just simple uncertainty.
An example, derived from Ernest W. Adams, ^{[4]}
 If Jones wins the election, Smith will retire after the election.
 If Smith dies before the election, Jones will win the election.
 If Smith dies before the election, Smith will retire after the election.
Clearly, (3) does not follow from (1) and (2). (1) is true by default, but fails to hold in the exceptional circumstances of Smith dying. In practice, realworld conditionals always tend to involve default assumptions or contexts, and it may be infeasible or even impossible to specify all the exceptional circumstances in which they might fail to be true. For similar reasons, the rule of hypothetical syllogism does not hold for counterfactual conditionals.
Formal notation
The hypothetical syllogism inference rule may be written in sequent notation, which amounts to a specialization of the cut rule:
 [math]\displaystyle{ \frac{P \vdash Q\quad Q \vdash R}{P \vdash R} }[/math]
where [math]\displaystyle{ \vdash }[/math] is a metalogical symbol and [math]\displaystyle{ A \vdash B }[/math] meaning that [math]\displaystyle{ B }[/math] is a syntactic consequence of [math]\displaystyle{ A }[/math] in some logical system;
and expressed as a truthfunctional tautology or theorem of propositional logic:
 [math]\displaystyle{ ((P \to Q) \land (Q \to R)) \to (P \to R) }[/math]
where [math]\displaystyle{ P }[/math], [math]\displaystyle{ Q }[/math], and [math]\displaystyle{ R }[/math] are propositions expressed in some formal system.
Proof
Step  Proposition  Derivation 

1  [math]\displaystyle{ P \to Q }[/math]  Given 
2  [math]\displaystyle{ Q \to R }[/math]  Given 
3  [math]\displaystyle{ P }[/math]  Conditional proof assumption 
4  [math]\displaystyle{ Q }[/math]  Modus ponens (1,3) 
5  [math]\displaystyle{ R }[/math]  Modus ponens (2,4) 
6  [math]\displaystyle{ P \to R }[/math]  Conditional Proof (35) 
Alternative forms
An alternative form of hypothetical syllogism, more useful for classical propositional calculus systems with implication and negation (i.e. without the conjunction symbol), is the following:
 (HS1) [math]\displaystyle{ (Q \to R) \to ((P \to Q) \to (P \to R)) }[/math]
Yet another form is:
 (HS2) [math]\displaystyle{ (P \to Q) \to ((Q \to R) \to (P \to R)) }[/math]
Proof
An example of the proofs of these theorems in such systems is given below. We use two of the three axioms used in one of the popular systems described by Jan Łukasiewicz. The proofs relies on two out of the three axioms of this system:
 (A1) [math]\displaystyle{ \phi \to \left( \psi \to \phi \right) }[/math]
 (A2) [math]\displaystyle{ \left( \phi \to \left( \psi \rightarrow \xi \right) \right) \to \left( \left( \phi \to \psi \right) \to \left( \phi \to \xi \right) \right) }[/math]
The proof of the (HS1) is as follows:
 (1) [math]\displaystyle{ ((p\to(q \to r)) \to ((p \to q) \to (p \to r))) \to ((q \to r) \to ((p\to(q \to r)) \to ((p \to q) \to (p \to r)))) }[/math] (instance of (A1))
 (2) [math]\displaystyle{ (p\to(q \to r)) \to ((p \to q) \to (p \to r)) }[/math] (instance of (A2))
 (3) [math]\displaystyle{ (q \to r) \to ((p\to(q \to r)) \to ((p \to q) \to (p \to r))) }[/math] (from (1) and (2) by modus ponens)
 (4) [math]\displaystyle{ ((q \to r) \to ((p\to(q \to r)) \to ((p \to q) \to (p \to r))))\to (((q \to r) \to (p\to(q \to r))) \to ((q \to r)\to((p \to q) \to(p \to r)))) }[/math] (instance of (A2))
 (5) [math]\displaystyle{ ((q \to r) \to (p\to(q \to r))) \to ((q \to r)\to((p \to q) \to(p \to r))) }[/math] (from (3) and (4) by modus ponens)
 (6) [math]\displaystyle{ (q \to r) \to (p\to(q \to r)) }[/math] (instance of (A1))
 (7) [math]\displaystyle{ (q \to r)\to((p \to q) \to(p \to r)) }[/math] (from (5) and (6) by modus ponens)
The proof of the (HS2) is given here.
As a metatheorem
Whenever we have two theorems of the form [math]\displaystyle{ T_1 = (Q \to R) }[/math] and [math]\displaystyle{ T_2 = (P \to Q) }[/math], we can prove [math]\displaystyle{ (P \to R) }[/math] by the following steps:
 (1) [math]\displaystyle{ (Q \to R) \to ((P \to Q) \to (P \to R))) }[/math] (instance of the theorem proved above)
 (2) [math]\displaystyle{ Q \to R }[/math] (instance of (T1))
 (3) [math]\displaystyle{ (P \to Q) \to (P \to R) }[/math] (from (1) and (2) by modus ponens)
 (4) [math]\displaystyle{ P \to Q }[/math] (instance of (T2))
 (5) [math]\displaystyle{ P \to R }[/math] (from (3) and (4) by modus ponens)
See also
 Plausible reasoning
 Transitive relation
 Type of syllogism (disjunctive, hypothetical, legal, poly, prosleptic, quasi, statistical)
References
 ↑ "History of Logic: Theophrastus of Eresus" in Encyclopædia Britannica Online.
 ↑ Susanne Bobzien,"The Development of Modus Ponens in Antiquity: "From Aristotle to the 2nd Century AD", Phronesis, Vol. 47, No. 4 (2002), pp. 359394.
 ↑ ^{3.0} ^{3.1} Kashef, Arman. (2023), In Quest of Univeral Logic: A brief overview of formal logic's evolution, doi:10.13140/RG.2.2.24043.82724/1, https://www.researchgate.net/publication/366867569
 ↑ Adams, Ernest W. (1975). The Logic of Conditionals. Dordrecht: Reidel. p. 22.
External links
Original source: https://en.wikipedia.org/wiki/Hypothetical syllogism.
Read more 