X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Ftoplevel%2FmetaBrg.ml;h=4c5696ceaf86802c60dd60e508f2c021f1032c0b;hb=cca5f6b7431b846b7bdcbf813632cb79580d5874;hp=b82e51a3efa1f387a17565832028c37565deb001;hpb=dcdee4ca839dac671924a95f0ada71faf06a8be4;p=helm.git diff --git a/helm/software/lambda-delta/toplevel/metaBrg.ml b/helm/software/lambda-delta/toplevel/metaBrg.ml index b82e51a3e..4c5696cea 100644 --- a/helm/software/lambda-delta/toplevel/metaBrg.ml +++ b/helm/software/lambda-delta/toplevel/metaBrg.ml @@ -32,32 +32,32 @@ let rec xlate_term c f = function | M.Abst (id, w, t) -> let f w = let a = [B.Name (true, id)] in - let f t = f (B.Bind (a, B.Abst w, t)) in + let f t = f (B.Bind (B.abst a w, t)) in let f c = xlate_term c f t in - B.push f c a (B.Abst w) + B.push f c (B.abst a w) in xlate_term c f w let xlate_pars f pars = let map f (id, w) c = let a = [B.Name (true, id)] in - let f w = B.push f c a (B.Abst w) in + let f w = B.push f c (B.abst a w) in xlate_term c f w in C.list_fold_right f map pars B.empty_context let unwind_to_xlate_term f c t = - let map f t (a, b) = f (B.bind a b t) in - let f t = C.list_fold_left f map t c in + let map f t b = f (B.bind b t) in + let f t = B.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 f u = f (e, uri, B.abst [] u) in 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 + let f u t = f (e, uri, B.abbr [] (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