*To*: grechukbogdan <grechukbogdan at yandex.ru>*Subject*: Re: [isabelle] Automated theory reorganization in Isabelle*From*: Tobias Nipkow <nipkow at in.tum.de>*Date*: Wed, 10 Nov 2010 18:51:58 +0100*Cc*: isabelle-users at cl.cam.ac.uk*In-reply-to*: <301131288614303@web79.yandex.ru>*References*: <301131288614303@web79.yandex.ru>*User-agent*: Thunderbird 2.0.0.24 (Macintosh/20100228)

It turns out that the NICTA group in Sydney have such a tool and I expect they will make it available at some point in the not too far future. Tobias grechukbogdan schrieb: > Dear members of Isabelle group > > Recently, my formalization of convex analysis was added to Isabelle repository. Before doing this, it was important to decide which lemma should go to which theory. For example, I proved some lemmas which do not mention convexity at all, and it was logical to move them up to Euclidean_Space, or, say, Topology_Euclidean_Space. > > While doing this, I noticed, that in absolutely every case the correct theory was the highest possible theory in the hierarchy, namely the highest possible theory where all the notions needed to formulate and prove a lemma was introduced. This suggests that this process could be automated: user adds a (finished) theory to repository, press a button, and all the lemmas automatically “travel” to the correct theory. This would not only simplify the job for theory organization, but, more importantly, significantly simplify the search in Isabelle. If I want to find a lemma about, say, dimension, which does not use any other notion, I can be sure that it is in the same theory, where the notion of dimension is defined. Now the relevant lemma may be inside some unexpected theory (in the Library or even in the archive of formal proof) whose author was just too lazy to move it up. > > The next question is where to put a lemma inside a theory. An obvious answer would be to add new lemmas to the end of a theory. If, however, a theory contains many definitions, this would lead to a collection of many unrelated lemmas at the end of a theory. Let us define a “block” inside the theory to be a part from one definition to another one, and add new lemmas to the end of the “highest” possible block. This would group lemmas inside a theory nicely. Ideally, if you would like to have many small theories, in the Library, you could introduce an informal rule “Let us put just one definition per theory” (clearly, except that related definitions like Sup and Inf should be in one theory) and give it a corresponding name. In this case we would have, say, theory “affine_dimension.thy” containing all the lemmas about affine_dimension which do not involve further concepts. > > Clearly, every rule has exceptions. A user may want to move some lemmas “down in the hierarchy” for some specific reasons. For such a situation, you could introduce, say, some attribute like “Force” to force this lemma(s) to stay in this theory and do not apply an automated theory reorganization for it. But this situation seems to be rather exceptional (never happens for my big theory with hundred of lemmas). In general, the suggested functionality would simplify the theory reorganization now, and make it possible in the future, when the size of the libraries would be so huge that it would be practically impossible to reorganize it by hand. > > Sincerely, > Bogdan

**Follow-Ups**:**Re: [isabelle] Automated theory reorganization in Isabelle***From:*grechukbogdan

**References**:**[isabelle] Automated theory reorganization in Isabelle***From:*grechukbogdan

- Previous by Date: Re: [isabelle] proving a class instantiation.
- Next by Date: [isabelle] rewriting with assumptions from right to left
- Previous by Thread: [isabelle] Automated theory reorganization in Isabelle
- Next by Thread: Re: [isabelle] Automated theory reorganization in Isabelle
- Cl-isabelle-users November 2010 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