ArticleslgStudy

science

Induction-recursion

Induction-recursion is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Induction-recursion rather than just read about it. In short: In intuitionistic type theory (ITT), a discipline within mathematical logic, induction-recursion is a feature for simultaneously declaring a type and function on that type. It allows the creation of larger types than inductive types, such as universes.

Key takeaways

  • Induction-recursion belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Induction-recursion to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Induction-recursion from memory before moving on to harder problems.

Reference excerpt

In intuitionistic type theory (ITT), a discipline within mathematical logic, induction-recursion is a feature for simultaneously declaring a type and function on that type. It allows the creation of larger types than inductive types, such as universes. The types created still remain predicative inside ITT. An inductive definition is given by rules for generating elements of a type. One can then define functions from that type by induction on the way the elements of the type are generated. Induction-recursion generalizes this situation since one can simultaneously define the type and the function, because the rules for generating elements of the type are allowed to refer to the function. Induction-recursion can be used to define large types including various universe constructions. It increases the proof-theoretic strength of type theory substantially. Nevertheless, inductive-recursive definitions are still considered predicative.

Background Induction-recursion came out of investigations into the rules of Martin-Löf's intuitionistic type theory. The type theory has a number of "type formers" and four kinds of rules for each one. Martin-Löf had hinted that the rules for each type former followed a pattern, which preserved the properties of the type theory (e.g., strong normalization, predicativity). Researchers started looking for the most general description of the pattern, since that would tell what kinds of type formers could be added (or not added!) to extend the type theory. The "universe" type former was the most interesting, because when the rules were written "à la Tarski", they simultaneously defined the "universe type" and a function that operated on it. This eventually lead Dybjer to induction-recursion. Dybjer's initial papers called induction-recursion a "schema" for rules. It stated what type formers could be added to the type theory. Later, he and Setzer would write a new type former with rules that allowed new inductive-recursive definitions to be made inside the type theory. This was added to the Half proof assistant (a variant of Alf).

The idea Before covering inductive-recursive types, the simpler case is inductive types. Constructors for inductive types can be self-referential, but in a limited way. The constructor's parameters must be "positive":

not refer to the type being defined be exactly the type being defined, or be a function that returns the type being defined. With inductive types, a parameter's type can depend on earlier parameters, but they cannot refer to ones of the type being defined. Inductive-recursive types go further: a parameter's types can refer to earlier parameters that use the type being defined. These must be "half-positive":

be a function depending on an earlier parameter if that parameter is wrapped in the function being defined. So, if D {\displaystyle D} is the type being defined and f {\displaystyle f} is the function being (simultaneously) defined, these parameter declarations are positive:

a : A {\displaystyle a:A}

d : D {\displaystyle d:D}

g : A → T y p e {\displaystyle g:A\to {\mathsf {Type}}}

h : A → D {\displaystyle h:A\to D}

i : A → B → D {\displaystyle i:A\to B\to D}

j : g a {\displaystyle j:g\ a} (Depends on earlier parameters, none of which are type D {\displaystyle D} .) This is half-positive:

k : ( f d ) → D {\displaystyle k:(f\ d)\to D} (Depends on parameter d {\displaystyle d} of type D {\displaystyle D} but only through call to f {\displaystyle f} .) These are not positive nor half-positive:

k : D → A {\displaystyle k:D\to A} ( D {\displaystyle D} is a parameter to the function.)

l : ( A → D ) → A {\displaystyle l:(A\to D)\to A} (The parameter takes a function that returns D {\displaystyle D} , but returns A {\displaystyle A} itself.)

m : z d {\displaystyle m:z\ d} (Depends on d {\displaystyle d} of type D {\displaystyle D} , but not through the function f {\displaystyle f} .)

Universe example A simple common example is the type former for a universe à la Tarski. It consists of a type U {\displaystyle U} and a function T : U → T y p e {\displaystyle T:U\to {\mathsf {Type}}} such that there is an element of U {\displaystyle U} for every type in the type theory (except U {\displaystyle U} itself!), and the function T {\displaystyle T} maps the elements of U {\displaystyle U} to the associated type. The type U {\displaystyle U} has a constructor (or introduction rule) for each type former in the type theory. The one for dependent functions would be:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Induction-recursion

Start with the simplest possible case. Write down what Induction-recursion claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Induction-recursion before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Induction-recursion ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Induction-recursion

In research
Induction-recursion appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Induction-recursion in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Induction-recursion is common in secondary-school and first-year university syllabi. It links to neighbouring topics Type theory, so understanding it makes those chapters shorter.
In everyday life
Look for Induction-recursion outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Induction-recursion” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Induction-recursion in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Induction-recursion means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Induction-recursion out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Induction-recursion in simple terms?

In intuitionistic type theory (ITT), a discipline within mathematical logic, induction-recursion is a feature for simultaneously declaring a type and function on that type. It allows the creation of larger types than inductive types, such as universes.

Why does Induction-recursion matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Induction-recursion?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Induction-recursion.

Tags

  • Type theory

Keep exploring