<!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>Automated Comparative Study of Some Generalized Rough Approximations</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute of Informatics, University of Bialystok Konstantego Ciolkowskiego 1M</institution>
          ,
          <addr-line>15-245 Bialystok</addr-line>
          ,
          <country country="PL">Poland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The paper contains some remarks on building automated counterpart of the research presented during one of the previous CS&amp;P workshops by A. Gomolinska. My main objective was the formal (and machine-checked) proof of Theorem 4.1 from her paper \A Comparative Study of Some Generalized Rough Approximations", hence the title of the present paper is by no means accidental.</p>
      </abstract>
      <kwd-group>
        <kwd>rough approximation</kwd>
        <kwd>formalization of mathematics</kwd>
        <kwd>Mizar Mathematical Library</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Motivation</title>
      <p>
        During Concurrency Speci cation &amp; Programming International Workshop in
2001 Anna Gomolinska presented a draft of her paper on the generalization of
rough approximation operators. Essentially, the idea behind the research was to
collect some standard properties of rough approximations and to cut o some
ordinary properties of binary relations to get { a little bit in the spirit of reverse
mathematics { a catalogue of equivalences between relations' properties and
corresponding formulas for rough sets. The nal { revised and updated { version
of the research appeared eventually in Fundamenta Informaticae under the
title A Comparative Study of Some Generalized Rough Approximations [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] and
contained also a brief review of various rough approximations, not necessarily
classical ones.
      </p>
      <p>During that time, I was also interested in computer-supported formalization
of rough sets and I claimed that the paper could be a quite interesting testbed
for my studies on the use of proof-assistants to support mathematicians in their
work. Just to be a little more explicit, the system which was considered by me
was Mizar, equipped with rst order logic language and Tarski-Grothendieck set
theory as a underlying set theory.</p>
      <p>
        After a deeper study at that time, I decided to abandon the formalization
work as it looked too much di erent from the one I followed as described in
[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. In the aproach chosen by Gomolinska, rough inclusion function and two
uncertainty mappings { I and were quite fundamental at the very rst rst
sight.
      </p>
    </sec>
    <sec id="sec-2">
      <title>Approximations according to Gomolinska</title>
      <p>Gomolinska started with { quite general { uncertainty map I from non-empty
universe U into its powerset. Potentially, no additional assumptions at the
beginning are made, with the exception of a kind of re exivity { that any object
u from the universe is an element of I(u):</p>
      <p>
        Theorem 4.1 is the core of the rst part. We aimed at the full formalization
of this item, so we quote it here using original notation from [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>U , objects u; w 2 U , and i = 0; 1, it
Theorem 4.1 For any sets x; y
holds that:
a) f0d id f0:
b) f1d id f1:
c) f0(x) is de nable.
d) 8u 2 f1(x): (I(u); x) &gt; 0:
e) 8u 2 f1d(x): (I(u); x) = 1:
f) If (u) = (w), then u 2 f0(x) i w 2 f0(x); and similarly for f0d.
g) If I(u) = I(w), then u 2 f1(x) i w 2 f1(x); and similarly for f1d.
h) fi(;) = ; and fi(U ) = U ; and similarly for fid.
i) fi and fid are monotone.
j) fi(x [ y) = fi(x) [ fi(y):
k) fid(x [ y) fid(x) [ fid(y):
l) fi(x \ y) fi(x) \ fi(y):
m) fid(x \ y) = fid(x) \ fid(y):</p>
      <p>
        The approach is signi cantly di erent than those of W. Zhu [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] (but Zhu's
paper was published later), where the starting point is { at least in my opinion
{ more natural. Moreover, in the second part of the paper under discussion the
catalogue of various rough approximation operators is given (which is outside
Zhu's research area).
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Mizar State of the Art</title>
      <p>In our formal approach to rough approximations, our choice was to have
indiscernibility relation de ned as a binary relation on a non-empty universe U .
Essentially then, this corresponds to an abstract relational structure</p>
      <p>R = hU; i
with all properties credited to the internal relation of R.</p>
      <p>
        At the very beginning, we do not assume any of standard properties of
approximations (or tolerances) added to the type of , although we introduce two
basic Mizar types, called Approximation_Space and Tolerance_Space, to have
them available in the Mizar Mathematical Library. More thorough discussion on
this development is given in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>Faithfully following Gomolinska, we should be aware of the fact that we have</p>
      <p>A = hU; I; i
as a formal approximation space. I had some doubts if I should mention at all
{ rough inclusion function as in the classical approach the membership function
was considered. Also as indiscernibility relation was rather preferred over the
uncertainty mapping. My convincement was stronger after the formalization of
Zhu's paper on correspondence between properties of binary relations and of
rough sets.</p>
      <p>
        In the literature [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] the authors skip over the theory of less known properties
of binary relations (or at least treat them as widely known), and I was also in a
dead point as the { contrary to the notion of serial or mediate which could be
claimed as mathematical folklore { positive or negative alliance relations were
really unknown for me.
      </p>
      <p>Even if in considered paper standard lower approximation operator is de ned
as (10)</p>
      <p>LOW (x) = fu 2 U : (I(u); x) = 1g;
happily its immediate consequence is available as (12):</p>
      <p>LOW (x) = fu 2 U : I(u)
xg:
Then we could be sure the function
will not be needed at the moment.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Generalizing Functions</title>
      <p>Gomolinska claimed the following name space for approximations operators (18):
f0(x) = fu 2 U : (u) \ x 6= ;g
f1(x) = fu 2 U : I(u) \ x 6= ;g
with corresponding f0d and f1d:</p>
      <p>Then we can think on the following de nition for
definition
let R be non empty RelStr;
let tau be Function of the carrier of R, bool the carrier of R;
func f_0 R -&gt; map of R means
for x being Subset of R holds</p>
      <p>it.x = { u where u is Element of R : tau.u meets x };
end;
and similar, for uncertainty mapping I. Hence, it is quite straightforward to see
that the common variable in both de nitions is just arbitrary function (with
proper domain and codomain), let us call it f , and then it is quite natural to
use instead of the above formulation something like
definition
let R be non empty RelStr;
let f be Function of the carrier of R, bool the carrier of R;
func ff_0 f -&gt; map of R means
for x being Subset of R holds</p>
      <p>it.x = { u where u is Element of R : f.u meets x };
and then to use
definition
let R be non empty RelStr;
func f_0 R -&gt; map of R equals
ff_0 tau R;
func f_1 R -&gt; map of R equals
ff_0 UncertaintyMap R;
end;</p>
      <p>For a reader not very much acquainted with the Mizar system it is not very
cryptic, but the use of a keyword equals turns automatic treatment of equalities
on and then more reasonings can be justi ed automatically.</p>
      <p>Furthermore, we have just a single { more general { theorem expressing (f)
and (g) at the same time, instead of two:
theorem :: ROUGHS_5:31 :: 4.1 f) Flip
for u,w being Element of R,</p>
      <p>x being Subset of R st
f.u = f.w holds</p>
      <p>u in (Flip ff_0 f).x iff w in (Flip ff_0 f).x;</p>
      <p>It can be noted at the rst sight, that there is nothing on approximation
operators there { we can think on quite general property of mappings as R is
only non-empty relational structure.</p>
      <p>The Mizar functor Flip f, which is the formal counterpart of f d is de ned
accordingly as
definition let X be set;</p>
      <p>let f be Function of bool X, bool X;
func Flip f -&gt; Function of bool X, bool X means
for x being Subset of X holds</p>
      <p>it.x = (f.x`)`;</p>
      <p>Obviously, no approximations are needed here, either.</p>
    </sec>
    <sec id="sec-5">
      <title>Attributes</title>
      <p>
        In our Mizar approach, U P P and LOW operators from [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] are classical upper
and lower approximation operators, respectively. Theorem 3.1 from [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] lists them
all, but it could be mentioned in this point, that all these { more or less standard {
properties were already formulated and proved formally in Mizar script available
in MML under identi er ROUGHS_1 as a direct re ection of Pawlak's paper [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
      <p>In our study of fuzzy implications, we developed some techniques (Mizar
schemes) which could decrease the number of technical steps in de ning
functions.</p>
      <p>It should be pointed out that if we start with the uncertainty mapping rather
than with indiscernibility relation, the core property is</p>
      <p>
        8u2U u 2 f (u);
which is essentially the formula (1) in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>To have faithful formal representation is the above, we introduced the new
Mizar attribute
definition :: property (1) p. 105
let R be non empty set;
let I be Function of R, bool R;
attr I is map-reflexive means
:: ROUGHS_5:def 1</p>
      <p>for u being Element of R holds u in I.u;
end;</p>
      <p>As we already mentioned before, our core idea was to start with an
approximation space hU; i, where U is non-empty universe and is an indiscernibility
relation de ned on U . All rough operators, membership and uncertainty
functions, and also rough inclusions, could be de ned based within this framework.
The proper choice of the formal background is especially important, because
in the Mizar Mathematical Library, all statements should be proven based on
classical logic and/or already proven lemmas.</p>
      <p>In this paper, as a rule we do not quote correctness conditions (as they are
needed also for de nitions), although de nitions should also obey the rule of the
necessary justi cation. Even if sometimes of quite technical character, the proof
is needed and the example of that is given below. We formulate a bunch of handy
Mizar schemes which make this activity a little bit less painful for the user.
definition
let R be non empty set;
func singleton R -&gt; Function of R, bool R means
:: ROUGHS_5:def 2
for x being Element of R holds it.x = {x};
existence
proof</p>
      <p>deffunc U(object) = {$1};
A1: now
let x be Element of R;
{x} c= R;
hence U(x) in bool R;
end;
thus ex f being Function of R, bool R st
for x being Element of R holds f.x = U(x)</p>
      <p>from FUNCT_2:sch 8(A1);
end;
uniqueness; ::: here the proof is not quoted
end;</p>
      <p>Why this de nition was really needed? Essentially, to use the Mizar type
(and adjectives are important constructors for types) one should prove its
nonemptiness, i.e., to construct at least one example of an object possessing this
property, to show the usefulness of the attribute.
registration
let R be non empty set;
cluster singleton R -&gt; map-reflexive;
end;</p>
      <p>Another handy use of adjectives is given below:
registration
let R, f;
cluster ff_0 f -&gt; c=-monotone;
end;</p>
      <p>This allows to obtain automatically the proof of Theorem 4.1(i) as follows:
registration
let R be non empty RelStr; :: i)
cluster f_0 R -&gt; c=-monotone;
cluster f_1 R -&gt; c=-monotone;
end;
6</p>
    </sec>
    <sec id="sec-6">
      <title>Conclusions and Further Work</title>
      <p>
        Obviously, building proper formal framework for further work is crucial. Having
said that, we can build the rest of functions de ned in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]: f2; : : : ; f9, having
ten mappings altogether. This allows for the possibility of automated reasoning
on these operators, which could be made in the nearest future, as well as the
reasoning on the { temporarily abandoned { rough inclusion function :
      </p>
      <p>Even is this extended abstract is only a draft of the formal work done, the
complete formalization (just accepted for inclusion into the Mizar Mathematical
Library) is available at</p>
      <p>
        Using 1386 lines of Mizar code (44 kilobytes) and formulating 7 de nitions
and proving 53 theorems we completed the rst part of formalization work of
Gomolinska's paper [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. The roughs_5.abs le contains the abstract for the
development while roughs_5.miz is the complete source le.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Bryniarski</surname>
            <given-names>E.</given-names>
          </string-name>
          :
          <article-title>Formal conception of rough sets</article-title>
          ,
          <source>Fundamenta Informaticae</source>
          ,
          <volume>27</volume>
          (
          <issue>2</issue>
          /3),
          <volume>109</volume>
          {
          <fpage>136</fpage>
          (
          <year>1996</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Gomolinska</surname>
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>A comparative study of some generalized rough approximations</article-title>
          ,
          <source>Fundamenta Informaticae</source>
          ,
          <volume>51</volume>
          , 103{
          <fpage>119</fpage>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Grabowski</surname>
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Mechanizing complemented lattices within Mizar system</article-title>
          .
          <source>Journal of Automated Reasoning</source>
          ,
          <volume>55</volume>
          :
          <fpage>211</fpage>
          {
          <fpage>221</fpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Grabowski</surname>
            <given-names>A</given-names>
          </string-name>
          .:
          <article-title>E cient rough set theory merging</article-title>
          ,
          <source>Fundamenta Informaticae</source>
          ,
          <volume>135</volume>
          (
          <issue>4</issue>
          ),
          <volume>371</volume>
          {
          <fpage>385</fpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Grabowski</surname>
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Automated discovery of properties of rough sets</article-title>
          ,
          <source>Fundamenta Informaticae</source>
          ,
          <volume>128</volume>
          (
          <issue>1</issue>
          {2),
          <volume>65</volume>
          {
          <fpage>79</fpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6. Jarvinen J.:
          <article-title>Lattice theory for rough sets, Transactions on Rough Sets VI, LNCS</article-title>
          (LNAI)
          <volume>4374</volume>
          ,
          <fpage>400</fpage>
          {
          <fpage>498</fpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Pawlak</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          :
          <source>Rough Sets: Theoretical Aspects of Reasoning about Data</source>
          , Kluwer, Dordrecht (
          <year>1991</year>
          ). doi:
          <volume>10</volume>
          .1007/
          <fpage>978</fpage>
          -94-011-3534-4
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Rasiowa</surname>
            <given-names>H.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Sikorski</surname>
            <given-names>R.</given-names>
          </string-name>
          :
          <source>The Mathematics of Metamathematics</source>
          . Polish Scienti c Publishers (
          <year>1970</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Skowron</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stepaniuk</surname>
            <given-names>J</given-names>
          </string-name>
          .:
          <article-title>Tolerance approximation spaces</article-title>
          ,
          <source>Fundamenta Informaticae</source>
          ,
          <volume>27</volume>
          (
          <issue>2</issue>
          {3), pp.
          <volume>245</volume>
          {
          <issue>253</issue>
          (
          <year>1996</year>
          ). doi:
          <volume>10</volume>
          .3233/FI-1996-272311
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10. Wiedijk F.:
          <article-title>Formal proof { getting started</article-title>
          ,
          <source>Notices of the American Mathematical Society</source>
          ,
          <volume>55</volume>
          (
          <issue>11</issue>
          ),
          <volume>1408</volume>
          {
          <fpage>1414</fpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Zhu</surname>
            <given-names>W.</given-names>
          </string-name>
          :
          <article-title>Generalized rough sets based on relations</article-title>
          ,
          <source>Information Sciences</source>
          ,
          <volume>177</volume>
          (
          <issue>22</issue>
          ), pp.
          <volume>4997</volume>
          {
          <issue>5011</issue>
          (
          <year>2007</year>
          ). doi:
          <volume>10</volume>
          .1016/j.ins.
          <year>2007</year>
          .
          <volume>05</volume>
          .037
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>