> For the complete documentation index, see [llms.txt](https://mandober.gitbook.io/math-debrief/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mandober.gitbook.io/math-debrief/450-category-theory/10-morphisms/identity-morphism.md).

# Identity morphism

A category may have a lot of arrows, evan a small category such as a monoid with all the arrows going from the only object back to itself. We don't know which one of all these arrows is the identity morphism, but we can probe for it by composing different arrows. The identity arrow is gonna be the one that when composed with any other arrow, `f`, gives back that arrow right back. That is exactly what the identity axiom wrt the composition is saying.

Generally, it is expressed with any arrow `f` between two objects `A` and `B`:

`1ʙ ∘ f = f = f ∘ 1ᴀ`

but in a one-object category, it is:

`1ᴀ ∘ f = f = f ∘ 1ᴀ`

Besides probing for the `id` arrow, we also probe a category (by composing different arrows) to find out info about the structure of a particular category, especially in Set category. For example, we can use a singleton set that acts like an element selector, or a 2-element set that acts like a pair selector. Byu relying just on the arrows and their composition we can actually find out a lot about a category.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mandober.gitbook.io/math-debrief/450-category-theory/10-morphisms/identity-morphism.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
