Glam Prestige Journal

Bright entertainment trends with youth appeal.

$\begingroup$

I recently came across the following expression regarding function composition:

\begin{equation} g \circ f : A \rightarrow C :: a \mapsto g(f(a)) \end{equation}

I get what this expression is trying to tell me, but I am pretty disturbed by the fact that I don't know what "$::$" means exactly and how to read it. Can anyone tell me what is "$::$"?

$\endgroup$

2 Answers

$\begingroup$

In this context it means "defined by", but I've never seen it written like that before. I would have written it "$g \circ f: A \to C$ defined by $a \mapsto g(f(a))$".

$\endgroup$ $\begingroup$

I've actually seen this notation with either a single or double colon. Rather compressed notation that really needs you to key into the second arrow being "mapsto" and not just a right arrow. There are a lot of merits to be said for this way of expressing a function, particularly from a lambda calculus / category theory perspective. In addition, just consider the amount of ink and page-space necessary for defining a super messy function on a crazy domain:

Let $$f: \mathbb{R} \to \mathbb{R}$$ be defined by $$f(x) = x^2.$$

versus

Let $f$ be the function $$f: \mathbb{R} \to \mathbb{R} ~~:~~x \mapsto x^2.$$

$\endgroup$ 2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy