*To*: M A <tesleft at hotmail.com>, "isabelle-users at cl.cam.ac.uk" <isabelle-users at cl.cam.ac.uk>*Subject*: Re: [isabelle] how to know which rules to apply before apply(auto)?*From*: Lars Noschinski <noschinl at in.tum.de>*Date*: Sun, 26 Oct 2014 11:12:12 +0100*In-reply-to*: <BAY167-W98CD8E5A34362D3F91DB23B6910@phx.gbl>*References*: <BAY167-W98CD8E5A34362D3F91DB23B6910@phx.gbl>*User-agent*: K-9 Mail for Android

When proving something in Isabelle, you should have an idea how you would prove it on paper first: This should give you an idea which properties you need for the proof. Isabelle offers you a few tools to discover useful lemmas: Sledgehammer can search for a proof and gives you a list of lemmas it needed for a proof. Inspecting this list often helps to give the right lemmas to auto (and similar tools), so they can find a proof. Very helpful is also the "find theorems" tool which is found in the query panel: You can search for lemmas containing certain constants or having a specific shape. In particular, you can also search for lemmas which are applicable by rule (using the intro, elim, dest keywords). It is important to keep in mind that lemmas are often formulated a bit differently than in maths, to make them work better with the various proof tools. There is no manual of all rules. Rather, the lemmas available can be either discovered by browsing the theories or (more directly) by the use of find theorems. In many cases, "apply(a,b)" and "apply a apply b" are equivalent, but there are some differences: Some proof methods (e.g. rule) don't return a single proof step but potentially a sequence of multiple proof steps (try applying the "back" command). In the (a,b) case, when the second proof method fails, Isabelle backtracks and tries the next proof step produced by a. Also, if there are chained facts (from using then, from, using or similar) then these facts are available to both proof methods. This is usually not what you want. Best regards, Lars Am 26. Oktober 2014 10:11:41 MEZ, schrieb M A <tesleft at hotmail.com>: >Hi >1. how to know which rules to apply before apply(auto)?2. any manual to >show all the rules that can be applied for each library when import >them?3. is there any difference to apply rules in one statement or >apply one by one? >a. apply(a)apply(b)done >b.apply(a,b)done > >Regards, >Martin

**Follow-Ups**:

**References**:

- Previous by Date: [isabelle] natfloor_div_nat not general enough
- Next by Date: Re: [isabelle] how to know which rules to apply before apply(auto)?
- Previous by Thread: Re: [isabelle] how to know which rules to apply before apply(auto)?
- Next by Thread: Re: [isabelle] how to know which rules to apply before apply(auto)?
- Cl-isabelle-users October 2014 archives indexes sorted by: [ thread ] [ subject ] [ author ] [ date ]
- Cl-isabelle-users list archive Table of Contents
- More information about the Cl-isabelle-users mailing list