findRecArg
The code was not traversing the indices if the datatype has parameters
ite
dite
WF
mkEqnTypes
sorry
Inhabited
default_or_ofNonempty%
mkDefault
Structural.lean
src/Lean/Elab/PreDefinition/WF