One-point views of optional values #
Posits and quires both have a partial exact semantics toRat? : Model → Option Rat whose none
case is the unique NaR word. Their intentional one-point projections send some x to the point
x and none to the added point of OnePoint. This module defines that map once, as
Option.toOnePoint, and proves the characterisations that the posit and quire projective views
instantiate.
Send some x to the point x of the one-point compactification and none to the added point.
Instances For
some x maps to the finite point x of the one-point compactification.
none maps to the point at infinity.
The one-point view is a finite point exactly when the option holds that value.
The one-point view is the added point exactly when the option is none.
Mapping through an injective function before the one-point view preserves finite points.
Mapping before the one-point view does not change which options reach the added point.
The projective-line equivalence reflects equality of one-point values.