diff options
| author | Enrico Tassi | 2019-01-24 14:53:56 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2019-01-24 14:53:56 +0100 |
| commit | 932880e247e963116b576701e76ce18b3450bec1 (patch) | |
| tree | 06474acbffdf391050c49b4bc0ca02b0484ebcd1 /doc/sphinx/proof-engine | |
| parent | b62320f274b221d44ef3fb9c17d1444cd1179ac6 (diff) | |
[doc] warn that (automatic) clears can result in errors
Diffstat (limited to 'doc/sphinx/proof-engine')
| -rw-r--r-- | doc/sphinx/proof-engine/ssreflect-proof-language.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/sphinx/proof-engine/ssreflect-proof-language.rst b/doc/sphinx/proof-engine/ssreflect-proof-language.rst index 7c597d3ffa..483dbd311d 100644 --- a/doc/sphinx/proof-engine/ssreflect-proof-language.rst +++ b/doc/sphinx/proof-engine/ssreflect-proof-language.rst @@ -1445,6 +1445,16 @@ section constant. If tactic is ``move`` or ``case`` and an equation :token:`ident` is given, then clear (step 3) for :token:`d_item` is suppressed (see section :ref:`generation_of_equations_ssr`). +Intro patterns (see section :ref:`introduction_ssr`) +and the ``rewrite`` tactic (see section :ref:`rewriting_ssr`) +let one place a :token:`clear_switch` in the middle of other items +(namely identifiers, views and rewrite rules). This can trigger the +addition of proof context items to the ones being explicitly +cleared, and in turn this can result in clear errors (e.g. if the +context item automatically added occurs in the goal). The +relevant sections describe ways to avoid the unintended clear of +context items. + Matching for apply and exact ```````````````````````````` |
