A Proof is a rigorous method for establishing the truth of a mathematical statement. In Computer Science, a proof is a verification of a Proposition by a chain of logical deductions starting from a set of Axioms. It allows us to certify that a system (or algorithm) works correctly for all possible inputs, which is impossible to do via testing alone.
Components
- Proposition: A statement that is definitive either True or False.
- Example: (True)
- Example: (False for )
- Axiom: A proposition that is assumed to be true without proof. These form the foundation (ground truth) of the logical system.
- Example: “It is possible to draw a straight line from any point to any other point.”
- Inference Rule: A logical rule that allows the deduction of a new proposition from existing ones.
- Example: If is true and is true, then is true.
The Structure of a Proof
A proof connects axioms to theorems through a sequence of logical steps. See Logic and Propositions for details on logical connectives ().
The Limits (Gödel)
Any consistent axiomatic system powerful enough to describe arithmetic is incomplete. There are true statements that cannot be proven within the system.
Common Pitfalls
False Proofs often rely on hidden assumptions, division by zero, or misleading visualizations.
Example: The Fallacy
The Flaw: The rule is only valid for positive real numbers. Applying it to negatives leads to contradictions.
Methods of Proof
See Proof Method(s) for a detailed breakdown.
- Direct Proof: Proceed linearly from to .
- Proof by Contrapositive: Prove .
- Proof by Contradiction: Assume , derive a contradiction.
- Mathematical Induction: Prove a property holds for all natural numbers by proving a base case and an inductive step.
Why Proofs Matter
- Correctness: Ensuring an algorithm produces the correct output for all valid inputs.
- Security: Verifying that a cryptographic protocol cannot be breached.
- Reliability: Preventing bugs in critical hardware/software systems (e.g., flight control, banking).