diff options
| author | Maxime Dénès | 2017-02-08 13:04:00 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2017-02-08 13:04:00 +0100 |
| commit | 8d7c8bb91bb1cee533bb3f94fe36a04343f08006 (patch) | |
| tree | 7a8c381e021a905ca90183ac62b63859c9d4f102 /plugins/funind/recdef.ml | |
| parent | 3550120641c3b8d84290dc950e717aaf099775f9 (diff) | |
| parent | 90b6969c467f097a4d7da0140e1351ef98d6401d (diff) | |
Merge PR#393: Replace Typeops with Fast_typeops
Diffstat (limited to 'plugins/funind/recdef.ml')
| -rw-r--r-- | plugins/funind/recdef.ml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/funind/recdef.ml b/plugins/funind/recdef.ml index 54066edfb8..e00fa528ad 100644 --- a/plugins/funind/recdef.ml +++ b/plugins/funind/recdef.ml @@ -78,8 +78,10 @@ let def_of_const t = let type_of_const t = match (kind_of_term t) with - Const sp -> Typeops.type_of_constant (Global.env()) sp - |_ -> assert false + | Const sp -> + (* FIXME discarding universe constraints *) + Typeops.type_of_constant_in (Global.env()) sp + |_ -> assert false let constr_of_global x = fst (Universes.unsafe_constr_of_global x) @@ -1422,7 +1424,7 @@ let start_equation (f:global_reference) (term_f:global_reference) (cont_tactic:Id.t list -> tactic) g = let ids = pf_ids_of_hyps g in let terminate_constr = constr_of_global term_f in - let nargs = nb_prod (fst (type_of_const terminate_constr)) (*FIXME*) in + let nargs = nb_prod (type_of_const terminate_constr) in let x = n_x_id ids nargs in observe_tac (str "start_equation") (observe_tclTHENLIST (str "start_equation") [ h_intros x; |
