(************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* raise (RefinerError (NoSuchHyp id)) in sign let pf_get_hyp_typ id gl = let (_,_,ty) = pf_get_hyp id gl in ty let pf_hyps_types gl = let env = Proofview.Goal.env gl in let sign = Environ.named_context env in List.map (fun (id,_,x) -> (id, x)) sign let pf_last_hyp gl = let hyps = Proofview.Goal.hyps gl in List.hd hyps let pf_nf_concl (gl : [ `LZ ] Proofview.Goal.t) = (** We normalize the conclusion just after *) let gl = Proofview.Goal.assume gl in let concl = Proofview.Goal.concl gl in let sigma = Proofview.Goal.sigma gl in nf_evar sigma concl let pf_whd_betadeltaiota gl t = pf_apply whd_betadeltaiota gl t let pf_get_type_of gl t = pf_apply Retyping.get_type_of gl t let pf_reduce_to_quantified_ind gl t = pf_apply reduce_to_quantified_ind gl t let pf_hnf_constr gl t = pf_apply hnf_constr gl t let pf_hnf_type_of gl t = pf_whd_betadeltaiota gl (pf_get_type_of gl t) let pf_matches gl pat t = pf_apply Constr_matching.matches_conv gl pat t let pf_whd_betadeltaiota gl t = pf_apply whd_betadeltaiota gl t let pf_compute gl t = pf_apply compute gl t let pf_nf_evar gl t = nf_evar (Proofview.Goal.sigma gl) t end