Heyting algebra
{{Short description|Algebraic structure used in logic}}
In mathematics, a Heyting algebra (also known as pseudo-Boolean algebra{{Cite web|url=https://www.encyclopediaofmath.org/index.php/Pseudo-Boolean_algebra|title = Pseudo-Boolean algebra - Encyclopedia of Mathematics}}) is a bounded lattice (with join and meet operations written ∨ and ∧ and with least element 0 and greatest element 1) equipped with a binary operation a → b called implication such that (c ∧ a) ≤ b is equivalent to c ≤ (a → b). From a logical standpoint, A → B is by this definition the weakest proposition for which modus ponens, the inference rule A → B, A ⊢ B, is sound. Like Boolean algebras, Heyting algebras form a variety axiomatizable with finitely many equations. Heyting algebras were introduced in 1930 by Arend Heyting to formalize intuitionistic logic. {{citation|last=Heyting|first= A.
|title=Die formalen Regeln der intuitionistischen Logik. I, II, III|jfm= 56.0823.01
|journal=Sitzungsberichte Akad. Berlin |year=1930|pages= 42–56, 57–71, 158–169 }}
Heyting algebras are distributive lattices. Every Boolean algebra is a Heyting algebra when a → b is defined as ¬a ∨ b, as is every complete distributive lattice satisfying a one-sided infinite distributive law when a → b is taken to be the supremum of the set of all c for which c ∧ a ≤ b. In the finite case, every nonempty distributive lattice, in particular every nonempty finite chain, is automatically complete and completely distributive, and hence a Heyting algebra.
It follows from the definition that 1 ≤ 0 → a, corresponding to the intuition that any proposition a is implied by a contradiction 0. Although the negation operation ¬a is not part of the definition, it is definable as a → 0. The intuitive content of ¬a is the proposition that to assume a would lead to a contradiction. The definition implies that a ∧ ¬a = 0. It can further be shown that a ≤ ¬¬a, although the converse, ¬¬a ≤ a, is not true in general, that is, double negation elimination does not hold in general in a Heyting algebra.
Heyting algebras generalize Boolean algebras in the sense that Boolean algebras are precisely the Heyting algebras satisfying a ∨ ¬a = 1 (excluded middle), equivalently ¬¬a = a. Those elements of a Heyting algebra H of the form ¬a comprise a Boolean lattice, but in general this is not a subalgebra of H (see below).
Heyting algebras serve as the algebraic models of propositional intuitionistic logic in the same way Boolean algebras model propositional classical logic.{{cite book | vauthors=((Mac Lane, S.)), ((Moerdijk, I.)) | date= 1994 | title=Sheaves in Geometry and Logic | series= Universitext | publisher=Springer New York | url=http://dx.doi.org/10.1007/978-1-4612-0927-0 | pages=48 | doi=10.1007/978-1-4612-0927-0| isbn= 978-0-387-97710-2 }} The internal logic of an elementary topos is based on the Heyting algebra of subobjects of the terminal object 1 ordered by inclusion, equivalently the morphisms from 1 to the subobject classifier Ω.
The open sets of any topological space form a complete Heyting algebra. Complete Heyting algebras thus become a central object of study in pointless topology.
Every Heyting algebra whose set of non-greatest elements has a greatest element (and forms another Heyting algebra) is subdirectly irreducible, whence every Heyting algebra can be made subdirectly irreducible by adjoining a new greatest element. It follows that even among the finite Heyting algebras there exist infinitely many that are subdirectly irreducible, no two of which have the same equational theory. Hence no finite set of finite Heyting algebras can supply all the counterexamples to non-laws of Heyting algebra. This is in sharp contrast to Boolean algebras, whose only subdirectly irreducible one is the two-element one, which on its own therefore suffices for all counterexamples to non-laws of Boolean algebra, the basis for the simple truth table decision method. Nevertheless, it is decidable whether an equation holds of all Heyting algebras.Kripke, S. A.: 1965, 'Semantical analysis of intuitionistic logic I'. In: J. N. Crossley and M. A. E. Dummett (eds.): Formal Systems and Recursive Functions. Amsterdam: North-Holland, pp. 92–130.
Heyting algebras are less often called pseudo-Boolean algebras,{{cite book|author1=Helena Rasiowa|author2=Roman Sikorski|title=The Mathematics of Metamathematics|year=1963 |publisher=Państwowe Wydawnictwo Naukowe (PWN)|pages=54–62, 93–95, 123–130}} or even Brouwer lattices,{{cite book|author1=A. G. Kusraev|author2=Samson Semenovich Kutateladze|title=Boolean valued analysis|url=https://books.google.com/books?id=MzVXq3LRHOYC&pg=PA12 |year=1999 |publisher=Springer|isbn=978-0-7923-5921-0|page=12}} although the latter term may denote the dual definition,{{springer | title=Brouwer lattice | id= b/b017660 | last= Yankov | first= V.A.}} or have a slightly more general meaning.{{cite book|author=Thomas Scott Blyth|title=Lattices and ordered algebraic structures|url=https://books.google.com/books?id=WgROkcmTxG4C&pg=PA151 |year=2005 |publisher=Springer |isbn=978-1-85233-905-0|page=151}}
Formal definition
A Heyting algebra H is a bounded lattice such that for all a and b in H there is a greatest element x of H such that
:
This element is the relative pseudo-complement of a with respect to b, and is denoted a→b. We write 1 and 0 for the largest and the smallest element of H, respectively.
In any Heyting algebra, one defines the pseudo-complement ¬a of any element a by setting ¬a = (a→0). By definition, , and ¬a is the largest element having this property. However, it is not in general true that , thus ¬ is only a pseudo-complement, not a true complement, as would be the case in a Boolean algebra.
A complete Heyting algebra is a Heyting algebra that is a complete lattice.
A subalgebra of a Heyting algebra H is a subset H1 of H containing 0 and 1 and closed under the operations ∧, ∨ and →. It follows that it is also closed under ¬. A subalgebra is made into a Heyting algebra by the induced operations.
Alternative definitions
=Category-theoretic definition=
A Heyting algebra is a bounded lattice that has all exponential objects.
The lattice is regarded as a category where
meet, , is the product. The exponential condition means that for any objects and in an exponential uniquely exists as an object in .
A Heyting implication (often written using or to avoid confusions such as the use of to indicate a functor) is just an exponential: is an alternative notation for . From the definition of exponentials we have that implication () is right adjoint to meet (). This adjunction can be written as or more fully as:
=Lattice-theoretic definitions=
An equivalent definition of Heyting algebras can be given by considering the mappings:
:
for some fixed a in H. A bounded lattice H is a Heyting algebra if and only if every mapping fa is the lower adjoint of a monotone Galois connection. In this case the respective upper adjoint ga is given by ga(x) = a→x, where → is defined as above.
Yet another definition is as a residuated lattice whose monoid operation is ∧. The monoid unit must then be the top element 1. Commutativity of this monoid implies that the two residuals coincide as a→b.
=Bounded lattice with an implication operation=
Given a bounded lattice A with largest and smallest elements 1 and 0, and a binary operation →, these together form a Heyting algebra if and only if the following hold:
where equation 4 is the distributive law for →.
=Characterization using the axioms of intuitionistic logic=
This characterization of Heyting algebras makes the proof of the basic facts concerning the relationship between intuitionist propositional calculus and Heyting algebras immediate. (For these facts, see the sections "Provable identities" and "Universal constructions".) One should think of the element as meaning, intuitively, "provably true". Compare with the axioms at Intuitionistic logic.
Given a set A with three binary operations →, ∧ and ∨, and two distinguished elements and , then A is a Heyting algebra for these operations (and the relation ≤ defined by the condition that when a→b = ) if and only if the following conditions hold for any elements x, y and z of A:
Finally, we define ¬x to be x→ .
Condition 1 says that equivalent formulas should be identified. Condition 2 says that provably true formulas are closed under modus ponens. Conditions 3 and 4 are then conditions. Conditions 5, 6 and 7 are and conditions. Conditions 8, 9 and 10 are or conditions. Condition 11 is a false condition.
Of course, if a different set of axioms were chosen for logic, we could modify ours accordingly.
Examples
File:Rieger-Nishimura.svg Heyting algebra over one generator (aka Rieger–Nishimura lattice)]]
- Every Boolean algebra is a Heyting algebra, with p→q given by ¬p∨q.
- Every totally ordered set that has a least element 0 and a greatest element 1 is a Heyting algebra (if viewed as a lattice). In this case p→q equals to 1 when p≤q, and q otherwise.
- The simplest Heyting algebra that is not already a Boolean algebra is the totally ordered set {0, {{sfrac|1|2}}, 1} (viewed as a lattice), yielding the operations:
style="vertical-align:bottom" |
{| class="wikitable"
|+
{{diagonal split header|a|b}} | bgcolor="white" width="30" align="center" | 0
| bgcolor="white" width="30" align="center" | {{sfrac|1|2}}
| bgcolor="white" width="30" align="center" | 1
bgcolor="white" align="center" | 0 | align="center" | 0
| align="center" | 0
| align="center" | 0
bgcolor="white" align="center" | {{sfrac|1|2}} | align="center" | 0
| align="center" | {{sfrac|1|2}}
| align="center" | {{sfrac|1|2}}
bgcolor="white" align="center" | 1 | align="center" | 0
| align="center" | {{sfrac|1|2}}
| align="center" | 1
| width="30" |
|
class="wikitable"
|+ |
{{diagonal split header|a|b}}
| bgcolor="white" width="30" align="center" | 0 | bgcolor="white" width="30" align="center" | {{sfrac|1|2}} | bgcolor="white" width="30" align="center" | 1 |
---|
bgcolor="white" align="center" | 0
| align="center" | 0 | align="center" | {{sfrac|1|2}} | align="center" | 1 |
bgcolor="white" align="center" | {{sfrac|1|2}}
| align="center" | {{sfrac|1|2}} | align="center" | {{sfrac|1|2}} | align="center" | 1 |
bgcolor="white" align="center" | 1
| align="center" | 1 | align="center" | 1 | align="center" | 1 |
| width="30" |
|
class="wikitable"
|+ {{nobold|{{math|a→b}}}} |
{{diagonal split header|a|b}}
| bgcolor="white" width="30" align="center" | 0 | bgcolor="white" width="30" align="center" | {{sfrac|1|2}} | bgcolor="white" width="30" align="center" | 1 |
---|
bgcolor="white" align="center" | 0
| align="center" | 1 | align="center" | 1 | align="center" | 1 |
bgcolor="white" align="center" | {{sfrac|1|2}}
| align="center" | 0 | align="center" | 1 | align="center" | 1 |
bgcolor="white" align="center" | 1
| align="center" | 0 | align="center" | {{sfrac|1|2}} | align="center" | 1 |
| width="30" |
|
class="wikitable"
| width="50" align="center" | a | width="50" align="center" | ¬a |
bgcolor="white" align="center" | 0
| align="center" | 1 |
bgcolor="white" align="center" | {{sfrac|1|2}}
| align="center" | 0 |
bgcolor="white" align="center" | 1
| align="center" | 0 |
|}
In this example, note that {{math|size=100%|1= {{sfrac|1|2}}∨¬{{sfrac|1|2}} = {{sfrac|1|2}}∨({{sfrac|1|2}} → 0) = {{sfrac|1|2}}∨0 = {{sfrac|1|2}}}} falsifies the law of excluded middle.