algebra20

Applied Algebra

Applied algebra, with FCA at the centre

Algebraic structure for working with data — concepts, contexts, hierarchies, and the tools that turn them into something usable.

Much of the applied work at algebra20 sits inside, or close to, Formal Concept Analysis. FCA, introduced by Rudolf Wille in the early 1980s (Wille, 1982), is a mathematical theory of how a small table of “objects” and “attributes” gives rise — automatically and canonically — to a hierarchy of concepts. That hierarchy is a lattice, the concept lattice, and it carries all the information that the original table contained, organised so that one can reason about it.

The basic objects

A formal context is a triple (G,M,I)(G, M, I) consisting of a set GG of objects, a set MM of attributes, and a binary relation IG×MI \subseteq G \times M that records which objects have which attributes. The data is usually displayed as a cross table — rows for objects, columns for attributes, a cross in cell (g,m)(g, m) iff gImg \mathrel{I} m.

From this, two “derivation” operators arise. For a set AGA \subseteq G of objects, define

A={mMgIm for all gA},A' = \{\, m \in M \mid g \mathrel{I} m \text{ for all } g \in A \,\},

the attributes shared by every object in AA. Dually, for BMB \subseteq M, define

B={gGgIm for all mB}.B' = \{\, g \in G \mid g \mathrel{I} m \text{ for all } m \in B \,\}.

These two operators form a Galois connection between subsets of GG and subsets of MM.

Concepts

A formal concept of the context (G,M,I)(G, M, I) is a pair (A,B)(A, B) with AGA \subseteq G, BMB \subseteq M, A=BA' = B, and B=AB' = A. The set AA is the extent (which objects), and BB is the intent (which attributes). Order the set of all concepts by inclusion of extents:

(A1,B1)(A2,B2)    A1A2    B2B1.(A_1, B_1) \leq (A_2, B_2) \iff A_1 \subseteq A_2 \iff B_2 \subseteq B_1.

The fundamental theorem of concept lattices says that the resulting partially ordered set is a complete lattice — called the concept lattice B(G,M,I)\mathfrak{B}(G, M, I) — and that every complete lattice arises, up to isomorphism, as the concept lattice of some context.

A worked example

Take five animals and four attributes. The cross table on the left says which animal has which attribute. The diagram on the right is the concept lattice: each node is a concept, and an edge connects a concept to its immediate generalisations above.

Context

has legscan flylives in wateris mammal
dog×··×
cat×··×
fish··×·
eagle××··
dolphin··××

Hover a row, a column, or a concept on the right.

Concept lattice

can flyeagledog, catdolphinhas legsis mammallives in waterfish
Eight concepts arise from this five-object, four-attribute context.

Hovering on a concept on the right reveals its extent and its intent. Hovering on a row or column highlights the concepts that contain that object or attribute. The lattice is doing real work: it is the smallest order structure that captures every “if-then” pattern implicit in the table.

Why algebra20 cares

FCA is the place where classical lattice theory most clearly earns its keep in modern data work. A concept lattice is not a visualisation glued onto a dataset — it is the dataset, rearranged into the algebraic structure it always implied. That conviction — that the algebraic content of data is something one can extract, study, and use — sits behind much of what gets written in this section.

The canonical reference for the mathematical machinery is Ganter & Wille (1999); for the wider lattice and order-theoretic background, Davey & Priestley (2002) and Birkhoff (1967).

Notes & case studies