X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_omdoc%2Fcic2acic.ml;h=2c3b9fb629c294e6e9ab3658db3a400cb38c909b;hb=33a02e0b639217093eb63f30169aaa6ac8c78907;hp=bc5405a9a6e82448c25fdb7f8d7d612632c2fa0f;hpb=772ffae2e30a114b0ae77f9c073a08ba56b55bf6;p=helm.git diff --git a/helm/ocaml/cic_omdoc/cic2acic.ml b/helm/ocaml/cic_omdoc/cic2acic.ml index bc5405a9a..2c3b9fb62 100644 --- a/helm/ocaml/cic_omdoc/cic2acic.ml +++ b/helm/ocaml/cic_omdoc/cic2acic.ml @@ -426,12 +426,11 @@ let asequent_of_sequent (metasenv:Cic.metasenv) (sequent:Cic.conjecture) = | Some (n, Cic.Decl t)-> Some (n, Cic.Decl (Unshare.unshare t)) | Some (n, Cic.Def (t,None)) -> - Some (n, - Cic.Def ((Unshare.unshare t),None)) + Some (n, Cic.Def ((Unshare.unshare t),None)) | Some (_,Cic.Def (_,Some _)) -> assert false in d::canonical_context' - ) [] canonical_context + ) canonical_context [] in let term' = Unshare.unshare term in (i,canonical_context',term') @@ -499,7 +498,7 @@ let acic_object_of_cic_object ?(eta_fix=true) obj = let canonical_context' = List.fold_right (fun d canonical_context' -> - let d' = + let d = match d with None -> None | Some (n, C.Decl t)-> @@ -510,7 +509,7 @@ let acic_object_of_cic_object ?(eta_fix=true) obj = | Some (_,C.Def (_,Some _)) -> assert false in d::canonical_context' - ) [] canonical_context + ) canonical_context [] in let term' = eta_fix conjectures canonical_context' term in (i,canonical_context',term') @@ -565,7 +564,8 @@ let acic_object_of_cic_object ?(eta_fix=true) obj = List.map (fun (name,ty) -> name,Unshare.unshare ty) cl)) tys in let context = List.map - (fun (name,_,arity,_) -> Some (C.Name name, C.Decl (Unshare.unshare arity))) tys in + (fun (name,_,arity,_) -> + Some (C.Name name, C.Decl (Unshare.unshare arity))) tys in let idrefs = List.map (function _ -> gen_id seed) tys in let atys = List.map2