diff options
| author | filliatr | 1999-12-01 08:03:06 +0000 |
|---|---|---|
| committer | filliatr | 1999-12-01 08:03:06 +0000 |
| commit | dda7c7bb0b6ea0c2106459d8ae208eff0dfd6738 (patch) | |
| tree | 21bd3b1535e2e9b9cfcfa0f8cab47817a1769b70 /proofs/tacmach.ml | |
| parent | 8b882c1ab5a31eea35eec89f134238dd17b945c2 (diff) | |
- Typing -> Safe_typing
- proofs/Typing_ev -> pretyping/Typing
- env -> sign
- fonctions var_context
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@167 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'proofs/tacmach.ml')
| -rw-r--r-- | proofs/tacmach.ml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/proofs/tacmach.ml b/proofs/tacmach.ml index 8bb6fba486..85f2973c03 100644 --- a/proofs/tacmach.ml +++ b/proofs/tacmach.ml @@ -11,7 +11,7 @@ open Instantiate open Environ open Reduction open Evd -open Typing_ev +open Typing open Tacred open Proof_trees open Logic @@ -45,7 +45,7 @@ let pf_concl gls = (sig_it gls).evar_concl let pf_untyped_hyps gls = let env = pf_env gls in - let (idl,tyl) = get_globals (Environ.context env) in + let (idl,tyl) = Environ.var_context env in (idl, List.map (fun x -> x.body) tyl) let pf_nth_hyp gls n = nth_sign (pf_untyped_hyps gls) n @@ -69,6 +69,14 @@ let hnf_type_of gls = let pf_check_type gls c1 c2 = let casted = mkCast c1 c2 in pf_type_of gls casted +let pf_constr_of_com gls c = + let evc = project gls in + Astterm.constr_of_com evc (sig_it gls).hyps c + +let pf_constr_of_com_sort gls c = + let evc = project gls in + Astterm.constr_of_com_sort evc (sig_it gls).hyps c + let pf_reduction_of_redexp gls re c = reduction_of_redexp re (pf_env gls) (project gls) c @@ -242,7 +250,7 @@ let mutual_cofix lf lar pf = let rename_bound_var_goal gls = let { evar_env = env; evar_concl = cl } as gl = sig_it gls in - let ids = ids_of_sign (get_globals (Environ.context env)) in + let ids = ids_of_sign (Environ.var_context env) in convert_concl (rename_bound_var ids cl) gls |
