The Limit As A (Partial) Function

In math, we often say the limit of a function. This is not precise. A better phase is “the limit of a function at a point” since limits are always defined with respect to a function and a point.

Say we have a function and we want to find the limit at the point . We can write as to emphasize that the limit is a binary function, with the following type signature (in Haskell):

lim :: (a -> b) -> a -> b

Except that it’s not quite a function. The limit does not always exist at a point. So perhaps a better type signature is

lim :: (a -> b) -> a -> Maybe b

Related Posts

Middle School by Bo Burnham

How to Disable Disqus Ads on your Blog

Derivation of Reservoir Sampling

Fun with Python Iterators: Linked Lists Made Easy

Notes for November 11, 2018

Underrated Vim Option: undofile and undodir

Hot Take on Solo Travel: Starve

Alan Perlis

Book Notes: The Map of My Life by Goro Shimura