Skip to content

Commit dba02f1

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

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> \
@@ -5248,15 +5249,16 @@ non-opaque, even if they have proof-local effect only, such as
52485249
@node Proof status statistic for Coq
52495250
@section Proof status statistic for Coq
52505251

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

52615263

52625264
@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)