Andromeda
Note

Contrapositive

Definition

Given a conditional statement “If PP, then QQ” (PQP \to Q), the contrapositive is the statement formed by negating and interchanging both the hypothesis (PP) and the conclusion (QQ): QP\sim Q \to \sim P How to read: “Not Q implies not P.” Meaning / when to use: The statement that if the conclusion QQ is false, then the hypothesis PP must also be false. The contrapositive is logically equivalent to the original conditional statement.

Why It Matters

Because a statement and its contrapositive always have the same truth value, proving the contrapositive is a standard method of indirect proof (proof by contraposition) in mathematics and computer science when the direct statement is difficult to prove.

Core Concepts

  • Negate and Swap: Both negates the terms and swaps their positions.
  • Logical Equivalence: If PQP \to Q is true, QP\sim Q \to \sim P is guaranteed to be true. If PQP \to Q is false, QP\sim Q \to \sim P is guaranteed to be false.
  • Proof Technique: To prove PQP \to Q, assume Q\sim Q is true and show that it logically leads to P\sim P.

Connected Concepts