let pp_binder = function
| `Lambda -> "lambda"
- | `Pi -> "pi"
+ | `Pi -> "Pi"
| `Exists -> "exists"
| `Forall -> "forall"
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
| 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
| _ ->