aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorMichalis Pardalos <m.pardalos@gmail.com>2021-05-02 11:12:45 +0100
committerMichalis Pardalos <m.pardalos@gmail.com>2021-05-02 11:12:45 +0100
commit564fb33a504d7611d73bbe5e20b23453e141ed3d (patch)
tree441cd64ddf97c3288693a1041904a8a502715754 /src/common
parentb8107dbffc3c9a27b7beb4014883a55102389a29 (diff)
downloadvericert-564fb33a504d7611d73bbe5e20b23453e141ed3d.tar.gz
vericert-564fb33a504d7611d73bbe5e20b23453e141ed3d.zip
Simplify some HTLgenspec proofs
Diffstat (limited to 'src/common')
-rw-r--r--src/common/Vericertlib.v5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/Vericertlib.v b/src/common/Vericertlib.v
index c537cef..722edef 100644
--- a/src/common/Vericertlib.v
+++ b/src/common/Vericertlib.v
@@ -57,6 +57,11 @@ Ltac learn_tac fact name :=
Tactic Notation "learn" constr(fact) := let name := fresh "H" in learn_tac fact name.
Tactic Notation "learn" constr(fact) "as" simple_intropattern(name) := learn_tac fact name.
+Ltac auto_hyp H :=
+ match goal with
+ | H' : _ |- _ => solve [ apply H in H'; auto | auto ]
+ end.
+
Ltac unfold_rec c := unfold c; fold c.
Ltac solve_by_inverts n :=