From: Claudio Sacerdoti Coen Date: Tue, 13 Sep 2005 12:17:44 +0000 (+0000) Subject: ... X-Git-Tag: V_0_1_2_1~29 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=2386a5d74ec458f9b103e051f098d814d3b08d50;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