diff options
| author | notin | 2008-01-21 18:11:43 +0000 |
|---|---|---|
| committer | notin | 2008-01-21 18:11:43 +0000 |
| commit | 0307b15f2f51e8b1b26d1de46236befbbe8ed720 (patch) | |
| tree | 0f6b30c746c137614c111cd01e18eb9f12d23754 /test-suite/bugs | |
| parent | c07bea7dd60b77d963e8382dabfe886210b6f176 (diff) | |
Correction du bug #1754
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10458 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite/bugs')
| -rw-r--r-- | test-suite/bugs/opened/shouldnotfail/1754.v | 2 | ||||
| -rw-r--r-- | test-suite/bugs/opened/shouldnotfail/1774.v | 18 | ||||
| -rw-r--r-- | test-suite/bugs/opened/shouldnotfail/1775.v | 39 |
3 files changed, 58 insertions, 1 deletions
diff --git a/test-suite/bugs/opened/shouldnotfail/1754.v b/test-suite/bugs/opened/shouldnotfail/1754.v index 768d9c9904..06b8dce851 100644 --- a/test-suite/bugs/opened/shouldnotfail/1754.v +++ b/test-suite/bugs/opened/shouldnotfail/1754.v @@ -20,5 +20,5 @@ Proof. 3:intros h'' Hp''; econstructor; apply Hp''. 3:intros h'' Hp''; apply Hp''. 2:apply Hp'. - try clear H. + clear H. Admitted. diff --git a/test-suite/bugs/opened/shouldnotfail/1774.v b/test-suite/bugs/opened/shouldnotfail/1774.v new file mode 100644 index 0000000000..4c24b481bd --- /dev/null +++ b/test-suite/bugs/opened/shouldnotfail/1774.v @@ -0,0 +1,18 @@ +Axiom pl : (nat -> Prop) -> (nat -> Prop) -> (nat -> Prop). +Axiom plImp : forall k P Q, + pl P Q k -> forall (P':nat -> Prop), + (forall k', P k' -> P' k') -> forall (Q':nat -> Prop), + (forall k', Q k' -> Q' k') -> + pl P' Q' k. + +Definition nexists (P:nat -> nat -> Prop) : nat -> Prop := + fun k' => exists k, P k k'. + +Goal forall k (A:nat -> nat -> Prop) (B:nat -> Prop), + pl (nexists A) B k. +intros. +eapply plImp. +2:intros m' M'; econstructor; apply M'. +2:intros m' M'; apply M'. +simpl. +Admitted. diff --git a/test-suite/bugs/opened/shouldnotfail/1775.v b/test-suite/bugs/opened/shouldnotfail/1775.v new file mode 100644 index 0000000000..dab4120b96 --- /dev/null +++ b/test-suite/bugs/opened/shouldnotfail/1775.v @@ -0,0 +1,39 @@ +Axiom pair : nat -> nat -> nat -> Prop. +Axiom pl : (nat -> Prop) -> (nat -> Prop) -> (nat -> Prop). +Axiom plImp : forall k P Q, + pl P Q k -> forall (P':nat -> Prop), + (forall k', P k' -> P' k') -> forall (Q':nat -> Prop), + (forall k', Q k' -> Q' k') -> + pl P' Q' k. + +Definition nexists (P:nat -> nat -> Prop) : nat -> Prop := + fun k' => exists k, P k k'. + +Goal forall s k k' m, + (pl k' (nexists (fun w => (nexists (fun b => pl (pair w w) + (pl (pair s b) + (nexists (fun w0 => (nexists (fun a => pl (pair b w0) + (nexists (fun w1 => (nexists (fun c => pl + (pair a w1) (pl (pair a c) k))))))))))))))) m. +intros. +eapply plImp; [ | eauto | intros ]. +2:econstructor. +2:econstructor. +2:eapply plImp; [ | eauto | intros ]. +3:eapply plImp; [ | eauto | intros ]. +4:econstructor. +4:econstructor. +4:eapply plImp; [ | eauto | intros ]. +5:econstructor. +5:econstructor. +5:eauto. +4:eauto. +3:eauto. +2:eauto. + +assert (X := 1). +clear X. (* very slow! *) + +simpl. (* exception Not_found *) + +Admitted. |
