A Heyting algebra is a lattice which as a poset admits an operation of implication
satisfying the condition (really a universal property)
Alternatively, a Heyting algebra could be described as a poset which is finitely complete, finitely cocomplete, and cartesian closed (equivalently, a poset which is bicartesian closed); the implication plays the role of an exponential object . Insofar as all these properties of a poset are described by universal properties, the Heyting algebra operations are categorical? in the sense of logic; that is, a poset can carry at most one structure of Heyting algebra.
In logic, Heyting algebras are precisely algebraic models for intuitionistic propositional calculus, just as Boolean algebras model classical propositional calculus. As one might guess from this description, the “law of the excluded middle” does not generally hold in a Heyting algebra; see the discussion below.
The definition of Heyting algebra may be recast into purely equational form, and so we can speak of an internal Heyting algebra in any category with products. For example, it turns out that the subobject classifier of a topos carries an internal Heyting algebra with respect to that topos. (It is not generally an internal Boolean algebra, and this explains to a large degree why one often hears that the internal logic of a topos is intuitionistic.)
We require Heyting algebra homomorphisms to preserve (in addition to the lattice structure). Heyting algebras and their homomorphisms form a concrete category HeytAlg.
One of the chief sources of Heyting algebras is given by topologies. As a poset, the topology of a topological space is a lattice (it has arbitrary joins and meets, and therefore finite joins and meets), and the implication operator is given by
where are open sets, is the set-theoretic complement of , and denotes the interior of a subset .
Somewhat more generally, a frame (a sup-lattice in which finite meets distribute over arbitrary sups) also carries a Heyting algebra structure. In a frame, we may define
and the distributivity property guarantees that the universal property for implication holds. (The detailed proof is a “baby” application of an adjoint functor theorem.)
Thus frames are extensionally the same thing as complete Heyting algebras. However, intensionally they are quite different; that is, a morphism of frames is not usually a morphism of complete Heyting algebras: they do not preserve the implication operator.
A locale is the same thing as a frame, but again the morphisms are different; they are reversed.
Topologies that are Boolean algebras are the exception rather than the rule; basic examples include topologies of Stone spaces?. Another example is the topology of a discrete space .
In any Heyting algebra , we may define a negation operator
by , where is the bottom element of the lattice. A Heyting algebra is Boolean if the double negation
coincides with the identity map; this gives one of many ways of defining a Boolean algebra.
In any Heyting algebra , we have for all the inequality
and another characterization of Boolean algebra is a Heyting algebra in which this is an equality for all .
There are several ways of passing back and forth between Boolean algebras and Heyting algebras, having to do with the double negation operator. A useful lemma in this regard is
The double negation is a monad that preserves finite meets.
The proof can be made purely equational, and is therefore internally valid in any category with products. Applied to the internal Heyting algebra of a topos, that is the subobject classifier, this lemma says exactly that the double negation operator defines a Lawvere-Tierney topology.
Now let denote the poset of regular elements of , that is, those elements such that . (When is the topology of a space, an open set is regular if and only if it is the interior of its closure.) With the help of the lemma above, we may prove
The poset is a Boolean algebra. Moreover, the assignment is the object part of a functor
called Booleanization, which is left adjoint to the full and faithful inclusion
The unit of the adjunction, applied to a Heyting algebra , is the map which maps each element to its regularization .
Thus preserves finite joins and finite meets and implication. In the other direction, we have an inclusion , and this preserves meets but not joins, and negations but not implications generally.
An elementary topos is a vertical categorification of a Heyting algebra. In other words, a -topos (or more precisely, a -topos) is essentially a Heyting algebra. Note that a Grothendieck -topos is a locale.
Some examples are spelled out at internal logic.