FCA
FCA
Bernhard Ganter
TU Dresden
[email protected]
Summer 2002
Contents
7
11
15
2 Concept lattices
17
39
41
4 Closure systems
43
17
17
18
19
19
20
20
22
23
23
26
26
26
28
30
32
32
32
33
34
36
36
39
39
43
44
45
CONTENTS
5 Implications
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
45
46
46
47
48
48
48
48
49
50
52
53
53
53
53
53
54
60
61
64
65
73
75
78
81
81
82
82
83
85
85
85
85
85
85
85
85
85
85
86
86
87
87
88
88
88
89
90
90
90
90
91
CONTENTS
101
6 Attribute exploration
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
7 Rule exploration
91
98
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
103
103
103
104
104
106
107
107
107
107
107
107
109
109
109
109
109
109
109
109
109
109
109
109
109
109
109
109
111
111
111
111
111
111
111
111
111
111
111
111
111
112
112
112
CONTENTS
IV Advanced Topics
113
9 Outlook
115
10 Lost + Found
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
115
115
115
115
115
115
115
115
115
115
117
117
117
117
117
117
117
117
117
117
117
117
Chapter 1
Formal Concept Analysis in
a nutshell
This section is meant to be an `appetizer'. It provides a brief overview over Formal
Concept Analysis, in order to allow for a better understanding of the overall picture. This section introduces the most basic notions of Formal Concept Analysis,
namely formal contexts, formal concepts, concept lattices, many-valued contexts
and conceptual scaling. These denitions are repeated and discussed in more detail
in the remainder of the book.
1.1
Formal contexts,
concepts,
tices
Formal Concept Analysis (FCA) was introduced as a mathematical theory modeling the concept of `concepts' in terms of lattice theory. To allow a mathematical
description of extensions and intensions, FCA starts with a (formal) context.
Figure 1.1 shows a formal context where the object set G comprises all airlines of
the Star Alliance group and the attribute set M lists their destinations. The binary
relation I is given by the cross table and describes which destinations are served by
which Star Alliance member.
j 8g 2 A: (g; m) 2 I g
B 0 := fg 2 G j 8m 2 B : (g; m) 2 I g :
CHAPTER 1.
Latin America
Europe
Canada
Asia Pacific
Middle East
Africa
Mexico
Caribbean
United States
Air Canada
Air New Zealand
All Nippon Airways
Ansett Australia
The Austrian Airlines Group
British Midland
Lufthansa
Mexicana
Scandinavian Airlines
Singapore Airlines
Thai Airways International
United Airlines
VARIG
Figure 1.1: A formal context about the destinations of the Star Alliance members
The set of all formal concepts of a context K together with the order relation is
always a complete lattice,1 called the concept lattice of K and denoted by B(K ).
Europe
British Midland
Asia Pacific
United States
Canada
Latin America
Ansett Australia
Mexico
All Nippon Airways
Air New Zealand
Caribbean
Middle East
Africa
Mexicana
Thai Airways International
Singapore Airlines
The Austrian Airlines Group
United Airlines
Scandinavian Airlines
VARIG
Air Canada
Lufthansa
1.1.
Figure 1.2 shows the concept lattice of the context in Figure 1.1 by a line diagram. In a line diagram, each node represents a formal concept. A concept c1 is a
10
CHAPTER 1.
Non-American Destinations
American Destinations
United States
Canada
Europe
Asia Pacific
Latin America
Mexico
Caribbean
British Midland
Ansett Australia
Mexicana
Africa
Middle East
United Airlines
Scandinavian Airlines
VARIG
Air Canada
Singapore Airlines
The Austrian Airlines Group
Lufthansa
1.2.
11
largest realized sub-concept below is the one labeled by `All Nippon Airways' and
`Air New Zealand' | which additionally has `Asia Pacic' in its intent. Hence
the implication f Europe, United States g ! f Asia Pacic g holds. The second
implication from above is indicated by the non-realized concept left of the concept
labeled by `Scandinavian Airlines', and the largest realized concept below, which is
the one labeled by `Singapore Airlines' and `The Austrian Airlines Group'.
1.2
In most applications, there are not only Boolean attributes in the databases. The
conceptual model we use for this is a many-valued context. In database terms, a
many-valued context is a relation of a relational database with one key attribute
whose domain is the set G of objects. Here, we consider only one (denormalized)
database relation at a time.
In order to obtain a concept lattice from a many-valued context, it has to be
translated into a one-valued (formal) context. The translation process is described
by conceptual scales:
imply w1 = w2 .
A conceptual scale for an attribute m 2 M is a one-valued context Sm :=
(Gm ; Mm ; Im ) with Wm Gm . The context Rm := (G; Mm ; Jm ) with gJm n :
() 9w2Wm : (g; m; w)2I ^ (w; n)2Im is called the realized scale for the attribute
m 2 M.
A Conceptual Information System consists of a many-valued context together
with a set of conceptual scales.
The set M consists of all attributes of the database scheme, while the sets Mm
contain the attributes which are shown to the user by the Conceptual Information
System.
the number of
ight movements assigned to each concept. If desired, the user can
drill-down to the
ight number and to more detailed information. For instance,
the concept labeled by `Marokko' (Morocco) has 53 objects (i. e.,
ight numbers) in
its extent, and the attributes `Marokko' and `Nordafrika' (Northern Africa) in its
intent. Its upper neighbor (which is labeled by `Nordafrika') has 53+14+111 = 178
objects in its extent, and `Nordafrika' in its intent.
12
CHAPTER 1.
Nordafrika
Portugal
251
Italien
985
Malta
1022
Tunesien
Marokko
70
53
14
111
16433
G
460
W V
124 8551
T2
1414
T1
8345
keine Angabe
45
18939
sonst. Angaben
4106
460
Halle B
2503
78
2425
Halle C
150
2790
Halle Mitte
497
2940
16
481
Terminal 2
216
1415 3867
Vorfeld V3
5316
1635
1269 1918
180
1942
keine
unbekannte
4106
7 17
Figure 1.5: Nested line diagram of the scales Position of Baggage Conveyor and
Position of Aircraft
For analyzing how objects are distributed over two dierent scales, one can
combine the two conceptual scales. The result of combining the two conceptual
scales Position of Baggage Conveyor and Position of Aircraft is displayed in the
nested line diagram in Figure 1.5.
Each of the 17 lines of the outer scale represents seven parallel lines linking
corresponding concepts of the inner scale. The concept lattice we are interested in
is embedded in this direct product. The embedding is indicated by the bold circles.
1.2.
13
Again, each non-realized concept (i. e., the empty circles) indicates an implication.
For example, the leftmost circle in the leftmost ellipse has the attribute `Halle A'
(hall A) and `G' (general aviation, i. e., private airplanes) in its intent. These two
attributes form the premise of the implication. The conclusion of the implication
is given by the intent of the largest realized concept below. In this case, it is the
bottom concept which has all attributes in its extent. Hence hall A as position
of the baggage conveyor and the general aviation apron as position of the aircraft
implies everything else. This means that the premise is not realized by any object.
There are no general aviation aircraft with a baggage conveyor assigned at hall A.
There are concepts in the nested line diagram which are expected to be non-realized
as well. For instance, an aircraft at Terminal 1 should not have a baggage conveyor
assigned at Terminal 2. But in the diagram, we see that the concept with these
two attributes is realized. There are 180
ight movements having the attribute
`Terminal 2' of the outer scale and the attribute `T1' of the inner scale.
We can detect some more unnormal combinations. There are four aircraft that
docked at Terminal 2, while their assigned baggage conveyors are at Terminal 1. To
seven aircraft at Terminal 2 and 17 aircraft at Terminal 1, conveyors on the `Vorfeld
V3' (Apron V3) were assigned. In all these cases, one can drill down to the original
data by clicking on the number to obtain the
ight movement numbers, which in
turn lead to the data sets stored in the INFO-80 system.
The knowledge that the combinations are unnormal, is not coded explicitly in
INFO-80, but is only implicitly present as expert knowledge. Since these combinations happen at the airport, they cannot be forbidden by database constraints. But
once such con
icts are discovered, one can implement an alarm which informs the
operator of the baggage transportation system about such cases.
If there are too many scales involved in the knowledge discovery process, then
zooming into the outer scale reduces the size of the displayed diagram. For instance,
by zooming into the concept labeled by `Terminal 2' in Fig. 1.5, we obtain the
diagram of the conceptual scale Position of Aircraft, but with the objects being
restricted to those
ight movements where the assigned baggage conveyor is at
Terminal 2. Then one can continue the exploration by adding a new conceptual scale
on the inner level. This interactive human-centered knowledge discovery process is
described in detail in [?].
This section gave a short introduction to the core notions of FCA. We will discuss
them (and more advanced topics) in more detail in the remainder of this book.
14
CHAPTER 1.
Part I
Contexts, Concepts, and
Concept Lattices
15
Chapter 2
Concept lattices
Formal Concept Analysis studies how objects can be hierarchically grouped together
according to their common attributes. One of the aspects of FCA thus is attribute
logic, the study of possible attribute combinations. Most of the time, this will be
very elementary. Those with a background in Mathematical Logic might say that
attribute logic is just Propositional Calculus, and thus Boolean Logic, or even a
fragment of this. Historically, the name Propositional Logic is misleading: Boole
himself used the intuition of attributes (\signs") rather than of propositions. So in
fact, attribute logic goes back to Boole.
But our style is dierent from that of logicians. Our logic is contextual, which
means that we are interested in the logical structure of concrete data (of the context).
Of course, the general rules of mathematical logic are important for this and will
be utilized.
2.1
Basic notions
17
18
CHAPTER 2.
CONCEPT LATTICES
sets in our sense. There is no \set of all chairs", because the decision if something is
a chair is not a matter of fact but a matter of subjective interpretation. The notion
of \formal concept" which we shall base on the denition of \formal context" is
much, much narrower than what is commonly understood as a concept of human
cognition. The step from \context" to \formal context" is quite an incisive one.
It is the step from \real world" to \data". Later on, when we get tired of saying
\formal concepts of a formal context", we will sometimes omit the word \formal".
But we should keep in mind that it makes a big dierence.
which attributes from M are common to all these objects. This denes an operator
that produces for every set A G of objects the set A" of their common attributes.
2 G j g I m for all m 2 B g
Then set B # denotes thus the set consisting of those objects in G that have all the
attributes from B .
Usually, we do not distinguish the derivation operators in writing and use the
notation A0 , B 0 instead. This is convenient, as long as the distinction is not explicitly
needed.
If A is a set of objects, then A0 is a set of attributes, to which we can apply the
second derivation operator to obtain A00 (more precisely: (A" )# ), a set of objects.
Dually, starting with a set B of attributes, we may form the set B 00 , which is again
a set of attributes. We have the following simple facts:
The elementary proof is omitted here. The reader may confer to [?] for details.
The mathematically interested reader may notice that the derivation operators constitute a Galois connection between the (power sets of the) sets G and M .
The not so mathematically oriented reader should try to express the statements
of the Proposition in comman language. We give an example: Statement 1.) says
that if a selection of objects is enlarged, then the attributes which are common to
all objects of the larger selection are among the common attributes of the smaller
selection. Try to formulate 2.) and 3.) in a similar manner!
2.1.
19
BASIC NOTIONS
According to this denition, a formal concept has two parts: its extent and its
intent. This follows an old tradition in philosophical concept logic, as expressed
in the Logic of Port Royal, 1654 [?], and in the International Standard ISO 704
(translation of the German Standard DIN 2330).
The description of a concept by extent and intent is redundant, because each
of the two parts determines the other (since B = A0 and A = B 0 ). But for many
reasons this redundant description is very convenient.
When a formal context is written as a cross table, then every formal concept
(A; B ) corresponds to a (lled) rectangular subtable, with row set A and column
set B . To make this more precise, note that in the denition of a formal context
there is no order on the sets G or M . Permuting the rows or the columns of a cross
table therefore does not change the formal context it represents. A rectangular
subtable may, in this sense, omit some rows or columns; it must be rectangular
after an appropriate rearrangement of the rows and the columns. It is then easy to
characterize the rectangular subtables that correspond to formal contexts: they are
full of crosses and maximal with respect to this property:
B(G; M; I ):
Later on we shall discuss an algorithm to compute all formal concepts of a given
formal context.
(A1 ; B1 ) (A2 ; B2 ) : () A1 A2 :
The set of all formal concepts of (G; M; I ), ordered by this relation, is denoted
B(G; M; I )
and is called the concept lattice of the formal context (G; M; I ).
20
CHAPTER 2.
CONCEPT LATTICES
This denition is natural, but irritatingly asymmetric. What about the intents?
Well, a look at Proposition 1 shows that for concepts (A1 ; B1 ) and (A2 ; B2 )
A1
A2
is equivalent to
B2
B1 :
Therefore
(A1 ; B1 ) (A2 ; B2 ) : () A1 A2 ( () B2 B1 ):
The concept lattice of a formal context is a partially ordered set:
P ) which is
x y stands for y
Example 2
The set R of all reel numbers together with the ordinary {relation.
For a set M , the powerset P(M ) with set inclusion is also a partially ordered
set.
Observe that we do not assume a total order, which would require the additional
condition x y or y x for x; y 2 P . Observe also that partially ordered sets
allow for `multiple inheritance', as the two last examples show.
Concept lattices have additional properties beside being partially ordered sets,
that it why we call them `lattices'. This will be the topic of the next section.
2.2
2.2.
21
overlap
disjoint
parallel
common vertex
common
segment
common edge
Figure 2.1: A concept lattice diagram. The objects are pairs of unit squares. The
attributes describe their mutual position. See also Figure 6.6 (p. 107).
diagram. The names of the six attributes are given. Each name is attached to one
of the formal concepts and is written slightly above the respective circle. The ten
objects are represented by little pictures; each showing a pair of unit squares. Again,
each object is attached to exactly one formal concept; the picture representing the
object is drawn slightly below the circle representing the object concept.
Some of the circles are connected by edges. These express the concept order.
With the help of the edges we can read from the diagram which concepts are subconcepts of which other concepts, and which objects have which attributes. To do
so, one has to follow ascending paths in the diagram.
For example, consider the object
. From the corresponding circle we can
reach, via ascending paths, four attributes: \common edge", \common segment",
does in fact have these properties, and
\common vertex", and \parallel".
does not have the other ones: the two squares are neither \disjoint" nor do they
\overlap".
Similarly, we can nd those objects that have a given attribute by following all
descending paths starting at the attribute concept. For example, to nd all objects
which \overlap", we start at the attribute concept labeled \overlap" and follow the
edges downward. We can reach three objects (namely
,
, and
, the
latter symbolizing two squares at the same position). Note that we cannot reach
, because only at concept nodes it is allows to make a turn.
With the same method, we can read the intent and the extent of every formal
concept in the diagram. For example, consider the concept circle labeled
. Its
extent consists of all objects that can be reached from that circle on an descending
path. The extent therefore is f
;
g. Similarly, we nd by an inspection of
the ascending paths that the intent of this formal concept is foverlap; parallelg.
The diagram contains all necessary information. We can read o the objects,
22
CHAPTER 2.
CONCEPT LATTICES
the attributes, and the incidence relation I . Thus we can perfectly reconstruct the
formal context from the diagram (\the original data").2 Moreover, for each formal
concept we can easily determine its extent and intent from the diagram.
So in a certain sense, concept lattice diagrams are perfect. But there are, of
course, limitations. Take another look at Figure 2.1. Is it correct? Is it complete?
The answer is that, since a concept lattice faithfully unfolds the formal context, the
information displayed in the lattice diagram can be only as correct and complete
as the formal context is. In our specic example it is easy to check that the given
examples in fact do have the properties as indicated. But a more dicult problem
is if our selection of objects is representative. Are there possibilities to combine two
squares, that lead to an attribute combination not occurring in our sample?
We shall come back to that question later.
Lemma 2 For any two formal concepts (A1 ; B1 ) and (A2 ; B2 ) of some formal context we obtain
2.2.
23
descending path. Similarly, for any two formal concepts there is always a lowest
node (the supremum of the two), that can be reached from both concepts via ascending paths. And any common superconcept of the two is on an ascending path
from their supremum.
We shall not discuss the algebraic theory of lattices in this lecture. Many universities oer courses in lattice theory, and there are excellent textbooks.4
Concept lattices have an additional nice property: they are complete lattices.
This means that the operations of inmum and supremum do not only work for
an input consisting of two elements, but for arbitrary many. In other words: each
collection of formal concepts has a greatest common subconcept and a least common superconcept. This is even true for innite sets of concepts. The operations
\inmum" and \supremum" are not necessarily binary, they work for any input
size.
24
CHAPTER 2.
CONCEPT LATTICES
Example 3 The lattice (f1; 2; 3; 5; 6; 10; 12; 15; 30g; j) is isomorphic to the powerset
(P(f2; 3; 5g); ) with the isomorphism ': f1; 2; 3; 5; 6; 10; 12; 15; 30g ! P(f2; 3; 5g)
with '(x) := fy 2 f2; 3; 5g j y divides xg.
Now we have dened all the terminology necessary for stating the main theorem
of Formal Concept Analysis.
\
(Ai ; Bi ) = ( Ai )00 ; Bi
i2I
i2I
i2I
_
(Ai ; Bi ) =
i I
i I
Ai ; (
Bi )00 :
i I
In particular, L
= B(L; L; ):
5 The
()
~(g )
~(m):
2.2.
25
The theorem is less complicated as it rst may seem. We give some explanations
below. Readers in a hurry may skip these and continue with the next section.
The rst part of the theorem gives the precise formulation for inmum and
supremum of arbitrary sets of formal concepts. The second part of the theorem
gives (among other information) an answer to the question if concept lattices have
any special properties. The answer is \no": every complete lattice is (isomorphic
to) a concept lattice. This means that for every complete lattice we must be able
to nd a set G of objects, a set M of attributes and a suitable relation I , such that
the given lattice is isomorphic to B(G; M; I ). The theorem does not only say how
this can be done, it describes in fact all possibilities to achieve this.
In Figure 2.1, every object is attached to a unique concept, the corresponding
object concept. Similarly for each attribute there corresponds an attribute concept.
These can be dened as follows:
The set of all object concepts of (G; M; I ) is denoted
G, the set of all attribute
concepts is M .
Using Denition 6 and Proposition 1 it is easy to check that these expressions in
fact dene formal concepts of (G; M; I ).
We have that
g (A; B ) () g 2 A. A look at the rst part of the Basic
Theorem shows that each formal concept is the supremum of all the object concepts
below it (Exercise 4). Therefore, the set
G of all object concepts is supremumdense. Dually, the attribute concepts form am inmum dense set in B(G; M; I ).
The Basic Theorem says that, conversely, any supremum-dense set in a complete
lattice L can be taken as the set of objects and any inmum-dense set be taken as
a set of attributes for a formal context with concept lattice isomorphic to L.
We conclude with a simple observation that often helps to nd errors in concept lattice diagrams. The fact that the object concepts form an supremum-dense
set implies that every supremum-irreducible concept must be an object concept
(the converse is not true). Dually, every inmum-irreducible concept must be an
attribute concept. This yields the following rule for concept lattice diagrams:
Proposition 2 Given a formal context (G; M; I ) and a nite order diagram, labeled
by the objects from G and the attributes from M . For g 2 G let
~(g) denote the
element of the diagram that is labeled with g, and let ~(m) denote the element labeled
with m. Then the given diagram is a correctly labeled diagram of B(G; M; I ) if and
only if it fullls the following conditions:
1. The diagram is a correct lattice diagram,
2. every supremum-irreducible element is labeled by some object,
3. every inmum-irreducible element is labeled by some attribute,
4. g I m
()
~(g ) ~(m).
26
CHAPTER 2.
CONCEPT LATTICES
The denitions of lattices and complete lattices are self-dual: If (V; ) is a (complete) lattice, then (V; )d := (V; ) is also a (complete) lattice. If a theorem holds
for a (complete) lattice, then
W Vthe `dual theorem' also holds, i. e., the theorem
V W where
all occurences of ; _; ^; ; ; 0V ; 1V etc. are replaced by ; ^; _; ; ; 1V ; 0V ,
resp.
For concept lattices, their dual can be obtained by \permuting" the formal
context:
Lemma 4 Each concept of a context (G; M; I ) has the form (X 00 ; X 0) for some
subset X G and the form (Y 0 ; Y 00 ) for some subset Y M . Conversely, all such
pairs are concepts.
Every extent is the intersection of attribute extents and every intent is the intersection of object intents.
The rst part of the lemma suggests the following, rst algorithm for computing
all concepts:
1.
B(G; M; I ) := ;;
2.3.
27
3. One can determine all concept extents from knowing all attribute extents
fmg0, m 2 M [and all concept intents from all object intents fgg0, g 2 G]
because
This is a consequence of the fact that the attribute concepts are inmum-dense and the
object concepts are supremum-dense.
1. Initialize a list of concept extents. To begin with, write for each attribute
m 2 M the attribute extent fmg0 to this list (if not already present).
2. For any two sets in this list, compute their intersection. If the result is a
set that is not yet in the list, then extend the list by this set. With the
extended list, continue to build all pairwise intersections.
3. If for any two sets of the list their intersection is also in the list, then
extend the list by the set G (provided it is not yet contained in the list).
The list then contains all concept extents (and nothing else).
4. For every concept extent A in the list compute the corresponding intent
A0 to obtain a list of all formal concepts (A; A0 ) of (G; M; I ).
Triangles
abbreviation
T1
(0,0)
coordinates
(6,0) (3,1)
T2
T3
(0,0)
(0,0)
(1,0)
(4,0)
(1,1)
(1,2)
T4
(0,0)
(2,0)
(1, 3)
T5
(0,0)
(2,0)
(5,1)
T6
T7
(0,0)
(0,0)
(2,0)
(2,0)
(1,3)
(0,1)
Attributes
diagram
symbol
a
b
c
d
e
property
equilateral
isoceles
acute angled
obtuse angled
right angled
28
CHAPTER 2.
CONCEPT LATTICES
:=
:=
:=
:=
:=
extent
fT4g
fT1; T2 ; T4; T6 g
fT3; T4 ; T6g
fT1; T5 g
fT2; T7 g
found as
fag0
fbg0
fcg0
fdg0
feg0
No.
e1
e2
e3
e4
e5
e6
e7
e8
e9
e10
extent
:= fT4 g
:= fT1 ; T2 ; T4 ; T6 g
:= fT3 ; T4 ; T6 g
:= fT1 ; T5 g
:= fT2 ; T7 g
:=
:= fT4 ; T6 g
:= fT1 g
:= fT2 g
:= fT1 ; T2 ; T3 ; T4 ; T5 ; T6 ; T7 g
found as
fag0
fbg0
fcg0
fdg0
feg0
e1 \ e4
e2 \ e3
e2 \ e4
e2 \ e5
step 3
; intent)
; fa; b; cg)
; fbg)
; fcg)
; fdg)
; feg)
; fa; b; c; d; eg)
; fb; cg)
; fb; dg)
; fb; eg)
; )
We have now computed all ten formal concepts of the triangles{context. The last
step can be skipped if we are not interested in an explicit list of all concepts, but
just in computing a line diagram.
2.3.
7
1
6
6. Connect circles with their lower neighbours:
29
30
CHAPTER 2.
CONCEPT LATTICES
e
T7
T2
d
T5
T1
c
T3
T6
a
T4
Ready! Usually it takes some tries before a nice, readable diagram is achieved.
Finally we can make the eort to avoid abbreviations and to increase the readability.
The result is shown in Figure 2.2.
2.3.
isoceles
right angled
31
obtuse angled
acute angled
equilateral
fmg0 = S 0 means that an object g has the attribute m if and only if it has all the
attributes from S . If we delete the column m from our cross table, no essential
information is lost because we can reconstruct this column from the data contained
in other columns (those of S ). Moreover, deleting that column does not change the
number of concepts, nor the concept hierarchy, because fmg0 = S 0 implies that m
is in the intent of a concept if and only if S is contained in that intent. The same
is true for reducible objects and concept extents. Deleting a reducible object from
a formal context does not change the structure of the concept lattice.
It is even possible to remove several reducible objects and attributes simultaneously from a formal context without any eect on the lattice structure, as long as
the number of removed elements is nite.
Denition 17 Let (G; M; I ) be a nite context, and let Girr be the set of irre-
ducible objects and Mirr be the set of irreducible attributes of (G; M; I ). The
context (Girr ; Mirr ; I \ Girr Mirr ) is the reduced context corresponding to
(G; M; I ).
For a nite lattice L let J (L) denote the set of its supremum-irreducible elements and let M (L) denote the set of its inmum-irreducible elements. Then
(J (L); M (L); ) is the standard context for the lattice L.
32
CHAPTER 2.
CONCEPT LATTICES
Proposition 3 A nite context and its reduced context have isomorphic concept
lattices. For every nite lattice L there is (up to isomorphism) exactly one reduced
context, the concept lattice of which is isomorphic to L, namely its standard context.
Titanic
Nourine
...
2.4.
33
Denition 18 A set representation of an ordered set (P; ) is an order embedding of (P; ) in the power-set of a set X , i.e., a map
rep : P
with the property
xy
()
! P(X )
rep x rep y:
is a set representation.
X := M;
(A; B ) 7! A
(A; B ) 7! M n B
(A; B ) 7! A [ (M n B ):
! R2 ;
x rep p
34
CHAPTER 2.
CONCEPT LATTICES
W
is a -preserving order embedding of B(G; M; I ) in the direct product of B(G; M1 ; I \
G M1 ) and B(G; M2 ; I \ G M2 ). The component maps
(A; B ) 7! ((B \ Mi )0 ; B \ Mi )
2.4.
35
Geographie
Deutschland
Federal Republic*
Germany*
Eastern Germany*
GDR*
834
Important Industrial Countries
Germany
America
9
Europe
3
106
32
145
2 2
71
20
27
36
1
51
64
1
5
68
36
CHAPTER 2.
CONCEPT LATTICES
into the product according to their intents. If not, we enter the object concepts the
intents of which can be read o directly from the context, and form all suprema.
This at the same time provides us with a further, quite practicable method of
determining a concept lattice by hand: split up the attribute set as appropriate,
determine the (small) concept lattices of the subcontexts, draw their product in form
of a nested line diagram, enter the object concepts and close it against suprema.
This method is particularly advisable in order to arrive at a useful diagram quickly.
2.5
Examples
||{(to be written)||{
2.6
Exercises
1. Give the formal context for the concept lattice shown in Figure 2.1.
2. Give a proof of Proposition 1.
3. Let (A1 ; B1 ) and (A2 ; B2 ) be formal concepts of a formal context (G; M; I ).
Show that the expression `greatest common subconcept' in Lemma 2 is justied by showing
(a) (A1 ; B1 ) ^ (A2 ; B2 ) is a formal concept (of the same context).
(b) (A1 ; B1 ) ^ (A2 ; B2 ) is a subconcept of both (A1 ; B1 ) and (A2 ; B2 ).
(c) Any other common subconcept of (A1 ; B1 ) and (A2 ; B2 ) is also a subconcept of (A1 ; B1 ) ^ (A2 ; B2 ).
4. Show that, in a concept lattice, the set of all object concepts is supremumdense. Hint: Show that each formal concept is the supremum of the set of all
its subconcepts which are also object concepts.
5. Let (V; ) be a partially ordered set where every subset A of V has an inmum.
Show that (V; ) is a complete lattice.
6. Show that every non-empty nite lattice is a complete lattice.
7. Show that in every lattice the following equivalences hold:
xy
() x ^ y = x () x _ y = y
8. Prove Lemma 3: For any formal context (G; M; I ), the concept lattices (B((G; M; I )))d
and B(M; G; I 1 ) are isomorphic.
'
^
X =
f'(x) j x 2 X g