aboutsummaryrefslogtreecommitdiff
path: root/src/Util/Option.v
diff options
context:
space:
mode:
authorGravatar Jason Gross <jagro@google.com>2016-08-31 15:24:16 -0700
committerGravatar Jason Gross <jagro@google.com>2016-08-31 15:24:16 -0700
commitd796f0b78c2b5956b0f9eec23adbfb4cb9a719c8 (patch)
tree2f150b4a0ae5c58a182c3c73a4161ad0fbda9764 /src/Util/Option.v
parentc3b5ca7801220e3756136596b24e61ed66f34f10 (diff)
Rename congrunce_option to inversion_option, add [inversion_prod]
Diffstat (limited to 'src/Util/Option.v')
-rw-r--r--src/Util/Option.v16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/Util/Option.v b/src/Util/Option.v
index 86e9a6d4f..4868c1f62 100644
--- a/src/Util/Option.v
+++ b/src/Util/Option.v
@@ -70,10 +70,12 @@ Definition option_eq {A} eq (x y : option A) :=
end
end.
-Ltac congruence_option :=
- repeat match goal with
- | [ H : Some _ = Some _ |- _ ] => inversion H; clear H
- | [ H : None = Some _ |- _ ] => solve [ inversion H ]
- | [ H : Some _ = None |- _ ] => solve [ inversion H ]
- | [ H : None = None |- _ ] => clear H
- end.
+Ltac inversion_option_step :=
+ match goal with
+ | [ H : Some _ = Some _ |- _ ] => inversion H; clear H
+ | [ H : None = Some _ |- _ ] => solve [ inversion H ]
+ | [ H : Some _ = None |- _ ] => solve [ inversion H ]
+ | [ H : None = None |- _ ] => clear H
+ end.
+
+Ltac inversion_option := repeat inversion_option_step.