X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftests%2Fapply.ma;fp=helm%2Fmatita%2Ftests%2Fapply.ma;h=70078f04f1dedd20bd3344627be7c1d921f0e9ee;hb=2386a5d74ec458f9b103e051f098d814d3b08d50;hp=35a788ac68171c75a56b2fe4e95947e5f9f0c3ee;hpb=67906d4803b6bb6740382d8cbd31d8c0e7322c7d;p=helm.git diff --git a/helm/matita/tests/apply.ma b/helm/matita/tests/apply.ma index 35a788ac6..70078f04f 100644 --- a/helm/matita/tests/apply.ma +++ b/helm/matita/tests/apply.ma @@ -38,3 +38,15 @@ theorem a: intros. apply H. qed. + + +(* this test shows what happens when a term of type A -> ? is applied to + a goal of type A' -> B: if A unifies with A' the unifier becomes ? := B + and no goal is opened; otherwise the unifier becomes ? := A' -> B and a + new goal of type A is created. *) +theorem c: + \forall A,B:Prop. + A \to (\forall P: Prop. A \to P) \to (A \to B) \land (B \to B). + intros 4; split; [ apply H1 | apply H1; exact H ]. +qed. + \ No newline at end of file