(motive : Lean.IR.Decl → Sort u_1) →
  (decl : Lean.IR.Decl) →
    ((f : Lean.IR.FunId) →
        (xs : Array Lean.IR.Param) →
          (type : Lean.IR.IRType) →
            (b : Lean.IR.FnBody) → (info : Lean.IR.DeclInfo) → motive (Lean.IR.Decl.fdecl f xs type b info)) →
      ((x : Lean.IR.Decl) → motive x) → motive decl