]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/acic_content/cicNotationUtil.ml
Added a parameter (empty list) to load_notation.
[helm.git] / helm / ocaml / acic_content / cicNotationUtil.ml
index 0aa6b48b32a4936aecfd83d934158b0208079194..8e487ed11ed293374f4737a39bbc0e975b0165ff 100644 (file)
@@ -23,6 +23,8 @@
  * http://helm.cs.unibo.it/
  *)
 
+(* $Id$ *)
+
 module Ast = CicNotationPt
 
 let visit_ast ?(special_k = fun _ -> assert false) k =
@@ -364,6 +366,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 +382,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