Step * of Lemma hdf-parallel-transformation1-2-0

[L1,L2,G1,G2:Base]. ∀[m1,m2:ℕ].
  (fix((λmk-hdf.(inl a.cbva_seq(L1[a]; λg.<mk-hdf, G1[g]>m1))))) || fix((λmk-hdf.(inl a.cbva_seq(L2[a]; λg.<mk-hdf
                                                                                                                 G2[g]
                                                                                                                 >;
                                                                                                       m2))))) 
  fix((λmk-hdf.(inl a.cbva_seq(λn.if n <m1 then L1[a] n
                                      if n <m1 m2 then mk_lambdas(L2[a] (n m1);m1)
                                      else mk_lambdas_fun(λg1.mk_lambdas_fun(λg2.(G1[g1] G2[g2]);m2);m1)
                                      fi ; λg.<mk-hdf, select_fun_last(g;m1 m2)>(m1 m2) 1))))))
BY
(Auto
   THEN RepUR ``hdf-parallel mk-hdf ifthenelse hdf-halted hdf-halt hdf-run isr band btrue hdf-ap`` 0
   THEN LiftAll 0
   THEN Reduce 0
   THEN SqequalInduction
   THEN (UnivCD THENA Auto)
   THEN UnrollLoopsOnceExcept [`cbva_seq`;`mk_lambdas_fun`;`mk_lambdas`;`select_fun_last`;`bag-append`;`it`]
   THEN RepeatFor ((RWO "cbva_seq-spread" THENA Auto))
   THEN (RWO "cbva_seq_extend" THENA Auto)
   THEN (RWO "cbva_seq-combine" THENA Auto)
   THEN Reduce 0
   THEN RepUR ``ifthenelse lt_int btrue eq_int`` 0
   THEN LiftAll 0
   THEN Reduce 0
   THEN Repeat ((SqequalInductionAuxAux false THEN Try (Complete (Auto))))
   THEN (Subst ⌜m1 m2 (m1 m2) 1⌝ 0⋅ THENA Auto)
   THEN (RWO "cbva_seq-list-case2" THENA Auto)
   THEN BLemma `cbva_seq-sqequal-n`
   THEN Try (Complete (Auto'))
   THEN Fold `select_fun_last` 0
   THEN RepeatFor ((SqequalNCanonicalCD THENA Auto'))
   THEN Try (Complete (Auto))
   THEN Try (Complete ((RWO "select_fun_last_partial_ap_gen1" THEN Auto)))
   THEN All (RepUR ``empty-bag nil lt_int btrue eq_int``)⋅
   THEN LiftAll 2
   THEN Reduce 2
   THEN BackThruSomeHyp
   THEN Auto') }


Latex:


Latex:
\mforall{}[L1,L2,G1,G2:Base].  \mforall{}[m1,m2:\mBbbN{}].
    (fix((\mlambda{}mk-hdf.(inl  (\mlambda{}a.cbva\_seq(L1[a];  \mlambda{}g.<mk-hdf,  G1[g]>  m1)))))
      ||  fix((\mlambda{}mk-hdf.(inl  (\mlambda{}a.cbva\_seq(L2[a];  \mlambda{}g.<mk-hdf,  G2[g]>  m2))))) 
    \msim{}  fix((\mlambda{}mk-hdf.(inl  (\mlambda{}a.cbva\_seq(\mlambda{}n.if  n  <z  m1  then  L1[a]  n
                                                                            if  n  <z  m1  +  m2  then  mk\_lambdas(L2[a]  (n  -  m1);m1)
                                                                            else  mk\_lambdas\_fun(\mlambda{}g1.mk\_lambdas\_fun(\mlambda{}g2.(G1[g1]
                                                                                                                                                                  +  G2[g2]);m2);m1)
                                                                            fi  ;  \mlambda{}g.<mk-hdf,  select\_fun\_last(g;m1  +  m2)>  (m1  +  m2)
                                                                      +  1))))))


By


Latex:
(Auto
  THEN  RepUR  ``hdf-parallel  mk-hdf  ifthenelse  hdf-halted  hdf-halt  hdf-run  isr  band  btrue  hdf-ap``  0
  THEN  LiftAll  0
  THEN  Reduce  0
  THEN  SqequalInduction
  THEN  (UnivCD  THENA  Auto)
  THEN  ...
  THEN  RepeatFor  2  ((RWO  "cbva\_seq-spread"  0  THENA  Auto))
  THEN  (RWO  "cbva\_seq\_extend"  0  THENA  Auto)
  THEN  (RWO  "cbva\_seq-combine"  0  THENA  Auto)
  THEN  Reduce  0
  THEN  RepUR  ``ifthenelse  lt\_int  btrue  eq\_int``  0
  THEN  LiftAll  0
  THEN  Reduce  0
  THEN  Repeat  ((SqequalInductionAuxAux  false  THEN  Try  (Complete  (Auto))))
  THEN  (Subst  \mkleeneopen{}m1  +  m2  +  1  \msim{}  (m1  +  m2)  +  1\mkleeneclose{}  0\mcdot{}  THENA  Auto)
  THEN  (RWO  "cbva\_seq-list-case2"  0  THENA  Auto)
  THEN  BLemma  `cbva\_seq-sqequal-n`
  THEN  Try  (Complete  (Auto'))
  THEN  Fold  `select\_fun\_last`  0
  THEN  RepeatFor  2  ((SqequalNCanonicalCD  THENA  Auto'))
  THEN  Try  (Complete  (Auto))
  THEN  Try  (Complete  ((RWO  "select\_fun\_last\_partial\_ap\_gen1"  0  THEN  Auto)))
  THEN  All  (RepUR  ``empty-bag  nil  lt\_int  btrue  eq\_int``)\mcdot{}
  THEN  LiftAll  2
  THEN  Reduce  2
  THEN  BackThruSomeHyp
  THEN  Auto')




Home Index