diff options
author | 2016-06-13 20:13:10 +0200 | |
---|---|---|
committer | 2016-06-13 20:13:10 +0200 | |
commit | cbb41129f15623ba5be50026f930e0435c9f5259 (patch) | |
tree | a865d2dbdeb2bf628a863af8183741b6a55cc8bc /test-suite/bugs | |
parent | 36f95a197b106b928a3fc99d7ee5904099a654e4 (diff) | |
parent | bb43103f7ecea16e634d448215f24d6d55d56eb1 (diff) |
Merge branch 'v8.5'
Diffstat (limited to 'test-suite/bugs')
-rw-r--r-- | test-suite/bugs/closed/4782.v | 9 | ||||
-rw-r--r-- | test-suite/bugs/closed/4813.v | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/4782.v b/test-suite/bugs/closed/4782.v new file mode 100644 index 000000000..ed4443786 --- /dev/null +++ b/test-suite/bugs/closed/4782.v @@ -0,0 +1,9 @@ +(* About typing of with bindings *) + +Record r : Type := mk_r { type : Type; cond : type -> Prop }. + +Inductive p : Prop := consp : forall (e : r) (x : type e), cond e x -> p. + +Goal p. +Fail apply consp with (fun _ : bool => mk_r unit (fun x => True)) nil. + diff --git a/test-suite/bugs/closed/4813.v b/test-suite/bugs/closed/4813.v new file mode 100644 index 000000000..5f8ea74c1 --- /dev/null +++ b/test-suite/bugs/closed/4813.v @@ -0,0 +1,9 @@ +(* On the strength of "apply with" (see also #4782) *) + +Record ProverT := { Facts : Type }. +Record ProverT_correct (P : ProverT) := { Valid : Facts P -> Prop ; + Valid_weaken : Valid = Valid }. +Definition reflexivityValid (_ : unit) := True. +Definition reflexivityProver_correct : ProverT_correct {| Facts := unit |}. +Proof. + eapply Build_ProverT_correct with (Valid := reflexivityValid). |