aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-04-25 18:36:07 +0200
committerGaëtan Gilbert2020-04-25 18:37:47 +0200
commitcfbf6967182e68d4f8f93e4f0d64f1c1d036720a (patch)
tree5aec41c889cfe79dda87ddb3d2dc6964e4549cee
parent3c0ba7afdf289bc1c50f3458d6c5da685f0b160c (diff)
Doc: extend example for induction a bit
This makes it show the shape of the induction hypothesis in the second goal instead of just saying "subgoal 2 is S n <= S n".
-rw-r--r--doc/sphinx/proof-engine/tactics.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/sphinx/proof-engine/tactics.rst b/doc/sphinx/proof-engine/tactics.rst
index 7da453b7af..8df9b54725 100644
--- a/doc/sphinx/proof-engine/tactics.rst
+++ b/doc/sphinx/proof-engine/tactics.rst
@@ -1875,6 +1875,7 @@ analysis on inductive or co-inductive objects (see :ref:`inductive-definitions`)
Lemma induction_test : forall n:nat, n = n -> n <= n.
intros n H.
induction n.
+ exact (le_n 0).
.. exn:: Not an inductive product.
:undocumented: