diff options
| author | Maxime Dénès | 2019-02-26 10:19:18 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2019-02-26 10:19:18 +0100 |
| commit | 3459155e1c629a2f932c4d4d917b0f69aa89ccf7 (patch) | |
| tree | 8f1db2c3e2a0d89a412c9c19b6ca458160f4c6c4 /vernac/comProgramFixpoint.ml | |
| parent | fc76c77ac6e509c1bccc2823ce2037d21a53276a (diff) | |
| parent | d31056ec924ef6e09b28bc3822b427b67a8a300b (diff) | |
Merge PR #9567: [vernac] Unify declaration hooks.
Ack-by: SkySkimmer
Ack-by: ejgallego
Reviewed-by: mattam82
Reviewed-by: maximedenes
Diffstat (limited to 'vernac/comProgramFixpoint.ml')
| -rw-r--r-- | vernac/comProgramFixpoint.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vernac/comProgramFixpoint.ml b/vernac/comProgramFixpoint.ml index a30313d37c..cc9c83bd17 100644 --- a/vernac/comProgramFixpoint.ml +++ b/vernac/comProgramFixpoint.ml @@ -227,7 +227,7 @@ let build_wellfounded (recname,pl,n,bl,arityc,body) poly r measure notation = in hook, recname, typ in (* XXX: Capturing sigma here... bad bad *) - let univ_hook = Obligations.mk_univ_hook (hook sigma) in + let hook = Lemmas.mk_hook (hook sigma) in (* XXX: Grounding non-ground terms here... bad bad *) let fullcoqc = EConstr.to_constr ~abort_on_undefined_evars:false sigma def in let fullctyp = EConstr.to_constr sigma typ in @@ -237,7 +237,7 @@ let build_wellfounded (recname,pl,n,bl,arityc,body) poly r measure notation = in let ctx = Evd.evar_universe_context sigma in ignore(Obligations.add_definition recname ~term:evars_def ~univdecl:decl - evars_typ ctx evars ~univ_hook) + evars_typ ctx evars ~hook) let out_def = function | Some def -> def |
