X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fcontent%2FnotationUtil.ml;h=82096f80b7e89f3d3f1bfea46e2ddec7034f5788;hb=19a25bf176255055193372554437729a6fa1894c;hp=823febdb6c31c61e12cc2cc3a65d47f90fc55541;hpb=53b8e2af661ad4165aa0b1deccd0a7522d96ce2e;p=helm.git diff --git a/matita/components/content/notationUtil.ml b/matita/components/content/notationUtil.ml index 823febdb6..82096f80b 100644 --- a/matita/components/content/notationUtil.ml +++ b/matita/components/content/notationUtil.ml @@ -362,21 +362,21 @@ let freshen_obj obj = let freshen_capture_variable (n, t) = freshen_term n, HExtlib.map_option freshen_term t in let freshen_capture_variables = List.map freshen_capture_variable in match obj with - | NotationPt.Inductive (params, indtypes) -> + | NotationPt.Inductive (params, indtypes, attrs) -> let indtypes = List.map (fun (n, co, ty, ctors) -> (n, co, ty, freshen_name_ty ctors)) indtypes in - NotationPt.Inductive (freshen_capture_variables params, indtypes) + NotationPt.Inductive (freshen_capture_variables params, indtypes, attrs) | NotationPt.Theorem (n, t, ty_opt, attrs) -> let ty_opt = match ty_opt with None -> None | Some ty -> Some (freshen_term ty) in NotationPt.Theorem (n, freshen_term t, ty_opt, attrs) - | NotationPt.Record (params, n, ty, fields) -> + | NotationPt.Record (params, n, ty, fields, attrs) -> NotationPt.Record (freshen_capture_variables params, n, - freshen_term ty, freshen_name_ty_b fields) + freshen_term ty, freshen_name_ty_b fields, attrs) | NotationPt.LetRec (kind, definitions, attrs) -> let definitions = List.map