Kleene Space

A Kleene Space is a H-Set X 𝑋 X equipped with a subset O X 𝑂 𝑋 O\subseteq X with the following Separation Property:

A Kleene space can also be viewed as a particularly nice Polynomial Functor, where the space of fibres is a H-Proposition (plus the separation axiom). This perspective becomes particularly useful when considering the Continuous Maps of Kleene Spaces.

Examples

The canonical example of a Kleene space is the Partial Map Classifier, where O 𝑂 O is the set of defined elements.

The type Maybe is also a Kleene space, with is-just playing the role of the definedness predicate.

Properties

Every Kleene space has a single "undefined" element; this is an immediate consequence of the separation axiom.