]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/static_2/syntax/teqx_teqx.ma
update for the article
[helm.git] / matita / matita / contribs / lambdadelta / static_2 / syntax / teqx_teqx.ma
diff --git a/matita/matita/contribs/lambdadelta/static_2/syntax/teqx_teqx.ma b/matita/matita/contribs/lambdadelta/static_2/syntax/teqx_teqx.ma
new file mode 100644 (file)
index 0000000..b7ab711
--- /dev/null
@@ -0,0 +1,48 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||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/syntax/teqx.ma".
+
+(* SORT-IRRELEVANT EQUIVALENCE ON TERMS *************************************)
+
+(* Main properties **********************************************************)
+
+theorem teqx_trans: Transitive … teqx.
+#T1 #T #H elim H -T1 -T
+[ #s1 #s #X #H
+  elim (teqx_inv_sort1 … H) -s /2 width=1 by teqx_sort/
+| #i1 #i #H <(teqx_inv_lref1 … H) -H //
+| #l1 #l #H <(teqx_inv_gref1 … H) -H //
+| #I #V1 #V #T1 #T #_ #_ #IHV #IHT #X #H
+  elim (teqx_inv_pair1 … H) -H /3 width=1 by teqx_pair/
+]
+qed-.
+
+theorem teqx_canc_sn: left_cancellable … teqx.
+/3 width=3 by teqx_trans, teqx_sym/ qed-.
+
+theorem teqx_canc_dx: right_cancellable … teqx.
+/3 width=3 by teqx_trans, teqx_sym/ qed-.
+
+theorem teqx_repl: ∀T1,T2. T1 ≛ T2 →
+                   ∀U1. T1 ≛ U1 → ∀U2. T2 ≛ U2 → U1 ≛ U2.
+/3 width=3 by teqx_canc_sn, teqx_trans/ qed-.
+
+(* Negated main properies ***************************************************)
+
+theorem teqx_tneqx_trans: ∀T1,T. T1 ≛ T → ∀T2. (T ≛ T2 → ⊥) → T1 ≛ T2 → ⊥.
+/3 width=3 by teqx_canc_sn/ qed-.
+
+theorem tneqx_teqx_canc_dx: ∀T1,T. (T1 ≛ T → ⊥) → ∀T2. T2 ≛ T → T1 ≛ T2 → ⊥.
+/3 width=3 by teqx_trans/ qed-.