]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground/relocation/gr_isu.ma
milestone update in ground
[helm.git] / matita / matita / contribs / lambdadelta / ground / relocation / gr_isu.ma
diff --git a/matita/matita/contribs/lambdadelta/ground/relocation/gr_isu.ma b/matita/matita/contribs/lambdadelta/ground/relocation/gr_isu.ma
new file mode 100644 (file)
index 0000000..e731efc
--- /dev/null
@@ -0,0 +1,56 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||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_u_1.ma".
+include "ground/relocation/gr_isi.ma".
+
+(* UNIFORMITY CONDITION FOR GENERIC RELOCATION MAPS ***********************************************************)
+
+(*** isuni *)
+inductive gr_isu: predicate gr_map ā‰
+(*** isuni_isid *)
+| gr_isu_isi (f): šˆāŖfā« ā†’ gr_isu f
+(*** isuni_next *)
+| gr_isu_next (f): gr_isu f ā†’ āˆ€g. ā†‘f = g ā†’ gr_isu g
+.
+
+interpretation
+  "uniformity condition (generic relocation maps)"
+  'PredicateU f = (gr_isu f).
+
+(* Basic inversion lemmas ***************************************************)
+
+(*** isuni_inv_push *)
+lemma gr_isu_inv_push (g): š”āŖgā« ā†’ āˆ€f. ā«Æf = g ā†’ šˆāŖfā«.
+#g * -g
+[ /2 width=3 by gr_isi_inv_push/
+| #f #_ #g #H #x #Hx destruct
+  elim (eq_inv_gr_push_next ā€¦ Hx)
+]
+qed-.
+
+(*** isuni_inv_next *)
+lemma gr_isu_inv_next (g): š”āŖgā« ā†’ āˆ€f. ā†‘f = g ā†’ š”āŖfā«.
+#g * -g #f #Hf
+[ #x #Hx elim (gr_isi_inv_next ā€¦ Hf ā€¦ Hx)
+| #g #H #x #Hx destruct
+  >(eq_inv_gr_next_bi ā€¦ Hx) -x //
+]
+qed-.
+
+(* Basic forward lemmas *****************************************************)
+
+(*** isuni_fwd_push *)
+lemma gr_isu_fwd_push (g): š”āŖgā« ā†’ āˆ€f. ā«Æf = g ā†’ š”āŖfā«.
+/3 width=3 by gr_isu_inv_push, gr_isu_isi/ qed-.