diff options
| author | narboux | 2004-04-01 15:43:41 +0000 |
|---|---|---|
| committer | narboux | 2004-04-01 15:43:41 +0000 |
| commit | d5442f9a05c87295a3bb46409a228ba73c11da8f (patch) | |
| tree | 4037b2c17116344ce312eec4efecb86b4879862f | |
| parent | 24d81043974e82b2ba117614aa0c35d28f63ad62 (diff) | |
*** empty log message ***
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8525 85f007b7-540e-0410-9357-904b9bb8a0f7
| -rw-r--r-- | doc/newfaq/main.tex | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/doc/newfaq/main.tex b/doc/newfaq/main.tex index 3141888f0e..c1476d40cf 100644 --- a/doc/newfaq/main.tex +++ b/doc/newfaq/main.tex @@ -515,12 +515,38 @@ Qed. \end{coq_example} +\Question[autowith]{My goal is solvable by some lemma within a set of lemmas and I don't want to remember which one, how can I prove it ?} +You can use a what is called a ``base of Hints''. + +\begin{coq_example} +Require Import ZArith. +Require Ring. +Open Local Scope Z_scope. + +Lemma toto1 : 1+1 = 2. +ring. +Qed. + +Lemma toto2 : 2+2 = 4. +ring. +Qed. + +Lemma toto3 : 2+1 = 3. +ring. +Qed. + +Hint Resolve toto1 toto2 toto3 : mybase. + +Goal 2+(1+1)=4. +auto with mybase. +Qed. +\end{coq_example} -\Question[autowith]{My goal is solvable by some lemma within a set of lemmas and I don't want to remember which one, how can I prove it ?} -Use a base of Hints. +\Question[savedqed]{What is the difference between saved qed and defined ?} +\Question[opaquetrans]{What is the difference between opaque and transparent ?} \Question[assumption]{My goal is one of the hypothesis, how can I prove it ?} |
