X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Ftoplevel%2FmetaBag.ml;h=991d7e8c2048998628ed3d9d040c7eb15a5f21f0;hb=85521efd364ec494e4cc024bbf87182a312e1b7b;hp=4f909bdcaa00443832415fae696f4e104f0658c1;hpb=13c3708fc59d999727ee214e8ece1f03661a9737;p=helm.git diff --git a/helm/software/lambda-delta/toplevel/metaBag.ml b/helm/software/lambda-delta/toplevel/metaBag.ml index 4f909bdca..991d7e8c2 100644 --- a/helm/software/lambda-delta/toplevel/metaBag.ml +++ b/helm/software/lambda-delta/toplevel/metaBag.ml @@ -45,28 +45,23 @@ let xlate_pars f pars = let f w = B.push "meta" f c l id (B.Abst w) in xlate_term c f w in - C.list_fold_right f map pars B.empty_context + C.list_fold_right f map pars B.empty_lenv let unwind_to_xlate_term f c t = let map f t (l, id, b) = f (B.bind l id b t) in let f t = C.list_fold_left f map t c in xlate_term c f t -let xlate_entry f = function - | e, pars, uri, u, None -> - let f u = f (e, uri, B.Abst u) in +let xlate_entry f = function + | pars, u, None -> let f c = unwind_to_xlate_term f c u in xlate_pars f pars - | e, pars, uri, u, Some (_, t) -> - let f u t = f (e, uri, B.Abbr (B.Cast (u, t))) in + | pars, u, Some t -> + let f u t = f (B.Cast (u, t)) in let f c u = unwind_to_xlate_term (f u) c t in let f c = unwind_to_xlate_term (f c) c u in xlate_pars f pars - -let xlate_item f = function - | None -> f None - | Some e -> let f e = f (Some e) in xlate_entry f e - + (* Interface functions ******************************************************) -let bag_of_meta = xlate_item +let bag_of_meta = xlate_entry