X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Ftoplevel%2FmetaBrg.ml;h=cde4daa135c1c915111d175acbd478a37d5767a6;hb=7b85558bb57881e7a7a6a9e52f22be7e0bc97908;hp=ff74f8e7558cb51ce7ac2ea80615f9ec64015bd8;hpb=2e451dca46e509fd7e7772f3d2e438c189ce10a1;p=helm.git diff --git a/helm/software/lambda-delta/toplevel/metaBrg.ml b/helm/software/lambda-delta/toplevel/metaBrg.ml index ff74f8e75..cde4daa13 100644 --- a/helm/software/lambda-delta/toplevel/metaBrg.ml +++ b/helm/software/lambda-delta/toplevel/metaBrg.ml @@ -33,21 +33,21 @@ let rec xlate_term c f = function | M.Abst (id, w, t) -> let f w = let a = [Y.Name (id, true)] in - let f t = f (B.Bind (B.abst a w, t)) in - xlate_term (B.push c (B.abst a w)) f t + let f t = f (B.Bind (a, B.Abst w, t)) in + xlate_term (B.push c B.empty a (B.Abst w)) f t in xlate_term c f w let xlate_pars f pars = let map f (id, w) c = let a = [Y.Name (id, true)] in - let f w = f (B.push c (B.abst a w)) in + let f w = f (B.push c B.empty a (B.Abst w)) in xlate_term c f w in - C.list_fold_right f map pars B.empty_lenv + C.list_fold_right f map pars B.empty let unwind_to_xlate_term f c t = - let map t b = B.bind b t in + let map t a b = B.bind a b t in let f t = f (B.fold_left map t c) in xlate_term c f t