Idea

In type theory, an inductive-inductive type is a way of constructing a multi-sorted uniform tree structure that is well-founded, where later sorts may be indexed on prior sorts, and all constructors may refer to all other types and constructors.

Like inductive types, these can be encoded using Tarski universe. Unlike plain inducA stive types, we can’t model inductive types as the least fixed points of strictly positive endofunctors, since there are no longer a single sort. This approach relies on a universe of codes (often denoted ) describing the grammar of these functors, an interpretation function mapping codes to functors, and a fixed point constructor.

Codes

The syntax of inductive-inductive types is defiend in forsberg2010-inductive-inductive-definition.

It was extended, with initial algebra semantics to finitary and infinitary QIITs in Theory of Codes and Theory of Signatures.

Signature

An inductive-inductive type signature consists of:

  • Sort symbols for each .
  • Sort signatures specifying the index type of , and referring only to previously defined sorts. The intended sort is
  • For each constructor :
    • a target sort ;
    • a strictly positive telescope
    • a target index expression

This generates a point constructor

Algebras

An algebra for a QIT signature consists of a carrier together with, for each point constructor arity , an operation

These operations induce interpretations of all formal terms. The algebra satisfies the quotient part of the signature when, for each equation context and each

the interpreted endpoints agree:

When the arities are strictly positive, they usually assemble into a functor

so that a QIT algebra may be viewed as an -algebra satisfying the specified equations.

Introduction rules

Let be the type being defined. A quotient inductive definition consists of

  • point constructors

  • path constructors

where each and is a strictly positive telescope, and

To ensure you get a set-level QIT and one is working outside of a UIP setting, then one also includes a truncation constructor asserting that is a set.

Recursor

Let be a -algebra. Then there is a unique function

such that for each point constructor ,

Reduction to inductive types

It is known that inductive types reduce to inductictive types. Kaposi et al. showed that in the finitary case 1 inductive-inductive types reduce to indexed inductive types using a erased mutually inductive type, which is filtered by a well-formedness predicate. Sestini later extended this to the infinitary case, giving a general reduction using the same approach as Kaposi et al. 2

See also

References

forsberg2013-inductive-inductive-thesis dybjer1999-inductive-recursive kaposi2019-finitary-induction-induction altenkirch2011-inductive-inductive-semantics sestini2023-inductive-inductive-thesis forsberg2010-inductive-inductive-definition

Footnotes

  1. kaposi2019-finitary-induction-induction

  2. sestini2023-inductive-inductive-thesis