Read this lesson as text
Functions as Sets
Set Theory · Axiom Academy
Explore functions as special relations where each input produces exactly one output—like a perfectly reliable vending machine! A function is like a vending machine: you press a button (input), and you get exactly one item (output). Never two items, never zero items—always exactly one! Functions Are Special Relations Remember relations? Functions are just relations with one extra requirement: each input connects to exactly one output. Functions can have special properties based on how they connect domain to codomain. Let's explore three important types! Let's connect our intuition to the formal mathematical language of functions in set theory. Functions: The Heart of Mathematics Functions are the most important special case of relations. By requiring that each input has exactly one output, we get a predictable, well-behaved structure that appears everywhere in mathematics and computer science. This "exactly one" property is what makes functions computable and reliable! Functions model cause-and-effect: temperature as a function of time, position as a function of velocity, output as a function of input. In computer science, every program is ultimately a function transforming inputs to outputs. In physics, natural laws are expressed as functions. Understanding functions deeply is fundamental to all technical fields.
This is the written version of the interactive lesson above. See the full Set Theory course.