<!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>Position paper: A real Semantic Web for mathematics deserves a real semantics</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>P. Corbineau</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>H. Geuvers</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>C. Kaliszyk</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>J. McKinna</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>F. Wiedijk</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>ICIS, Radboud University Nijmegen</institution>
          ,
          <country country="NL">the Netherlands</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Mathematical documents, and their instrumentation by computers, have rich structure at the layers of presentation, metadata and semantics, as objects in a system for formal mathematical logic. Semantic Web tools [2] support the rst two of these, with little, if any, contribution to the third, while Proof Assistants [17] instrument the third layer, typically with bespoke approaches to the rst two. Our position is that a web of mathematical documents, de nitions and proofs should be given a fully- edged semantics in terms of the third layer. We propose a \MathWiki" to harness Web 2.0 tools and techniques to the rich semantics furnished by contemporary Proof Assistants.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Background and state of the art</title>
      <p>We can identify four worlds of mathematical discourse available on the Web:</p>
      <p>We focus in this paper on the fourth world, as we expect it to be least familiar
to readers of the paper, but more importantly because we believe that proof
assistants o er a real, that is to say, formal mathematical semantics to (a
Semantic Web of) mathematical documents. Our aim, and that of our partners in
a European consortium, is to integrate all four worlds into a coherent whole, and
develop a \MathWiki", a system for the collaborative authoring and
communication of computer mathematics to the world.</p>
      <p>
        Proof Assistants The basic idea of using computer programs to check
mathematical proofs goes back to the archaeology of AI research. The 1960s saw
the emergence of two basic paradigms: de Bruijn's Automath [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ], and
Milner's LCF. Both provide highly generic foundational approaches to representing
mathematics: as a series of checked objects (de nitions etc.) extending a body
of knowledge from an initial axiomatisation (e.g. of arithmetic or set theory). In
LCF the objects, including proofs of their properties, are obtained by running
programs to produce values of an abstract datatype thm, that is to say they are
ephemeral phenomena associated to the persistent program texts which give rise
to them. In Automath, the objects | -terms in a dependently-typed language
uniformly representing de nitions and proofs | are themselves persistent and
in principle may be independently rechecked, or otherwise processed.
      </p>
      <p>
        Modern systems have elaborated these ideas with great sophistication,
extensive libraries, and highly non-trivial formalisations:
{ The HOL Light system [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] is an LCF-style checker for higher-order logic;
      </p>
      <p>
        Harrison recently announced a proof of the analytic Prime Number Theorem;
{ The Isabelle system [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] is also LCF-like, but adds a generic twist in terms
of an Automath-like theory of representation: it is a logical framework, that
is, it is generic over the underlying choice of logic and axiomatisation. It is
available with libraries for both higher-order logic, and for ZF set theory. It
has been used to formalise Godel's completeness theorem, the consistency of
the axiom of choice, the Prime Number Theorem, etc.;
{ The Coq system [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] is type-theoretic, within which objects and proofs are
-terms in a calculus of inductive and coinductive de nitions; a notable
development is Gonthier's formalisation of the Four Colour Theorem [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ];
{ The Mizar system [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], a proof checker for a strong version of set theory,
emphasises developing a formalised library of standard, classical mathematics.
      </p>
      <p>The decisive semantic advantage of all these systems over existing approaches
to mathematical documents comes from the infrastructure of a formalised
metalevel: names and binding to support substitutive de nitions, de nitional equality,
hypothetical and general reasoning. The Proof Assistant and Semantic Web
communities seem to di er over what constitutes a (mathematical) de nition:
{ in the Semantic Web a de nition is a reference to a (canonical) textual
description of the de ned object; while
{ for the proof assistant community a de nition is a binding with a dynamic
semantics given by a substitutive notion of de nitional equality, namely the
replacement of the named object (de niendum) by a body (de niens).
2</p>
    </sec>
    <sec id="sec-2">
      <title>A project proposal: MathWiki</title>
      <p>The MathWiki project proposes to combine a Wikipedia-like encyclopedia of
mathematical notions and results, with a web-based integrated formal
environment for collaboratively working with multiple proof assistants. Wikipedia has
shown that it is possible to create large bodies of coherent knowledge, by
providing lightweight (web-based) functionality to add material. In the MathWiki
project we similarly want to provide lightweight web-based functionality to
contribute to a repository of formalised mathematics. This should provide both a
means to do large joint formalisations in a distributed way, but also the means
to search and retrieve material, both at a low level, in terms of proof
assistantspeci c text, and at the high level of standard mathematical documents.</p>
      <p>The MathWiki repository will include knowledge about mathematical
concepts by the means of high level concept description pages. Those pages will
include links to pages containing the ner details, which are, in the end, checked
proof assistant code. We plan to directly incorporate into our project a
certain number of state-of-the-art proof assistants. But the MathWiki itself will be
open to other systems and it should be easy to incorporate them. The repository
will contain all the large libraries of formal mathematics that already exist for
the included proof assistants, like the Coq user contributions (contribs) and the
Archive of Formal Proofs for Isabelle, in order to facilitate access to them.</p>
      <p>
        We have created a prototype [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] that only supports Coq (without any
semantic aspects yet), which suggests the project is technically feasible. In Figure 1
we sketch how the eventual system might look (including quoted material from
Wikipedia for illustrative purposes).
      </p>
      <p>Our rst claim is that a mathematical semantic web where the
mathematical notions refer to objects with a real formal semantics in a proof assistant
will be pro table for users of mathematics because it improves preciseness and
correctness. Our planned MathWiki system should substantiate that claim and
open up to a wider community the rich collections of knowledge stored in the
repositories of proof assistants and to facilitate the extension and editing of these
repositories by outside users.</p>
      <p>Our second claim is that the \medium" of computer checkable formal proofs
will become a valuable asset in ICT, notably in veri cation and correctness of
software and systems. At this moment there is not one type of medium for
computer checkable formal proofs: basically each proof assistant has its own
\media type". We think that in the future these media types will more and
more converge and become exchangeable. A real mathematical semantic web is
the platform for studying, comparing and exchanging these media types.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Why now: QED 15 years later?</title>
      <p>The motivation for initiating this project precisely now is the convergence of
several decisive factors. One of them is the success of the Wiki approach in
general, and mostly the success of its application to the encyclopedic endeavour.
This example shows that the collaborative approach is a good way of developing
bodies of shared knowledge.</p>
      <p>Another key factor is the availability of mature proof assistants with solid
reputations and a certain quantity of formal developments. These proof
assistants are way past toy examples and now allow outstanding results; they can
handle large developments spanning hundreds of les.</p>
      <p>Semantic web techniques now available provide a relevant presentation layer
to the user. Although formal proofs are highly structured and hence easy to
index, it is this extremely precise structure that can leave the user lost in the
details, or unable to search or browse e ectively.</p>
      <p>The last key element we wish to stress is the availability of Web 2.0
technologies, which support the creation of web-based complex user interfaces. These
technologies are important for our project since interactive proof development
is by far the most popular way of using proof assistants.</p>
      <p>
        Already in 1993 the authors of the QED Manifesto [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] had this vision: to let
the whole world participate in creating a shared repository of formalised
mathematics. We can speculate as to why this was an idea before its time: inevitably,
user communities around each system felt keenly the supposed strengths of their
own approach, and the perceived de ciencies of others'. The relative maturity
of systems and their libraries has greatly mitigated this state of a airs.
      </p>
      <p>
        The di culty of formal proof also restrained the ambition of proof projects
attempted, but with eyes on a bigger prize, collective development has become
common practice in the formal proof community. This is how the biggest
achievements were possible. Mizar and its MML are the primary example of the success
of collective development though not very focused. More focused examples are
the CompCert project in which a whole team participated in the veri cation of
a C compiler and the Nijmegen repository of formalised mathematics (CoRN)
[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. The ongoing Flyspeck project [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] is another instance.
      </p>
      <p>Proof assistants proposed to be part of the MathWiki project in the initial
phase are Coq, Isabelle and Mizar. They cover three di erent foundational
theories (Type Theory, Higher-Order Logic and Set Theory), and embrace classical
as well as intuitionistic mathematics. They also have three di erent interaction
modes: de Bruijn style, LCF-style and batch-mode interaction. Thus the three of
them provide an excellent coverage of the variety among existing proof assistants.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>The power of Wiki technology is to make building a new encyclopedia of
mathematics a truly global democratic enterprise. Contemporary proof assistant
technology has reached the point where we can imagine such a richly structured
web of mathematics with a fully- edged semantics in a formal system. A real
Semantic Web for mathematics deserves a real semantics.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>R.</given-names>
            <surname>Boyer</surname>
          </string-name>
          et al.
          <article-title>The QED Manifesto</article-title>
          . In Bundy, ed.,
          <source>Automated Deduction { CADE 12, LNAI 814</source>
          . Springer,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>S.</given-names>
            <surname>Buswell</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Caprotti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.P.</given-names>
            <surname>Carlisle</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.C.</given-names>
            <surname>Dewar</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          <article-title>Gaetano, and</article-title>
          <string-name>
            <given-names>M.</given-names>
            <surname>Kohlhase</surname>
          </string-name>
          .
          <source>The OpenMath Standard, version 2.0</source>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Coq</given-names>
            <surname>Team</surname>
          </string-name>
          .
          <source>The Coq Proof Assistant Reference Manual V8.1. INRIA</source>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>P.</given-names>
            <surname>Corbineau</surname>
          </string-name>
          and
          <string-name>
            <given-names>C.</given-names>
            <surname>Kaliszyk</surname>
          </string-name>
          .
          <article-title>Cooperative repositories for formal proofs</article-title>
          . In Kauers et al. eds., Calculemus/MKM, LNCS 4573. Springer,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5. L.
          <string-name>
            <surname>Cruz-Filipe</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Geuvers</surname>
            , and
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Wiedijk</surname>
          </string-name>
          .
          <article-title>C-CoRN, the constructive Coq repository at Nijmegen</article-title>
          . In Asperti et al. eds., MKM, LNCS 3119. Springer,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>G.</given-names>
            <surname>Gonthier</surname>
          </string-name>
          .
          <article-title>A computer-checked proof of the Four Colour Theorem</article-title>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>T. C.</given-names>
            <surname>Hales</surname>
          </string-name>
          .
          <article-title>Introduction to the yspeck project</article-title>
          . In Coquand et al. eds., Mathematics, Algorithms, Proofs,
          <source>Dagstuhl Proceedings 05021. IBFI, Germany</source>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>J.</given-names>
            <surname>Harrison</surname>
          </string-name>
          .
          <article-title>HOL light: A tutorial introduction</article-title>
          . In Srivas and Camilleri, eds.,
          <source>Proceedings of FMCAD'96, LNCS 1166</source>
          . Springer,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>M.</given-names>
            <surname>Kohlhase. OMDoc - An Open</surname>
          </string-name>
          Markup
          <source>Format for Mathematical Documents [version 1</source>
          .2], LNCS 4180. Springer,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <given-names>A.P.</given-names>
            <surname>Krowne</surname>
          </string-name>
          .
          <article-title>An architecture for collaborative math and science digital libraries</article-title>
          .
          <source>Master's thesis</source>
          , Virginia Tech Dept. of Computer Science, Blacksburg,
          <string-name>
            <surname>VA</surname>
          </string-name>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>C.</surname>
          </string-name>
          <article-title>Lange</article-title>
          .
          <article-title>SWiM { a semantic wiki for mathematical knowledge management</article-title>
          . In Bechhofer et al. eds., ESWC, LNCS 5021. Springer,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>C. Lange</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>McLaughlin</surname>
            , and
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Rabe</surname>
          </string-name>
          .
          <article-title>Flyspeck in a semantic wiki</article-title>
          .
          <source>Unpublished.</source>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <given-names>M.</given-names>
            <surname>Muzalewski</surname>
          </string-name>
          .
          <article-title>An Outline of PC Mizar</article-title>
          .
          <source>Fondation Philippe le Hodey</source>
          ,
          <year>1993</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <given-names>R.P.</given-names>
            <surname>Nederpelt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.H.</given-names>
            <surname>Geuvers</surname>
          </string-name>
          , and R.C. de Vrijer.
          <source>Selected Papers on Automath, Studies in Logic and the Foundations of Mathematics 133. Elsevier</source>
          ,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <given-names>T.</given-names>
            <surname>Nipkow</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. C.</given-names>
            <surname>Paulson</surname>
          </string-name>
          , and M. Wenzel. Isabelle/HOL - A
          <string-name>
            <surname>Proof Assistant for Higher-Order</surname>
            <given-names>Logic</given-names>
          </string-name>
          ,
          <source>LNCS 2283</source>
          . Springer,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16. D.T. van
          <string-name>
            <surname>Daalen</surname>
          </string-name>
          .
          <article-title>A description of Automath and some aspects of its language theory</article-title>
          .
          <source>In Nederpelt et al. [14]. Article A.3.</source>
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17. F. Wiedijk, ed.
          <source>The Seventeen Provers of the World, LNCS 3600</source>
          . Springer,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>