X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fng_kernel%2FnCicUtils.ml;h=f22e02a7eaa1da016bc202e3afa4793578eec86a;hb=e83cd27fc0694c34baf35c8b80d32317e51be707;hp=a99ae0407f638b65e2932239b6bafac51f13bc2e;hpb=2c01ff6094173915e7023076ea48b5804dca7778;p=helm.git diff --git a/matita/components/ng_kernel/nCicUtils.ml b/matita/components/ng_kernel/nCicUtils.ml index a99ae0407..f22e02a7e 100644 --- a/matita/components/ng_kernel/nCicUtils.ml +++ b/matita/components/ng_kernel/nCicUtils.ml @@ -17,7 +17,7 @@ module Ref = NReference exception Subst_not_found of int exception Meta_not_found of int -let head_beta_reduce = ref (fun ~upto:_ _ -> assert false);; +let head_beta_reduce = ref (fun _ ~upto:_ _ -> assert false);; let set_head_beta_reduce = (:=) head_beta_reduce;; let expand_local_context = function @@ -56,7 +56,7 @@ let fold g k f acc = function | C.Match (_,oty,t,pl) -> List.fold_left (f k) (f k (f k acc oty) t) pl ;; -let map g k f = function +let map status g k f = function | C.Meta _ -> assert false | C.Implicit _ | C.Sort _ @@ -74,7 +74,7 @@ let map g k f = function | C.Appl l :: tl -> C.Appl (l@tl) | l1 -> C.Appl l1 in - if fire_beta then !head_beta_reduce ~upto t + if fire_beta then !head_beta_reduce (status :> NCic.status) ~upto t else t | C.Prod (n,s,t) as orig -> let s1 = f k s in let t1 = f (g (n,C.Decl s) k) t in