From 3bd7799386f9b0f3fa225c57077bcba3f2120d80 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Mon, 30 Jan 2017 19:20:48 -0500 Subject: Don't change sumbool eq hypothesis unless both sides are constructors --- src/Util/Sumbool.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Util/Sumbool.v') diff --git a/src/Util/Sumbool.v b/src/Util/Sumbool.v index 4008e67f6..81a73873c 100644 --- a/src/Util/Sumbool.v +++ b/src/Util/Sumbool.v @@ -57,13 +57,13 @@ Ltac induction_path_sumbool H := end. Ltac inversion_sumbool_step := match goal with - | [ H : _ = left _ |- _ ] + | [ H : left _ = left _ |- _ ] => induction_path_sumbool H - | [ H : left _ = _ |- _ ] + | [ H : left _ = right _ |- _ ] => induction_path_sumbool H - | [ H : _ = right _ |- _ ] + | [ H : right _ = left _ |- _ ] => induction_path_sumbool H - | [ H : right _ = _ |- _ ] + | [ H : right _ = right _ |- _ ] => induction_path_sumbool H end. Ltac inversion_sumbool := repeat inversion_sumbool_step. -- cgit v1.2.3