All Exercises
#4 Contrapositive
live.lean-lang.org
Pure Lean 4 · No Mathlib
EasyLogic

4. Contrapositive

Prove the intuitionistically valid direction of the contrapositive: if `P → Q`, then `¬ Q → ¬ P`. Remember that `¬ P` is definitionally `P → False`.

Target Theorem
theorem contrapositive (P Q : Prop) (h : P → Q) : ¬ Q → ¬ P
Hints (0/2)

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).