aboutsummaryrefslogtreecommitdiff
path: root/src/Util/Sum.v
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2017-01-30 19:20:48 -0500
committerGravatar Jason Gross <jgross@mit.edu>2017-01-30 19:20:48 -0500
commit3bd7799386f9b0f3fa225c57077bcba3f2120d80 (patch)
treef9c0fca9bdd75caff9ee62cc9970d38502dce10b /src/Util/Sum.v
parent0632512e1348bae49e1fa9dd04fdeb3ed977a210 (diff)
Don't change sumbool eq hypothesis unless both sides are constructors
Diffstat (limited to 'src/Util/Sum.v')
-rw-r--r--src/Util/Sum.v8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Util/Sum.v b/src/Util/Sum.v
index d6fa26c2c..fe7fe662b 100644
--- a/src/Util/Sum.v
+++ b/src/Util/Sum.v
@@ -86,13 +86,13 @@ Ltac induction_path_sum H :=
end.
Ltac inversion_sum_step :=
match goal with
- | [ H : _ = inl _ |- _ ]
+ | [ H : inl _ = inl _ |- _ ]
=> induction_path_sum H
- | [ H : inl _ = _ |- _ ]
+ | [ H : inl _ = inr _ |- _ ]
=> induction_path_sum H
- | [ H : _ = inr _ |- _ ]
+ | [ H : inr _ = inl _ |- _ ]
=> induction_path_sum H
- | [ H : inr _ = _ |- _ ]
+ | [ H : inr _ = inr _ |- _ ]
=> induction_path_sum H
end.
Ltac inversion_sum := repeat inversion_sum_step.