<!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>The direct-optimal basis via reductions</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Estrella Rodr guez-Lorenzo</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Karell Bertet</string-name>
          <email>karell.bertet@univ-lr.fr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pablo Cordero</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Manuel Enciso</string-name>
          <email>encisog@uma.es</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Angel Mora</string-name>
          <email>amorag@ctima.uma.es</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Laboratoire 3I, Universite de La Rochelle</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Malaga</institution>
          ,
          <addr-line>Andaluc a Tech</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Formal Concept Analysis has become a real approach in the trend Information-Knowledge-Wisdom. It turns around the mining of a data set to built a concept lattice which provides an strong structure of the knowledge. Implications play the role of an alternative speci cation of this concept lattice and may be managed by means of inference rules. This syntactic treatment is guided by several properties like directness, minimality, optimality, etc. In this work, we propose a method to calculate the direct-optimal basis equivalent to a given Implicational System. Our method deals with unitary and non-unitary implications. Moreover, it shows a better performance that previous methods in the literature by means of the use of Simpli cation Logic and reduction paradigm, which remains narrow implications in any stage of the process. We have also developed an empirical study to compare our method with previous approaches in the literature.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Formal Concept Analysis (FCA) is a trending upward area which establishes a
proper and ne mixture of formalism, data analysis and knowledge discovering. It
is able to analyze and extract information from a context K, rendering a concept
lattice. Attribute implications [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] represent implicit knowledge between data
and they can be deduced from the concept lattice or using mining techniques
from the context directly. An attribute implication is an expression A ! B
where A and B are sets of attributes. A context satis es A ! B if every object
that has all the attributes in A has also all the attributes in B.
      </p>
      <p>The study of sets of implications that satis es some criteria is one of the
relevant topics in FCA. An implicational system (IS) of K is de ned as a set
of implications of K from which any valid implication for K can be deduced
by means a syntactic treatment of the implications. This symbolic manipulation
introduces the notion of equivalent sets of implications and opens the door to the
de nition of several criteria to discriminate good sets of implications according
to these criteria. Thus, the challenges are the de nition of an speci c notion of IS,
named basis, ful lling some criteria related with minimality and the introduction
of e cient methods to transform an arbitrary IS into a basis.</p>
      <p>
        For instance, if the criteria is to obtain an IS with minimum cardinal we can
build the so-called Duquenne-Guigues (or stem) basis [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Each application may
induces a di erent criterium. For instance, in [
        <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
        ] some methods to calculate
the direct-optimal basis are introduced, joining minimality and directness in the
same notion of basis. In [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] a method to obtain a basis with minimal size in the
left-hand size of the implications was proposed.
      </p>
      <p>
        In this paper, we introduce a method to compute the direct-optimal basis.
This kind of basis was introduced in [
        <xref ref-type="bibr" rid="ref2 ref3">2,3</xref>
        ] and it has two interesting properties: it
has the minimum number of attributes and it provides a framework to e ciently
compute the closure of a set of attributes. The new method introduced in this
paper is strongly based on SLFD (Simpli cation Logic) and they are more e cient
than previous methods appeared in the literature.
      </p>
      <p>In the following, rst we establish the background necessary for the
understanding of the paper (Section 2). In Section 3 SLFD is summarized and a
motivation of the simpli cation paradigm to remove redundant attributes is provided.
Section 4 is focussed on the methods of Bertet et al. to get a direct-optimal
basis. In Section 5 the new method is introduced and a comparison among all
the methods is showed. Some conclusions are presented in Section 6.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries</title>
      <p>
        We assume well-known the main concepts in FCA [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Only the concepts
necessaries will be introduced. In Formal Concept Analysis (FCA) the relationship
between a set of objects and a set of attributes are described using a formal
context as follows:
De nition 1. A formal context is a triple K = (G; M; I) where G is a nite set
whose elements are named objects, M is a nite set whose elements are named
attributes and I G M is a binary relation. Thus, (o; a) 2 I means the object
o has the attribute a.
      </p>
      <p>This paper focuses on the notion of implication, which can be introduced as
follows:
De nition 2. Let K = (G; M; I) be a formal context and A; B 2 2M . The
implication A ! B holds in K if every object o 2 G satis es the following:
(o; a) 2 I for all a 2 A implies (o; b) 2 I for all b 2 B.</p>
      <p>An implication A ! B is said to be unitary if the set B is a singleton.</p>
      <p>
        Implications may be syntactically managed by means of inference systems.
The former axiomatic system was Armstrong's Axioms [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. They allows us to
introduce the notion of derivation of an implication from an implicational system,
the semantic entailment and the equivalence between two implicational systems
in the usual way.
      </p>
    </sec>
    <sec id="sec-3">
      <title>Simpli cation Logic</title>
      <p>
        In [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], Cordero et al. introduced the Simpli cation Logic, SLFD , that is, an
equivalent logic to the Armstrong's Axioms that avoids the use of transitivity and is
guided by the idea of simplifying the set of implications by removing redundant
attributes e ciently. This logic has proved to be useful for automated reasoning
with implications [
        <xref ref-type="bibr" rid="ref12 ref13 ref7 ref8">7, 8, 12, 13</xref>
        ].
      </p>
      <p>De nition 3 (Language). Given a non-empty nite alphabet S (whose
elements are named attributes and denoted by lowercase letters a; b; c; etc.), the
language of SLFD is LS = fA ! B j A; B Sg.</p>
      <p>Sets of formulas (implications) will be named implicational systems (IS). In
order to distinguish between language and metalanguage, inside implications,
AB means A [ B and A-B denotes the set di erence A r B. Moreover, when no
confusion arises, we omit the brackets, e.g. abc denotes the set fa; b; cg.
De nition 4 (Semantics). Let K = (G; M; I) be a context and A ! B 2 LS .
The context K is said to be a model for A ! B, denoted K j= A ! B, if
A; B M S and A ! B holds in K.</p>
      <p>For a context K and an IS , then K j= means K j= A ! B for all A ! B 2
and j= A ! B denotes that every model for is also a model for A ! B. If
1 and 2 are implicational systems, 1 2 denotes both IS are equivalent
(i.e. K j= 1 i K j= 2 for all context K).</p>
      <p>De nition 5 (Syntactic derivations). SLFD considers re exivity axioms
[Ref] AB ! AB ;
and the following inference rules named fragmentation, composition and
simplication respectively.</p>
      <p>
        [Frag] AA!!BBC ; [Comp] A !ACB!;CB!D D ; [Simp] If A C; A \ B = ;, AC!-BB!;CD!-BD
Given an IS and a formula A ! B, ` A ! B denotes that A ! B can
be derived from by using the axiomatic system in a standard way. The above
axiomatic system is sound and complete (i.e. j= A ! B i ` A ! B). The
main advantage of SLFD is that inferences rules may be considered equivalence
rules and they are enough to compute all the derivations (see [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] for further
details and proofs).
      </p>
      <p>
        Theorem 1 (Mora et al. [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]). In SLFD logic, the following equivalencies hold:
1. Fragmentation Equivalency [FrEq]: fA ! Bg fA ! B-Ag.
2. Composition Equivalency [CoEq]: fA ! B; A ! Cg fA ! BCg.
3. Simpli cation Equivalency [SiEq]: If A \ B = ; and A C then
fA ! B; C ! Dg fA ! B; C-B ! D-Bg
4. Right Simpli cation Equivalency [rSiEq]: If A \ B = ; and A
      </p>
      <sec id="sec-3-1">
        <title>C [ D then</title>
        <p>fA ! B; C ! Dg
fA ! B; C ! D-Bg
Note that these equivalencies (reading from left to right) remove redundant
information. SLFD was conceived as a simpli cation framework.</p>
        <p>To conclude this section, we introduce the outstanding notion of closure of
a set of attributes, which is strongly related with the syntactic treatment of
implications.</p>
      </sec>
      <sec id="sec-3-2">
        <title>De nition 6. Let LS be an IS and X</title>
        <p>largest subset of S, noted X+, such that</p>
        <p>S. The closure of X wrt
` X ! X+.</p>
        <p>is the
We omit the subindex (i.e. we write X+) when no confusion arise. Given a
context K and an IS satisfying K j= A ! B i ` A ! B, it is well-known
that the closed sets of attributes wrt are in bijection with the concepts of K.</p>
        <p>
          One of the main topics is the computation of the closure of a set of attributes,
and for this reason, it is necessary to have an e cient method to calculate
closures. We emphasize for this problem, the works of Bertet et al. in [
          <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
          ] and
Cordero et al. in [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ].
4
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Direct-Optimal basis</title>
      <p>
        The study of sets of implications that satis es some criteria is one of the most
important topics in FCA. In [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], Bertet and Monjardet present a survey about
implicational systems and basis. They show the equality between ve unit basis
originating from di erent works (minimal functional dependencies in database
theory, knowledge spaces, etc.) and satisfying various properties including the
directness canonical and minimal properties, whence the name canonical direct
basis is given to this basis. The direct-optimal basis belong to these ve basis.
In the following, we show only the concepts used in the rest of the paper of this
survey.
      </p>
      <p>De nition 7. An IS</p>
      <p>is said to be:
{ minimal if r fA ! Bg 6 for all A ! B 2
{ minimum if 0 implies j j j 0j, for all IS
{ optimal if 0 implies k k k 0k, for all IS
.</p>
      <p>0.
0.
where j j is the cardinality of
and k k is its size, ie k k =
(jAj+jBj).</p>
      <p>A minimal set of implications is named a basis, and a minimum basis is then a
basis of least cardinality. Let us now introduce the main property used in this
paper, namely the direct-optimal property.</p>
      <sec id="sec-4-1">
        <title>De nition 8. An IS</title>
        <p>is said to be direct if, for all X
X+ = X [ [fB j A</p>
        <p>X and A ! B 2</p>
        <p>S:
g
Moreover, is said to be direct-optimal if it is direct and, for any direct IS
0 implies k k k 0k.</p>
        <p>0,</p>
        <p>
          X
A!B2
In words, is direct if the computation of the closure of any attribute set wrt
requires only one iteration, that is, a unique traversal of the set of implications.
Obviously, the direct-optimal property is the combination of the directness and
optimality properties. In [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ], Bertet and Nebut show that a direct-optimal IS is
unique and can be obtained from any equivalent IS. We address this procedure
in this paper.
        </p>
        <p>
          As we have said in the preliminaries, one of the most important problems is
how to calculate quickly and easily the closure X+ of any set X because a number
of problems related to an IS can be answered by computing closures. For this
reason, Bertet et al. propose a type of base called direct-optimal basis [
          <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
          ], so
one can compute closures of subsets in only one iteration. Section 4.1. presents
the basis proposed in [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] by Bertet and Nebut where they work with non-unitary
implicational systems (IS). Section 4.2 shows how to obtain a unit direct-optimal
basis [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. In both sections, we illustrate the algorithms needed to obtain a
directoptimal basis equivalent to any implicational system.
4.1
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>Computing Direct-Optimal basis</title>
        <p>
          In this section, the algorithm proposed by Bertet and Nebut in [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] is showed.
The key of the method is the so-called \overlap axiom" that can be directly
proved by using the axiomatic system from De nition 5.
[Overlap] for all A; B; C; D
        </p>
        <p>S:</p>
        <p>If B \ C 6= ;,
Then, the direct implicational system generated from an IS
smallest IS that contains and is closed for [Overlap].</p>
        <p>is de ned as the
A ! B; C ! D
A(C-B) ! D
De nition 9. The direct implicational system
as the smallest IS such that:
d generated from
is de ned
1. d and
2. For all A; B; C; D</p>
        <p>A(C-B) ! D 2</p>
        <p>S, if A ! B; C ! D 2
d and B \ C 6= ; then
Function Bertet-Nebut-Direct( )
input : An implicational system on S
output: The direct IS d on S equivalent to
begin</p>
        <p>d :=
foreach A ! B 2 d do
foreach C ! D 2 d do</p>
        <p>if B \ C 6= ; then add A(C-B) ! D to d;
return</p>
        <p>d</p>
      </sec>
      <sec id="sec-4-3">
        <title>Theorem 2 (Bertet and Nebut [2]). Let</title>
        <p>d = Bertet-Nebut-Direct( ) is a direct basis.
be an implicational system. Then
Moreover, if an IS is direct but not direct-optimal, then there exists an
equivalent IS 0 of smaller size which is direct-optimal. The properties that it must
hold are the following:</p>
      </sec>
      <sec id="sec-4-4">
        <title>Theorem 3 (Bertet and Nebut [2]). A direct IS</title>
        <p>only if the following properties hold.</p>
        <p>Extensiveness: for all A ! B 2 , A \ B = ;.</p>
        <p>Isotony: for all A ! B; C ! D 2 , C A implies B \ D = ;.
Premise: if A ! B; A ! B0 2 then B = B0.</p>
        <p>Not empty conclusion: if A ! B 2 then B 6= ;.
is direct-optimal if and
Function Bertet-Nebut-Minimize( )
input : An implicational system on S
output: An smaller IS m on S equivalent to
begin</p>
        <p>m := ;
foreach A ! B 2 do</p>
        <p>B0 := B
foreach C ! D 2 do
if C = A then B0 := B0 [ D;
if C A then B0 := B0 r D;
B0 := B0 r A
add A ! B0 to m
return m
Function Bertet-Nebut-DO computes the direct-optimal basis do generated from
an IS . It rst computes d using Function Bertet-Nebut-Direct and then
minimizes d using Function Bertet-Nebut-Minimize.</p>
        <p>
          Function Bertet-Nebut-DO( )
input : An implicational system on S
output: The direct-optimal IS do on S equivalent to
begin
d = Bertet-Nebut-direct( )
do = Bertet-Nebut-Minimize( d)
return do
Theorem 4 (Bertet and Nebut [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]). Let be an implicational system. Then
do = Bertet-Nebut-DO( ) is the unique direct-optimal implicational system
equivalent to .
4.2
        </p>
      </sec>
      <sec id="sec-4-5">
        <title>Direct-Optimal basis by means of unit implicational systems</title>
        <p>In some areas, the management of formulas is limited to unitary ones. Thus,
the use of Horn Clauses in Logic Programming is widely accepted. Such a
language restriction allows an improvement in the performance of the methods,
which are more direct and lighter. Nevertheless, the advantages provided by the
limited languages have a counterpart: a signi cant growth of the input set. In
this section we are going to present new versions of the de nitions and methods
introduced above restricted to Unit Implicational System (UIS), i.e. set of
implications with unitary right-hand sides. An UIS is named proper if it does not
contain implications A ! a such that a 2 A.</p>
        <p>
          In this line, Bertet [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] provided versions for unit implicational systems of
Functions Bertet-Nebut-Direct and Bertet-Nebut-Minimize.
        </p>
        <p>Function Bertet-Unit-Direct( )
input : A proper UIS on S
output: The direct UIS d on S equivalent to
begin</p>
        <p>d :=
foreach A ! a 2 d do
foreach Ca ! b 2 d do</p>
        <p>if a 6= b and b 62 A then add AC ! b to d;
return</p>
        <p>d
Function Bertet-Unit-Minimize( )
input : A proper UIS on S
output: An smaller UIS m on S equivalent to
begin</p>
        <p>m :=
foreach A ! b 2 m do
foreach C ! b 2 m do</p>
        <p>if A C then delete C ! b from
return
m
m;</p>
        <p>
          The above functions was used in [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] to build a method which transforms an
arbitrary UIS into an UIS with the same properties that the direct-optimal basis
for general IS. Since any non-unit IS can be trivially turned into an UIS, we may
encapsulate both functions to provide another method to get a direct-optimal
basis from and arbitrary IS. Thus, the following function incorporates a rst
step to convert any IS into its equivalent UIS and concludes with the converse
switch.
        </p>
        <p>Function Bertet-Unit-DO( )
input : An implicational system
output: The direct-optimal IS
begin
u := fA ! b j A ! B 2 and b 2 B r Ag
ud := Bertet-Unit-Direct( u)
udo := Bertet-Unit-Minimize( ud)
do := fA ! B j B = fb j A ! b 2 g 6= ;g
return do</p>
        <p>
          on S
do on S equivalent to
Theorem 5 (Bertet [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]). Let be an IS. Then do = Bertet-Unit-DO( ) is
the unique direct-optimal implicational system equivalent to .
        </p>
        <p>As we have mentioned at the beginning of this subsection, some authors
introduce unitary formulas as a way to provide simpler and more direct methods
having a better performance. Thus, in this case, Bertet-Unit-DO is more e cient
than Bertet-Nebut-DO, as we shall see at the end of the paper in Section 5.1.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Computing direct-optimal basis by means of reductions</title>
      <p>
        In this paper, our goal is the integration of the techniques proposed by Bertet
et al. [2{4] and the Simpli cation Logic proposed by Cordero et al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], that
is, the adding of reductions based on the simpli cation paradigm to build a
direct-optimal basis.
      </p>
      <p>In the same way that Bertet-Unit-DO, we are going to develop a function
to get direct-optimal basis whose rst step will be to narrow the implications.
However, the use of unit implications has some disadvantages that we are going to
avoid by considering another kind of formulas. Thus, we are going to use reduced
IS and introduce simpli cation rules which transform it preserving reduceness.
A signal which indicates it is a good approach is the fact that at the end of
the process, the function renders the direct-optimal basis directly, avoiding the
converse switch.</p>
      <sec id="sec-5-1">
        <title>De nition 10. An IS</title>
        <p>for all A; B S.</p>
        <p>is reduced if A ! B 2
implies B 6= ; and A\B = ;
Obviously, any IS
can be turned into a reduced equivalent one r as follows
r := fA ! B-A j A ! B 2
; B 6 Ag
The method proposed begins with this transformation and, once the IS is
reduced, this property is preserved. For this reason, [Overlap] must be substituted.
Thus, we introduce a new inference rule covering directness without losing
reduceness and, at the same time, it makes progress on the minimization task
following the simpli cation paradigm. The kernel of the new method is the
following inference rule, named strong simpli cation:
[sSimp] If B \ C 6= ; and D 6 A [ B,</p>
        <p>A ! B; C ! D
A(C-B) ! D-(AB)
Regardless the conditions, the inference rule always holds. Nevertheless, the
conditions ensure a precise application of the rule in those cases where it is necessary.
De nition 11. Given a reduced IS , the direct-reduced implicational system
dr generated from is de ned as the smallest IS such that
1. dr and
2. For all A; B; C; D S, if A ! B; C ! D 2 dr, B \ C 6= ; and D 6 A [ B
then AC-B ! D-(AB) 2 dr
Theorem 6. Given a reduced IS
and reduced IS.</p>
        <p>, then
dr =Direct-Reduced( ) is a direct
Function Direct-Reduced( )
input : A reduced implicational system on S
output: The direct-reduced IS dr on S
begin
foreach A ! B 2 dr and C ! D 2 dr do</p>
        <p>if B \ C 6= ; 6= D r (A [ B) then add AC-B ! D-(AB) to dr;
return dr
Theorem 1 provides four equivalencies which allow to remove redundant
information when they are read from left to right. An implicational system in which
these equivalences are used to remove redundant information is going to be
named simpli ed implicational system.</p>
      </sec>
      <sec id="sec-5-2">
        <title>De nition 12. A reduced IS</title>
        <p>for all A; B; C; D S,
1. A ! B, A ! C 2
2. A ! B, C ! D 2
implies B = C.</p>
        <p>and A C imply C \ B = ; = D \ B.</p>
        <p>Then, Function RD-Simplify turns any direct-reduced IS into a
direct-reducedsimpli ed equivalent one by systematically applying the equivalences provided
in Theorem 1.</p>
        <p>is simpli ed if the following conditions hold:
Function RD-Simplify( )
input : A direct-reduced implicational system on S
output: The direct-reduced-simpli ed IS drs on S equivalent to
begin</p>
        <p>drs := ;
foreach A ! B 2 do
foreach C ! D 2 do
if C = A then B := B [ D;
if C A then B := B r D;
if B 6= ; then add A ! B to drs;
return drs
Function doSimp( )
input : An implicational system on S
output: The direct-optimal IS do on S
begin
r := fA ! B-A j A ! B 2
dr := Direct-Reduced( r)
do := RD-Simplify( dr)
return do</p>
        <p>; B 6 Ag
Theorem 7. Let be an implicational system on S. Then,
is the direct-optimal basis equivalent to .
do = doSimp( )
Note that, unlike Bertet-Unit-DO where a nal step was needed to revert the
e ects of the rst transformation, doSimp do not need to revert the rst step. We
conclude this section with an experiment which illustrates the advantages of the
new method.
5.1</p>
      </sec>
      <sec id="sec-5-3">
        <title>Empirical results</title>
        <p>Logic programming has been used as a natural framework in the areas in which
it is neccessary to develop automatic deduction methods. The Prolog prototypes
provides a declarative and pedagogical point of departure and illustrates the
behavior of new techniques in a very fast and easy way.</p>
        <p>
          Some authors have explored the use of Logic Programming in the framework
of Formal Concept Analysis. Even, in [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] the authors consider the framework
of FCA and its implementation in logic programming as a previous step to
achieve the rst order logic FCA theory. In Eden et al. [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ], the authors present
a PROLOG-based prototype tool and show how the tool can utilize formulas to
locate pattern instances.
        </p>
        <p>In a rst step, the methods proposed in this paper have been developed in
a Logic Programming language (Prolog) that is a well-known tool to develop
fast prototypes. In our case, the implementation in Prolog is close because the
method proposed in this paper is based on logic.</p>
        <p>
          The methods of Bertet et al. [
          <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
          ] and our doSimp method have been
implemented in Swi-Prolog.1 Since there does not exist a benchmark for implications
in this experiment, we have collected some sets of implications from the
literature, searching papers and books with works about algorithms for implications,
functional dependencies and minimal keys. Now, we are going to show the results
of the execution of a rst Prolog prototype of Bertet et al. for UIS [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ], Bertet et
al. for IS [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] and the new doSimp (proposed in this paper) methods.
        </p>
        <p>The following table and gures summarize the results obtained. We show in
the columns the results of Prolog: Lips (logical inferences per second lips - used
to describe the performance of a logical reasoning system), Time (execution time
in seconds), and Comp (the number of couple of implications in which a rule is
applied). Areas in Figure 2 show the percentages of each algorithm with respect
the number of comparisons.
1 Available at http://www.lcc.uma.es/~enciso/doSimp.zip
Lips/Time/Comp.</p>
        <p>Bertet-Nebut-DO</p>
        <p>Bertet-Unit-DO</p>
        <p>Direct-Reduced
Ex.1
Ex.2
Ex.3</p>
        <p>Ex.a</p>
        <p>Ex.a3red
Ex.derivation5
Ex.Olomouc
Ex.Ganter
Ex.CLA14
Ex.Saedian1
Ex.Saedian2
EX.Saedian3
Ex.Wastl10
Ex.Wastl13
Example1</p>
        <p>1555372119591012811193762073809212590593647541238681701054584912041233432325 000000000411.........52200000000026422001000000827522594243 4113992211213873020969821176804007076358 151126171411666264003174859191355446391605304424478286538999209413 000000000.........0030000000.032100000110000189372216 1118632331143841076036203 1254313134124567761000627366458924621802083628284991476 000000000.........00000000000000000013111151100000 1715111122553244351226
5594556921 7008.890 134175 2662181973 1351.950 5389 1199498 0.197 1103
Lips - logical inferences
Time of execution (seconds)
Number of comparisons</p>
        <p>IS Bertet Nebut
374; 760; 194:4
467; 728:5
9588:4</p>
        <p>
          UIS Bertet
177; 610; 983:3
90; 130:03693
388:4
In this work, we have presented another algorithm to calculate the direct-optimal
basis in a further way, in the most of the cases, than the algorithms which exist in
the literature. It is shown with a test that we have realised by running di erent
examples with the methods of Bertet et al. for UIS [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ], Bertet et al. for IS [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]
and the new doSimp.
        </p>
        <p>Our aim is to reduce the cost of the algorithm by using the Simpli cation
Logic as a useful tool to work with implications. By the time, we have improved
the algorithms that existed but we are going to go on working in that way to
try to cut down the cost of our method.</p>
        <p>The perspectives we have are improvements by pretreatments: reduction,
canonical basis, etc in order to reach our main objective which would be to
directly compute the direct-optimal basis without extra implication generation.</p>
      </sec>
      <sec id="sec-5-4">
        <title>Acknowledgment</title>
        <p>Supported by grant TIN11-28084 of the Science and Innovation Ministry of Spain.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>W</given-names>
            <surname>W. Armstrong</surname>
          </string-name>
          ,
          <article-title>Dependency structures of data base relationships</article-title>
          ,
          <source>Proc. IFIP Congress</source>
          . North Holland, Amsterdam:
          <volume>580</volume>
          {
          <fpage>583</fpage>
          ,
          <year>1974</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>K.</given-names>
            <surname>Bertet</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Nebut</surname>
          </string-name>
          ,
          <article-title>E cient algorithms on the Moore family associated to an implicational system</article-title>
          ,
          <source>DMTCS</source>
          ,
          <volume>6</volume>
          (
          <issue>2</issue>
          ):
          <volume>315</volume>
          {
          <fpage>338</fpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>K.</given-names>
            <surname>Bertet</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Monjardet</surname>
          </string-name>
          ,
          <article-title>The multiple facets of the canonical direct unit implicational basis</article-title>
          ,
          <source>Theor. Comput. Sci.</source>
          ,
          <volume>411</volume>
          (
          <fpage>22</fpage>
          -24):
          <volume>2155</volume>
          {
          <fpage>2166</fpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>K.</given-names>
            <surname>Bertet</surname>
          </string-name>
          ,
          <article-title>Some Algorithmical Aspects Using the Canonical Direct Implicationnal Basis</article-title>
          , CLA:
          <volume>101</volume>
          {
          <fpage>114</fpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>L.</given-names>
            <surname>Chaudron</surname>
          </string-name>
          ,
          <string-name>
            <surname>N.</surname>
          </string-name>
          <article-title>Maille, 1st Order Logic Formal Concept Analysis: from logic programming to theory</article-title>
          ,
          <source>Computer and Informations Science: (13:3)</source>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>P</given-names>
            <surname>Cordero</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mora</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Enciso</surname>
          </string-name>
          , I.Perez de Guzman, SLFD Logic:
          <article-title>Elimination of Data Redundancy in Knowledge Representation</article-title>
          , LNCS,
          <volume>2527</volume>
          :
          <fpage>141</fpage>
          {
          <fpage>150</fpage>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>P.</given-names>
            <surname>Cordero</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Enciso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mora</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ojeda-Aciego</surname>
          </string-name>
          ,
          <article-title>Computing Minimal Generators from Implications: a Logic-guided Approach</article-title>
          , CLA:
          <volume>187</volume>
          {
          <fpage>198</fpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>P.</given-names>
            <surname>Cordero</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Enciso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mora</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ojeda-Aciego</surname>
          </string-name>
          ,
          <article-title>Computing Left-Minimal Direct Basis of implications</article-title>
          . CLA:
          <volume>293</volume>
          {
          <fpage>298</fpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>A.</given-names>
            <surname>Eden</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Hirshfeld</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Lundqvist</surname>
          </string-name>
          , EHL99 ,
          <string-name>
            <surname>LePUS</surname>
          </string-name>
          <article-title>Symbolic Logic Modeling of Object Oriented Architectures: A Case Study</article-title>
          ,
          <source>In: Proc. Second Nordic Workshop on Software Architecture (NOSA'99)</source>
          ,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <given-names>B.</given-names>
            <surname>Ganter</surname>
          </string-name>
          ,
          <article-title>Two basic algorithms in concept analysis</article-title>
          ,
          <source>Technische Hochschule, Darmstadt</source>
          ,
          <year>1984</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>J.L.</given-names>
            <surname>Guigues</surname>
          </string-name>
          and
          <string-name>
            <given-names>V.</given-names>
            <surname>Duquenne</surname>
          </string-name>
          ,
          <article-title>Familles minimales d'implications informatives resultant d'un tableau de donnees binaires</article-title>
          ,
          <source>Math. Sci. Humaines</source>
          :
          <volume>95</volume>
          ,
          <issue>5</issue>
          {
          <fpage>18</fpage>
          ,
          <year>1986</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <given-names>A.</given-names>
            <surname>Mora</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Enciso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Cordero</surname>
          </string-name>
          ,
          <string-name>
            <surname>and I. Fortes</surname>
          </string-name>
          ,
          <article-title>Closure via functional dependence simpli cation, I. J</article-title>
          .of Computer Mathematics,
          <volume>89</volume>
          (
          <issue>4</issue>
          ):
          <volume>510</volume>
          {
          <fpage>526</fpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <given-names>A.</given-names>
            <surname>Mora</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Enciso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Cordero</surname>
          </string-name>
          , and I. Perez de Guzman,
          <article-title>An E cient Preprocessing Transformation for Functional Dependencies Sets Based on the Substitution Paradigm</article-title>
          , LNCS,
          <volume>3040</volume>
          :
          <fpage>136</fpage>
          {
          <fpage>146</fpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>