]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_transformations/cicAstPp.ml
first moogle template checkin
[helm.git] / helm / ocaml / cic_transformations / cicAstPp.ml
index bd9eea6012927c97c6a64f0cb8fdf8d8483a6117..2cc83e74312f8f2e62ac70ab9835048553fcedc4 100644 (file)
@@ -65,7 +65,7 @@ let rec pp_term = function
   | CicAst.Ident (name, Some [])
   | CicAst.Ident (name, None) ->
       name
-  | CicAst.Ident (name, Some substs) -> sprintf "%s[%s]" name (pp_substs substs)
+  | CicAst.Ident (name, Some substs) -> sprintf "%s \\subst [%s]" name (pp_substs substs)
   | CicAst.Implicit -> "?"
   | CicAst.Meta (index, substs) ->
       sprintf "%d[%s]" index
@@ -78,11 +78,11 @@ let rec pp_term = function
   | CicAst.Sort `CProp -> "CProp"
   | CicAst.Symbol (name, _) -> name
 
-and pp_subst (name, term) = sprintf "%s := %s" name (pp_term term)
+and pp_subst (name, term) = sprintf "%s \\Assign %s" name (pp_term term)
 and pp_substs substs = String.concat "; " (List.map pp_subst substs)
 
 and pp_pattern ((head, vars), term) =
-  sprintf "%s -> %s"
+  sprintf "%s \Rightarrow %s"
     (match vars with
     | [] -> head
     | _ ->