Example 24.10 (Modus ponens and the syllogism)
From P→Q and P, the rule →e gives Q: this is modus ponens. From P→Q and Q→R the conclusion P→R needs a hypothesis that is later discharged: under the extra hypothesis P, two uses of →e give R, and →i turns “R under P” into P→R with P no longer among the hypotheses. With Γ={P→Q, Q→R}:
P→Q,P⊢QP→Q,P⊢P→Q hypP→Q,P⊢P hyp→e Γ⊢P→RΓ,P⊢RΓ,P⊢Q→R hypΓ,P⊢QΓ,P⊢P→Q hypΓ,P⊢P hyp→e→e→i
Example 24.11 (No counterexample)
The sequent ⊢(P→Q)→¬(P∧¬Q) says that an implication has no counterexample. Read from the bottom: to prove an implication, assume its left side; to prove a negation, assume the formula and reach ⊥. With Δ={P→Q, P∧¬Q}:
⊢(P→Q)→¬(P∧¬Q)P→Q⊢¬(P∧¬Q)Δ⊢⊥Δ⊢QΔ⊢P→Q hypΔ⊢PΔ⊢P∧¬Q hyp∧e1→eΔ⊢¬QΔ⊢P∧¬Q hyp∧e2¬e¬i→i