aboutsummaryrefslogtreecommitdiffstats
path: root/unit-tests/Tests_verit_tactics.v
diff options
context:
space:
mode:
authorChantal Keller <Chantal.Keller@lri.fr>2021-10-14 17:23:05 +0200
committerChantal Keller <Chantal.Keller@lri.fr>2021-10-14 17:23:05 +0200
commit18427c03790673b9c1c02d6314bacd111a573a44 (patch)
tree12cb8d25ba75dee1647ba27c344fdd9c70a6065c /unit-tests/Tests_verit_tactics.v
parent6624816f2363dfd0b28ae3e1402704b330db1aae (diff)
parentf74ac52e9c76260b9c87d3972fcb04e7e7e051ad (diff)
downloadsmtcoq-18427c03790673b9c1c02d6314bacd111a573a44.tar.gz
smtcoq-18427c03790673b9c1c02d6314bacd111a573a44.zip
Merge remote-tracking branch 'origin/coq-8.11' into coq-8.12
Diffstat (limited to 'unit-tests/Tests_verit_tactics.v')
-rw-r--r--unit-tests/Tests_verit_tactics.v43
1 files changed, 43 insertions, 0 deletions
diff --git a/unit-tests/Tests_verit_tactics.v b/unit-tests/Tests_verit_tactics.v
index 2bdc520..2f080a8 100644
--- a/unit-tests/Tests_verit_tactics.v
+++ b/unit-tests/Tests_verit_tactics.v
@@ -1406,3 +1406,46 @@ Section EqSym.
Goal hd_error (x :: xs) = Some a /\ tl (x :: xs) = r <-> x :: xs = a :: r.
Proof. verit. Qed.
End EqSym.
+
+
+
+Section PrenexDependentTypes.
+ Variables A B : Type.
+ Variable F : Type -> Type.
+ Variable p : B -> F bool.
+ Variable dep : forall (X:Type), A -> F X -> bool.
+ Hypothesis H : forall (x : A) (y : B), dep bool x (p y) = true.
+
+ Hypothesis HF : CompDec (F bool).
+ Hypothesis HA : CompDec A.
+ Hypothesis HB : CompDec B.
+
+ Variable a : A.
+ Variable b : B.
+
+ Goal dep bool a (p b).
+ Proof. verit. Qed.
+
+End PrenexDependentTypes.
+
+
+(*
+Section NonPrenexDependentTypes.
+ Variables A B : Type.
+ Variable F : Type -> Type.
+ Variable p : B -> F bool.
+ Variable dep : A -> forall (X:Type), F X -> bool.
+ Hypothesis H : forall (x : A) (y : B), dep x bool (p y) = true.
+
+ Hypothesis HF : CompDec (F bool).
+ Hypothesis HA : CompDec A.
+ Hypothesis HB : CompDec B.
+
+ Variable a : A.
+ Variable b : B.
+
+ Goal dep a bool (p b).
+ Proof. Fail verit. Qed.
+
+End NonPrenexDependentTypes.
+*)