Domain and codomain
One token per element, separated by spaces, commas or semicolons. Element names cannot contain spaces; the empty list is allowed and denotes ∅. At most 10 elements per set and 24 characters per name.
Relation pairs
Every pair is from -> to with each endpoint an element of a declared set. Add or edit a pair below; the table is fully keyboard operable.
| # | Pair | Actions |
|---|---|---|
| 1 | 1 -> x | |
| 2 | 2 -> y | |
| 3 | 3 -> z |
Diagram
Connections in this drawing
- Connection 1: arrow from “1” (domain) to “x” (codomain).
- Connection 2: arrow from “2” (domain) to “y” (codomain).
- Connection 3: arrow from “3” (domain) to “z” (codomain).
Classification
Function from “A” to “B”
- Single-valued: yes
- Total function (exactly one image per domain element): yes
- Injective: yes
- Surjective: yes
- Bijective: yes
Images: 1 ↦ {x}; 2 ↦ {y}; 3 ↦ {z}.
These properties are defined for a relation on one set; this relation is between “A” and “B”.
Text equivalent of the drawing
Ordered pairs
| From | To | Pair |
|---|---|---|
| 1 | x | (1, x) |
| 2 | y | (2, y) |
| 3 | z | (3, z) |
An adjacency matrix is only defined for a relation on one set; switch the relation kind to compare an element with itself.
Examples & limits
Conventions
- The empty set is allowed: ∅ → ∅ is the empty function, which is total, injective and (vacuously) surjective.
- A relation with no pairs is symmetric, antisymmetric and transitive, but not reflexive unless the set is empty.
- Reflexivity, symmetry, antisymmetry and transitivity quantify over the elements you declared, so an element that appears in no pair still fails reflexivity.
- Injective, surjective and bijective are reported only when the relation really is a function to the declared codomain; otherwise the tool says why rather than guessing.
Limits
- At most 10 elements per set and 60 pairs per relation.
- Element names are single tokens of at most 24 characters.
- Layout is deterministic: the same input always produces the same coordinates. Names longer than six characters are abbreviated inside a vertex; the full name appears in every table and connection description.
- All computation runs in your browser; loading a diagram never sends your data anywhere and never runs code.