A lattice is an abstract structure studied in the mathematical subdisciplines of order theory and abstract algebra.
It consists of a partially ordered set in which every pair of elements has a unique supremum (also called a least upper bound or join) and a unique infimum (also called a greatest lower bound or meet).
An example is given by the power set of a set, partially ordered by inclusion, for which the supremum is the union and the infimum is the intersection.
Another example is given by the natural numbers, partially ordered by divisibility, for which the supremum is the least common multiple and the infimum is the greatest common divisor.
Lattices can also be characterized as algebraic structures satisfying certain axiomatic identities.
Since the two definitions are equivalent, lattice theory draws on both order theory and universal algebra.
Semilattices include lattices, which in turn include Heyting and Boolean algebras.
These lattice-like structures all admit order-theoretic as well as algebraic descriptions.
Lattices as partially ordered sets
If (L, \leq) is a partially ordered set (poset), and S \subseteq L is an arbitrary subset, then an element u \in L is said to be an upper bound of S if s \leq u for each s \in S.
A set may have many upper bounds, or none at all.
An upper bound u of S is said to be its least upper bound, or join, or supremum, if u \leq x for each upper bound x of S.
A set need not have a least upper bound, but it cannot have more than one.If there were more, say x and y, then all three relations x \neq y, x \leq y and y \leq x would have to be true, which is disallowed by the definition of a partially ordered set.
Dually, l \in L is said to be a lower bound of S if l \leq s for each s \in S.
A lower bound l of S is said to be its greatest lower bound, or meet, or infimum, if x \leq l for each lower bound x of S.
A set may have many lower bounds, or none at all, but can have at most one greatest lower bound.
A partially ordered set (L, \leq) is called a join-semilattice if each two-element subset \{ a, b \} \subseteq L has a join (i.e. least upper bound, denoted by a \vee b), and is called a meet-semilattice if each two-element subset has a meet (i.e. greatest lower bound, denoted by a \wedge b). (L, \leq)
is called a lattice if it is both a join- and a meet-semilattice.
This definition makes \,\wedge\, and \,\vee\, binary operations.
Both operations are monotone with respect to the given order: a_1 \leq a_2 and b_1 \leq b_2 implies that a_1 \vee b_1 \leq a_2 \vee b_2 and a_1 \wedge b_1 \leq a_2 \wedge b_2.
It follows by an induction argument that every non-empty finite subset of a lattice has a least upper bound and a greatest lower bound.
With additional assumptions, further conclusions may be possible; see Completeness (order theory) for more discussion of this subject.
That article also discusses how one may rephrase the above definition in terms of the existence of suitable Galois connections between related partially ordered sets—an approach of special interest for the category theoretic approach to lattices, and for formal concept analysis.
A bounded lattice is a lattice that additionally has a  (also called , or  element, and denoted by 1, or by \,\top) and a  (also called , or , denoted by 0 or by \,\bot), which satisfy 0 \leq x \leq 1 \;\text{ for every } x \in L.
Every lattice can be embedded into a bounded lattice by adding a greatest and a least element, and every non-empty finite lattice is bounded, by taking the join (respectively, meet) of all elements, denoted by \bigvee L = a_1 \lor \cdots \lor a_n = 1 (respectively \bigwedge L = a_1 \land \cdots \land a_n = 0) where L = \left\{a_1, \ldots, a_n\right\}.
A partially ordered set is a bounded lattice if and only if every finite set of elements (including the empty set) has a join and a meet.
For every element x of a poset it is vacuously true that  \text{ for all } a \in \varnothing, x \leq a and \text{ for all } a \in \varnothing, a \leq x, and therefore every element of a poset is both an upper bound and a lower bound of the empty set.
This implies that the join of an empty set is the least element \bigvee\varnothing = 0, and the meet of the empty set is the greatest element \bigwedge\varnothing = 1.
This is consistent with the associativity and commutativity of meet and join: the join of a union of finite sets is equal to the join of the joins of the sets, and dually, the meet of a union of finite sets is equal to the meet of the meets of the sets, that is,, for finite subsets A \text{ and } B of a poset L, \bigvee (A \cup B)= \left(\bigvee A\right) \vee \left(\bigvee B\right) and \bigwedge (A \cup B)= \left(\bigwedge A\right) \wedge \left(\bigwedge B\right) hold.
Taking B to be the empty set, \bigvee (A \cup \varnothing) = \left(\bigvee A\right) \vee \left(\bigvee \varnothing\right) = \left(\bigvee A\right) \vee 0 = \bigvee A and \bigwedge (A \cup \varnothing) = \left(\bigwedge A\right) \wedge \left(\bigwedge \varnothing\right) = \left(\bigwedge A\right) \wedge 1 = \bigwedge A
which is consistent with the fact that A \cup \varnothing = A.
A lattice element y is said to cover another element x, if y > x, but there does not exist a z such that y > z > x.
Here, y > x means x \leq y and x \neq y.
A lattice (L, \leq) is called graded, sometimes ranked (but see Ranked poset for an alternative meaning), if it can be equipped with a rank function r : L \to \N sometimes to ℤ, compatible with the ordering (so r(x) < r(y) whenever x < y) such that whenever y covers x, then r(y) = r(x) + 1.
The value of the rank function for a lattice element is called its rank.
Given a subset of a lattice, H \subseteq L, meet and join restrict to partial functions – they are undefined if their value is not in the subset H.
The resulting structure on H is called a .
In addition to this extrinsic definition as a subset of some other algebraic structure (a lattice), a partial lattice can also be intrinsically defined as a set with two partial binary operations satisfying certain axioms.
Lattices as algebraic structures
General lattice
An algebraic structure (L, \vee, \wedge), consisting of a set L and two binary, commutative and associative operations \,\vee\, and \,\wedge, on L is a lattice if the following axiomatic identities hold for all elements a, b \in L, sometimes called .
a \vee (a \wedge b) = a a \wedge (a \vee b) = a
The following two identities are also usually regarded as axioms, even though they follow from the two absorption laws taken together.a \vee a = a \vee (a \wedge (a \vee a)) = a, and dually for the other idempotent law. .
Those are called .
a \vee a = a a \wedge a = a
These axioms assert that both (L, \vee) and (L, \wedge) are semilattices.
The absorption laws, the only axioms above in which both meet and join appear, distinguish a lattice from an arbitrary pair of semilattice structures and assure that the two semilattices interact appropriately.
In particular, each semilattice is the dual of the other.
The absorption laws can be viewed as a requirement that the meet and join semilattices define the same partial order.
Bounded lattice
A bounded lattice is an algebraic structure of the form (L, \vee, \wedge, 0, 1) such that (L, \vee, \wedge) is a lattice, 0 (the lattice's bottom) is the identity element for the join operation \,\vee,\, and 1 (the lattice's top) is the identity element for the meet operation \,\wedge.
a \vee 0 = a a \wedge 1 = a
See semilattice for further details.
Connection to other algebraic structures
Lattices have some connections to the family of group-like algebraic structures.
Because meet and join both commute and associate, a lattice can be viewed as consisting of two commutative semigroups having the same domain.
For a bounded lattice, these semigroups are in fact commutative monoids.
The absorption law is the only defining identity that is peculiar to lattice theory.
By commutativity, associativity and idempotence one can think of join and meet as operations on non-empty finite sets, rather than on pairs of elements.
In a bounded lattice the join and meet of the empty set can also be defined (as 0 and 1, respectively).
This makes bounded lattices somewhat more natural than general lattices, and many authors require all lattices to be bounded.
The algebraic interpretation of lattices plays an essential role in universal algebra.
Connection between the two definitions
An order-theoretic lattice gives rise to the two binary operations \,\vee\, and \,\wedge.
Since the commutative, associative and absorption laws can easily be verified for these operations, they make (L, \vee, \wedge) into a lattice in the algebraic sense.
The converse is also true.
Given an algebraically defined lattice (L, \vee, \wedge), one can define a partial order \,\leq\, on L by setting a \leq b \text{ if } a = a \wedge b, \text{ or } a \leq b \text{ if } b = a \vee b, for all elements a, b \in L.
The laws of absorption ensure that both definitions are equivalent:
a = a \wedge b \text{ implies } b = b \vee (b \wedge a) = (a \wedge b) \vee b = a \vee b
and dually for the other direction.
One can now check that the relation ≤ introduced in this way defines a partial ordering within which binary meets and joins are given through the original operations \,\vee\, and \,\wedge.
Since the two definitions of a lattice are equivalent, one may freely invoke aspects of either definition in any way that suits the purpose at hand.
Examples
Image:Hasse diagram of powerset of 3.svg|Pic.
1: Subsets of \{x, y, z\}, under set inclusion.
The name "lattice" is suggested by the form of the Hasse diagram depicting it.
File:Lattice of the divisibility of 60.svg|Pic.
2: Lattice of integer divisors of 60, ordered by "divides".
File:Lattice of partitions of an order 4 set.svg|Pic.
3: Lattice of partitions of \{1, 2, 3, 4\}, ordered by "refines".
File:Nat num.svg|Pic.
4: Lattice of positive integers, ordered by \,\leq, File:N-Quadrat, gedreht.svg|Pic.
5: Lattice of nonnegative integer pairs, ordered componentwise.
For any set A, the collection of all subsets of A (called the power set of A) can be ordered via subset inclusion to obtain a lattice bounded by A itself and the empty set.
Set intersection and set union interpret meet and join, respectively (see Pic. 1).
For any set A, the collection of all finite subsets of A, ordered by inclusion, is also a lattice, and will be bounded if and only if A is finite.
For any set A, the collection of all partitions of A, ordered by refinement, is a lattice (see Pic. 3).
The positive integers in their usual order form a lattice, under the operations of "min" and "max".
1 is bottom; there is no top (see Pic. 4).
The Cartesian square of the natural numbers, ordered so that (a, b) \leq (c, d) if a \leq c \text{ and } b \leq d.
The pair (0, 0) is the bottom element; there is no top (see Pic. 5).
The natural numbers also form a lattice under the operations of taking the greatest common divisor and least common multiple, with divisibility as the order relation: a \leq b if a divides b.
1 is bottom; 0 is top.
Pic.
2 shows a finite sublattice.
Every complete lattice (also see below) is a (rather specific) bounded lattice.
This class gives rise to a broad range of practical examples.
The set of compact elements of an arithmetic complete lattice is a lattice with a least element, where the lattice operations are given by restricting the respective operations of the arithmetic lattice.
This is the specific property that distinguishes arithmetic lattices from algebraic lattices, for which the compacts only form a join-semilattice.
Both of these classes of complete lattices are studied in domain theory.
Further examples of lattices are given for each of the additional properties discussed below.
Examples of non-lattices
Most partially ordered sets are not lattices, including the following.
A discrete poset, meaning a poset such that x \leq y implies x = y, is a lattice if and only if it has at most one element.
In particular the two-element discrete poset is not a lattice.
Although the set \{1, 2, 3, 6\} partially ordered by divisibility is a lattice, the set \{1, 2, 3\} so ordered is not a lattice because the pair 2, 3 lacks a join; similarly, 2, 3 lacks a meet in \{2, 3, 6\}.
The set \{1, 2, 3, 12, 18, 36\} partially ordered by divisibility is not a lattice.
Every pair of elements has an upper bound and a lower bound, but the pair 2, 3 has three upper bounds, namely 12, 18, and 36, none of which is the least of those three under divisibility (12 and 18 do not divide each other).
Likewise the pair 12, 18 has three lower bounds, namely 1, 2, and 3, none of which is the greatest of those three under divisibility (2 and 3 do not divide each other).
Morphisms of lattices
thumb|Pic.
9: Monotonic map f between lattices that preserves neither joins nor meets, since f(u) \vee f(v) = u^{\prime} \vee u^{\prime}= u^{\prime} \neq 1^{\prime} = f(1) = f(u \vee v) and f(u) \wedge f(v) = u^{\prime} \wedge u^{\prime} = u^{\prime} \neq 0^{\prime} = f(0) = f(u \wedge v).
The appropriate notion of a morphism between two lattices flows easily from the above algebraic definition.
Given two lattices \left(L, \vee_L, \wedge_L\right) and \left(M, \vee_M, \wedge_M\right), a lattice homomorphism from L to M is a function f : L \to M such that for all a, b \in L: f\left(a \vee_L b\right) = f(a) \vee_M f(b), \text{ and } f\left(a \wedge_L b\right) = f(a) \wedge_M f(b).
Thus f is a homomorphism of the two underlying semilattices.
When lattices with more structure are considered, the morphisms should "respect" the extra structure, too.
In particular, a bounded-lattice homomorphism (usually called just "lattice homomorphism") f between two bounded lattices L and M should also have the following property: f\left(0_L\right) = 0_M, \text{ and } f\left(1_L\right) = 1_M.
In the order-theoretic formulation, these conditions just state that a homomorphism of lattices is a function preserving binary meets and joins.
For bounded lattices, preservation of least and greatest elements is just preservation of join and meet of the empty set.
Any homomorphism of lattices is necessarily monotone with respect to the associated ordering relation; see Limit preserving function.
The converse is not true: monotonicity by no means implies the required preservation of meets and joins (see Pic. 9), although an order-preserving bijection is a homomorphism if its inverse is also order-preserving.
Given the standard definition of isomorphisms as invertible morphisms, a  is just a bijective lattice homomorphism.
Similarly, a  is a lattice homomorphism from a lattice to itself, and a  is a bijective lattice endomorphism.
Lattices and their homomorphisms form a category.
Let \mathbb{L} and \mathbb{L}' be two lattices with 0 and 1.
A homomorphism from \mathbb{L} to \mathbb{L}' is called 0,1-separating if and only if f^{-1}\{f(0)\} = \{0\} (f separates 0) and f^{-1}\{f(1)\}=\{1\} (f separates 1).
Sublattices
A  of a lattice L is a subset of L that is a lattice with the same meet and join operations as L.
That is, if L is a lattice and M is a subset of L such that for every pair of elements a, b \in M both a \wedge b and a \vee b are in M, then M is a sublattice of L.Burris, Stanley N., and Sankappanavar, H. P., 1981.
A Course in Universal Algebra.
Springer-Verlag. .
A sublattice M of a lattice L is a  of L, if x \leq z \leq y and x, y \in M implies that z belongs to M, for all elements x, y, z \in L. Properties of lattices
We now introduce a number of important properties that lead to interesting special classes of lattices.
One, boundedness, has already been discussed.
Completeness
A poset is called a  if  its subsets have both a join and a meet.
In particular, every complete lattice is a bounded lattice.
While bounded lattice homomorphisms in general preserve only finite joins and meets, complete lattice homomorphisms are required to preserve arbitrary joins and meets.
Every poset that is a complete semilattice is also a complete lattice.
Related to this result is the interesting phenomenon that there are various competing notions of homomorphism for this class of posets, depending on whether they are seen as complete lattices, complete join-semilattices, complete meet-semilattices, or as join-complete or meet-complete lattices.
Note that "partial lattice" is not the opposite of "complete lattice" – rather, "partial lattice", "lattice", and "complete lattice" are increasingly restrictive definitions.
Conditional completeness
A conditionally complete lattice is a lattice in which every  subset  has a join (that is, a least upper bound).
Such lattices provide the most direct generalization of the completeness axiom of the real numbers.
A conditionally complete lattice is either a complete lattice, or a complete lattice without its maximum element 1, its minimum element 0, or both.
Distributivity
Since lattices come with two binary operations, it is natural to ask whether one of them distributes over the other, that is, whether one or the other of the following dual laws holds for every three elements a, b, c \in L,:
;Distributivity of \,\vee\, over \,\wedge\, a \vee (b \wedge c) = (a \vee b) \wedge (a \vee c). ;D
istributivity of \,\wedge\, over \,\vee\, a \wedge (b \vee c) = (a \wedge b) \vee (a \wedge c).
A lattice that satisfies the first or, equivalently (as it turns out), the second axiom, is called a distributive lattice.
The only non-distributive lattices with fewer than 6 elements are called M3 and N5;, Exercise 4.1, p. 104.
they are shown in Pictures 10 and 11, respectively.
A lattice is distributive if and only if it doesn't have a sublattice isomorphic to M3 or N5., Theorem 4.10, p.
89. Each distributive lattice is isomorphic to a lattice of sets (with union and intersection as join and meet, respectively)., Theorem 10.21, pp.
238–239.
For an overview of stronger notions of distributivity that are appropriate for complete lattices and that are used to define more special classes of lattices such as frames and completely distributive lattices, see distributivity in order theory.
Modularity
For some applications the distributivity condition is too strong, and the following weaker property is often useful.
A lattice (L, \vee, \wedge) is  if, for all elements a, b, c \in L, the following identity holds:  (a \wedge c) \vee (b \wedge c) = ((a \wedge c) \vee b) \wedge c. ()
This condition is equivalent to the following axiom:  a \leq c implies a \vee (b \wedge c) = (a \vee b) \wedge c. ()
A lattice is modular if and only if it doesn't have a sublattice isomorphic to N5 (shown in Pic. 11).
Besides distributive lattices, examples of modular lattices are the lattice of two-sided ideals of a ring, the lattice of submodules of a module, and the lattice of normal subgroups of a group.
The set of first-order terms with the ordering "is more specific than" is a non-modular lattice used in automated reasoning.
Semimodularity
A finite lattice is modular if and only if it is both upper and lower semimodular.
For a graded lattice, (upper) semimodularity is equivalent to the following condition on the rank function r:
r(x) + r(y) \geq r(x \wedge y) + r(x \vee y).
Another equivalent (for graded lattices) condition is Birkhoff's condition:
for each x and y in L, if x and y both cover x \wedge y, then x \vee y covers both x and y.
A lattice is called lower semimodular if its dual is semimodular.
For finite lattices this means that the previous conditions hold with \,\vee\, and \,\wedge\, exchanged, "covers" exchanged with "is covered by", and inequalities reversed.
Continuity and algebraicity
In domain theory, it is natural to seek to approximate the elements in a partial order by "much simpler" elements.
This leads to the class of continuous posets, consisting of posets where every element can be obtained as the supremum of a directed set of elements that are way-below the element.
If one can additionally restrict these to the compact elements of a poset for obtaining these directed sets, then the poset is even algebraic.
Both concepts can be applied to lattices as follows:
A continuous lattice is a complete lattice that is continuous as a poset.
An algebraic lattice is a complete lattice that is algebraic as a poset.
Both of these classes have interesting properties.
For example, continuous lattices can be characterized as algebraic structures (with infinitary operations) satisfying certain identities.
While such a characterization is not known for algebraic lattices, they can be described "syntactically" via Scott information systems.
Complements and pseudo-complements
Let L be a bounded lattice with greatest element 1 and least element 0.
Two elements x and y of L are complements of each other if and only if: x \vee y = 1 \quad \text{ and } \quad x \wedge y = 0.
In general, some elements of a bounded lattice might not have a complement, and others might have more than one complement.
For example, the set \{0, 1/2, 1\} with its usual ordering is a bounded lattice, and \tfrac{1}{2} does not have a complement.
In the bounded lattice N5, the element a has two complements, viz.
b and c (see Pic. 11).
A bounded lattice for which every element has a complement is called a complemented lattice.
A complemented lattice that is also distributive is a Boolean algebra.
For a distributive lattice, the complement of x, when it exists, is unique.
In the case the complement is unique, we write  and equivalently, .
The corresponding unary operation over L, called complementation, introduces an analogue of logical negation into lattice theory.
Heyting algebras are an example of distributive lattices where some members might be lacking complements.
Every element z of a Heyting algebra has, on the other hand, a pseudo-complement, also denoted ¬x.
The pseudo-complement is the greatest element y such that x \wedge y = 0.
If the pseudo-complement of every element of a Heyting algebra is in fact a complement, then the Heyting algebra is in fact a Boolean algebra.
Jordan–Dedekind chain condition
A chain from x_0 to x_n is a set \left\{ x_0, x_1, \ldots, x_n\right\}, where x_0 < x_1 < x_2 < \ldots < x_n.
The length of this chain is n, or one less than its number of elements.
A chain is maximal if x_i covers x_{i-1} for all 1 \leq i \leq n.
If for any pair, x and y, where x < y, all maximal chains from x to y have the same length, then the lattice is said to satisfy the Jordan–Dedekind chain condition.
Free lattices
Any set X may be used to generate the free semilattice FX.
The free semilattice is defined to consist of all of the finite subsets of X, with the semilattice operation given by ordinary set union.
The free semilattice has the universal property.
For the free lattice over a set X, Whitman gave a construction based on polynomials over Xs members.
Important lattice-theoretic notions
We now define some order-theoretic notions of importance to lattice theory.
In the following, let x be an element of some lattice L.
If L has a bottom element 0, x \neq 0 is sometimes required.
x is called:
Join irreducible if x = a \vee b implies x = a \text{ or } x = b.
for all a, b \in L.
When the first condition is generalized to arbitrary joins \bigvee_{i \in I} a_i, x is called completely join irreducible (or \vee-irreducible).
The dual notion is meet irreducibility (\wedge-irreducible).
For example, in Pic.
2, the elements 2, 3, 4, and 5 are join irreducible, while 12, 15, 20, and 30 are meet irreducible.
In the lattice of real numbers with the usual order, each element is join irreducible, but none is completely join irreducible.
Join prime if x \leq a \vee b implies x \leq a \text{ or } x \leq b.
This too can be generalized to obtain the notion completely join prime.
The dual notion is meet prime.
Every join-prime element is also join irreducible, and every meet-prime element is also meet irreducible.
The converse holds if L is distributive.
Let L have a bottom element 0.
An element x of L is an atom if 0 < x and there exists no element y \in L such that 0 < y < x.
Then L is called:
Atomic if for every nonzero element x of L, there exists an atom a of L such that a \leq x;
Atomistic if every element of L is a supremum of atoms.
The notions of ideals and the dual notion of filters refer to particular kinds of subsets of a partially ordered set, and are therefore important for lattice theory.
Details can be found in the respective entries.
See also
and filter (dual notions)
(generalization to non-commutative join and meet)
Applications that use lattice theory
Note that in many applications the sets are only partial lattices: not every pair of elements has a meet or join.
Pointless topology
Lattice of subgroups
Spectral space
Invariant subspace
Closure operator
Abstract interpretation
Subsumption lattice
Fuzzy set theory
Algebraizations of first-order logic
Semantics of programming languages
Domain theory
Ontology (computer science)
Multiple inheritance
Formal concept analysis and Lattice Miner (theory and tool)
Bloom filter
Information flow
Ordinal optimization
Quantum logic
Median graph
Knowledge space
Regular language learning
Analogical modeling
Notes
References
Monographs available free online:
Burris, Stanley N., and Sankappanavar, H. P., 1981.
A Course in Universal Algebra.
Springer-Verlag. .
Jipsen, Peter, and Henry Rose, Varieties of Lattices, Lecture Notes in Mathematics 1533, Springer Verlag, 1992. .
Nation, J. B., Notes on Lattice Theory.
Chapters 1-6.
Chapters 7–12; Appendices 1–3.
Elementary texts recommended for those with limited mathematical maturity:
Donnellan, Thomas, 1968.
Lattice Theory.
Pergamon.
Grätzer, George, 1971.
Lattice Theory: First concepts and distributive lattices.
W. H. Freeman.
The standard contemporary introductory text, somewhat harder than the above:
Advanced monographs:
Garrett Birkhoff, 1967.
Lattice Theory, 3rd ed. Vol. 25 of AMS Colloquium Publications.
American Mathematical Society.
Robert P. Dilworth and Crawley, Peter, 1973.
Algebraic Theory of Lattices.
Prentice-Hall. .
On free lattices:
R. Freese, J. Jezek, and J. B. Nation, 1985.
"Free Lattices".
Mathematical Surveys and Monographs Vol. 42. Mathematical Association of America.
Johnstone, P. T., 1982.
Stone spaces.
Cambridge Studies in Advanced Mathematics 3.
Cambridge University Press.
On the history of lattice theory:
On applications of lattice theory:
Table of contents
External links
J.B. Nation, Notes on Lattice Theory, unpublished course notes available as two PDF files.
Ralph Freese, "Lattice Theory Homepage".
