diff options
| author | Erik Martin-Dorel | 2021-04-21 00:23:00 +0200 |
|---|---|---|
| committer | Erik Martin-Dorel | 2021-04-21 00:29:10 +0200 |
| commit | 82311da10ee3dfa6f29ddfb9225f9f05c29dca31 (patch) | |
| tree | fc3e32684f7bb67201b7696d6ff26f4e59b916db /doc | |
| parent | 560c6a27d0f082c596284d133fc8af4bc89a6f15 (diff) | |
Document the "Proof using" requirement for 'proof-omit-proofs-option
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/ProofGeneral.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/ProofGeneral.texi b/doc/ProofGeneral.texi index 43f3ccb0..bbd2515d 100644 --- a/doc/ProofGeneral.texi +++ b/doc/ProofGeneral.texi @@ -5225,6 +5225,16 @@ If a nested proof is detected while searching for opaque proofs to omit, a warning is displayed and the complete remainder of the asserted region is sent unmodified to Coq. +If the proof script relies on sections, it is highly recommended to use +a @code{Proof using} annotation for all lemmas contained in a Section, +otherwise @code{Coq} will compute a wrong type for these lemmas when +this omitting-proofs feature is enabled. + +To automate this, we recall that ProofGeneral provides a dedicated +feature to generate these @code{Proof using} annotations (a defective +form being e.g. @code{Proof using Type} if no section hypothesis is +used), see the menu command @code{Coq > "Proof using" mode} and +@ref{Proof using annotations} for details. @node Editing multiple proofs @section Editing multiple proofs |
