aboutsummaryrefslogtreecommitdiff
path: root/printing
diff options
context:
space:
mode:
authorSimonBoulier2019-06-03 16:04:54 +0200
committerSimonBoulier2019-08-16 11:43:51 +0200
commit889603e7a2ed41b890e43729aa0abf90bebd3ca6 (patch)
tree605984cd5ea6bfb6758c87ae9582d8230b825e59 /printing
parentabab878b8d8b5ca85a4da688abed68518f0b17bd (diff)
Improve [Print Assumptions] for type-in-type and assumed positive.
Diffstat (limited to 'printing')
-rw-r--r--printing/printer.ml7
-rw-r--r--printing/printer.mli1
2 files changed, 6 insertions, 2 deletions
diff --git a/printing/printer.ml b/printing/printer.ml
index 9c74d8cfbb..b8f25eb380 100644
--- a/printing/printer.ml
+++ b/printing/printer.ml
@@ -854,6 +854,7 @@ type axiom =
| Constant of Constant.t (* An axiom or a constant. *)
| Positive of MutInd.t (* A mutually inductive definition which has been assumed positive. *)
| Guarded of Constant.t (* a constant whose (co)fixpoints have been assumed to be guarded *)
+ | TypeInType of Constant.t (* a constant which relies on type in type *)
type context_object =
| Variable of Id.t (* A section variable or a Let definition *)
@@ -927,9 +928,11 @@ let pr_assumptionset env sigma s =
| Constant kn ->
safe_pr_constant env kn ++ safe_pr_ltype env sigma typ
| Positive m ->
- hov 2 (safe_pr_inductive env m ++ spc () ++ strbrk"is positive.")
+ hov 2 (safe_pr_inductive env m ++ spc () ++ strbrk"is assumed to be positive.")
| Guarded kn ->
- hov 2 (safe_pr_constant env kn ++ spc () ++ strbrk"is positive.")
+ hov 2 (safe_pr_constant env kn ++ spc () ++ strbrk"is assumed to be guarded.")
+ | TypeInType kn ->
+ hov 2 (safe_pr_constant env kn ++ spc () ++ strbrk"relies on an unsafe hierarchy.")
in
let fold t typ accu =
let (v, a, o, tr) = accu in
diff --git a/printing/printer.mli b/printing/printer.mli
index 0855f2d109..f397b2b643 100644
--- a/printing/printer.mli
+++ b/printing/printer.mli
@@ -192,6 +192,7 @@ type axiom =
| Constant of Constant.t (* An axiom or a constant. *)
| Positive of MutInd.t (* A mutually inductive definition which has been assumed positive. *)
| Guarded of Constant.t (* a constant whose (co)fixpoints have been assumed to be guarded *)
+ | TypeInType of Constant.t (* a constant which relies on type in type *)
type context_object =
| Variable of Id.t (* A section variable or a Let definition *)