diff options
| author | Nick Lewycky | 2018-09-10 14:53:05 -0700 |
|---|---|---|
| committer | Nick Lewycky | 2018-09-19 18:13:23 -0700 |
| commit | a597bb33eb9b3c9d70422d72e89bcbda90896ddb (patch) | |
| tree | ce4983fd4b5a2e3c2a734c08cdf81e156c056f96 /test-suite/bugs/closed | |
| parent | df1f5bcd406a87c77601942f21d16555a8f6086e (diff) | |
Move tests in bugs/ to the bugs/closed/.
Diffstat (limited to 'test-suite/bugs/closed')
| -rw-r--r-- | test-suite/bugs/closed/2428.v | 10 | ||||
| -rw-r--r-- | test-suite/bugs/closed/4623.v | 5 | ||||
| -rw-r--r-- | test-suite/bugs/closed/4624.v | 7 | ||||
| -rw-r--r-- | test-suite/bugs/closed/7333.v | 39 |
4 files changed, 61 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/2428.v b/test-suite/bugs/closed/2428.v new file mode 100644 index 0000000000..b398a76d91 --- /dev/null +++ b/test-suite/bugs/closed/2428.v @@ -0,0 +1,10 @@ +Axiom P : nat -> Prop. + +Definition myFact := forall x, P x. + +Hint Extern 1 (P _) => progress (unfold myFact in *). + +Lemma test : (True -> myFact) -> P 3. +Proof. + intros. debug eauto. +Qed. diff --git a/test-suite/bugs/closed/4623.v b/test-suite/bugs/closed/4623.v new file mode 100644 index 0000000000..7ecfd98b67 --- /dev/null +++ b/test-suite/bugs/closed/4623.v @@ -0,0 +1,5 @@ +Goal Type -> Type. +set (T := Type). +clearbody T. +refine (@id _). +Qed. diff --git a/test-suite/bugs/closed/4624.v b/test-suite/bugs/closed/4624.v new file mode 100644 index 0000000000..f5ce981cd0 --- /dev/null +++ b/test-suite/bugs/closed/4624.v @@ -0,0 +1,7 @@ +Record foo := mkfoo { type : Type }. + +Canonical Structure fooA (T : Type) := mkfoo (T -> T). + +Definition id (t : foo) (x : type t) := x. + +Definition bar := id _ ((fun x : nat => x) : _). diff --git a/test-suite/bugs/closed/7333.v b/test-suite/bugs/closed/7333.v new file mode 100644 index 0000000000..fba5b9029d --- /dev/null +++ b/test-suite/bugs/closed/7333.v @@ -0,0 +1,39 @@ +Module Example1. + +CoInductive wrap : Type := + | item : unit -> wrap. + +Definition extract (t : wrap) : unit := +match t with +| item x => x +end. + +CoFixpoint close u : unit -> wrap := +match u with +| tt => item +end. + +Definition table : wrap := close tt tt. + +Eval vm_compute in (extract table). +Eval vm_compute in (extract table). + +End Example1. + +Module Example2. + +Set Primitive Projections. +CoInductive wrap : Type := + item { extract : unit }. + +CoFixpoint close u : unit -> wrap := +match u with +| tt => item +end. + +Definition table : wrap := close tt tt. + +Eval vm_compute in (extract table). +Eval vm_compute in (extract table). + +End Example2. |
