]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/basic_2/rt_transition/cnr_drops.ma
Merge branch 'matita-lablgtk3' of ssh://matita.cs.unibo.it:/srv/git/helm into matita...
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / rt_transition / cnr_drops.ma
diff --git a/matita/matita/contribs/lambdadelta/basic_2/rt_transition/cnr_drops.ma b/matita/matita/contribs/lambdadelta/basic_2/rt_transition/cnr_drops.ma
new file mode 100644 (file)
index 0000000..8d9a8ce
--- /dev/null
@@ -0,0 +1,77 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||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/rt_transition/cpr_drops.ma".
+include "basic_2/rt_transition/cnr.ma".
+
+(* NORMAL TERMS FOR CONTEXT-SENSITIVE R-TRANSITION **************************)
+
+(* Advanced properties ******************************************************)
+
+(* Basic_1: was only: nf2_csort_lref *)
+lemma cnr_lref_atom (h) (b) (G) (L):
+      āˆ€i. ā¬‡*[b,š”ā“iāµ] L ā‰˜ ā‹† ā†’ ā¦ƒG,Lā¦„ āŠ¢ āž”[h] šā¦ƒ#iā¦„.
+#h #b #G #L #i #Hi #X #H
+elim (cpr_inv_lref1_drops ā€¦ H) -H // * #K #V1 #V2 #HLK
+lapply (drops_gen b ā€¦ HLK) -HLK #HLK
+lapply (drops_mono ā€¦ Hi ā€¦ HLK) -L #H destruct
+qed.
+
+(* Basic_1: was: nf2_lref_abst *)
+lemma cnr_lref_abst (h) (G) (L):
+      āˆ€K,V,i. ā¬‡*[i] L ā‰˜ K.ā“›V ā†’ ā¦ƒG,Lā¦„ āŠ¢ āž”[h] šā¦ƒ#iā¦„.
+#h #G #L #K #V #i #HLK #X #H
+elim (cpr_inv_lref1_drops ā€¦ H) -H // *
+#K0 #V1 #V2 #HLK0 #_ #_
+lapply (drops_mono ā€¦ HLK ā€¦ HLK0) -L #H destruct
+qed.
+
+lemma cnr_lref_unit (h) (I) (G) (L):
+      āˆ€K,i. ā¬‡*[i] L ā‰˜ K.ā“¤{I} ā†’ ā¦ƒG,Lā¦„ āŠ¢ āž”[h] šā¦ƒ#iā¦„.
+#h #I #G #L #K #i #HLK #X #H
+elim (cpr_inv_lref1_drops ā€¦ H) -H // *
+#K0 #V1 #V2 #HLK0 #_ #_
+lapply (drops_mono ā€¦ HLK ā€¦ HLK0) -L #H destruct
+qed.
+
+(* Properties with generic relocation ***************************************)
+
+(* Basic_1: was: nf2_lift *)
+(* Basic_2A1: uses: cnr_lift *)
+lemma cnr_lifts (h) (G): d_liftable1 ā€¦ (cnr h G).
+#h #G #K #T #HT #b #f #L #HLK #U #HTU #U0 #H
+elim (cpm_inv_lifts_sn ā€¦ H ā€¦ HLK ā€¦ HTU) -b -L #T0 #HTU0 #HT0
+lapply (HT ā€¦ HT0) -G -K #H destruct /2 width=4 by lifts_mono/
+qed-.
+
+(* Advanced inversion lemmas ************************************************)
+
+(* Basic_2A1: was: cnr_inv_delta *)
+lemma cnr_inv_lref_abbr (h) (G) (L):
+      āˆ€K,V,i. ā¬‡*[i] L ā‰˜ K.ā““V ā†’ ā¦ƒG,Lā¦„ āŠ¢ āž”[h] šā¦ƒ#iā¦„ ā†’ āŠ„.
+#h #G #L #K #V #i #HLK #H
+elim (lifts_total V š”ā“ā†‘iāµ) #W #HVW
+lapply (H W ?) -H [ /3 width=6 by cpm_delta_drops/ ] -HLK #H destruct
+elim (lifts_inv_lref2_uni_lt ā€¦ HVW) -HVW //
+qed-.
+
+(* Inversion lemmas with generic relocation *********************************)
+
+(* Note: this was missing in Basic_1 *)
+(* Basic_2A1: uses: cnr_inv_lift *)
+lemma cnr_inv_lifts (h) (G): d_deliftable1 ā€¦ (cnr h G).
+#h #G #L #U #HU #b #f #K #HLK #T #HTU #T0 #H
+elim (cpm_lifts_sn ā€¦ H ā€¦ HLK ā€¦ HTU) -b -K #U0 #HTU0 #HU0
+lapply (HU ā€¦ HU0) -G -L #H destruct /2 width=4 by lifts_inj/
+qed-.