triv_forall_equality
is indeed the Pure rule to strip redundant parameters. There is also prune_params_tac
to do that as ML tactic, it operates on all subgoals. Note that the latter is not exposed as Isar proof method, since it is hardly ever required in practice: tools like simp
and auto
already include it by default.
Note that the approach via (simp only: triv_forall_equality)
works in many situations, but there is also a snag: the only
modifier in Isabelle/HOL does a bit more than "only" using the given simp rules. It includes things like arithmetic solvers, which might cause surprise or confusion some situations.
To imitate prune_params_tac
precisely within the Isar method language, you could use (unfold triv_forall_equality)
although there is a tiny conceptual snag: its use of arbitrary rewriting instead of just infolding equations c = t
is just a historical accident.