-- LeanProofs original teaching draft · CC0-1.0 -- Compiled with official native Lean 4.33.1 on 2026-11-25; mathematical review pending theorem contrapositive (P Q : Prop) (h : P → Q) : ¬Q → ¬P := by intro hnq intro hp exact hnq (h hp)