]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gTopLevel/primitiveTactics.ml
Some stylesheets are now generated with Di Lena's meta_style.
[helm.git] / helm / gTopLevel / primitiveTactics.ml
index 9974577a087da7f31fde6cdbc01f6b5182411e96..8b3f025aa07a575e9e9015528010d725b9bee5f7 100644 (file)
@@ -258,7 +258,7 @@ let apply_tac ~term ~status:(proof, goal) =
           C.MutConstruct (uri,tyno,consno,exp_named_subst')
      | _ -> [],newmeta,[],term
    in
-   let metasenv' = newmetasenvfragment@metasenv in
+   let metasenv' = metasenv@newmetasenvfragment in
 prerr_endline ("^^^^^TERM': " ^ CicPp.ppterm term') ; 
    let termty =
     CicSubstitution.subst_vars exp_named_subst_diff
@@ -269,7 +269,7 @@ prerr_endline ("^^^^^TERMTY: " ^ CicPp.ppterm termty) ;
     let (consthead,newmetas,arguments,_) =
      new_metasenv_for_apply newmeta' proof context termty
     in
-     let newmetasenv = newmetas@metasenv' in
+     let newmetasenv = metasenv'@newmetas in
       let subst,newmetasenv' =
        CicUnification.fo_unif newmetasenv context consthead ty
       in
@@ -506,7 +506,8 @@ da subst1!!!! Dovrei rimuoverle o sono innocue?*)
 let elim_simpl_intros_tac ~term =
  Tacticals.then_ ~start:(elim_tac ~term)
   ~continuation:
-   (Tacticals.then_ ~start:ReductionTactics.simpl_tac
+   (Tacticals.then_
+     ~start:(ReductionTactics.simpl_tac ~also_in_hypotheses:false ~term:None)
      ~continuation:(intros_tac ~name:"FOO"))
 ;;