aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-04-16 16:33:43 +0200
committerGaëtan Gilbert2020-04-16 16:33:43 +0200
commit0754dfc001218a8124609418e58896ef18d6b6cf (patch)
treecc635dc3916971d0615924367cc314226148d55a /dev
parent35e363f988e941e710b4e24cd638233383275bd7 (diff)
parent38aa25757957e9e9f879509605f06ada5992ca36 (diff)
Merge PR #11999: [proof] Merge `Proof_global` into `Declare`
Reviewed-by: Matafou Ack-by: SkySkimmer Reviewed-by: ppedrot
Diffstat (limited to 'dev')
-rw-r--r--dev/doc/changes.md8
-rw-r--r--dev/top_printers.ml4
2 files changed, 9 insertions, 3 deletions
diff --git a/dev/doc/changes.md b/dev/doc/changes.md
index eac8d86b0a..9498ab8bbb 100644
--- a/dev/doc/changes.md
+++ b/dev/doc/changes.md
@@ -9,6 +9,13 @@
### ML API
+Proof state and constant declaration:
+
+- A large consolidation of the API handling interactive and
+ non-interactive constant has been performed; low-level APIs are no
+ longer available, and the functionality of the `Proof_global` module
+ has been merged into `Declare`.
+
Notations:
- Most operators on numerals have moved to file numTok.ml.
@@ -68,7 +75,6 @@ Proof state:
information related to the constant declaration. Some functions have
been renamed from `start_proof` to `start_lemma`
-
Plugins that require access to the information about currently
opened lemmas can add one of the `![proof]` attributes to their
`mlg` entry, which will refine the type accordingly. See
diff --git a/dev/top_printers.ml b/dev/top_printers.ml
index 7002cbffac..542893ad0b 100644
--- a/dev/top_printers.ml
+++ b/dev/top_printers.ml
@@ -59,8 +59,8 @@ let prrecarg = function
let ppwf_paths x = pp (Rtree.pp_tree prrecarg x)
let get_current_context () =
- try Vernacstate.Proof_global.get_current_context ()
- with Vernacstate.Proof_global.NoCurrentProof ->
+ try Vernacstate.Declare.get_current_context ()
+ with Vernacstate.Declare.NoCurrentProof ->
let env = Global.env() in
Evd.from_env env, env
[@@ocaml.warning "-3"]