diff options
| author | Pierre Courtieu | 2020-04-10 22:48:55 +0200 |
|---|---|---|
| committer | Pierre Courtieu | 2020-04-15 16:08:09 +0200 |
| commit | 97b8d4fcdcd67d49acd59389795fc48d9fa8f1d0 (patch) | |
| tree | a6d6cc500b048a2750b337d1cf56bf846a38c8bf /doc | |
| parent | 1ef1286c43d4d099b3b017069ed09c261eb8b6ca (diff) | |
Span menu entry for proof using annotation + doc.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/ProofGeneral.texi | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/ProofGeneral.texi b/doc/ProofGeneral.texi index c2cb3be5..9a3ff12f 100644 --- a/doc/ProofGeneral.texi +++ b/doc/ProofGeneral.texi @@ -4462,6 +4462,39 @@ path (including the -R lib options) (see @samp{@code{coq-load-path}}). You can also use the .dir-locals.el as above to configure this setting on a per project basis. +@node Proof using annotations +@section Proof using annotations + +In order to process files asynchronously and pre-compile files (.vos and +.vok files), it is advised (inside sections) to list the section +variables (and hypothesis) on which each lemma depends on. This must be +done at the beginning of a proof with this syntax: + +@verbatim +Lemma foo: ... . +Proof using x y H1 H2. +@end verbatim + +If the annotation is missing, then at Qed time (i.e. later in the +script) coq complains with a warning and a suggestion of a correct +annotation that should be added. ProofGeneral intercepts this suggestion +and stores relevant information. Then depending on user preference it +can either +@itemize @bullet +@item insert immediately the ``using...'' annotation after ``Proof'', +without replaying the proof. +@item highlight the place where the annotation should be inserted and +allow the user to perform the insertion later either via right click +menu on the proof or by @code{M-x coq-insert-suggested-dependency} (it +won't replay the proof) +@item ask the user each time which of the two solutions above he wants +@item ignore completely the suggestion. +@end itemize + +This can be configured either via Coq menu or by setting variable +@code{coq-accept-proof-using-suggestion} to one of the following values: +@code{'always}, @code{'highlight}, @code{'ask} or @code{'never}. + @node Multiple File Support @section Multiple File Support |
