The Problem with Codomains

Lasse Kliemann
Version 2026-09(Sep)-27
Full article (PDF)

Abstract

A function f typically consists of three parts:

Define the image of function f: img(f) ≔ {f(x) | x ∈ dom(f)} ⊆ cod(f). So the image of f is the set of all values that f assumes.

In this article, I argue that a function should not consist of three parts, but instead only of two parts, namely domain and mapping rule, no codomain. I will show that:

As function notation, I suggest (A; x ↦ E), where A is the domain and x ↦ E is the mapping rule. For example, (ℝ; x ↦ x²) would be the function with domain ℝ which maps each element of ℝ to its square.