Question. Strong induction for higher-inductive types? [01G5]
- August 28, 2025
- Jon Sterling
Background [01G6]
- August 28, 2025
- Jon Sterling
An inductive datatype comes with a primitive induction rule, which allows you to make recursive calls on immediate recursive subterms of the constructors. For more sophisticated kinds of recursion, in which you may make a recursive call on a deeper subterm, you need to define a separate induction principle; for natural numbers, this is often called strong induction.
One way to handle this generically for inductive datatypes D is to define for each family x:D\vdash P[x] a new family x:D\vdash \mathsf {Memo}_D^P[x] that consists of the instances of P at all elements strictly below x in the structural order. For example:
\begin {aligned} &\mathsf {Memo}_{\mathbb {N}}^P[0] :\equiv \mathbf {1}\\ &\mathsf {Memo}_{\mathbb {N}}^P[n+1] :\equiv \mathsf {Memo}_{\mathbb {N}}^P[n]\times P[n] \end {aligned}This particular description comes from Conor Titania Mc Bride’s PhD thesis. Then a recursion combinator is given that only makes the induction hypotheses available without splitting on anything just yet:
\mathsf {Rec}_D^P : ((x : D) \to \mathsf {Memo}_D^P[x] \to P[x]) \to ((x : D) \to P[x])Then a separate non-recursive dependent case analysis principle \mathsf {Case}_D^P is given. These two principles employed together give a flexible foundation for structurally recursive dependently typed programming.
What about higher inductive types? [01G7]
- August 28, 2025
- Jon Sterling
It is attractive to treat the decomposition of strong induction onto \mathsf {Rec}_D and \mathsf {Case}_D as the default programming pattern for working with initial algebras of all kinds. Unfortunately it is completely unclear to me how to compute \mathsf {Memo}_D for a higher inductive type D, if the idea makes any sense at all.
It might be that higher inductive types are an example of where you cannot decouple recursion from case analysis; but it might instead happen that there is some generalisation of memo trees awaiting the sufficiently brave investigator.