Blog Archive

Tuesday, October 21, 2025

Heyting Algebra

What is Heyting Algebra?

 

Let (P,) be a poset, we know it form a category, with xP as object and the morphism between x,y is xy.

A Heyting Algebra H is a Cartesian Closed Poset Category with finite product and coproduct.

Hence, H is a lattice, with , (Empty product and coproduct). It satisfies x(yz)=(xy)(xz) since it is Cartesian Closed, we have x is the left adjoint functor, hence preserve coproduct.

We use to denote the internal hom:

xyzxyz

In particular, we have xyxxyx.

Since it is Cartesian Closed and has , we could define ¬x:=x.

Then y¬xxy=. In particular, ¬xx=. In a complete Heyting algebra, ¬x is the join of all the y such that yx=0.

Example. Every Boolean Algebra form a Heyting Algebra. The internal hom is given by xy:=¬xy

For example, (P(S),,,¬,S,).

Why we study Heyting Algebra?

Let E be a topos such that SubE()HomE(,Ω). Then Ω is an internal Heyting Algebra(We will discuss the Lawvere Theory of Heyting Algebra later), hence HomE(,Ω) is an Heyting Algebra Valued functor.

In addition, the open set lattice of a topological space is a Heyting Algebra.

Proposition.

Let (X,O(X)) be a topological space, then O(X) is a Heyting Algebra.

Remark. I feel confused when I saw Maclane's definition and proof about the internal hom in O(X). Here is mine.

Proof. Easy to see that the product and coproduct are just ,. For any open set U,V, we define UV as int(UcV).

It is not a big surprise. Since in P(X), we have UV:=UcV. Also, we have

i(U)VUint(V)

Here i:O(X)P(X) is the inclusion functor.

So, in P(X), we have

OUVOUcV

Also, since OUO(X), we have

OUVOint(UcV)

Thus int(UcV)=UV.

Some Property of Heyting Algebra

Since Heyting Algebra is a Cartesian Closed Category, we have:

The unit and counit

X(X×Y)Y,Y×XYX

gives us

x(y(xy)),y(yx)x

The properties X1X,1X1 gives us

X=X,X=

Since x is the right adjoint of x, we have x preserve products.

x(yz)=xyxz

And x preserve coproducts

x(yz)=(xy)(xz)

The associative law for product XY×Z(XY)Z gives us

(yz)x=z(yx)

Also, we have

(xy)zz(xy)zxyxzyx(zy)

Hence we have y:HHop:y is adjoint of itself.

Now since y:HHop is left adjoint, it will preserve coproducts.

Hence we have

(xz)y=(xy)(zy)

Now let us discuss some properties about ¬

Proposition. In any Heyting Algebra, we have x¬¬x(1),¬x=¬¬¬x(2),¬¬(xy)=¬¬x¬¬y(3).

Proof.

Recall that ¬x=x, hence y¬xxy=. If y=¬x, we have x¬x=.

So

x¬(¬x)x¬x=

Hence we have

¬x¬¬¬x

¬:=0 is a functor. But x¬¬x¬x¬¬(¬x). Hence ¬x=¬¬¬x.

Now we need to prove that

¬¬(xy)=¬¬x¬¬y

First notice that we have xyx, hence ¬¬(xy)¬¬x. Similarly we have ¬¬(xy)¬¬y.

Hence we have ¬¬(xy)¬¬x¬¬y. For the converse, see Sheaves in Geometric and Logic, page 53.

Proposition. Let H be a Heyting algebra, if x has complement, then the complement of x must be ¬x.

Proof. Assume that x has complement a. Then xa=,xa=.

By xa we have x¬a¬xa.

Now consider ¬x=¬x(xa)=(¬xx)(¬xa)=¬xaa¬x. Hence ¬x=a.

Lawvere Theory of Heyting Algebra

In this section, we will use equations to describe Heyting algebra, and get the Lawvere Theory of Heyting Algebra and see that in any topos E, the subobject classifier is a model of Lawvere Theory of Heyting Algebra in E.

Proposition.

A Latice H with , is a Heyting Algebra iff it has a operation ⇒:H2H such that

(xx)=,x(xy)=xy,y(xy)=y,x(yz)=(xy)(xz)

Proof. See Sheaves in Geometric and Logic, page 54.

Definition.

The Lawvere Theory of Heyting Algebra is the Lawvere Theory of bounded Lattice plus the following identity

(xx)=,x(xy)=xy,y(xy)=y,x(yz)=(xy)(xz)

For example, the first identity should be understood as

Δ=

Recall Categorical Logic Primer: Connectives and Quantifiers, we define ,, on the subobject classifier Ω.

This will make the subobject classifier Ω becomes an Internal Heyting Algebra.

If this topos is well powered,then SubE()HomE(,Ω) will be a Heyting algebra valued functor.

Another example is an Internal Heyting Algebra object in Top.

Recall the open set functor O:TopopHeyting maps each topological space to O(X) and continuous function to f1:O(Y)O(X). This functor is represented by Sierpinski space. i.e. This space S={0,1} with O(S)={,{1},{0,1}}.

Hence HomTop(,S) is a Heyting Algebra valued functor, i.e. S is an internal Heyting Algebra in Top.

If we consider the convergent sequence on S, denote as F(S), then we will get a Heyting Algebra as well.

Proposition. Let X be a topological space, we know that Sh(X) form a topos. Then we have:

O(X)SubSh(X)(1)

i.e. The open set lattice is the truth value of Sh(X).

Proof.

Firstly, we have the terminal object 1=HomO(X)(,X)=yX since Yoneda embedding preserve limit.

For each open set UO(X),HomO(X)(,U) is a sub sheaf of 1 since Yoneda embedding preserve monomorphism.

Give a subsheaf of yX, denote as S. Then S=colimiyUi. For all yUiS. But then the colimit is just the HomO(X)(,iUi).

Or Consider any subsehaf S, define US:={VO(X):S(V)}. Easy to see that SHom(,US).

Hence we have the one one correspondense between O(X) and SubSh(X)(1).

Clearly we have UVyUyV.

Here is another way to show.

The subobject classfier of Sh(X) is Ω(U):={VO(X):VU}. Hence we have

 

HomSh(X)(1,Ω)=Nat(HomO(X)(,X),Ω)Ω(X)=O(X)

Proof.

Firstly, we have the terminal object 1=HomO(X)(,X)=yX since the Yoneda embedding preserves limits.

For each open set UO(X), HomO(X)(,U) is a subsheaf of 1 since the Yoneda embedding preserves monomorphisms.

Given a subsheaf S of yX, we have S=colimiyUi. For each i, we have yUiS. The colimit is precisely HomO(X)(,iUi).

Alternatively, consider any subsheaf S. Define US:={VO(X):S(V)}. It is easy to see that SHom(,US).

Hence we have a one-to-one correspondence between O(X) and SubSh(X)(1).

Clearly, UVyUyV.

Another Approach

Here is another way to show this. The subobject classifier of Sh(X) is Ω(U):={VO(X):VU}.

Hence we have

HomSh(X)(1,Ω)=Nat(HomO(X)(,X),Ω)Ω(X)=O(X)

 

Popular Posts