Debian Codegraph @

src/Util/Tactics/Head.v

raw
1 Require Export Crypto.Util.FixCoqMistakes.
2
3 (** find the head of the given expression *)
4 Ltac head expr :=
5 match expr with
6 | ?f _ => head f
7 | _ => expr
8 end.
9
10 Ltac head_hnf expr := let expr' := eval hnf in expr in head expr'.