anyone know if there's a standard story for derived induction principles/recurso...
chris martens @chrisamaphone@hci.social
anyone know if there's a standard story for derived induction principles/recursors over mutually-recursively-defined datatypes?
example:
datatype even = z | se odd
and odd = so even
fun double_e z = z
| double_e (se n) = se (so (double_o n))
and double_o (so n) = se (so (double_e n))
i know one account that derives an inductive family indexed by a label for each mutual def, but that forces you to define all recs over *any* datatype in that set over the full indexed family instead.