]> matita.cs.unibo.it Git - helm.git/commitdiff
This test shows one of the few cases were Matita is able to infer a dependent
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 10 Sep 2007 08:34:41 +0000 (08:34 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 10 Sep 2007 08:34:41 +0000 (08:34 +0000)
type. It should break if the dependent type is no longer inferred.

matita/tests/dependent_type_inference.ma [new file with mode: 0644]

diff --git a/matita/tests/dependent_type_inference.ma b/matita/tests/dependent_type_inference.ma
new file mode 100644 (file)
index 0000000..11a42ac
--- /dev/null
@@ -0,0 +1,19 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||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/dependent_type_inference/".
+
+include "nat/nat.ma".
+
+definition foo ≝ λP.λy:nat.λa:y=y.λb. P y a ∧ P (S y) b.
\ No newline at end of file