In type theory, inductive and recursive definitions are made on inductive types through the computation rules for the inductive type. However, since there are multiple possible equalities which could be used for computation rules, there are multiple computation rules which could be used in inductive definitions: computation rules involving judgmental equality, propositional equality, and typal equality are all possible. For example, addition is usually defined by recursion on the natural numbers, and since the natural numbers comes with two computation rules, addition comes with an introduction rule and two computation rules, one for the base case and one for the inductive case the successor function; and the computation rules come in judgmental, propositional, and typal flavours as well:
Introduction and judgmental computation rules for addition :
Introduction and propositional computation rules for addition :
Introduction and typal computation rules for addition :
Another example of an inductive definition is the definition of the transport function, which is given by the following introduction and computation rules:
Introduction and judgmental computation rules for the transport function :
Introduction and propositional computation rules for the transport function :
Introduction and typal computation rules for the transport function :
Peter Aczel, An introduction to inductive definitions In Jon Barwise, editor, Handbook of Mathematical Logic, chapter C.7, pages 783–818. North-Holland, 1977.