]> matita.cs.unibo.it Git - helm.git/commitdiff
Submitted a test for inferencing of dependent types.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 19 Jul 2006 15:11:14 +0000 (15:11 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 19 Jul 2006 15:11:14 +0000 (15:11 +0000)
matita/tests/apply2.ma [new file with mode: 0644]

diff --git a/matita/tests/apply2.ma b/matita/tests/apply2.ma
new file mode 100644 (file)
index 0000000..220eddb
--- /dev/null
@@ -0,0 +1,24 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||M||                                                             *)
+(*      ||A||       A project by Andrea Asperti                           *)
+(*      ||T||                                                             *)
+(*      ||I||       Developers:                                           *)
+(*      ||T||         The HELM team.                                      *)
+(*      ||A||         http://helm.cs.unibo.it                             *)
+(*      \   /                                                             *)
+(*       \ /        This file is distributed under the terms of the       *)
+(*        v         GNU General Public License Version 2                  *)
+(*                                                                        *)
+(**************************************************************************)
+
+set "baseuri" "cic:/matita/test/apply2".
+
+include "nat/nat.ma".
+
+(* in this test the type inferred for f is dependent! *)
+definition test ≝
+ ∀f,x.
+   f O (refl_eq nat O) = O ∧ 
+   f x (refl_eq nat x) = O.
+