All Exercises
#21 Transitivity of Implication
live.lean-lang.org
Pure Lean 4 · No Mathlib
EasyLogic

21. Transitivity of Implication

Chain two implications together: given proofs of `P → Q` and `Q → R`, construct a proof of `P → R`. Under the Curry–Howard correspondence, this is simply function composition.

Target Theorem
theorem imp_trans (P Q R : Prop) (hpq : P → Q) (hqr : Q → R) : P → R
Hints (0/3)

Stuck? Reveal hints one step at a time without spoiling the full proof.

Symbols:
Initializing Lean 4 editor…
Infoview & Diagnosticsline 1idle
Write your proof above and click Submit Proof (or open in live.lean-lang.org).