diff options
| author | Matthieu Sozeau | 2015-07-08 17:39:03 +0200 |
|---|---|---|
| committer | Matthieu Sozeau | 2015-07-08 17:39:03 +0200 |
| commit | 8ad5f5726283c69a71f7ee0f2d12ce94b707b5a6 (patch) | |
| tree | b239040847fefc05acec444f57e1e65b446aba3a | |
| parent | c71cff0328fa0ee640f35337278f344e0d00698a (diff) | |
Bug 4284: Tentative bugfix for detyping exception.
| -rw-r--r-- | ide/ide_slave.ml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ide/ide_slave.ml b/ide/ide_slave.ml index dc52ea9aad..6618dc7ef9 100644 --- a/ide/ide_slave.ml +++ b/ide/ide_slave.ml @@ -185,12 +185,14 @@ let process_goal sigma g = let ccl = let norm_constr = Reductionops.nf_evar sigma (Goal.V82.concl sigma g) in string_of_ppcmds (pr_goal_concl_style_env env sigma norm_constr) in - let process_hyp d = + let process_hyp d (env,l) = let d = Context.map_named_list_declaration (Reductionops.nf_evar sigma) d in - (string_of_ppcmds (pr_var_list_decl min_env sigma d)) in - let hyps = - List.map process_hyp - (Termops.compact_named_context_reverse (Environ.named_context env)) in + let d' = List.map (fun x -> (x, pi2 d, pi3 d)) (pi1 d) in + (List.fold_right Environ.push_named d' env, + (string_of_ppcmds (pr_var_list_decl env sigma d)) :: l) in + let (_env, hyps) = + Context.fold_named_list_context process_hyp + (Termops.compact_named_context_reverse (Environ.named_context env)) ~init:(min_env,[]) in { Interface.goal_hyp = hyps; Interface.goal_ccl = ccl; Interface.goal_id = id; } let export_pre_goals pgs = |
