X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_transformations%2FcicAstPp.ml;h=dda70793f62c7d3ad9495fed7df032de7b60b185;hb=ac7687ce66526f905874ed99a845223c853c558a;hp=02cf5511cd963a07b84c4c65b3902b0fde0f62fb;hpb=fd4eed43223b7aeabc680d94f06db9e2a87f4a4c;p=helm.git diff --git a/helm/ocaml/cic_transformations/cicAstPp.ml b/helm/ocaml/cic_transformations/cicAstPp.ml index 02cf5511c..dda70793f 100644 --- a/helm/ocaml/cic_transformations/cicAstPp.ml +++ b/helm/ocaml/cic_transformations/cicAstPp.ml @@ -62,8 +62,10 @@ let rec pp_term = function sprintf "%s = %s" (pp_capture_variable var) (pp_term body)) definitions)) (pp_term term) - | CicAst.Ident (name, []) -> name - | CicAst.Ident (name, substs) -> sprintf "%s[%s]" name (pp_substs substs) + | CicAst.Ident (name, Some []) + | CicAst.Ident (name, None) -> + name + | CicAst.Ident (name, Some substs) -> sprintf "%s \\subst [%s]" name (pp_substs substs) | CicAst.Implicit -> "?" | CicAst.Meta (index, substs) -> sprintf "%d[%s]" index @@ -76,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 | _ ->