Zulip Chat Archive

Stream: Is there code for X?

Topic: Two-object category


Gareth Ma (May 30 2024 at 20:55):

Is the two-object category 2=(01)\mathbb{2} = (0 \to 1) (two objects 00 and 11 with an arrow between them) defined in Mathlib/

Andrew Yang (May 30 2024 at 20:59):

Fin 2 (as a preorder)

Gareth Ma (May 30 2024 at 21:01):

Maybe I'm missing some imports, let me try

Gareth Ma (May 30 2024 at 21:02):

Ahha okay thanks, needed import Mathlib.CategoryTheory.FintypeCat

Andrew Yang (May 30 2024 at 21:05):

I think Mathlib/CategoryTheory/Category/Preorder.lean is enough.


Last updated: May 02 2025 at 03:31 UTC