aboutsummaryrefslogtreecommitdiff
path: root/src/Util/Bool.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/Util/Bool.v')
-rw-r--r--src/Util/Bool.v6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Util/Bool.v b/src/Util/Bool.v
index 948e87417..6aa8260af 100644
--- a/src/Util/Bool.v
+++ b/src/Util/Bool.v
@@ -68,4 +68,10 @@ Ltac split_andb :=
=> apply andb_prop in H;
change (is_true x /\ is_true y) in H;
destruct H
+ | [ H : context[andb ?x ?y = true] |- _ ]
+ => rewrite (Bool.andb_true_iff x y) in H
+ | [ H : context[is_true (andb ?x ?y)] |- _ ]
+ => change (is_true (andb x y)) with (andb x y = true) in H;
+ rewrite Bool.andb_true_iff in H;
+ change (x = true /\ y = true) with (is_true x /\ is_true y) in H
end.