diff options
| author | Guillaume Melquiond | 2015-07-30 10:19:35 +0200 |
|---|---|---|
| committer | Guillaume Melquiond | 2015-07-30 10:19:35 +0200 |
| commit | 5cf7ce6afae0e8e5310755f05a26450f428da04f (patch) | |
| tree | d716bedacdf8234ca07bcf3f3830ec00328fbe56 | |
| parent | 8ccd08f6bc6bcbda01cf65d2b6e7ecd62e4c4972 (diff) | |
Avoid suggesting elim and decompose in the FAQ.
| -rw-r--r-- | doc/faq/FAQ.tex | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/faq/FAQ.tex b/doc/faq/FAQ.tex index 3e14e330b0..c8dd220baf 100644 --- a/doc/faq/FAQ.tex +++ b/doc/faq/FAQ.tex @@ -1012,13 +1012,21 @@ Just use the {\destruct} c as (a,...,b) tactic. \Question{My goal contains some existential hypotheses, how can I use it?} -You can use the tactic {\elim} with you hypotheses as an argument. +As with conjunctive hypotheses, you can use the {\destruct} tactic or +the {\intros} tactic to decompose them into several hypotheses. -\Question{My goal contains some existential hypotheses, how can I use it and decompose my knowledge about this new thing into different hypotheses?} - -\begin{verbatim} -Ltac DecompEx H P := elim H;intro P;intro TO;decompose [and] TO;clear TO;clear H. -\end{verbatim} +\begin{coq_example*} +Require Import Arith. +\end{coq_example*} +\begin{coq_example} +Goal forall x, (exists y, x * y = 1) -> x = 1. +intros x [y H]. +apply mult_is_one in H. +easy. +\end{coq_example} +\begin{coq_example*} +Qed. +\end{coq_example*} \Question{My goal is an equality, how can I swap the left and right hand terms?} |
