]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/acic_content/cicNotationUtil.ml
Big commit to let Ferruccio try the merge_coercion patch.
[helm.git] / helm / ocaml / acic_content / cicNotationUtil.ml
index 0aa6b48b32a4936aecfd83d934158b0208079194..285047de868b111b2e56317780853a250144d0c2 100644 (file)
@@ -364,6 +364,7 @@ let freshen_obj obj =
   let index = ref 0 in
   let freshen_term = freshen_term ~index in
   let freshen_name_ty = List.map (fun (n, t) -> (n, freshen_term t)) in
+  let freshen_name_ty_b = List.map (fun (n, t, b) -> (n, freshen_term t, b)) in
   match obj with
   | CicNotationPt.Inductive (params, indtypes) ->
       let indtypes =
@@ -379,7 +380,7 @@ let freshen_obj obj =
       CicNotationPt.Theorem (flav, n, freshen_term t, ty_opt)
   | CicNotationPt.Record (params, n, ty, fields) ->
       CicNotationPt.Record (freshen_name_ty params, n, freshen_term ty,
-        freshen_name_ty fields)
+        freshen_name_ty_b fields)
 
 let freshen_term = freshen_term ?index:None