From 0d03f17a33b43aa87bb201953e4e1a567aac6355 Mon Sep 17 00:00:00 2001 From: herbelin Date: Wed, 31 Dec 2008 10:57:09 +0000 Subject: Moved parts of Sign to Term. Unified some names (e.g. decomp_n_prod -> splay_prod_n, lam_it -> it_mkLambda, splay_lambda -> splay_lam). Added shortcuts for "fst (decompose_prod t)" and co. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11727 85f007b7-540e-0410-9357-904b9bb8a0f7 --- toplevel/command.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toplevel/command.ml') diff --git a/toplevel/command.ml b/toplevel/command.ml index 47c51b83fd..07f5019565 100644 --- a/toplevel/command.ml +++ b/toplevel/command.ml @@ -355,7 +355,7 @@ let adjust_guardness_conditions const = | Fix ((nv,0),(_,_,fixdefs as fixdecls)) -> let possible_indexes = List.map (fun c -> - interval 0 (List.length (fst (Sign.decompose_lam_assum c)))) + interval 0 (List.length ((lam_assum c)))) (Array.to_list fixdefs) in let indexes = search_guard dummy_loc (Global.env()) possible_indexes fixdecls in { const with const_entry_body = mkFix ((indexes,0),fixdecls) } @@ -1125,7 +1125,7 @@ let look_for_mutual_statements thms = (* common coinductive conclusion *) let n = List.length thms in let inds = List.map (fun (id,(t,_) as x) -> - let (hyps,ccl) = Sign.decompose_prod_assum t in + let (hyps,ccl) = decompose_prod_assum t in let whnf_hyp_hds = map_rel_context_with_binders (fun i c -> fst (whd_betadeltaiota_stack (Global.env()) Evd.empty (lift i c))) hyps in -- cgit v1.2.3