summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Campbell2018-07-05 17:02:03 +0100
committerBrian Campbell2018-07-06 18:27:01 +0100
commite4c43d45c6fe5267ad72a1be64d6328470f2a18e (patch)
treeccaa2fccc27be93e0b4d365326b40c64ddaa017f /src
parentd2ddaad22f25a152d5fd53c11b3e1698747bd9c5 (diff)
Coq: missing existential building for ranges
Diffstat (limited to 'src')
-rw-r--r--src/pretty_print_coq.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pretty_print_coq.ml b/src/pretty_print_coq.ml
index 6df8c5df..5f4d349c 100644
--- a/src/pretty_print_coq.ml
+++ b/src/pretty_print_coq.ml
@@ -946,6 +946,9 @@ let doc_exp_lem, doc_let_lem =
(* TODO: more sophisticated check *)
match destruct_exist env arg_ty, destruct_exist env typ_from_fn with
| Some _, None -> parens (string "projT1 " ^^ arg_pp)
+ (* Usually existentials have already been built elsewhere, but this
+ is useful for (e.g.) ranges *)
+ | None, Some _ -> parens (string "build_ex " ^^ arg_pp)
| _, _ -> arg_pp
in
let epp = hang 2 (flow (break 1) (call :: List.map2 doc_arg args arg_typs)) in