A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Interactive Theorem Proving

Research Depth 94 in the knowledge graph ☐ I know this ☆ Set as goal
1topic build on this
513prerequisites beneath it
See this on the map →
Introduction to Predicate Logic (First-Order Logic)Curry-Howard Correspondence+1 more→→Certified Compilation
proof-assistant coq isabelle lean agda machine-checked-proof

Core Idea

Interactive theorem proving uses software tools (proof assistants) in which humans construct formal proofs with machine verification of every step. The user states a theorem in a formal logic, then builds the proof interactively — applying tactics, introducing lemmas, and guiding the proof search — while the proof assistant checks that each step is logically valid. The result is a machine-checked proof: a certificate that the theorem follows from the axioms with absolute certainty. Major proof assistants include Coq (based on the Calculus of Inductive Constructions), Isabelle/HOL (based on higher-order logic), Lean (dependent type theory with strong automation), and Agda (dependently-typed programming language doubling as a proof assistant).

Explainer

An informal mathematical proof convinces a human reader that a theorem is true. But human readers make mistakes — they may accept a flawed argument because it "looks right" or skip a tedious case analysis. Interactive theorem proving raises the bar: the proof must convince a computer, which checks every logical step mechanically against a fixed set of axioms and inference rules. The result is a machine-checked proof — a formal object that can be independently verified by anyone who trusts the proof assistant's kernel (typically a few thousand lines of code).

The workflow is fundamentally interactive. The user states a theorem in the proof assistant's formal language, producing a goal — a statement to be proved. The user then applies tactics (proof commands) that transform the goal into simpler subgoals. A tactic might split a conjunction into two subgoals, apply an induction principle, rewrite using a known equality, or invoke an automated decision procedure. Each tactic application is checked by the kernel: it must produce valid proof steps or be rejected. The process continues until all subgoals are discharged. The resulting proof term is a complete formal derivation, independent of the tactic scripts that generated it.

The major proof assistants differ in their foundational logics. Coq uses the Calculus of Inductive Constructions (CIC), a dependent type theory where propositions are types and proofs are programs — a direct implementation of the Curry-Howard correspondence. Isabelle/HOL uses classical higher-order logic, which is more familiar to working mathematicians and supports automation well (the Sledgehammer tactic calls external SMT solvers). Lean uses a dependent type theory similar to Coq's but emphasizes usability, metaprogramming, and strong automation; it has attracted significant mathematical formalization effort (Mathlib). Agda is a dependently-typed programming language where proofs are written as programs, emphasizing direct term construction over tactic-based proof.

The practical impact of interactive theorem proving has grown dramatically. CompCert (a verified C compiler in Coq) guarantees that compiled code faithfully reflects source semantics. seL4 (a verified microkernel in Isabelle/HOL) guarantees functional correctness and security properties of an operating system kernel. The Feit-Thompson Theorem and the Kepler Conjecture (Flyspeck project) have been formally verified, demonstrating that proof assistants can handle deep mathematics. The Four Color Theorem was verified in Coq, resolving concerns about the computer-assisted portions of the original proof.

The main barrier to broader adoption is the effort required to formalize proofs. Machine-checked proofs are typically 5-20 times longer than their informal counterparts because every implicit step, every appeal to "obviously," every routine calculation must be made explicit. This overhead is decreasing as automation improves — modern proof assistants can discharge many routine obligations automatically using SMT integration, rewriting engines, and proof search. The emerging pattern is human-guided, machine-verified development: the human provides the high-level proof strategy and key insights, automation handles the mechanical details, and the kernel guarantees correctness of the final result.

Practice Questions 4 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Finite State Machines (FSMs) → Deterministic Finite Automata (DFA) → Nondeterministic Finite Automata (NFA) → Two-Way Finite Automata → NFA to DFA Conversion (Subset Construction) → DFA Properties and Minimization Algorithms → Regular Languages: Definition and Characterization → Context-Free Grammars (CFGs) → Context-Free Grammar Properties and Ambiguity → Parse Trees, Derivations, and Ambiguity in CFGs → Context-Free Grammars in Compiler Design → Abstract Syntax Trees (ASTs) → Symbol Tables and Scope Resolution → Semantic Analysis Phase → Type Systems Overview → Curry-Howard Correspondence → Interactive Theorem Proving

Longest path: 95 steps · 513 total prerequisite topics

Prerequisites (3)

Leads To (1)