]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground/relocation/gr_isf.ma
milestone update in ground
[helm.git] / matita / matita / contribs / lambdadelta / ground / relocation / gr_isf.ma
diff --git a/matita/matita/contribs/lambdadelta/ground/relocation/gr_isf.ma b/matita/matita/contribs/lambdadelta/ground/relocation/gr_isf.ma
new file mode 100644 (file)
index 0000000..4a5c135
--- /dev/null
@@ -0,0 +1,67 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||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 "ground/notation/relations/predicate_f_1.ma".
+include "ground/relocation/gr_fcla.ma".
+
+(* FINITE COLENGTH CONDITION FOR GENERIC RELOCATION MAPS *)
+
+(*** isfin *)
+definition gr_isf: predicate gr_map ā‰
+           Ī»f. āˆƒn. š‚āŖfā« ā‰˜ n.
+
+interpretation
+  "finite colength condition (generic relocation maps)"
+  'PredicateF f = (gr_isf f).
+
+(* Basic eliminators ********************************************************)
+
+(*** isfin_ind *)
+lemma gr_isf_ind (Q:predicate ā€¦):
+      (āˆ€f.  šˆāŖfā« ā†’ Q f) ā†’
+      (āˆ€f. š…āŖfā« ā†’ Q f ā†’ Q (ā«Æf)) ā†’
+      (āˆ€f. š…āŖfā« ā†’ Q f ā†’ Q (ā†‘f)) ā†’
+      āˆ€f. š…āŖfā« ā†’ Q f.
+#Q #IH1 #IH2 #IH3 #f #H elim H -H
+#n #H elim H -f -n /3 width=2 by ex_intro/
+qed-.
+
+(* Basic inversion lemmas ***************************************************)
+
+(*** isfin_inv_push *)
+lemma gr_isf_inv_push (g): š…āŖgā« ā†’ āˆ€f. ā«Æf = g ā†’ š…āŖfā«.
+#g * /3 width=4 by gr_fcla_inv_push, ex_intro/
+qed-.
+
+(*** isfin_inv_next *)
+lemma gr_isf_inv_next (g): š…āŖgā« ā†’ āˆ€f. ā†‘f = g ā†’ š…āŖfā«.
+#g * #n #H #f #H0 elim (gr_fcla_inv_next ā€¦ H ā€¦ H0) -g
+/2 width=2 by ex_intro/
+qed-.
+
+(* Basic properties *********************************************************)
+
+(*** isfin_isid *)
+lemma gr_isf_isi (f): šˆāŖfā« ā†’ š…āŖfā«.
+/3 width=2 by gr_fcla_isi, ex_intro/ qed.
+
+(*** isfin_push *)
+lemma gr_isf_push (f): š…āŖfā« ā†’ š…āŖā«Æfā«.
+#f * /3 width=2 by gr_fcla_push, ex_intro/
+qed.
+
+(*** isfin_next *)
+lemma gr_isf_next (f): š…āŖfā« ā†’ š…āŖā†‘fā«.
+#f * /3 width=2 by gr_fcla_next, ex_intro/
+qed.