]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambda_delta/basic_2/reducibility/tif.ma
We are decapitalizing the contributions' names ...
[helm.git] / matita / matita / contribs / lambda_delta / basic_2 / reducibility / tif.ma
diff --git a/matita/matita/contribs/lambda_delta/basic_2/reducibility/tif.ma b/matita/matita/contribs/lambda_delta/basic_2/reducibility/tif.ma
new file mode 100644 (file)
index 0000000..5b89755
--- /dev/null
@@ -0,0 +1,54 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||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 "Basic_2/reducibility/trf.ma".
+
+(* CONTEXT-FREE IRREDUCIBLE TERMS *******************************************)
+
+definition tif: predicate term โ‰ ฮปT. ๐‘[T] โ†’ False.
+
+interpretation "context-free irreducibility (term)"
+   'NotReducible T = (tif T).
+
+(* Basic inversion lemmas ***************************************************)
+
+lemma tif_inv_abbr: โˆ€V,T. ๐ˆ[โ““V.T] โ†’ False.
+/2 width=1/ qed-.
+
+lemma tif_inv_abst: โˆ€V,T. ๐ˆ[โ“›V.T] โ†’ ๐ˆ[V] โˆง ๐ˆ[T].
+/4 width=1/ qed-.
+
+lemma tif_inv_appl: โˆ€V,T. ๐ˆ[โ“V.T] โ†’ โˆงโˆง ๐ˆ[V] & ๐ˆ[T] & ๐’[T].
+#V #T #HVT @and3_intro /3 width=1/
+generalize in match HVT; -HVT elim T -T //
+* // * #U #T #_ #_ #H elim (H ?) -H /2 width=1/
+qed-.
+
+lemma tif_inv_cast: โˆ€V,T. ๐ˆ[โ“ฃV.T] โ†’ False.
+/2 width=1/ qed-.
+
+(* Basic properties *********************************************************)
+
+lemma tif_atom: โˆ€I. ๐ˆ[โ“ช{I}].
+/2 width=4/ qed.
+
+lemma tif_abst: โˆ€V,T. ๐ˆ[V] โ†’  ๐ˆ[T] โ†’  ๐ˆ[โ“›V.T].
+#V #T #HV #HT #H
+elim (trf_inv_abst โ€ฆ H) -H /2 width=1/
+qed.
+
+lemma tif_appl: โˆ€V,T. ๐ˆ[V] โ†’  ๐ˆ[T] โ†’  ๐’[T] โ†’ ๐ˆ[โ“V.T].
+#V #T #HV #HT #S #H
+elim (trf_inv_appl โ€ฆ H) -H /2 width=1/
+qed.