<!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 />
    <article-meta>
      <title-group>
        <article-title>Metadata for a wiki of formalized mathematics</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Jesse Alama Center for Artificial Intelligence New University of Lisbon</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2007</year>
      </pub-date>
      <abstract>
        <p>In recent years wikis for formal mathematics have appeared. Formal mathematics presents a number of challenges for the wiki perspective. To enhance the quality of the data in these wikis from the perspective of information architecture, we propose some extensions of existing formal mathematics wikis to more properly handle metadata. Recent years have seen some attention paid to the problem of building wikis for formalized mathematical texts, and there are various proposals and even some live wiki or wiki-like systems for formal mathematics [9, 6]. Formal mathematics (or indeed any formally verified content) presents a number of challenges for the wiki perspective. In this paper we propose some extensions of existing formal mathematics wikis to more properly handle metadata. The aim, ultimately, is to better apply the tools of information architecture [7] for a formal mathematical wiki. We sketch some salient kinds of metadata for formal mathematics and their implementation. Our work is but a modest step toward the grand aim of a semantic web in the domain of mathematics, with a bias toward formal verification.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        The efforts of Kohlhase and his collaborators (e.g., [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]) toward semantic markup of mathematics,
though not about formalized mathematics in the same sense as mizar texts, have helped to show ways of
marking up mathematical texts.
3
      </p>
    </sec>
    <sec id="sec-2">
      <title>Metadata categories</title>
      <p>Some metadata about mizar texts are functions of the text—we can compute the metadata in question—
and thus aren’t suitable for user editing. The length of a mizar article in bytes, for example, or the
underlying XML representation of an article, are properties of the text that cannot (so far as we can see)
be meaningfully modified.</p>
      <p>Other properties of texts, however, can be profitably exposed. The following properties of mizar texts
are candidates for user-editable properties:</p>
      <sec id="sec-2-1">
        <title>Mathematics Subject Classification</title>
        <p>
          Already there has been some informal efforts to annotate parts of the mizar Mathematical Library
by assigning tags to articles from the American Mathematical Society’s widely used Mathematical
Subject Classification (MSC) scheme [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]. These data are used to seed our MSC assignments: we
reuse the previous assignments of MSCs to mizar items (generally whole articles) for our initial
assignment.
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>Title and author information.</title>
      </sec>
      <sec id="sec-2-3">
        <title>Natural language abstract.</title>
        <p>Citations of relevant mathematical sources (e.g., books, papers, encyclopedia entries).</p>
      </sec>
      <sec id="sec-2-4">
        <title>Uncomputed or undetectable relationships between other items.</title>
        <p>The mizar definition of cardinal numbers, for example, depends implicitly on the axiom of choice,
but it is not clear how this can be detected from the dependency graph of the mizar Mathematical
Library (if it is possible at all). It seems better to us to permit users of the mizar wiki to associate
the mizar item that represents the definition of cardinal number with the mizar item that represents
the axiom of choice. Such links could be represented through Atom link elements and served as
See-Also HTTP headers.</p>
      </sec>
      <sec id="sec-2-5">
        <title>Alternates for theorems and definitions</title>
        <p>Thus, a “named” theorem might have different variants or special cases. For example, the Jordan
curve theorem can be understood in complete generality, or in the special case of polygons. A
theorem might be started for arbitrary dimensions, but be of especial interest for dimension 2 or
3 (e.g., Euler’s polyhedron formula in full generality and the three-dimensional case). A theorem
(or axiom, as the case may be) can even have different forms, such as Zermelo’s well-ordering
principle (“every set can be well-ordered”) and a ‘vanilla’ rendering of the axiom of choice (“every
non-empty set of non-empty sets has a choice function”) are equivalent to one another (in a suitable
background theory, of course).</p>
        <p>Some of these metadata categories are already handled outside the context of our wiki. When authors
submit their mizar texts to SUM (the mizar User Group, charged with maintaining mizar and its library),
they supply the text as well as author and title information, an abstract (in English), and citations to
relevant sources (e.g., the source of the “informal” proofs that are formalized in the article). This
information is used to automatically generate a TEX representation of an article, which is then published in the
journal Formalized Mathematics1. The editors of Formalized Mathematics are charged with maintaining
this information. The data is thus static, in the sense that one cannot edit the published title and abstract
of a paper that has already been published in a journal.</p>
        <p>A wiki that permits editing of metadata that already exists under the aegis of Formalized Mathematics
is not intended to compete with that journal. The SUM and its efforts to professionalize the writing of
formal mathematical texts (in mizar) complement the project proposed here. We use the the mass of
metadata that has been accumulated throughout the construction of the MML to seed our wiki with an
initial pool of trustworthy data. Our aim is to make the sea of (mizar-)formalized mathematical knowledge
discoverable and improvable. Where possible, we provide links to the authoritative, original sources for
mizar formalizations.</p>
        <p>Metadata support in the mizar language itself is (almost) entirely lacking. One cannot use the
language itself to indicate, for example, the author of a mizar text. The language supports only one
metadatarelated construction, the section keyword, which takes no arguments and it intended to delimit different
parts of an article.</p>
        <p>In the context of a live wiki, however, curation-by-committee is not a viable option for eliciting and
maintaining metadata. One must go beyond the mizar language and provide a means of attaching or
editing metadata. Since one cannot directly add this information to mizar texts, in the context of a web
interface, one must enter the information in a form.</p>
        <p>The absence of metadata functionality from the mizar language (apart from the aforementioned
section keyword) is, to some extent, an advantage, because it gives a clear separation of
responsibility of the validity of the text from information about the text. Our wiki process for registering and
maintaining metadata can complement the standard process for eliciting this data. With each new
release of the mizar Mathematical Library, we receive another batch of “canonical” or official metadata for
updated contents of the library.
4</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Serving metadata</title>
      <p>
        We serve metadata in two ways: in the HTTP headers, and in the body of our article representations. We
adhere to RESTful principles [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], promoting the transparency of the HTTP protocol with the ultimate
aim of making our (meta)data accessible to humans and machines (e.g., search engines) alike.
      </p>
      <p>
        We use the Atom Publishing Protocol and its extensible notion of link [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] by serving metadata in the
HTTP response headers. Our aim coheres with the goals of the Linked Open Data initiative2. Given a
request for, say, the 92nd theorem of the article POLYFORM, we can return the following headers:
# Request
GET / item / polyform / theorem /92 HTTP /1.1
# Response
HTTP /1.1 200 OK
Content - Type : text / html
Link : &lt; http :// wiki . example . org / item / polyform / theorem /92/ text &gt;;
rel =" alternate ";
type =" text / plain "
Link : &lt; http :// wiki . example . org / authors /5 &gt;;
      </p>
      <p>rel =" http :// wiki . example . org / rels / author "
...</p>
      <p>1See http://fm.mizar.org.</p>
      <p>
        2See http://linkeddata.org/
In this example, in addition to standard HTTP headers, we use the proposed Link HTTP header [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] to
refer to the author of the article (if it is known). The representation in the ... would likewise contain a
link in its body to the author and the other metadata.
      </p>
      <p>
        One challenge in the context of a wiki is to provide keep URIs “cool”, that is, essentially permanent
objects. The slogan here is “Cool URIs don’t change” [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Metadata can help us to keep URIs cool while
still admitting that some of the concepts, definitions, and theorems to which the URIs refer are evolving.
5
      </p>
    </sec>
    <sec id="sec-4">
      <title>Outlook</title>
      <p>Richer representations of formalized mathematical data and its metadata are available. Thus, one could
serve RDFa or employ a suitable microdata framework. Richer representations of the mizar data itself
as RDFa, or a documented, well-structured URI namespace for items, would be valuable. In the face of
capable clients, one could even imagine performing non-trivial content negotiation; today, mizar text are
served only as plain text or as (relatively thinly annotated) HTML.</p>
      <p>Finally, it should be clear that although we focus on mizar, few parts of the project that directly
depend on the mizar language, its tool set, or its library. The wiki principles developed here would apply
to any other system as well. Indeed, a formal wiki for other systems, suitably equipped with the kind of
metadata, would be a step toward setting up rich correspondences between various formal libraries and
their web representations.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Jesse</given-names>
            <surname>Alama</surname>
          </string-name>
          .
          <article-title>mizar-items: Computing fine-grained dependencies in the mizar mathematical library</article-title>
          . To appear
          <source>in CICM 2011: Conference on Intelligent Computer Mathematics.</source>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Jesse</given-names>
            <surname>Alama</surname>
          </string-name>
          , Kasper Brink, Lionel Mamane, and
          <string-name>
            <given-names>Josef</given-names>
            <surname>Urban</surname>
          </string-name>
          .
          <article-title>Large formal wikis: Issues and solutions</article-title>
          . submitted,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Subbu</given-names>
            <surname>Allamraju. RESTful Web Services Cookbook. O'Reilly</surname>
          </string-name>
          , Sebastopol, California,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <source>[4] American Mathematical Society. Mathematics Subject Classification</source>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>D.</given-names>
            <surname>Connolly</surname>
          </string-name>
          and
          <string-name>
            <surname>I. Hickson.</surname>
          </string-name>
          <article-title>An entity header for linked resources</article-title>
          .
          <source>Technical report</source>
          , Internet Engineering Task Force,
          <year>April 1999</year>
          . http://www.w3.org/Protocols/9707-link-header.html.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Christoph</given-names>
            <surname>Lange</surname>
          </string-name>
          and
          <string-name>
            <given-names>Michael</given-names>
            <surname>Kohlhase</surname>
          </string-name>
          .
          <article-title>A semantic wiki for mathematical knowledge management</article-title>
          .
          <source>In Jo¨rg Rech</source>
          , Bjo¨rn Decker, and Eric Ras, editors,
          <source>Emerging Technologies for Semantic Work Environments: Techniques, Methods, and Applications</source>
          , pages
          <fpage>47</fpage>
          -
          <lpage>68</lpage>
          . IGI Global,
          <year>April 2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Peter</given-names>
            <surname>Morville</surname>
          </string-name>
          and
          <string-name>
            <given-names>Louis</given-names>
            <surname>Rosenfeld</surname>
          </string-name>
          .
          <source>Information Architecture for the World Wide Web. O'Reilly</source>
          , Sebastopol, California,
          <volume>3</volume>
          <fpage>edition</fpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <article-title>[8] The Atom publishing protocol</article-title>
          . Available online at http://tools.ietf.org/html/rfc5023,
          <year>October 2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Josef</given-names>
            <surname>Urban</surname>
          </string-name>
          , Jesse Alama, Piotr Rudnicki, and
          <string-name>
            <given-names>Herman</given-names>
            <surname>Geuvers</surname>
          </string-name>
          .
          <article-title>A wiki for mizar: Motivation, considerations, and initial prototype</article-title>
          . In Serge Autexier, Jacques Calmet, David Delahaye,
          <string-name>
            <given-names>Patrick D. F.</given-names>
            <surname>Ion</surname>
          </string-name>
          , Laurence Rideau, Renaud Rioboo, and Alan P. Sexton, editors,
          <source>Intelligent Computer Mathematics</source>
          , 10th International Conference,
          <string-name>
            <surname>AISC</surname>
          </string-name>
          <year>2010</year>
          , 17th Symposium,
          <year>Calculemus 2010</year>
          ,
          <article-title>and</article-title>
          9th International Conference,
          <source>MKM 2010</source>
          , Paris, France, July 5-
          <issue>10</issue>
          ,
          <year>2010</year>
          . Proceedings, volume
          <volume>6167</volume>
          of Lecture Notes in Computer Science, pages
          <fpage>455</fpage>
          -
          <lpage>469</lpage>
          . Springer,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>