<!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>Registrations vs Redenitions in Mizar</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Artur Korni“owicz Institute of Informatics, University of Bia“ystok K. Cio“kowskiego 1M</institution>
          ,
          <addr-line>15-245 Bia“ystok</addr-line>
          ,
          <country country="PL">Poland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper we briey discuss two constructions of the Mizar language redenitions and registrations. We focus on practical aspects of using them in Mizar texts to be eectively processed by the Mizar Verifier. We describe situations when redenitions can be and should be replaced by corresponding registrations.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Introduction
which registrations should be used instead of redenitions, whenever possible. The question now is what are the
situations when redenitions can be replaced by corresponding registrations. Before we answer this question,
let us mention that the Mizar system provides two ways to introduce new types: not expandable (really new
constructors) and expandable (shortcuts for collections of adjectives assigned to radix types) 2. Now, we can
formulate a rule which denes situations when redenitions can be replaced by registrations: If the result type
of a functor and the mother type of a mode to which the original type of the functor and the mode is redened
is an expandable type, then such redenitions are replaceable by a functorial registration in the case of functors
and by a conditional registration in the case of modes . Practical examples which depict the rule are presented in
the next section.
3
3.1</p>
    </sec>
    <sec id="sec-2">
      <title>Functors</title>
      <p>Examples from the Mizar Mathematical Library
Let us consider the functor Balls(x) [Sko98] which denes a family of balls in a topological space generated by
a metric space:</p>
      <p>To declare that Balls(x) constitutes a base in the space, the authors used the redenition:
definition
let M be non empty MetrStruct, x be Point of TopSpaceMetr(M);
func Balls(x) -&gt; Subset-Family of TopSpaceMetr(M)
...
end;
definition
let M be non empty MetrSpace, x be Point of TopSpaceMetr(M);
redefine func Balls(x) -&gt; Basis of x;
end;
But, because the mode Basis of x [Try97] is dened as an expandable mode:
definition
let T be non empty TopStruct, x be Point of T;
mode Basis of x is open x-quasi_basis Subset-Family of T;
end;
the redenition can be replaced by the functorial registration:
registration
let M be non empty MetrSpace, x be Point of TopSpaceMetr(M);
cluster Balls(x) -&gt; open x-quasi_basis;
end;
3.2</p>
    </sec>
    <sec id="sec-3">
      <title>Modes</title>
      <p>To exemplify how redenitions of modes can be replaced by conditional registrations, let us consider the mode
Element of D [Ban92], where D is a set containing only trees:
definition
let D be constituted-Trees non empty set;
redefine mode Element of D -&gt; Tree;
end;
Because the mode Tree [Ban90] is dened as an expandable mode:
definition</p>
      <p>mode Tree is non empty Tree-like set;
end;</p>
      <p>2In fact, there is another way to dene new types structures, but it is not relevant to the topic.
the redenition can be replaced by the conditional registration:
registration
let D be constituted-Trees non empty set;
cluster -&gt; non empty Tree-like for Element of D;
end;
3.3</p>
    </sec>
    <sec id="sec-4">
      <title>Experiments</title>
      <p>To detect all cases in the Mizar Mathematical Library when redenitions of functors and modes could be replaced
by corresponding registration, a special tool has been implemented by the author of the paper. In the Mizar
Version 8.1.05 working with the MML Version 5.37.1267, 89 possible replacements of redenitions were found. 3
A revision [Ala11, Gra07, Pak14] of the MML was proposed to the Library Committee.
[Try97] Trybulec, A.: Baire spaces, Sober spaces. Formalized Mathematics 6(2), 289294 (1997), http://fm.
mizar.org/1997-6/pdf6-2/yellow_8.pdf</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [Ala11]
          <string-name>
            <surname>Alama</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kohlhase</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mamane</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Naumowicz</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rudnicki</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Urban</surname>
          </string-name>
          , J.:
          <article-title>Licensing the Mizar Mathematical Library</article-title>
          . In: Davenport,
          <string-name>
            <surname>J.H.</surname>
          </string-name>
          et al. (eds.)
          <source>Proceedings of the 18th Calculemus and 10th International Conference on Intelligent Computer Mathematics. Lecture Notes in Computer Science</source>
          , vol.
          <volume>6824</volume>
          ,
          <fpage>149</fpage>
          <lpage>163</lpage>
          . Springer-Verlag, Berlin, Heidelberg (
          <year>2011</year>
          ), http://dx.doi.org/10.1007/978-3-
          <fpage>642</fpage>
          -22673-1_
          <fpage>11</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [Ban90]
          <string-name>
            <surname>Bancerek</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>Introduction to trees</article-title>
          .
          <source>Formalized Mathematics</source>
          <volume>1</volume>
          (
          <issue>2</issue>
          ),
          <volume>421427</volume>
          (
          <year>1990</year>
          ), http://fm.mizar. org/1990-1/pdf1-2/trees_1.pdf
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [Ban92]
          <string-name>
            <surname>Bancerek</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>Sets and functions of trees and joining operations of trees</article-title>
          .
          <source>Formalized Mathematics</source>
          <volume>3</volume>
          (
          <issue>2</issue>
          ),
          <volume>195204</volume>
          (
          <year>1992</year>
          ), http://fm.mizar.org/1992-3/pdf3-2/trees_3.pdf
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [Ban15]
          <string-name>
            <surname>Bancerek</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          , Byli«ski,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Grabowski</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.</surname>
          </string-name>
          , Korni“owicz,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Matuszewski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Naumowicz</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.</surname>
          </string-name>
          , P¡k,
          <string-name>
            <given-names>K.</given-names>
            ,
            <surname>Urban</surname>
          </string-name>
          , J.: Mizar:
          <article-title>State-of-the-art and beyond</article-title>
          . In: Kerber,
          <string-name>
            <surname>M.</surname>
          </string-name>
          et al. (eds.): Intelligent Computer Mathematics International Conference, CICM 2015, Washington, DC, USA,
          <source>Proceedings, Lecture Notes in Computer Science</source>
          , vol.
          <volume>9150</volume>
          ,
          <issue>261279</issue>
          , Springer (
          <year>2015</year>
          ), http://dx.doi.org/10.1007/978-3-
          <fpage>319</fpage>
          -20615-8_
          <fpage>17</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [Gra15]
          <string-name>
            <surname>Grabowski</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          , Korni“owicz,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Naumowicz</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.</surname>
          </string-name>
          :
          <article-title>Four decades of Mizar</article-title>
          .
          <source>Journal of Automated Reasoning</source>
          <volume>55</volume>
          (
          <issue>3</issue>
          ),
          <volume>191198</volume>
          (
          <year>2015</year>
          ), http://dx.doi.org/10.1007/s10817-015-9345-1
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [Gra07]
          <string-name>
            <surname>Grabowski</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schwarzweller</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Revisions as an essential tool to maintain mathematical repositories</article-title>
          .
          <source>In: Proceedings of the 14th Symposium on Towards Mechanized Mathematical Assistants: 6th International Conference. 235249. Calculemus '07 / MKM '07</source>
          , Springer-Verlag, Berlin, Heidelberg (
          <year>2007</year>
          ), http://dx. doi.org/10.1007/978-3-
          <fpage>540</fpage>
          -73086-6_
          <fpage>20</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [Kor13]
          <article-title>Korni“owicz, A</article-title>
          .:
          <article-title>On rewriting rules in Mizar</article-title>
          .
          <source>Journal of Automated Reasoning</source>
          <volume>50</volume>
          (
          <issue>2</issue>
          ),
          <volume>203210</volume>
          (
          <year>2013</year>
          ), http://dx.doi.org/10.1007/s10817-012-9261-6
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <article-title>[Kor15:a] Korni“owicz, A.: Denitional expansions in Mizar</article-title>
          .
          <source>Journal of Automated Reasoning</source>
          <volume>55</volume>
          (
          <issue>3</issue>
          ),
          <volume>257268</volume>
          (
          <year>2015</year>
          ), http://dx.doi.org/10.1007/s10817-015-9331-7
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <article-title>[Kor15:b] Korni“owicz, A.: Flexary connectives in Mizar</article-title>
          .
          <source>Computer Languages, Systems &amp; Structures</source>
          <volume>44</volume>
          ,
          <fpage>238</fpage>
          <lpage>250</lpage>
          (
          <year>2015</year>
          ), http://dx.doi.org/10.1016/j.cl.
          <year>2015</year>
          .
          <volume>07</volume>
          .002
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [Nau04]
          <string-name>
            <surname>Naumowicz</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          , Byli«ski, C.:
          <article-title>Improving Mizar texts with properties and requirements</article-title>
          . In: Asperti,
          <string-name>
            <surname>A.</surname>
          </string-name>
          et al. (eds.) Mathematical Knowledge Management, Third International Conference,
          <source>Proceedings. Lecture Notes in Computer Science</source>
          , vol.
          <volume>3119</volume>
          ,
          <issue>290301</issue>
          (
          <year>2004</year>
          ), http://dx.doi.org/10.1007/978-3-
          <fpage>540</fpage>
          -27818-4_
          <fpage>21</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [Pak14]
          <article-title>P¡k, K</article-title>
          .:
          <article-title>Improving legibility of natural deduction proofs is not trivial</article-title>
          .
          <source>Logical Methods in Computer Science</source>
          <volume>10</volume>
          (
          <issue>3</issue>
          ),
          <volume>130</volume>
          (
          <year>2014</year>
          ), http://dx.doi.org/10.2168/LMCS-
          <volume>10</volume>
          (
          <issue>3</issue>
          :23)
          <fpage>2014</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [Sko98]
          <string-name>
            <surname>Skorulski</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>First-countable, sequential, and Frechet spaces</article-title>
          .
          <source>Formalized Mathematics</source>
          <volume>7</volume>
          (
          <issue>1</issue>
          ),
          <volume>8186</volume>
          (
          <year>1998</year>
          ), http://fm.mizar.org/1998-7/pdf7-1/frechet.pdf
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <article-title>3Computations were carried out at</article-title>
          the Computer Center of University of Bia“ystok http://uco.uwb.edu.pl
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>