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

The Arithmetical Hierarchy

Graduate Depth 95 in the knowledge graph ☐ I know this ☆ Set as goal
5topics build on this
623prerequisites beneath it
See this on the map →
First-Order Logic SyntaxRecursively Enumerable and Co-RE Languages+6 more→→Time Hierarchy TheoremTime and Space Hierarchy Theorems
computability definability logic hierarchy

Core Idea

The arithmetical hierarchy classifies sets of natural numbers by the complexity of their first-order definitions over arithmetic. A set is Σ₁ if definable with one existential quantifier block (equivalently, RE); Π₁ if definable with one universal quantifier block (co-RE). Higher levels Σₙ and Πₙ alternate quantifier blocks, and no level collapses into the one below — each level contains strictly harder problems. This hierarchy connects computability theory to logic and forms the foundation for more refined degree theory.

How It's Best Learned

Study both the syntactic characterization (quantifier alternation depth) and the semantic one (oracle TM computation). Verify that the halting problem is Σ₁-complete and that the totality problem (does TM M halt on all inputs?) is Π₂-complete as a concrete example of a higher-level problem.

Common Misconceptions

Explainer

You already know that RE languages (Σ₁) are those accepted by a Turing machine that may loop on non-members, and co-RE (Π₁) are their complements — languages where membership can be disproved by a halting TM. The arithmetical hierarchy generalizes this by asking: how many alternating blocks of quantifiers does it take to *define* a set of natural numbers in the language of arithmetic?

The key idea is that quantifier alternation depth measures definitional complexity. A set is Σ₁ if you can express membership as "there exists a number n such that some computable predicate holds" — equivalently, it is RE. A set is Π₁ if it requires a universal quantifier at the front: "for all n, ..." — equivalently, co-RE. The sets you can decide outright (decidable/recursive) sit in Δ₁, the intersection of Σ₁ and Π₁: they are both RE and co-RE simultaneously. This should feel natural — you know that a language is decidable iff both it and its complement are RE.

The hierarchy climbs by alternating quantifiers. A Σ₂ set has the form ∃x ∀y P(n,x,y) for computable P — you first guess a witness, then universally check it. A Π₂ set flips the order: ∀x ∃y P(n,x,y). The classic Σ₂ example is the set of indices of TMs that halt on *some* input (Σ₂-complete). The classic Π₂ example is the totality problem: the set of TM indices e such that Mₑ halts on *every* input. You cannot solve totality with just one quantifier type — you need to say "for all inputs x, there exists a halting computation," which requires a ∀∃ shape.

The separation result — no level collapses into the one below — means the hierarchy is strict and infinite. Each level contains genuinely harder problems that no number of oracle queries can push down. The arithmetic hierarchy also connects back to Gödel's incompleteness: Σ₁ statements are exactly the ones provably equivalent to a computation halting, and the unprovable sentences of arithmetic live at the boundary between definable levels and truth in the standard model. Understanding the hierarchy is the foundation for degree theory, where you study reductions between problems rather than just their class membership.

The hierarchy can alternatively be presented through oracle computation: a set is Σₙ iff it is RE relative to a Σₙ₋₁-complete oracle (such as the nth jump of the halting problem). This oracle presentation makes the levels feel more computational and connects directly to the reducibility theory you will encounter in degree theory. Whether you prefer the syntactic (quantifier-counting) or semantic (oracle) perspective, the hierarchy gives you a fine-grained map of the landscape between decidable and arbitrarily hard arithmetic.

Practice Questions 5 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 → Introduction to Propositional Logic → Introduction to Predicate Logic (First-Order Logic) → First-Order Logic Syntax → Terms and Atomic Formulas in FOL → Variable Binding and Scope → Open and Closed Formulas in First-Order Logic → Variable Substitution and Capture-Avoidance in First-Order Logic → Quantifier Instantiation Rules in First-Order Proof Systems → Universal Quantification: Meaning and Scope → Free Variables and Bound Variables → Substitution and Instantiation in Predicate Logic → Terms and Atomic Formulas → Formulas and Well-Formed Expressions → Structures and Interpretations → Model Interpretation and Satisfaction → Interpretation, Truth, and Satisfaction of Formulas → Logical Consequence and Entailment → Soundness Theorem and Validity of Proof Systems → Deductive Reasoning and Formal Proof Systems → First-Order Resolution → Propositional Resolution → Semantic Tableaux (Propositional) → Semantic Tableaux (First-Order) → Decidable Fragments of First-Order Logic → Gödel's Completeness Theorem for First-Order Logic → Gödel's Incompleteness Theorems → The Arithmetical Hierarchy

Longest path: 96 steps · 623 total prerequisite topics

Prerequisites (8)

Leads To (2)