<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Christian, <br><br>I am back from a 3-day trip which prevented me from answering sooner.  <br><br>Many thanks for your contribution! I'll go ahead and integrate your new Isar proofs of existing theorems and your new theorems.  But, same as Larry, I do now quite understand why do you want to split Zorn and avoid certain dependencies.   <br><br>Andrei <br><br>--- On <b>Thu, 2/28/13, Lawrence Paulson <i><lp15@cam.ac.uk></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Lawrence Paulson <lp15@cam.ac.uk><br>Subject: Re: [isabelle-dev] Zorn's lemma, the well-ordering-theorem, and extending well-founded relations to (total) well-orders<br>To: "Christian Sternagel" <c.sternagel@gmail.com><br>Cc: "isabelle-dev"
 <isabelle-dev@mailbroy.informatik.tu-muenchen.de>, "Andrei Popescu" <uuomul@yahoo.com><br>Date: Thursday, February 28, 2013, 4:04 PM<br><br><div class="plainMail">I'm all in favour of refactoring the proofs. That might occasion moving material from one file to another. But I would keep that to a minimum. It isn't unusual to go deep into the past when investigating the origins of some issue.<br><br>Larry<br><br>On 27 Feb 2013, at 12:14, Christian Sternagel <<a ymailto="mailto:c.sternagel@gmail.com" href="/mc/compose?to=c.sternagel@gmail.com">c.sternagel@gmail.com</a>> wrote:<br><br>> Dear Larry<br>> <br>> please note that my proposal is not just about a split of the existing theory Zorn.thy, but also about a modernization of part of it (which I think makes it easier to understand, but I might be wrong... could be that the main purpose of this experiment was just to make me understand the formalized proofs ;)) as well as adding
 new facts (the order-extension principle). So please consider it, even if no split is done.<br>> <br>> Nevertheless. Separating facts that are about the subset relation from the more general version of Zorn's lemma would make sense for at least one purpose: reusing the former in developments that use a different definition of partial order (and that are "incompatible" with the latter).<br>> <br>> As to the point that a split would make examination of past versions more difficult. How do you mean? True, it would be hard to compare a version that comes somewhere after the split with one somewhere before the split (via plain diff), but how often does that happen? Isn't the typical use-case comparison of successive changesets?<br>> <br>> cheers<br>> <br>> chris<br>> <br>> On 02/27/2013 08:49 PM, Lawrence Paulson wrote:<br>>> I don't see the point of splitting Zorn into multiple files. It isn't especially large. Such a
 change really has nothing to do with the question of locating proved results, and it would make it harder to examine past versions.<br>>> Larry<br>>> <br>>> On 27 Feb 2013, at 05:57, Christian Sternagel <<a ymailto="mailto:c.sternagel@gmail.com" href="/mc/compose?to=c.sternagel@gmail.com">c.sternagel@gmail.com</a>> wrote:<br>>> <br>>>> Dear all,<br>>>> <br>>>> in the meanwhile I had a close look at the existing Zorn.thy (mostly to understand the proof myself) and came up with the following proposal:<br>>>> <br>>>> see<br>>>> <br>>>> <a href="https://bitbucket.org/csternagel/zorns-lemma-and-the-well-ordering-theorem/" target="_blank">https://bitbucket.org/csternagel/zorns-lemma-and-the-well-ordering-theorem/</a><br>>>> <br>>>> for the related hg repository (from which you will hopefully merge into the Isabelle repo ;)).<br>>>>
 <br>>>> I propose the following changes to ~~/src/HOL/Cardinals and ~~/src/HOL/Library.<br>>>> <br>>>> 1) Make facts about the ordinal sum available in a separate theory, to avoid too early dependency on the old ~~/src/HOL/Library/Zorn. This is a prerequisite to make the remainder of my proposal work. (see Ordinal_Sum.thy)<br>>>> <br>>>> 2) Split the current Zorn.thy into three separate parts.<br>>>> <br>>>>  - Zorn_Subset.thy<br>>>>    Here we are only concerned with the special case of Zorn's lemma for the subset relation. This constitutes a modernized version of the old Zorn.thy, employing locales for structuring (cf. Andrei's rel locale in ~~/src/HOL/Cardinals; I find this kind of structuring very convenient) and only Isar proofs (some of the old apply scripts were very brittle, e.g., using auto or simp as initial proof steps). Hopefully it is also easier to
 understand than the old scripts (or maybe it is just because I spend so much time with the proofs ;)).<br>>>> <br>>>>  - Zorn.thy<br>>>>    The general version of Zorn's lemma for arbitrary partial orders.<br>>>> <br>>>>  - Well_Ordering_Theorem.thy<br>>>>    The well-ordering-theorem. It seems important enough to give it it's own theory. Moreover, in the previous setup it seemed to be easily overlooked (not even some Isabelle veterans knew whether it was already formalized).<br>>>> <br>>>> 3) Add a formalization of the well-order extension theorem to ~~/src/HOL/Library. (see Well_Order_Extension.thy)<br>>>> <br>>>> In My_Zorn.thy it is illustrated that the new structure is more versatile than the old one. It is, e.g,. very easy to combine it with my alternative definitions of partial orders (po_on from
 AFP/Well_Quasi_Orders/Restricted_Predicates).<br>>>> <br>>>> cheers<br>>>> <br>>>> chris<br>>>> <br>>>> On 02/21/2013 01:58 PM, Christian Sternagel wrote:<br>>>>> Dear all,<br>>>>> <br>>>>> how about adding Andrei's proof (discussed on isbelle-users) to<br>>>>> HOL/Library (or somewhere else)? I polished the latest version (see<br>>>>> attachment).<br>>>>> <br>>>>> cheers<br>>>>> <br>>>>> chris<br>>>>> <br>>>>> PS: In case you are wondering: "Why is he interested in these results?"<br>>>>> Here is my original motivation: In term rewriting, termination tools<br>>>>> employ simplification orders (like the Knuth-Bendix order, the<br>>>>> lexicographic path order, ...) whose definition is often based on a<br>>>>> given
 well-partial-order as precedence. However, termination tools<br>>>>> typically use well-founded partial orders as precedences. Thus we need<br>>>>> to be able to extend a given well-founded (partial order) relation to a<br>>>>> well-partial-order when we want to apply the theoretical results about<br>>>>> simplification orders to proofs that are generated by termination tools.<br>>>>> (Since every total well-order is also a well-partial-order, this is<br>>>>> possible by the above mentioned results.)<br>>>>> <br>>>> <br>>>> _______________________________________________<br>>>> isabelle-dev mailing list<br>>>> <a ymailto="mailto:isabelle-dev@in.tum.de" href="/mc/compose?to=isabelle-dev@in.tum.de">isabelle-dev@in.tum.de</a><br>>>> <a href="https://mailmanbroy.informatik.tu-muenchen.de/mailman/listinfo/isabelle-dev"
 target="_blank">https://mailmanbroy.informatik.tu-muenchen.de/mailman/listinfo/isabelle-dev</a><br>>> <br>> <br><br></div></blockquote></td></tr></table>