summaryrefslogtreecommitdiff
path: root/kernel/univ.ml
diff options
context:
space:
mode:
authorGravatar Samuel Mimram <smimram@debian.org>2006-01-19 22:34:29 +0000
committerGravatar Samuel Mimram <smimram@debian.org>2006-01-19 22:34:29 +0000
commit018ee3b0c2be79eb81b1f65c3f3fa142d24129c8 (patch)
treefbb91e2f74c73bb867ab62c58f248a704bbe6dec /kernel/univ.ml
parent6497f27021fec4e01f2182014f2bb1989b4707f9 (diff)
Imported Upstream version 8.0pl3upstream/8.0pl3
Diffstat (limited to 'kernel/univ.ml')
-rw-r--r--kernel/univ.ml10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/univ.ml b/kernel/univ.ml
index d46609c8..5e9fbd81 100644
--- a/kernel/univ.ml
+++ b/kernel/univ.ml
@@ -6,7 +6,7 @@
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
-(* $Id: univ.ml,v 1.17.10.1 2004/07/16 19:30:28 herbelin Exp $ *)
+(* $Id: univ.ml,v 1.17.10.3 2005/09/08 12:27:46 herbelin Exp $ *)
(* Universes are stratified by a partial ordering $\ge$.
Let $\~{}$ be the associated equivalence. We also have a strict ordering
@@ -57,7 +57,7 @@ let pr_uni = function
| Max (gel,gtl) ->
str "max(" ++
prlist_with_sep pr_coma pr_uni_level gel ++
- if gel <> [] & gtl <> [] then pr_coma () else mt () ++
+ (if gel <> [] & gtl <> [] then pr_coma () else mt ()) ++
prlist_with_sep pr_coma
(fun x -> str "(" ++ pr_uni_level x ++ str ")+1") gtl ++
str ")"
@@ -69,9 +69,8 @@ let super = function
| Variable u ->
Max ([],[u])
| Max _ ->
- anomaly ("Cannot take the successor of a non variable universes:\n"^
- "you are probably typing a type already known to be the type\n"^
- "of a user-provided term; if you really need this, please report")
+ anomaly ("Cannot take the successor of a non variable universes\n"^
+ "(maybe a bugged tactic)")
(* returns the least upper bound of universes u and v. If they are not
constrained, then a new universe is created.
@@ -412,6 +411,7 @@ let pr_arc = function
pr_uni_level u ++ str " " ++
v 0
(prlist_with_sep pr_spc (fun v -> str "> " ++ pr_uni_level v) gt ++
+ (if ge <> [] & gt <> [] then spc () else mt ()) ++
prlist_with_sep pr_spc (fun v -> str ">= " ++ pr_uni_level v) ge) ++
fnl ()
| Equiv (u,v) ->