Type theory: can multiple elimination rules be defined, in principle?
Statement
I'd like to ask a question on type theory:
Consider the usual type theoretical definition of the natural numbers. We could give an elimination rule in the form:
or in the form:
I called the costants in the elimination rules and for the parallel with catamorphisms and paramorphisms recursion schemas. I also omitted the computation rules, as they are well known.
Now, this two ways to introduce the elimination rules let us build the same functions (in the sense in which a function is his graph), but other details are different (for example, the length of the derivation in the computation of a function; the pseudo-predecessor function expressed with the version has to recur on all the structure, while with is always a single step).
What I want to know is this: is there any reason why we insist on having a unique elimination rule?
Examples of such reasons may be theorems which are easier to state/proof, or other meta-theoretic properties.
Could we have different elimination rules, if they are automatically determined by the introduction rules (as in this case?). Would a logician consider this approach tasteful?
Posed by meditans · lo.logic, type-theory
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-210237.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-210237.lean
import Mathlib /-! # Type theory: can multiple elimination rules be defined, in principle? Source: https://mathoverflow.net/questions/210237 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_210237 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_210237