aboutsummaryrefslogtreecommitdiffstats
path: root/src/QInst.v
diff options
context:
space:
mode:
authorChantal Keller <Chantal.Keller@lri.fr>2021-05-06 18:44:01 +0200
committerChantal Keller <Chantal.Keller@lri.fr>2021-05-06 18:44:01 +0200
commitcfadb667ba2c9904ff0d94bf186cf9f89e370515 (patch)
treea77ec9724199fdeccae89b22a31069b8dbf24bba /src/QInst.v
parente1c0cb3125e82fbccfd9a0cd8b5182ee25be9aed (diff)
downloadsmtcoq-cfadb667ba2c9904ff0d94bf186cf9f89e370515.tar.gz
smtcoq-cfadb667ba2c9904ff0d94bf186cf9f89e370515.zip
Another silent change of veriT...
Diffstat (limited to 'src/QInst.v')
-rw-r--r--src/QInst.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/QInst.v b/src/QInst.v
index 4a4ddc2..2684dea 100644
--- a/src/QInst.v
+++ b/src/QInst.v
@@ -74,6 +74,13 @@ Proof.
destruct a; destruct c; intuition.
Qed.
+Lemma eqb_or_split a b c:
+ Bool.eqb c (a || b) = true -> negb c || a || b = true.
+Proof.
+ intro H.
+ destruct a; destruct b; destruct c; intuition.
+Qed.
+
(** verit considers equality modulo its symmetry, so we have to recover the
right direction in the instances of the theorems *)
(* TODO: currently incomplete *)
@@ -201,6 +208,10 @@ Ltac vauto :=
first [ strategy1 H
| strategy2 H ]
]
+ | [ |- (negb ?A || ?B || ?C) = true ] =>
+ eapply eqb_or_split;
+ first [ strategy1 H
+ | strategy2 H ]
end
]
);