Mathlib Map

Theorems · Definition · category theory

CategoryTheory.eqToHom

{C : Type u₁} → [inst : CategoryTheory.CategoryStruct.{v₁, u₁} C] → {X Y : C} → X = Y → (X ⟶ Y)

An equality X = Y gives us a morphism X ⟶ Y. It is typically better to use this, rather than rewriting by the equality then using 𝟙 _ which usually leads to dependent type theory hell.

Defined in
Mathlib.CategoryTheory.EqToHom
Cited by
860 results in Mathlib
Foundations
Depth 5 from the axioms, rests on 10 definitions · uses no axioms
Assumes
CategoryTheory.CategoryStruct

Around this declaration

Dashed lines are statement dependencies; solid lines are citations in proofs.

Cites3

Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.

Cited by1,024

Results whose statement or proof uses this declaration.

Showing the 200 most cited of 1,024.