Changeset 3145 for src/RTL/RTLToERTL.ma


Ignore:
Timestamp:
Apr 15, 2013, 4:31:50 PM (7 years ago)
Author:
tranquil
Message:
  • removed sigma types from traces of intensional events
  • completed correctness.ma using axiom files, a single daemon remains
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/RTL/RTLToERTL.ma

    r3037 r3145  
    44include "ERTL/ERTL.ma".
    55include "joint/TranslateUtils.ma".
     6include "joint/joint_stacksizes.ma".
    67
    78include alias "basics/lists/list.ma".
     
    384385definition rtl_to_ertl : rtl_program → ertl_program ≝
    385386  b_graph_transform_program … translate_data.
     387
     388lemma RTLToERTL_monotone_stacksizes :
     389∀p_in.let p_out ≝ rtl_to_ertl p_in in
     390stack_cost_model_le (stack_cost ? p_in) (stack_cost ? p_out).
     391#p_in whd
     392@list_map_opt_All2
     393[ @(λid_def1,id_def2.
     394   match \snd id_def1 with
     395   [ Internal f1 ⇒
     396     match \snd id_def2 with
     397     [ Internal f2 ⇒
     398       \fst id_def1 = \fst id_def2 ∧
     399       le (joint_if_stacksize … f1) (joint_if_stacksize … f2)
     400     | _ ⇒ False
     401     ]
     402   | External _ ⇒ match \snd id_def2 with [ Internal _ ⇒ False | External _ ⇒ True ]
     403   ])
     404| * #id * #f1 * #id' * #f2 normalize nodelta [|*: * %]
     405  ** #H %{H} % ]
     406@All2_of_map * #id * #f normalize nodelta [2: %]
     407% [%]
     408cases (b_graph_translate ?????) #f_out * #data
     409* *[2:#r1*[2:#r2*[2:#r3*[2:#r4*[2:#r5*[2:#r6*[2:#r7*[2:#r8*
     410  [2:#r9*[2:#r10*[2:#r11*[2:#r12*[2:#r13*[2:#r14 #tl]]]]]]]]]]]]]]
     411* #f_lbls * #f_regs * try ( * @False) whd in ⊢ (%→?); #EQ_data
     412#props >(ss_def_out_eq … props) >EQ_data
     413generalize in match (joint_if_stacksize ???); generalize in match (length ??-length ??);
     414-p_in //
     415qed.
Note: See TracChangeset for help on using the changeset viewer.