aboutsummaryrefslogtreecommitdiff
path: root/toplevel/command.ml
diff options
context:
space:
mode:
authormlasson2015-01-21 11:07:32 +0100
committerMatthieu Sozeau2015-01-21 22:42:23 +0530
commitfeca7916eaaceea96be4c15f08895578b3703a1c (patch)
tree043e20ff64fe0f1b672dc41c3b411e31abf902df /toplevel/command.ml
parent3527a32a9c055a1438f0c85b77d3dbd8d38cbd32 (diff)
Add the possibility of defining opaque terms with program.
Diffstat (limited to 'toplevel/command.ml')
-rw-r--r--toplevel/command.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml
index 9cb3bb8660..608747d0e4 100644
--- a/toplevel/command.ml
+++ b/toplevel/command.ml
@@ -746,8 +746,8 @@ let interp_fix_body env_rec evdref impls (_,ctx) fix ccl =
let build_fix_type (_,ctx) ccl = it_mkProd_or_LetIn ccl ctx
-let declare_fix (_,poly,_ as kind) ctx f ((def,_),eff) t imps =
- let ce = definition_entry ~types:t ~poly ~univs:ctx ~eff def in
+let declare_fix ?(opaque = false) (_,poly,_ as kind) ctx f ((def,_),eff) t imps =
+ let ce = definition_entry ~opaque ~types:t ~poly ~univs:ctx ~eff def in
declare_definition f kind ce imps (Lemmas.mk_hook (fun _ r -> r))
let _ = Obligations.declare_fix_ref := declare_fix