<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Isar a Generic Framework for Human-Readable Proof Documents" Stud-
ies in Logic, Grammar and Rhetoric</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>IsarMathLib - a Formalized Mathematics Library for Isabelle/ZF</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Slawomir Kolodynski</string-name>
        </contrib>
      </contrib-group>
      <pub-date>
        <year>2007</year>
      </pub-date>
      <volume>10</volume>
      <issue>23</issue>
      <abstract>
        <p>We present the current state of the IsarMathLib project. IsarMathLib [Kol2005] started as a hobby formalized mathematics project in 2005. Isabelle [Isa1986] was chosen as the theorem proving environment for the project. There were several reasons for that. The most important one was that Isabelle supported the familiar setting of Zermelo-Fraenkel (untyped) set theory encoded in one of its object logics (Isabelle/ZF, [IsaZF1995]). The second reason for the choice was Isabelle's declarative style Isar formal proof language that was "both like and unlike Mizar" [Wen2007]. Lastly, the Isabelle's document preparation system allowed interleaving of formalized mathematical text and informal commentary which was in line with the project's goals. IsarMathLib does not have any speci c goal of formalizing a single result, but aims to be a general-purpose collection of de nitions and facts and a playground for experimenting with di erent ways of creating readable presentations of formalized mathematics. The current release from Nov. 5th 2017 contains 235 de nitions and 3301 theorems and lemmas in 82 theory les. The following Table 1 summarizes the distribution of the material over di erent subprojects and areas of mathematics.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Overview and statistics</title>
      <p>de nitions
85
30
92
1
15
3
9</p>
      <p>IsarMathLib is hosted on the Savannah software forge. All sources including the Metamath translation tool
and isarmathlib.org site generator are available from the SVN repository there.</p>
      <p>The main focus areas in the formalization that are not speci c to subprojects (discussed below) are Algebra and
General and Algebraic Topology. The Topology part starts with the basics: interior, closure, boundary, compact
sets, separation axioms and continuous functions. Properties preserved by continuous functions are studied and
as an application it is shown, for example that quotient topological spaces of compact (or connected) spaces are
Copyright c by the paper's authors. Copying permitted for private and academic purposes.
compact (or connected, resp.). In Algebra the notions and properties of group quotient, conjugate of subgroup,
simple groups, endomorphisms of groups etc. are included. In Algebraic topology a couple of basic properties
are shown, like that the closure of a subgroup is a subgroup, the closure of a normal subgroup is normal and
the property that every locally-compact subgroup of a T0 group is closed. Some statements about separation
properties of topological groups are proven like that if a topology of a group is T0, then it must be T3, and that
the topology in a topological group is always regular.</p>
      <p>Currently IsarMathLib is in maintenance mode. It gets updated for new Isabelle releases, but no new
formalized mathematics has been added to it since July 2013.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Subprojects</title>
      <p>IsarMathLib never had any speci c goal of formalizing a particular result, but over the years as my interests
changed various subprojects have emerged. The following sections describe some of them.
2.1</p>
      <sec id="sec-2-1">
        <title>Construction of real numbers</title>
        <p>The construction formalized in IsarMathLib is relatively less known. It de nes real numbers based only on the
additive group of integer numbers (although ring properties of integers are used in the proofs). The construction
can be summarized as follows: Let (G; +) be an abelian group. We say that a function f : G ! G is an
almost homomorphism if the set ff (m + n) f (m) f (n) : m; n 2 Gg is nite. Almost homomorphisms form
an abelian group under pointwise addition. We say that two almost homomorphisms f; g are almost equal if
the set ff (n) g(n) : n 2 Gg is nite. This de nes an equivalence relation and the corresponding projected
abelian group structure on the set of almost homomorphisms. We can then de ne another operation " " on the
equivalence classes of this relation by setting [f ] [g] = [f g], i.e. as the projection of composition of almost
homomorphisms on the quotient. In this general setting we can show that the classes of almost homomorphisms
with these operations form a ring. If we now specialize setting G to the group of integers we can show the
resulting structure is in fact a complete ordered eld, i.e. a model of real numbers. The construction does not
use any form of the Axiom of Choice in de nitions or proofs (a fact that is always di cult to ascertain without
formalization).</p>
        <p>The formalization was based on a paper by Rob Arthan [Art2004].
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Metamath translation</title>
        <p>Metamath [Meg2007] is a language and proof checker for formalized mathematic created by Norman Megill. At
the time of the translation project the part of Metamath theorem database that was based on ZFC contained over
8000 theorems (it is more than 20000 now and still in active development). The translation was semiautomatic
and done on purely syntactic level. One of Metamath proof checker commands generates a (somewhat) human
readable form of the theorems and proofs. This form was parsed by a tool created for that purpose and converted
to Isabelle proof language Isar. Some manual editing was usually necessary for the proofs to get successfully
veri ed by Isabelle. This way about 1300 assertions and 600 proofs have been translated to Isabelle/Isar (the
di erence coming from the fact that many basic theorems Isabelle/ZF was accepting without an explicit proof
based on it's own ZF libraries added to the simpli er).
2.3</p>
      </sec>
      <sec id="sec-2-3">
        <title>The isarmathlib.org web site</title>
        <p>It is quite common to present formalized mathematics divided into two parts: an informal discussion and a
separate le with source written in a formal proof language. There are two main reasons for that split. The
rst one is that some proof languages are syntacticly very di erent from how standard (not machine-checkable)
proofs are written. This is especially true for imperative proof scripts that consist of a series of commands that
manipulate the "proof state". It is then indeed better to hide the formal part from the view so that fewer people
see its ugliness. This concern does not apply to Isabelle's Isar proof language that was designed to be (possible
to) read by mathematicians familiar only with mathematical vernacular language.</p>
        <p>The second main reason that such division is often done is that formal proofs typically carry and provide
much more information content than their informal counterparts. In my view this is not in itself a problem and
only becomes one when it is assumed that paper is a natural medium for presenting formal proofs. Indeed, in
such case formal proofs, even if written in a well designed language take lots of space and overwhelm the reader
with details obstructing the big picture. However, this problem can be easily overcome if one accepts that the
best medium for presenting formal proofs is not paper, but dynamic web pages. The isarmathlib.org web site is
an attempt to illustrate that idea.</p>
        <p>As an example let's look at a theorem characterizing closure in topological groups, taken from IsarMathLib's
TopologicalGroup ZF.thy theory le. By default only the informal description and the formal statement of the
theorem is presented.</p>
        <p>A reader interested in the proof may click on the proof keyword to see the basic outline of the proof.</p>
        <p>This shows the reader that the equality between two sets that is claimed in the assertion is proven by showing
two inclusions, one of them proven in a separate lemma (whose statement is available by clicking on the reference)
and the other one proven locally by some kind or reasoning. Further details can be obtained by clicking on the
opening brace f:</p>
        <p>This process can continue until the reader reaches her desired level of detail or until entire proof is displayed.</p>
        <p>Technically, the isarmathlib.org web site is generated by a tool (written in Haskell) which parses IsarMathLib
theory les and converts them to HTML. The dynamic aspects of the pages are implemented in about a 100
lines of the Haxe language that compile to about 400 lines of JavaScript.
2.4</p>
      </sec>
      <sec id="sec-2-4">
        <title>Weak forms of AC in topology research</title>
        <p>In the rst half of 2013 IsarMathLib received a large (10 theory les, 155 theorems) contribution of formalized
material from Daniel de la Concepcion Saez. Part of that was original research on equivalence of some purely
topological statements to certain weak versions of the Axiom of Choice.</p>
        <p>Namely, for a given cardinal Q we say that the axiom of Q-choice holds for subsets of K if we can nd a choice
function for every family of subsets of K whose (that family's) cardinality does not exceed Q. If the axiom of
Q-choice holds for subsets of K for every set K we simply say that the axiom of Q-choice holds.</p>
        <p>It is known that some statements in topology aren't just derived from choice axioms, but also equivalent to
them. For example the following are known to be equivalent:</p>
        <p>Every topological space of second cardinality csucc(Q) is separable of cardinality csucc(Q).</p>
        <sec id="sec-2-4-1">
          <title>The axiom of Q-choice holds.</title>
          <p>Here the csucc(Q) is the successor cardinal of Q and we say that T is of second type of cardinal Q if there
exist B such that B is a base for T and B Q and T is separable of cardinal Q if there exist U S T such that
U = S T and U Q.</p>
          <p>In his contribution Daniel de la Concepcion Saez built on existing material on General Topology and formalized
a number of new statements of this kind.</p>
          <p>In 2015 Daniel made the informal description of the results available on arXiv.org [Conc2015]. Unfortunately
due to limitations of the tool generating the HTML presentation of the IsarMathLib theories only a subset of
Daniel's contribution is presented on the isarmathlib.org we site. The complete version can be found in the
Isabelle generated IsarMathLib's proof document [Kol2017].</p>
          <p>Besides the results related to the subject of relation between axiom(s) of choice and topology Daniel de la
Concepcion Saez' contribution concerns a study of notion of properties of topological spaces. Turns out given
a property of a topological space one can de ne a local version of a property in general. This is applied to
local versions of the property of being nite or compact or Hausdor (i.e. locally nite, locally compact, locally
Hausdor ). There are a couple of applications formalized as well, like one-point compacti cation that allows
showing that every locally compact Hausdor space is regular. Also there are some results on the interplay
between hereditability of a property and local properties.</p>
          <p>It is well-known that automorphisms of a topological space form a group. This fact is proven and automorphism
groups for co-cardinal, included-set, and excluded-set topologies are identi ed. For order topologies it is shown
that order isomorphisms are homeomorphisms of the topology induced by the order.
2.4.1</p>
        </sec>
      </sec>
      <sec id="sec-2-5">
        <title>Acknowledgements</title>
        <sec id="sec-2-5-1">
          <title>I would like to thank my wife for proofreading this document.</title>
          <p>"New equivalences to axioms weaker than AC in topology",
[Kol2005] Slawomir Kolodynski http://www.nongnu.org/isarmathlib/</p>
        </sec>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <surname>[Art2004] R. D. Arthan</surname>
          </string-name>
          <article-title>"The Eudoxus Real Numbers"</article-title>
          ,
          <year>2004</year>
          [Conc2015] Daniel de la Concepcion arXiv:
          <volume>1510</volume>
          .
          <fpage>09139</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>[Isa1986] http://isabelle.in.tum.de</mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>