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 kind

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.

Relation pairs (3 of at most 60)
#PairActions
11 -> x
22 -> y
33 -> z

Diagram

The accessible pair and adjacency tables below always describe the drawing.
Arrow diagram6 vertices and 3 drawn connections. The equivalent pair and adjacency tables below contain the same information as text.1 to x2 to y3 to z1domain vertex 12domain vertex 23domain vertex 3xcodomain vertex xycodomain vertex yzcodomain vertex z

Connections in this drawing

  1. Connection 1: arrow from “1” (domain) to “x” (codomain).
  2. Connection 2: arrow from “2” (domain) to “y” (codomain).
  3. 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

3 ordered pairs of A × B
FromToPair
1x(1, x)
2y(2, y)
3z(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.