aboutsummaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorherbelin2011-10-05 15:52:09 +0000
committerherbelin2011-10-05 15:52:09 +0000
commit67f5aa82fc2a1fca35e1f8ba0204f9417b148757 (patch)
tree5bee263dfdf5ec0aac5b859f41c88d8248d8ebc9 /library
parent685ae9ecd6635ab4e44368f8eb2c7415e6de42f6 (diff)
Fixing Implicit Tactic mode damaged by commit r14496 (see also bug #2612).
There were some confusion on the role of clear_proofs which was applicable only to the global named_context. Hopefully made things clearer. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14517 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library')
-rw-r--r--library/decls.ml3
-rw-r--r--library/decls.mli6
2 files changed, 7 insertions, 2 deletions
diff --git a/library/decls.ml b/library/decls.ml
index be68ce8de8..74a5f7ef1d 100644
--- a/library/decls.ml
+++ b/library/decls.ml
@@ -55,7 +55,8 @@ let constant_kind kn = Cmap.find kn !csttab
(** Miscellaneous functions. *)
-let clear_proofs sign =
+let initialize_named_context_for_proof () =
+ let sign = Global.named_context () in
List.fold_right
(fun (id,c,t as d) signv ->
let d = if variable_opacity id then (id,None,t) else d in
diff --git a/library/decls.mli b/library/decls.mli
index 6de8bd4e6f..73f1745b51 100644
--- a/library/decls.mli
+++ b/library/decls.mli
@@ -33,7 +33,11 @@ val variable_exists : variable -> bool
val add_constant_kind : constant -> logical_kind -> unit
val constant_kind : constant -> logical_kind
+(* Prepare global named context for proof session: remove proofs of
+ opaque section definitions and remove vm-compiled code *)
+
+val initialize_named_context_for_proof : unit -> Environ.named_context_val
+
(** Miscellaneous functions *)
val last_section_hyps : dir_path -> identifier list
-val clear_proofs : named_context -> Environ.named_context_val