X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fgrafite_engine%2FnCicCoercDeclaration.ml;h=810844b2a5788d25c08d5f6afa0a6f1cb1d66703;hb=712af5b8dc7dab1ebfa6532b73b91c96cb4c6837;hp=74a7eb6a4a4867962ebb72ea78708ec4e0ea64d3;hpb=f7da48c844105a52a705872dfa0d4104de010c82;p=helm.git diff --git a/matita/components/grafite_engine/nCicCoercDeclaration.ml b/matita/components/grafite_engine/nCicCoercDeclaration.ml index 74a7eb6a4..810844b2a 100644 --- a/matita/components/grafite_engine/nCicCoercDeclaration.ml +++ b/matita/components/grafite_engine/nCicCoercDeclaration.ml @@ -145,14 +145,13 @@ let src_tgt_cpos_arity_of_ty_id_src_tgt status ty id src tgt = raise (GrafiteTypes.Command_error ("bad source pattern: " ^ Lazy.force msg)) | MultiPassDisambiguator.DisambiguationError _ -> - raise (GrafiteTypes.Command_error ("bad source pattern: -disambiguation error"))) + raise (GrafiteTypes.Command_error ("bad source pattern: disambiguation error"))) | _ -> assert false in aux 0 [] ty in let status, tgt, arity = - let metasenv,subst,status,tgt = + let _metasenv,subst,status,tgt = GrafiteDisambiguate.disambiguate_nterm status `XTSort [] [] [] ("",0,tgt) in let tgt = NCicUntrusted.apply_subst status subst [] tgt in @@ -182,7 +181,7 @@ let fresh_uri status prefix suffix = exception Stop;; -let close_graph name t s d to_s from_d p a status = +let close_graph _name t s d to_s from_d _p a status = let c = List.find (function (_,_,NCic.Appl (x::_),_,_) -> x = t | _ -> assert false) @@ -228,7 +227,7 @@ let close_graph name t s d to_s from_d p a status = let pos = match p with | NCic.Meta (p,_) -> pos_in_list p (List.map fst metasenv) - | t -> raise Stop + | _t -> raise Stop in let ty = NCicTypeChecker.typeof status ~metasenv:[] ~subst:[] [] bo in let src,tgt = src_tgt_of_ty_cpos_arity status ty pos arity in @@ -292,8 +291,8 @@ let record_ncoercion = let d = refresh_uri_in_term d in basic_index_ncoercion (name,compose,t,s,d,p,a) in - let aux_l l ~refresh_uri_in_universe ~refresh_uri_in_term - ~refresh_uri_in_reference ~alias_only status + let aux_l l ~refresh_uri_in_universe:_ ~refresh_uri_in_term + ~refresh_uri_in_reference:_ ~alias_only status = if not alias_only then List.fold_right (aux ~refresh_uri_in_term:(refresh_uri_in_term (status:>NCic.status))) l status