From f80ab25655bf5068f3ce5ee4b062223ed9a99a5e Mon Sep 17 00:00:00 2001 From: Ralf Jung <jung@mpi-sws.org> Date: Thu, 1 Mar 2018 16:59:27 +0100 Subject: [PATCH] revert the recent changes Turns out this was just a measurement error, looking at the wrong performance numbers --- theories/lang/tactics.v | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/theories/lang/tactics.v b/theories/lang/tactics.v index c7b85fe7..a7d8e6e5 100644 --- a/theories/lang/tactics.v +++ b/theories/lang/tactics.v @@ -172,7 +172,7 @@ Ltac solve_closed := match goal with | |- Closed ?X ?e => let e' := W.of_expr e in change (Closed X (W.to_expr e')); - apply W.is_closed_correct; exact (I <: W.is_closed X e') + apply W.is_closed_correct; vm_compute; exact I end. Hint Extern 0 (Closed _ _) => solve_closed : typeclass_instances. @@ -188,10 +188,7 @@ Ltac solve_to_val := apply W.to_val_Some; simpl; unfold W.to_expr; unlock; reflexivity | |- is_Some (to_val ?e) => let e' := W.of_expr e in change (is_Some (to_val (W.to_expr e'))); - apply W.to_val_is_Some, (bool_decide_unpack _); - match goal with [|-Is_true (@bool_decide ?P ?dec)] => - exact (I <: Is_true (@bool_decide P dec)) - end + apply W.to_val_is_Some, (bool_decide_unpack _); vm_compute; exact I end. Hint Extern 10 (IntoVal _ _) => solve_to_val : typeclass_instances. Hint Extern 10 (AsVal _) => solve_to_val : typeclass_instances. @@ -200,7 +197,7 @@ Ltac solve_atomic := match goal with | |- Atomic ?s ?e => let e' := W.of_expr e in change (Atomic s (W.to_expr e')); - apply W.is_atomic_correct; exact (I <: W.is_atomic e') + apply W.is_atomic_correct; vm_compute; exact I end. Hint Extern 0 (Atomic _ _) => solve_atomic : typeclass_instances. -- GitLab