diff options
| author | herbelin | 1999-11-25 01:13:00 +0000 |
|---|---|---|
| committer | herbelin | 1999-11-25 01:13:00 +0000 |
| commit | e5a040666d1dc58995d7a08e8fe18de90abc7a2d (patch) | |
| tree | 4f36c2751f76b041f18956f405b13cb917a4e7b9 /proofs | |
| parent | be800056397163ec9c475e6aee44925c97f86f58 (diff) | |
Backtrack sur modif Evd.evd_concl
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@139 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'proofs')
| -rw-r--r-- | proofs/logic.ml | 12 | ||||
| -rw-r--r-- | proofs/proof_trees.ml | 3 |
2 files changed, 7 insertions, 8 deletions
diff --git a/proofs/logic.ml b/proofs/logic.ml index 11f978d4dc..b0823c1b2d 100644 --- a/proofs/logic.ml +++ b/proofs/logic.ml @@ -221,7 +221,7 @@ let prim_refiner r sigma goal = match r with | { name = Intro; newids = [id] } -> if mem_sign sign id then error "New variable is already declared"; - (match strip_outer_cast cl.body with + (match strip_outer_cast cl with | DOP2(Prod,c1,b) -> if occur_meta c1 then error_use_instantiate(); let a = mk_assumption env sigma c1 @@ -232,7 +232,7 @@ let prim_refiner r sigma goal = | { name = Intro_after; newids = [id]; hypspecs = [whereid] } -> if mem_sign sign id then error "New variable is already declared"; - (match strip_outer_cast cl.body with + (match strip_outer_cast cl with | DOP2(Prod,c1,b) -> if occur_meta c1 then error_use_instantiate(); if not (List.for_all @@ -248,7 +248,7 @@ let prim_refiner r sigma goal = | _ -> error "Introduction needs a product") | { name = Intro_replacing; newids = []; hypspecs = [id] } -> - (match strip_outer_cast cl.body with + (match strip_outer_cast cl with | DOP2(Prod,c1,b) -> if occur_meta c1 then error_use_instantiate(); if not (List.for_all @@ -280,10 +280,10 @@ let prim_refiner r sigma goal = check_ind (k-1) b | _ -> error "not enough products" in - let _ = check_ind n cl.body in + let _ = check_ind n cl in if mem_sign sign f then error "name already used in the environment"; - let a = mk_assumption env sigma cl.body in - let sg = mk_goal info (push_var (f,a) env) cl.body in + let a = mk_assumption env sigma cl in + let sg = mk_goal info (push_var (f,a) env) cl in [sg] | { name = Fix; hypspecs = []; terms = lar; newids = lf; params = ln } -> diff --git a/proofs/proof_trees.ml b/proofs/proof_trees.ml index a119354a01..3523f42182 100644 --- a/proofs/proof_trees.ml +++ b/proofs/proof_trees.ml @@ -96,8 +96,7 @@ let lc_toList lc = Intset.elements lc (* Functions on goals *) let mk_goal ctxt env cl = - let ty = execute_type env Evd.empty cl in - { evar_env = env; evar_concl = ty; evar_body = Evar_empty; evar_info = ctxt } + { evar_env = env; evar_concl = cl; evar_body = Evar_empty; evar_info = ctxt } (* Functions on the information associated with existential variables *) |
