diff options
Diffstat (limited to 'proofs')
| -rw-r--r-- | proofs/logic.ml | 10 | ||||
| -rw-r--r-- | proofs/proof_trees.ml | 3 | ||||
| -rw-r--r-- | proofs/tacmach.ml | 2 |
3 files changed, 8 insertions, 7 deletions
diff --git a/proofs/logic.ml b/proofs/logic.ml index 8579b495b8..71e79a7913 100644 --- a/proofs/logic.ml +++ b/proofs/logic.ml @@ -191,9 +191,9 @@ let split_sign hfrom hto l = let move_after with_dep toleft (left,htfrom,right) hto = let test_dep (hyp,typ) (hyp2,typ2) = if toleft then - occur_var hyp2 typ.body + occur_var hyp2 (body_of_type typ) else - occur_var hyp typ2.body + occur_var hyp (body_of_type typ2) in let rec moverec first middle = function | [] -> error ("No such hypothesis : " ^ (string_of_id hto)) @@ -264,7 +264,7 @@ let prim_refiner r sigma goal = if not (List.for_all (mem_sign (tl_sign (sign_prefix id sign))) (global_vars c1)) - or List.exists (fun t -> occur_var id t.body) + or List.exists (fun t -> occur_var id (body_of_type t)) (vals_of_sign sign) then error @@ -368,7 +368,7 @@ let prim_refiner r sigma goal = (* Faut-il garder la sorte d'origine ou celle du converti ?? *) let env' = change_hyps (sign_before id) env in let tj = execute_type env' sigma ty' in - if is_conv env sigma ty' (snd(lookup_sign id sign)).body then + if is_conv env sigma ty' (body_of_type (snd(lookup_sign id sign))) then let env' = change_hyps (modify_sign id tj) env in [mk_goal info env' cl] else @@ -381,7 +381,7 @@ let prim_refiner r sigma goal = let (s',ty),tlsign = uncons_sign sign in if s = s' then tlsign - else if occur_var s ty.body then + else if occur_var s (body_of_type ty) then error ((string_of_id s) ^ " is used in the hypothesis " ^ (string_of_id s')) else diff --git a/proofs/proof_trees.ml b/proofs/proof_trees.ml index a02ee4faef..a9c65d50c4 100644 --- a/proofs/proof_trees.ml +++ b/proofs/proof_trees.ml @@ -318,7 +318,8 @@ let pr_seq evd = let pc = pr_ctxt info in let pdcl = prlist_with_sep pr_spc - (fun (id,ty) -> hOV 0 [< print_id id; 'sTR" : ";prterm ty.body >]) + (fun (id,ty) -> + hOV 0 [< print_id id; 'sTR" : ";prterm (body_of_type ty) >]) sign in let pcl = prterm_env_at_top (gLOB hyps) cl in diff --git a/proofs/tacmach.ml b/proofs/tacmach.ml index 7209361109..b0880065ad 100644 --- a/proofs/tacmach.ml +++ b/proofs/tacmach.ml @@ -46,7 +46,7 @@ let pf_concl gls = (sig_it gls).evar_concl let pf_untyped_hyps gls = let sign = Environ.var_context (pf_env gls) in - map_sign_typ (fun x -> x.body) sign + map_sign_typ (fun x -> body_of_type x) sign let pf_nth_hyp gls n = nth_sign (pf_untyped_hyps gls) n |
