diff options
| author | Emilio Jesus Gallego Arias | 2019-08-20 19:57:17 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2019-08-27 18:29:04 +0200 |
| commit | 5196ab8da3416bb7ebd17c1445afe7f08ab01cae (patch) | |
| tree | 26b381b66dd6ea33255ab88127b064c95e7636e0 /tactics/ind_tables.ml | |
| parent | c951e2ed88437c613bd4355b32547f9c39269eed (diff) | |
[declare] Use entry constructor instead of low-level record.
Non-delayed entries can be done with the current constructor, delayed
ones will require more work.
Diffstat (limited to 'tactics/ind_tables.ml')
| -rw-r--r-- | tactics/ind_tables.ml | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/tactics/ind_tables.ml b/tactics/ind_tables.ml index 1f973ace6f..54393dce00 100644 --- a/tactics/ind_tables.ml +++ b/tactics/ind_tables.ml @@ -124,17 +124,7 @@ let define internal role id c poly univs = let ctx = UState.minimize univs in let c = UnivSubst.nf_evars_and_universes_opt_subst (fun _ -> None) (UState.subst ctx) c in let univs = UState.univ_entry ~poly ctx in - let entry = { - Declare.proof_entry_body = - Future.from_val ((c,Univ.ContextSet.empty), - Evd.empty_side_effects); - proof_entry_secctx = None; - proof_entry_type = None; - proof_entry_universes = univs; - proof_entry_opaque = false; - proof_entry_inline_code = false; - proof_entry_feedback = None; - } in + let entry = Declare.definition_entry ~univs c in let kn, eff = Declare.declare_private_constant ~role ~kind:Decls.(IsDefinition Scheme) ~name:id (Declare.DefinitionEntry entry) in let () = match internal with | InternalTacticRequest -> () |
