Egor Urvanov

Epimorphism

Model and prompts · right-cancellable morphism

An epimorphism is a morphism f: X → Y that is right-cancellative: if g₁∘f = g₂∘f, then g₁ = g₂. It generalises a surjection: in sets and groups epimorphisms are exactly the surjective maps, while in rings there are non-surjective ones, such as the inclusion ℤ → ℚ. The dual notion is a monomorphism.

dataanswerepimorphism: every part has supportnothing in the data?no supportthe model guesses — a hallucination● model, people, systems, data  ● agent and harness  ● risk, stop, boundaryEvery part of the answer comes from something in the data; a part without support is room for a hallucination

Isomorphism, epimorphism and monomorphism side by side

IsomorphismEpimorphismMonomorphism
Definitionhas an inverse morphism g: g∘f = id and f∘g = idright-cancellative: g₁∘f = g₂∘f ⇒ g₁ = g₂left-cancellative: f∘g₁ = f∘g₂ ⇒ g₁ = g₂
In the category of setsbijectionssurjectionsinjections
In groupsbijective homomorphismssurjective homomorphismsinjective homomorphisms
In the category of ringsbijective homomorphismsnot necessarily surjectiveinjective homomorphisms
Examplex ↦ −x on ℤthe inclusion ℤ → ℚ in ringsthe inclusion ℤ → ℚ
Invertibilityalways invertiblea right inverse exists only for a split epimorphisma left inverse exists only for a split monomorphism

Examples, a counterexample and use in AI

  • In groups: surjections · In the category of groups every epimorphism is surjective (a result of Otto Schreier). The same holds for finite groups, abelian groups, sets, vector spaces and modules.
  • Need not be surjective · The inclusion ℤ → ℚ in the category of rings is an epimorphism but not a surjection: a ring homomorphism out of ℚ is determined entirely by its values on ℤ, so two homomorphisms that agree on the integers agree on the rationals. The inclusion is also a monomorphism, yet not an isomorphism.
  • An AI agent’s answer · By analogy with a surjection: an answer is grounded when every part of it has support in the data. Where there is no support an empty spot remains, and the model fills it with a guess: that is how a hallucination arises.

Frequently asked questions

What is an epimorphism?

A morphism f: X → Y that can be cancelled on the right: if g₁∘f = g₂∘f, then g₁ = g₂. It generalises a surjection to arbitrary categories.

What is the difference between an isomorphism, an epimorphism and a monomorphism?

An isomorphism has an inverse morphism. An epimorphism is cancellable on the right, a monomorphism on the left. Every isomorphism is both, the converse fails: the inclusion ℤ → ℚ in rings is an epimorphism and a monomorphism but not an isomorphism.

What is a homomorphism?

A structure-preserving map between two algebraic structures of the same type. For groups: f(x·y) = f(x)·f(y).

Is every epimorphism surjective?

No. In sets, groups, abelian groups and vector spaces yes, but in rings no: the inclusion ℤ → ℚ is an epimorphism but not a surjection.

Source: Wikipedia: Epimorphism

nLab: epimorphism Wikipedia: Homomorphism

Where it appears · 1

Related terms

Whole glossary

© 2026 Egor Urvanov