aboutsummaryrefslogtreecommitdiff
path: root/doc/sphinx/proof-engine
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2018-05-17 18:28:42 +0200
committerEmilio Jesus Gallego Arias2018-05-17 18:28:42 +0200
commit5281317cb558f2b9aa6f854b9c7aeb617beba8e6 (patch)
tree49b5ee04830560ff74a3a27c7add6000e28c0980 /doc/sphinx/proof-engine
parentb0cf6c4042ed8e91c6f7081a6f0c4b83ec9407c2 (diff)
parentc9b4073104385f6079f260c5183bb3a6a989b7d9 (diff)
Merge PR #7451: Introduce an option to allow nested lemma, and turn it off by default.
Diffstat (limited to 'doc/sphinx/proof-engine')
-rw-r--r--doc/sphinx/proof-engine/proof-handling.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/sphinx/proof-engine/proof-handling.rst b/doc/sphinx/proof-engine/proof-handling.rst
index 6d0b277281..eba0db3ff5 100644
--- a/doc/sphinx/proof-engine/proof-handling.rst
+++ b/doc/sphinx/proof-engine/proof-handling.rst
@@ -113,6 +113,8 @@ list of assertion commands is given in :ref:`Assertions`. The command
Aborts the editing of the proof named :token:`ident` (in case you have
nested proofs).
+ .. seealso:: :opt:`Nested Proofs Allowed`
+
.. cmdv:: Abort All
Aborts all current goals.
@@ -561,6 +563,17 @@ Controlling the effect of proof editing commands
has to be used to move the assumptions to the local context.
+.. opt:: Nested Proofs Allowed
+
+ When turned on (it is off by default), this option enables support for nested
+ proofs: a new assertion command can be inserted before the current proof is
+ finished, in which case Coq will temporarily switch to the proof of this
+ *nested lemma*. When the proof of the nested lemma is finished (with :cmd:`Qed`
+ or :cmd:`Defined`), its statement will be made available (as if it had been
+ proved before starting the previous proof) and Coq will switch back to the
+ proof of the previous assertion.
+
+
Controlling memory usage
------------------------