From 0617eb48bafaa87059e34a278d6e9351df905c46 Mon Sep 17 00:00:00 2001 From: Chantal Keller Date: Mon, 7 Feb 2022 19:04:15 +0100 Subject: More silent simplifications from veriT --- src/QInst.v | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/QInst.v b/src/QInst.v index a683bcd..ae9c5cc 100644 --- a/src/QInst.v +++ b/src/QInst.v @@ -36,6 +36,34 @@ Proof. installed when we compile SMTCoq. *) Qed. +Lemma impl_split211 a b1 b2 c1 c2 : + implb a ((b1 && b2) || (c1 && c2)) = true -> (negb a) || b1 || c1 = true. +Proof. + intro H. + destruct a; destruct b1; destruct b2; destruct c1; destruct c2; trivial. +Qed. + +Lemma impl_split212 a b1 b2 c1 c2 : + implb a ((b1 && b2) || (c1 && c2)) = true -> (negb a) || b1 || c2 = true. +Proof. + intro H. + destruct a; destruct b1; destruct b2; destruct c1; destruct c2; trivial. +Qed. + +Lemma impl_split221 a b1 b2 c1 c2 : + implb a ((b1 && b2) || (c1 && c2)) = true -> (negb a) || b2 || c1 = true. +Proof. + intro H. + destruct a; destruct b1; destruct b2; destruct c1; destruct c2; trivial. +Qed. + +Lemma impl_split222 a b1 b2 c1 c2 : + implb a ((b1 && b2) || (c1 && c2)) = true -> (negb a) || b2 || c2 = true. +Proof. + intro H. + destruct a; destruct b1; destruct b2; destruct c1; destruct c2; trivial. +Qed. + (** verit silently transforms an into a or into a when instantiating such a quantified theorem *) @@ -154,6 +182,10 @@ Ltac vauto := | [ |- (negb ?A || ?B || ?C) = true ] => first [ eapply eqb_or_split; apply_sym H | eapply impl_split2; apply_sym H + | eapply impl_split211; apply_sym H + | eapply impl_split212; apply_sym H + | eapply impl_split221; apply_sym H + | eapply impl_split222; apply_sym H ] end ] -- cgit