diff options
author | Jason Gross <jgross@mit.edu> | 2017-01-17 18:29:44 -0500 |
---|---|---|
committer | Jason Gross <jgross@mit.edu> | 2017-01-17 18:29:44 -0500 |
commit | 2b663b207ae295f9d2fe7c67b93e65c8a452050b (patch) | |
tree | 26f1e9ea509b5d33eb87a690eab1bf0421ef55d0 /src/Util/Tactics/Head.v | |
parent | 0a8a60958f5ad312e7e5ab596a1f9f56694987f2 (diff) |
More fine-grained util tactic files
Also, add [split_and]
Diffstat (limited to 'src/Util/Tactics/Head.v')
-rw-r--r-- | src/Util/Tactics/Head.v | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Util/Tactics/Head.v b/src/Util/Tactics/Head.v new file mode 100644 index 000000000..fa7a301d6 --- /dev/null +++ b/src/Util/Tactics/Head.v @@ -0,0 +1,10 @@ +Require Export Crypto.Util.FixCoqMistakes. + +(** find the head of the given expression *) +Ltac head expr := + match expr with + | ?f _ => head f + | _ => expr + end. + +Ltac head_hnf expr := let expr' := eval hnf in expr in head expr'. |