open sets form a Heyting Algebra, which is a lattice plus an implication operator. So it's stronger than a lattice, but weaker than a boolean algebra. Formally, a Heyting algebra over a set is a collection where form a lattice, and obeys the axiom
In any topological space ( for universe set) the open sets of that space form a Heyting algebra. Here, set-union and set-intersection become the lattice join and lattice meet. We define a "weak complement" denoted by which is defined as:
We need the to make sure that we're left with an open set. Also, this is not really a complement, since we won't have that . but, more on that later!
We write open intervals with round parenthesis:
A--(===)--of the above set becomes the open interval that is in the interior of complement.
--(===)-- A==]---[== A complement==)---(== Not ANow, we can try to ask, when is (where is the universe set or the full space). If we consider a set containing a single point, then we will have:
==)(== A------------ Not A============ Not (Not A)in words:
So in some sense, the law of excluded middle is "almost true": It holds that , where excludes a set of points of measure zero. This is really interesting, since it gives some sort of oddball probabilistic flavour to things where if we blind ourselves to measure-0 sets, then .
Now, we look at implication. The implication is the largest set open such that . In pictures:
---(========)----- A---------(=====)-- B---------(==)----- A && B===)-----(======== A -> BThe reason this is true is that from the definition:
Alternatively, we can use the fact that in regular boolean algebra:
to derive :
---(========)----- A===)--------(===== NOT A---------(=====)-- B[Extend B to everything that doesn't include more of A than already included]===)-----(======== NOT A or B = A -> B § a -> b as a contained in b:
We'll show that a -> b is true/top/the full real line if and only if
a is contained in b. We can show this using definition:
- (given)
- Since , , since reverses inclusion order.
- implies that for all p, since is on both sides.
- Specializing to , , gives us
- is universe
- , which means it's equal to (nothing can be greater than ).
We can also show this geometrically:
----------(===)---- A------(==========) B----------(===)---- A && B[Extend B to everything that doesn't include more of A than already included. But all of A is already included!]================== A -> B § reading curry, uncurry using a -> b as containment:
curry, uncurry are the adjunction/isomorphism:
((c,a) -> b) ~ (c -> (a -> b))Read this as:
( c , a) -> b(c `intersection` a) `contained in` bif and only if
c -> (a -> b)c `contained in` (a `implication` b)That is, we have "read" curry/uncurry as:
which was the definition of we wanted!