More principled code,
Yet,

Error:Incorrect elimination of "H" in the inductive type "even": ill formed elimination predicate