]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/interface/cicPp.ml
First very partial implementation of LetIn and bodyed Variables
[helm.git] / helm / interface / cicPp.ml
index 932978664684cd8b638262890ea5bda9374032a7..e39a0caff76428ccc3f5310db97ef22c2d47394a 100644 (file)
@@ -59,6 +59,8 @@ let rec pp t l =
     | C.Cast (v,t) -> pp v l
     | C.Lambda (b,s,t) ->
        "[" ^ string_of_name b ^ ":" ^ pp s l ^ "]" ^ pp t (b::l)
+    | C.LetIn (b,s,t) ->
+       "[" ^ string_of_name b ^ ":=" ^ pp s l ^ "]" ^ pp t (b::l)
     | C.Appl li ->
        "(" ^
        (List.fold_right
@@ -160,8 +162,9 @@ let ppobj obj =
           ) x "" ^ match i with "" -> "" | i' -> " " ^ i'
        ) params "" ^
       "):\n" ^ pp ty []
-   | C.Variable (name, ty) ->
-      "Variable " ^ name ^ ":\n" ^ pp ty []
+   | C.Variable (name, bo, ty) ->
+      "Variable " ^ name ^ ":\n" ^ pp ty [] ^ "\n" ^
+      (match bo with None -> "" | Some bo -> ":= " ^ pp bo [])
    | C.CurrentProof (name, conjectures, value, ty) ->
       "Current Proof:\n" ^
       List.fold_right