aboutsummaryrefslogtreecommitdiff
path: root/plugins/funind/recdef.ml
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2020-05-25 14:20:24 +0200
committerEmilio Jesus Gallego Arias2020-06-26 14:38:10 +0200
commit671004aac9f9d3b70ef41f81e7b3ea8f190971ec (patch)
tree746aec1d2134198ee5e9b6cc3d6b12e6e9738ac1 /plugins/funind/recdef.ml
parent2ac5353d24133cbca97a85617942d38aed0cc9a3 (diff)
[declare] Remove Lemmas module
The module is now a stub. We choose to be explicit on the parameters for now, this will improve in next commits with the refactoring of proof / constant information.
Diffstat (limited to 'plugins/funind/recdef.ml')
-rw-r--r--plugins/funind/recdef.ml10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/funind/recdef.ml b/plugins/funind/recdef.ml
index f92d4c6a72..58ed3864bb 100644
--- a/plugins/funind/recdef.ml
+++ b/plugins/funind/recdef.ml
@@ -1492,7 +1492,8 @@ let open_new_goal ~lemma build_proof sigma using_lemmas ref_ goal_name
in
let info = Declare.Info.make ~hook:(Declare.Hook.make hook) () in
let lemma =
- Lemmas.start_lemma ~name:na ~poly:false (* FIXME *) ~info sigma gls_type
+ Declare.start_proof ~name:na ~poly:false (* FIXME *) ~info ~impargs:[]
+ ~udecl:UState.default_univ_decl sigma gls_type
in
let lemma =
if Indfun_common.is_strict_tcc () then
@@ -1530,7 +1531,8 @@ let com_terminate interactive_proof tcc_lemma_name tcc_lemma_ref is_mes
let start_proof env ctx tac_start tac_end =
let info = Declare.Info.make ~hook () in
let lemma =
- Lemmas.start_lemma ~name:thm_name ~poly:false (*FIXME*) ~info ctx
+ Declare.start_proof ~name:thm_name ~poly:false (*FIXME*) ~info ctx
+ ~impargs:[] ~udecl:UState.default_univ_decl
(EConstr.of_constr (compute_terminate_type nb_args fonctional_ref))
in
let lemma =
@@ -1601,8 +1603,10 @@ let com_eqn uctx nb_arg eq_name functional_ref f_ref terminate_ref
let evd = Evd.from_ctx uctx in
let f_constr = constr_of_monomorphic_global f_ref in
let equation_lemma_type = subst1 f_constr equation_lemma_type in
+ let info = Declare.Info.make () in
let lemma =
- Lemmas.start_lemma ~name:eq_name ~poly:false evd
+ Declare.start_proof ~name:eq_name ~poly:false evd ~info ~impargs:[]
+ ~udecl:UState.default_univ_decl
(EConstr.of_constr equation_lemma_type)
in
let lemma =