Skip to content
Part IA Michaelmas, Lent Term

Inductive Definitions

Motivation

Many important sets are described inductively: we specify:

  1. Axioms: certain elements are in the set by fiat
  2. Rules: ways to derive new elements from existing ones

This is more flexible than explicit enumeration or comprehension.

Axioms and Rules

Axioms

An axiom is a statement of the form: “element aa is in the set”.

We write axioms as horizontal lines with nothing above:

a\frac{}{a}

Rules

A rule states: if u1,,unu_1, \ldots, u_n are in the set, then vv is in the set.

We write rules as:

u1u2unv\frac{u_1 \quad u_2 \quad \cdots \quad u_n}{v}

  • The uiu_i are called premises (or hypotheses)
  • vv is called the conclusion
  • A rule with no premises is an axiom

Closure Conditions

Given a set of rules RR, each rule defines a closure condition:

{SX:u1,,unSvS}\{S \subseteq X : u_1, \ldots, u_n \in S \Rightarrow v \in S\}

A set SS satisfies all closure conditions iff it is “closed under the rules.”

Defining Sets Inductively

Method

Given a set XX and a set of rules RR:

  1. Start with the axioms
  2. Repeatedly apply rules to derive new elements
  3. The inductively defined set XRX_R contains all derivable elements

Formal Definition

Let ClR\text{Cl}_R be the collection of all subsets of XX closed under RR.

XR=SClRSX_R = \bigcap_{S \in \text{Cl}_R} S

This is the smallest subset of XX closed under RR.

Why Smallest?

  • XRX_R itself is closed under RR (intersection preserves closure)
  • Any SS closed under RR contains XRX_R (if not, some element of XRX_R would be missing from SS)

Example: Natural Numbers

Define N\mathbb{N} inductively with rules:

0nS(n)\frac{}{0} \qquad \frac{n}{S(n)}

Interpretation

  • 0N0 \in \mathbb{N} (axiom)
  • If nNn \in \mathbb{N}, then S(n)NS(n) \in \mathbb{N} (successor rule)
  • Nothing else is in N\mathbb{N} (smallest such set)

Derived Elements

0,S(0),S(S(0)),S(S(S(0))),0, S(0), S(S(0)), S(S(S(0))), \ldots are all in N\mathbb{N}.

Example: Binary Trees

Define trees with rules:

LeafT1T2Node(T1,T2)\frac{}{\text{Leaf}} \qquad \frac{T_1 \quad T_2}{\text{Node}(T_1, T_2)}

Derived Elements

Leaf, Node(Leaf, Leaf), Node(Node(Leaf, Leaf), Leaf), …

Example: A Language

Define {anbn:n0}\{a^n b^n : n \geq 0\} with rules:

εwawb\frac{}{\varepsilon} \qquad \frac{w}{awb}

Derived Elements

εL\varepsilon \in L, so aεb=abLa\varepsilon b = ab \in L, so aabbLaabb \in L, so aaabbbLaaabbb \in L, …

Inductively Defined Functions

Setup

Given aAa \in A and f:N×AAf : \mathbb{N} \times A \to A, define ρa,f:NA\rho_{a,f} : \mathbb{N} \to A by:

ρa,f(0)=a\rho_{a,f}(0) = a ρa,f(n+1)=f(n,ρa,f(n))\rho_{a,f}(n+1) = f(n, \rho_{a,f}(n))

Existence and Uniqueness

The function ρa,f\rho_{a,f} exists and is unique.

Proof idea: Define ρa,f\rho_{a,f} as the intersection of all (a,f)(a, f)-closed relations, then show it is total and functional.


Summary

  • Inductive definition: specify axioms and rules
  • The defined set XRX_R is the smallest set closed under all rules
  • XR={SX:S closed under R}X_R = \bigcap\{S \subseteq X : S \text{ closed under } R\}
  • Examples: N\mathbb{N}, trees, languages, recursive functions