]> matita.cs.unibo.it Git - helm.git/commitdiff
cpxs_drops completed
authorFerruccio Guidi <ferruccio.guidi@unibo.it>
Thu, 9 Mar 2017 11:54:10 +0000 (11:54 +0000)
committerFerruccio Guidi <ferruccio.guidi@unibo.it>
Thu, 9 Mar 2017 11:54:10 +0000 (11:54 +0000)
matita/matita/contribs/lambdadelta/apps_2/web/apps_2.ldw.xml
matita/matita/contribs/lambdadelta/basic_2/rt_computation/cpxs_drops.ma
matita/matita/contribs/lambdadelta/basic_2/web/basic_2_src.tbl
matita/matita/contribs/lambdadelta/partial_compile.sh [new file with mode: 0644]

index 663745019cedb8198c1ea819cd7ff967902b0a7a..a242c312427d67d6017a0d1ed8808adaa5f58db8 100644 (file)
       The validation algorithm for λδ as implemented in
       <rlink to="implementation.html#helena">Helena 0.8</rlink>.
    </topitem>
+   <topitem name="examples">
+      <notice class="alpha" notice="Examples."/>
+      Terms of λδ with special features.
+   </topitem>
 
    <section4 name="summary">Summary of the Specification</section4>
    <body>Here is a numerical account of the specification's contents
          and its timeline.
    </body>
    <table name="apps_2_sum"/>
+   <news class="alpha" date="2017 March 6.">
+         The Examples component is moved from the Core directory.
+   </news>
    <news class="alpha" date="2012 February 24.">
          The Applications directory is started.
    </news>
index 26fb988b57a7c87ba9fa1fcb3c566f4d95fd8a09..08eed14817d6884a829c9b23f6577959803853cc 100644 (file)
@@ -12,6 +12,7 @@
 (*                                                                        *)
 (**************************************************************************)
 
+include "basic_2/relocation/drops_lstar.ma".
 include "basic_2/rt_transition/cpx_drops.ma".
 include "basic_2/rt_computation/cpxs.ma".
 
@@ -55,35 +56,67 @@ lemma cpxs_delta_drops: ∀h,I,G,L,K,V1,V2,i.
   elim (lifts_total V (𝐔❴⫯i❵)) #W #HVW
   elim (cpx_lifts … HV2 (Ⓣ) … L … HVW) -HV2
   [ #V0 #HV20 <(lifts_mono … HVW2 … HV20) -V2 -V0 /3 width=3 by cpxs_strap1/
-  | /2 width=3 by drops_isuni_fwd_drop2/ 
+  | /2 width=3 by drops_isuni_fwd_drop2/
   ]
 ]
 qed.
-(*
+
 (* Advanced inversion lemmas ************************************************)
 
-lemma cpxs_inv_lref1: ∀h,o,G,L,T2,i. ⦃G, L⦄ ⊢ #i ⬈*[h, o] T2 →
-                      T2 = #i ∨
-                      ∃∃I,K,V1,T1. ⬇[i] L ≡ K.ⓑ{I}V1 & ⦃G, K⦄ ⊢ V1 ⬈*[h, o] T1 &
-                                   ⬆[0, i+1] T1 ≡ T2.
-#h #o #G #L #T2 #i #H @(cpxs_ind … H) -T2 /2 width=1 by or_introl/
+lemma cpxs_inv_zero1: ∀h,G,L,T2. ⦃G, L⦄ ⊢ #0 ⬈*[h] T2 →
+                      T2 = #0 ∨
+                      ∃∃I,K,V1,V2. ⦃G, K⦄ ⊢ V1 ⬈*[h] V2 & ⬆*[1] V2 ≡ T2 &
+                                   L = K.ⓑ{I}V1.
+#h #G #L #T2 #H @(cpxs_ind … H) -T2 /2 width=1 by or_introl/
+#T #T2 #_ #HT2 *
+[ #H destruct
+  elim (cpx_inv_zero1 … HT2) -HT2 /2 width=1 by or_introl/
+  * /4 width=7 by cpx_cpxs, ex3_4_intro, or_intror/
+| * #I #K #V1 #T1 #HVT1 #HT1 #H destruct
+  elim (cpx_inv_lifts … HT2 (Ⓣ) … K … HT1) -T
+  /4 width=7 by cpxs_strap1, drops_refl, drops_drop, ex3_4_intro, or_intror/
+]
+qed-.
+
+lemma cpxs_inv_lref1: ∀h,G,L,T2,i. ⦃G, L⦄ ⊢ #⫯i ⬈*[h] T2 →
+                      T2 = #(⫯i) ∨
+                      ∃∃I,K,V,T. ⦃G, K⦄ ⊢ #i ⬈*[h] T & ⬆*[1] T ≡ T2 & L = K.ⓑ{I}V.
+#h #G #L #T2 #i #H @(cpxs_ind … H) -T2 /2 width=1 by or_introl/
 #T #T2 #_ #HT2 *
 [ #H destruct
   elim (cpx_inv_lref1 … HT2) -HT2 /2 width=1 by or_introl/
   * /4 width=7 by cpx_cpxs, ex3_4_intro, or_intror/
+| * #I #K #V1 #T1 #Hi #HT1 #H destruct
+  elim (cpx_inv_lifts … HT2 (Ⓣ) … K … HT1) -T
+  /4 width=7 by cpxs_strap1, drops_refl, drops_drop, ex3_4_intro, or_intror/
+]
+qed-.
+
+(* Basic_2A1: was: cpxs_inv_lref1 *)
+lemma cpxs_inv_lref1_drops: ∀h,G,L,T2,i. ⦃G, L⦄ ⊢ #i ⬈*[h] T2 →
+                            T2 = #i ∨
+                            ∃∃I,K,V1,T1. ⬇*[i] L ≡ K.ⓑ{I}V1 & ⦃G, K⦄ ⊢ V1 ⬈*[h] T1 &
+                                         ⬆*[⫯i] T1 ≡ T2.
+#h #G #L #T2 #i #H @(cpxs_ind … H) -T2 /2 width=1 by or_introl/
+#T #T2 #_ #HT2 *
+[ #H destruct
+  elim (cpx_inv_lref1_drops … HT2) -HT2 /2 width=1 by or_introl/
+  * /4 width=7 by cpx_cpxs, ex3_4_intro, or_intror/
 | * #I #K #V1 #T1 #HLK #HVT1 #HT1
-  lapply (drop_fwd_drop2 … HLK) #H0LK
-  elim (cpx_inv_lift1 … HT2 … H0LK … HT1) -H0LK -T
+  lapply (drops_isuni_fwd_drop2 … HLK) // #H0LK
+  elim (cpx_inv_lifts … HT2 … H0LK … HT1) -H0LK -T
   /4 width=7 by cpxs_strap1, ex3_4_intro, or_intror/
 ]
 qed-.
 
-(* Relocation properties ****************************************************)
+(* Properties with generic relocation ***************************************)
 
-lemma cpxs_lift: ∀h,o,G. d_liftable (cpxs h o G).
-/3 width=10 by cpx_lift, cpxs_strap1, d_liftable_LTC/ qed.
+(* Basic_2A1: includes: cpxs_lift *)
+lemma cpxs_lifts: ∀h,G. d_liftable2 (cpxs h G).
+/3 width=10 by cpx_lifts, cpxs_strap1, d2_liftable_LTC/ qed-.
 
-lemma cpxs_inv_lift1: ∀h,o,G. d_deliftable_sn (cpxs h o G).
-/3 width=6 by d_deliftable_sn_LTC, cpx_inv_lift1/
-qed-.
-*)
+(* Inversion lemmas with generic relocation *********************************)
+
+(* Basic_2A1: includes: cpxs_inv_lift1 *)
+lemma cpxs_inv_lifts: ∀h,G. d_deliftable2_sn (cpxs h G).
+/3 width=6 by d2_deliftable_sn_LTC, cpx_inv_lifts/ qed-.
index fe1040d58cf47aa22fbbcc472bef98681595f517..729331c1d386b0571659786f72e121569e933fe4 100644 (file)
@@ -155,8 +155,8 @@ table {
    ]
    class "water"
    [ { "iterated static typing" * } {
-        [ { "generic extension on referred entries" * } {
-             [ "lfxss ( ? ⦻**[?,?] ? )" * ]
+        [ { "iterated extension on referred entries" * } {
+             [ "tc_lfxs ( ? ⦻**[?,?] ? )" * ]
           }
         ]
      }
diff --git a/matita/matita/contribs/lambdadelta/partial_compile.sh b/matita/matita/contribs/lambdadelta/partial_compile.sh
new file mode 100644 (file)
index 0000000..319fa87
--- /dev/null
@@ -0,0 +1,5 @@
+cd basic_2/rt_transition/
+../../../../matitac.opt `cat partial.txt`
+cd ../rt_computation/
+../../../../matitac.opt `cat partial.txt`
+cd ../../