]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/interface/deannotate.ml
added LICENSE
[helm.git] / helm / interface / deannotate.ml
index 658554fffd649e3f31b9aced249b54ee22ea2860..313400302b3e40cde8e97a2fc2104dd016c41d64 100644 (file)
@@ -15,6 +15,8 @@ let rec deannotate_term =
       C.Prod (name, deannotate_term so, deannotate_term ta)
    | C.ALambda (_,_,name,so,ta) ->
       C.Lambda (name, deannotate_term so, deannotate_term ta)
+   | C.ALetIn (_,_,name,so,ta) ->
+      C.LetIn (name, deannotate_term so, deannotate_term ta)
    | C.AAppl (_,_,l) -> C.Appl (List.map deannotate_term l)
    | C.AConst (_,_,uri, cookingsno) -> C.Const (uri, cookingsno)
    | C.AAbst (_,_,uri) -> C.Abst uri
@@ -56,8 +58,10 @@ let deannotate_obj =
       )
    | C.AAxiom (_, _, id, ty, params) ->
       C.Axiom (id, deannotate_term ty, params)
-   | C.AVariable (_, _, name, ty) ->
-      C.Variable (name, deannotate_term ty)
+   | C.AVariable (_, _, name, bo, ty) ->
+      C.Variable (name,
+       (match bo with None -> None | Some bo -> Some (deannotate_term bo)),
+       deannotate_term ty)
    | C.ACurrentProof (_, _, name, conjs, bo, ty) ->
       C.CurrentProof (
        name, List.map (fun (id,con) -> (id,deannotate_term con)) conjs,