diff options
author | Stephane Glondu <steph@glondu.net> | 2008-08-08 13:18:42 +0200 |
---|---|---|
committer | Stephane Glondu <steph@glondu.net> | 2008-08-08 13:18:42 +0200 |
commit | 870075f34dd9fa5792bfbf413afd3b96f17e76a0 (patch) | |
tree | 0c647056de1832cf1dba5ba58758b9121418e4be /test-suite/bugs | |
parent | a0cfa4f118023d35b767a999d5a2ac4b082857b4 (diff) |
Imported Upstream version 8.2~beta4+dfsgupstream/8.2.beta4+dfsg
Diffstat (limited to 'test-suite/bugs')
-rw-r--r-- | test-suite/bugs/closed/shouldfail/1915.v | 6 | ||||
-rw-r--r-- | test-suite/bugs/closed/shouldsucceed/1784.v | 16 | ||||
-rw-r--r-- | test-suite/bugs/closed/shouldsucceed/1905.v | 13 | ||||
-rw-r--r-- | test-suite/bugs/opened/shouldnotfail/1671.v | 12 |
4 files changed, 39 insertions, 8 deletions
diff --git a/test-suite/bugs/closed/shouldfail/1915.v b/test-suite/bugs/closed/shouldfail/1915.v new file mode 100644 index 00000000..a96a482c --- /dev/null +++ b/test-suite/bugs/closed/shouldfail/1915.v @@ -0,0 +1,6 @@ + +Require Import Setoid. + +Goal forall x, impl True (x = 0) -> x = 0 -> False. +intros x H E. +rewrite H in E.
\ No newline at end of file diff --git a/test-suite/bugs/closed/shouldsucceed/1784.v b/test-suite/bugs/closed/shouldsucceed/1784.v index 616dd26f..5855b168 100644 --- a/test-suite/bugs/closed/shouldsucceed/1784.v +++ b/test-suite/bugs/closed/shouldsucceed/1784.v @@ -85,17 +85,17 @@ Program Fixpoint lt_dec (x y:sv) { struct x } : {slt x y}+{~slt x y} := end end. -Next Obligation. apply H; inversion H0; subst; trivial. Defined. -Next Obligation. inversion H. Defined. -Next Obligation. inversion H. Defined. -Next Obligation. inversion H; subst. Defined. +Next Obligation. intro H0. apply H; inversion H0; subst; trivial. Defined. +Next Obligation. intro H; inversion H. Defined. +Next Obligation. intro H; inversion H. Defined. +Next Obligation. intro H; inversion H; subst. Defined. Next Obligation. - contradict H. inversion H1; subst. assumption. + intro H1; contradict H. inversion H1; subst. assumption. contradict H0; assumption. Defined. Next Obligation. - contradict H0. inversion H1; subst. assumption. Defined. + intro H1; contradict H0. inversion H1; subst. assumption. Defined. Next Obligation. - contradict H. inversion H0; subst. assumption. Defined. + intro H0; contradict H. inversion H0; subst. assumption. Defined. Next Obligation. - contradict H. inversion H0; subst; auto. Defined. + intro H0; contradict H. inversion H0; subst; auto. Defined. diff --git a/test-suite/bugs/closed/shouldsucceed/1905.v b/test-suite/bugs/closed/shouldsucceed/1905.v new file mode 100644 index 00000000..bd7fd796 --- /dev/null +++ b/test-suite/bugs/closed/shouldsucceed/1905.v @@ -0,0 +1,13 @@ + +Require Import Setoid. + +Axiom t : Set. +Axiom In : nat -> t -> Prop. +Axiom InE : forall (x : nat) (s:t), impl (In x s) True. + +Goal forall a s, + In a s -> False. +Proof. + intros a s Ia. + rewrite InE in Ia. +Admitted.
\ No newline at end of file diff --git a/test-suite/bugs/opened/shouldnotfail/1671.v b/test-suite/bugs/opened/shouldnotfail/1671.v new file mode 100644 index 00000000..800c431e --- /dev/null +++ b/test-suite/bugs/opened/shouldnotfail/1671.v @@ -0,0 +1,12 @@ +(* Exemple soumis par Pierre Corbineau (bug #1671) *) + +CoInductive hdlist : unit -> Type := +| cons : hdlist tt -> hdlist tt. + +Variable P : forall bo, hdlist bo -> Prop. +Variable all : forall bo l, P bo l. + +Definition F (l:hdlist tt) : P tt l := +match l in hdlist u return P u l with +| cons (cons l') => all tt _ +end. |