aboutsummaryrefslogtreecommitdiffstats
path: root/unit-tests
diff options
context:
space:
mode:
authorChantal Keller <Chantal.Keller@lri.fr>2021-04-26 18:27:37 +0200
committerChantal Keller <Chantal.Keller@lri.fr>2021-04-26 18:27:37 +0200
commitcdadc5d338e3c00c4cd22a3a3d7197f71d4d7a44 (patch)
tree66697deb3845810897976e1eecbb5b88ad2bab09 /unit-tests
parent39b4d1d31c6446c937164039cac585dbe91b8b29 (diff)
downloadsmtcoq-cdadc5d338e3c00c4cd22a3a3d7197f71d4d7a44.tar.gz
smtcoq-cdadc5d338e3c00c4cd22a3a3d7197f71d4d7a44.zip
Equality between Booleans should be changed for hypotheses
Diffstat (limited to 'unit-tests')
-rw-r--r--unit-tests/Tests_verit_tactics.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/unit-tests/Tests_verit_tactics.v b/unit-tests/Tests_verit_tactics.v
index 73b59f4..d1c57f4 100644
--- a/unit-tests/Tests_verit_tactics.v
+++ b/unit-tests/Tests_verit_tactics.v
@@ -1238,3 +1238,14 @@ Section Issue78.
Proof. verit. Qed.
End Issue78.
+
+
+Section SearchApp.
+ Variable search : Z -> list Z -> bool.
+ Hypothesis search_app : forall (x: Z) (l1 l2: list Z),
+ search x (l1 ++ l2) = orb (search x l1) (search x l2).
+
+ Lemma search_lemma : forall (x: Z) (l1 l2 l3: list Z),
+ search x (l1 ++ l2 ++ l3) = search x (l3 ++ l2 ++ l1).
+ Proof. verit. Qed.
+End SearchApp.