]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/static_2/syntax/tdeq_ext.ma
syntactic components detached from basic_2 become static_2
[helm.git] / matita / matita / contribs / lambdadelta / static_2 / syntax / tdeq_ext.ma
diff --git a/matita/matita/contribs/lambdadelta/static_2/syntax/tdeq_ext.ma b/matita/matita/contribs/lambdadelta/static_2/syntax/tdeq_ext.ma
new file mode 100644 (file)
index 0000000..f132920
--- /dev/null
@@ -0,0 +1,40 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||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                  *)
+(*                                                                        *)
+(**************************************************************************)
+
+include "static_2/notation/relations/stareq_5.ma".
+include "static_2/syntax/cext2.ma".
+include "static_2/syntax/tdeq.ma".
+
+(* EXTENDED DEGREE-BASED EQUIVALENCE ****************************************)
+
+definition tdeq_ext: ∀h. sd h → relation bind ≝
+                     λh,o. ext2 (tdeq h o).
+
+definition cdeq: ∀h. sd h → relation3 lenv term term ≝
+                 λh,o,L. tdeq h o.
+
+definition cdeq_ext: ∀h. sd h → relation3 lenv bind bind ≝
+                     λh,o. cext2 (cdeq h o).
+
+interpretation
+   "context-free degree-based equivalence (binder)"
+   'StarEq h o I1 I2 = (tdeq_ext h o I1 I2).
+
+interpretation
+   "context-dependent degree-based equivalence (term)"
+   'StarEq h o L T1 T2 = (cdeq h o L T1 T2).
+
+interpretation
+   "context-dependent degree-based equivalence (binder)"
+   'StarEq h o L I1 I2 = (cdeq_ext h o L I1 I2).