Skip to content
AI360XpertBeta

Proof Techniques

Direct proof chains forward, contradiction assumes the opposite and breaks it, and induction topples an infinite ladder from one anchored rung.

Partial sums 1, 3, 6, 10 and 15 sit exactly on n times n plus 1 over 2, so anchoring rung 1 and linking each rung to the next proves 1 to 100 sums to 5050
Partial sums 1, 3, 6, 10 and 15 sit exactly on n times n plus 1 over 2, so anchoring rung 1 and linking each rung to the next proves 1 to 100 sums to 5050

Why Does This Exist?

Every correctness argument in ML answers one question: why should anyone believe this claim holds beyond the examples shown. A convergence proof, a complexity bound, a loop invariant. Each uses one of three shapes, and reaching for the wrong shape wastes hours. Chaining forward when the denial would collapse faster. Checking infinite cases one by one. Hand waving a universal statement that induction would settle in two moves.

Knowing the shapes also means spotting where each silently fails. A direct chain with one weak link. A contradiction that ends in surprise instead of impossibility. An induction with a missing base. This page teaches the three shapes and their contracts. The language of claims and quantifiers underneath lives in sets, logic and proofs. The complexity bounds these techniques certify live in computational complexity for ML.

The one idea you need first

A proof is a finite chain of checkable steps from agreed starting points, axioms and definitions and already proven results, to the conclusion. The technique is the shape of that chain. Forward construction. Opposite assumption demolition. Rung by rung climb. Shape first, details second, because the shape tells you what you owe the reader before you write a symbol.

Think of It Like This

Three ways to certify a ladder holds everyone

You need to certify a tall ladder. Direct proof climbs it, foot on each rung, narrating every safe move from the ground to the top. Contradiction hires a skeptic who insists the top cannot be reached, then shows that insistence forces something absurd, like the skeptic standing on the top rung while denying it exists. Induction checks the first rung holds and checks the rungs are linked, then declares the whole ladder sound without climbing every rung.

Short ladders suit climbing. Claims whose denial explodes suit skeptics. Infinite ladders suit linkage, since nobody can climb them all. Each ladder part maps to a proof part: rungs are cases, linkage is the inductive step, the anchor is the base case.

Where it stops: real ladders still need reinspection after storms, while a correct proof never needs rechecking. Physical certainty wears out. Logical certainty does not.

How It Actually Works

The three shapes, each with its contract:

  • Direct. Assume the premises, unfold definitions, apply valid inferences forward, arrive at the conclusion. Best when definitions point at the goal. Standard shape: an even number means 2k2k for some integer kk, so the sum of two evens is 2k+2m=2(k+m)2k + 2m = 2(k+m), visibly even. No detour needed.
  • Contradiction. Assume the premises plus the denial of the conclusion, derive something impossible, a statement like 0=10 = 1 or a number both even and odd, and conclude the denial was wrong. Best when the denial is explosive. Classic: 2\sqrt{2} is irrational, because writing it as a reduced fraction forces that fraction to be reducible forever, which no finite fraction can be.
  • Induction. Prove a base case at n=1n = 1, then prove the step: if the claim holds for kk then it holds for k+1k+1. The two together topple every positive integer like dominoes. Best for claims about all natural numbers, loop correctness, and recurrences. The contract is strict. Base without step proves one case. Step without base proves a chain floating in air. Both halves are mandatory, and the step must genuinely use the hypothesis for kk.

Worked example

Prove S(n)=1+2+⋯+n=n(n+1)/2S(n) = 1 + 2 + \cdots + n = n(n+1)/2 by induction, then evaluate at 100100.

Base at n=1n = 1: the left side is 11 and the formula gives 1×2/2=11 \times 2 / 2 = 1. Anchored.

Step: assume S(k)=k(k+1)/2S(k) = k(k+1)/2. Then S(k+1)=S(k)+(k+1)=(k(k+1)+2(k+1))/2=(k+1)(k+2)/2S(k+1) = S(k) + (k+1) = (k(k+1) + 2(k+1))/2 = (k+1)(k+2)/2. That is exactly the formula with k+1k+1 in place of nn. Linked.

Conclusion: the formula holds for every positive integer. At n=100n = 100: 100×101/2=10100/2=5050100 \times 101 / 2 = 10100 / 2 = 5050.

Independent check by pairing: (1+100)+(2+99)+⋯+(50+51)(1+100) + (2+99) + \cdots + (50+51) gives 5050 pairs each summing to 101101, and 50×101=505050 \times 101 = 5050. The small cases march S(1)=1S(1) = 1, S(2)=3S(2) = 3, S(3)=6S(3) = 6, S(4)=10S(4) = 10, S(5)=15S(5) = 15, each matching n(n+1)/2n(n+1)/2. Two routes, one number. The ladder stands.

Watch Out For

Induction with an asserted base case

The step from kk to k+1k+1 is vacuously safe when nothing is ever true. It proves a chain of nothings. The classic joke that all horses are the same color hides its failure in a base case that is announced rather than computed, usually where the step silently needs two overlapping elements and n=1n = 1 supplies only one.

Symptom: a slick step nobody can fault plus a base waved through in one line. Fix: compute the base by hand, visibly, before admiring the step. If the base needs the step machinery, the argument is circular.

Contradiction that ends in surprise instead of absurdity

Deriving something unexpected, like finding that nn must be negative, is not a contradiction unless negativity was already ruled out. Many failed attempts end at a weird but possible statement and declare victory, proving nothing.

Symptom: the final line surprises but violates no premise. Fix: name the impossibility in advance. Which axiom or premise does the derived statement break. If the answer is none, the assumption survives and a different technique is needed.

The Quick Version

  • Direct proof assumes the premises and chains definitions forward to the goal.
  • Contradiction assumes the denial and derives a named impossibility, not a surprise.
  • Induction proves a base case plus a genuine kk to k+1k+1 step, covering all integers.
  • 1+⋯+100=50501 + \cdots + 100 = 5050 by induction, confirmed independently by 5050 pairs of 101101.
  • Partial sums 11, 33, 66, 1010 and 1515 each equal n(n+1)/2n(n+1)/2 at n=1n = 1 through 55.
  • Base without step, or step without base, proves nothing. Both are mandatory.