]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_refiner/nCicRefiner.ml
New tactic intro. Syntax: "# n".
[helm.git] / helm / software / components / ng_refiner / nCicRefiner.ml
index dd03356c4845fb78ad02fd3c5a42e10b5aea20c9..7871d86e92052728a1828627783c0c83642fec24 100644 (file)
@@ -60,7 +60,7 @@ let check_allowed_sort_elimination hdb localise r orig =
         NCicPp.ppmetasenv ~subst metasenv));
      match arity1 with
      | C.Prod (name,so1,de1) (* , t ==?== C.Prod _ *) ->
-        let metasenv, meta, _ = 
+        let metasenv, _, meta, _ = 
           NCicMetaSubst.mk_meta metasenv ((name,C.Decl so1)::context) `Type 
         in
         let metasenv, subst = 
@@ -74,7 +74,7 @@ let check_allowed_sort_elimination hdb localise r orig =
         aux metasenv subst ((name, C.Decl so1)::context)
          (mkapp (NCicSubstitution.lift 1 ind) (C.Rel 1)) de1 meta
      | C.Sort _ (* , t ==?== C.Prod _ *) ->
-        let metasenv, meta, _ = NCicMetaSubst.mk_meta metasenv [] `Type in
+        let metasenv, _, meta, _ = NCicMetaSubst.mk_meta metasenv [] `Type in
         let metasenv, subst = 
           try NCicUnification.unify hdb metasenv subst context 
                 arity2 (C.Prod ("_", ind, meta)) 
@@ -145,7 +145,7 @@ let rec typeof hdb
           NCicPp.ppterm ~subst ~metasenv ~context t)))
     | C.Sort _ -> metasenv,subst,t,(C.Sort (C.Type NCicEnvironment.type0))
     | C.Implicit infos -> 
-         let metasenv,t,ty = exp_implicit metasenv context expty infos in
+         let metasenv,_,t,ty = exp_implicit metasenv context expty infos in
          metasenv, subst, t, ty 
     | C.Meta (n,l) as t -> 
        let ty =
@@ -427,7 +427,7 @@ and eat_prods hdb
           let metasenv, subst, arg, ty_arg = 
             typeof hdb ~look_for_coercion ~localise 
               metasenv subst context arg None in
-          let metasenv, meta, _ = 
+          let metasenv, _, meta, _ = 
             NCicMetaSubst.mk_meta metasenv 
               (("_",C.Decl ty_arg) :: context) `Type
           in