From cfadb667ba2c9904ff0d94bf186cf9f89e370515 Mon Sep 17 00:00:00 2001 From: Chantal Keller Date: Thu, 6 May 2021 18:44:01 +0200 Subject: Another silent change of veriT... --- src/QInst.v | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') 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 ] ); -- cgit