Read this lesson as text
What are Relations?
Set Theory · Axiom Academy
Discover how mathematics captures connections between things—from family trees to social networks to ordering numbers! In everyday life, we constantly describe how things are related. Let's explore some simple connections between people! Some relations express ordering or comparison. Let's explore the familiar "less than" relation with numbers! Now that we've explored relations intuitively, let's see the formal mathematical definition. Different relations can have special properties that make them interesting. Let's explore four important ones! Relations Connect Mathematics to Reality Relations give us a mathematical language to describe connections. Whether it's social networks, family trees, ordering of numbers, or database structures, the same mathematical framework applies. This universality is what makes set theory so powerful! Computer science uses relations everywhere: databases (relating customers to orders), social networks (friend relationships), web pages (hyperlinks), programming (class hierarchies). Understanding relations is fundamental to data structures, algorithms, and system design. Relations are the foundation for understanding functions! A function is just a special type of relation with one key property: each element in the domain relates to exactly one element in the codomain. Once you understand relations, functions become much clearer.
This is the written version of the interactive lesson above. See the full Set Theory course.