A partial function is a function that may not be defined on all inputs.
In set theory this is simply a relation that is left unique:
- .
In type theory this can be represented by an total function to a maybe type, however it is more computationally accurate to use a partiality monad or the delay monad to represent partial computation internally, which expresses non-computability more accuracy. Note that using Maybe fails for non-definable terms such as Godel encoded terms.