Skip to content

Commit f1ad701

Browse files
committed
proof-stat: add menu item for proof-check-proofs
1 parent fe28145 commit f1ad701

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

doc/ProofGeneral.texi

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,12 +2261,13 @@ the proof assistant to automatically process other files.
22612261
@section Proof status statistic
22622262
@cindex Proof status statistic
22632263

2264-
The command @code{proof-check-proofs} generates the proof status of
2265-
all opaque proofs in the current buffer, i.e., it generates an
2266-
overview that shows which of the opaque proofs in the current buffer
2267-
are currently valid and which are failing. When used interactively,
2268-
the proof status is shown in the buffer @code{*proof-check-report*}
2269-
(as long as @code{proof-check-report-buffer} is not changed).
2264+
The command @code{proof-check-proofs} (menu @code{Proof-General ->
2265+
Check Opaque Proofs}) generates the proof status of all opaque proofs
2266+
in the current buffer, i.e., it generates an overview that shows which
2267+
of the opaque proofs in the current buffer are currently valid and
2268+
which are failing. When used interactively, the proof status is shown
2269+
in the buffer @code{*proof-check-report*} (as long as
2270+
@code{proof-check-report-buffer} is not changed).
22702271

22712272
Currently @code{proof-check-proofs} does only work for Coq.
22722273

@@ -2314,7 +2315,7 @@ omit-proofs feature.
23142315
The interactive use of this commands is limited because it only works
23152316
on the current buffer. However, this commands can also be run in batch
23162317
mode in a script, for instance in a continuous integration
2317-
environment. To run this command on a buffer in batch mode, use
2318+
environment. To run this command on a file in batch mode, use
23182319

23192320
@verbatim
23202321
emacs -batch -l <your-pg-dir>/generic/proof-site.el <file> \
@@ -5252,15 +5253,16 @@ non-opaque, even if they have proof-local effect only, such as
52525253
@node Proof status statistic for Coq
52535254
@section Proof status statistic for Coq
52545255

5255-
The command @code{proof-check-proofs} generates the proof status of
5256-
all opaque proofs in the current buffer, i.e., it generates an
5257-
overview that shows which of the opaque proofs in the current buffer
5258-
are currently valid and which are failing. This command is useful for
5259-
a development process where invalid proofs are permitted and vos
5260-
compilation (@xref{Quick and inconsistent compilation}) and the omit
5261-
proofs feature (@xref{Omitting proofs for speed}) are used to work at
5262-
the most interesting or challenging point instead of on the first
5263-
invalid proof. See @xref{Proof status statistic} for more details.
5256+
The command @code{proof-check-proofs} (menu @code{Proof-General ->
5257+
Check Opaque Proofs}) generates the proof status of all opaque proofs
5258+
in the current buffer, i.e., it generates an overview that shows which
5259+
of the opaque proofs in the current buffer are currently valid and
5260+
which are failing. This command is useful for a development process
5261+
where invalid proofs are permitted and vos compilation (@xref{Quick
5262+
and inconsistent compilation}) and the omit proofs feature
5263+
(@xref{Omitting proofs for speed}) are used to work at the most
5264+
interesting or challenging point instead of on the first invalid
5265+
proof. See @xref{Proof status statistic} for more details.
52645266

52655267

52665268
@node Editing multiple proofs

generic/proof-menu.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,11 @@ without adjusting window layout."
702702
:active pg-next-error-regexp]
703703
["Scripting Active" proof-toggle-active-scripting
704704
:style toggle
705-
:selected (eq proof-script-buffer (current-buffer))])
705+
:selected (eq proof-script-buffer (current-buffer))]
706+
["Check Opaque Proofs" proof-check-proofs
707+
:active (and proof-omit-proofs-configured
708+
proof-get-proof-info-fn
709+
proof-retract-command-fn)])
706710
"The Proof General generic menu for scripting buffers.")
707711

708712

0 commit comments

Comments
 (0)