How to detect if a finite category has a generator?
Statement
I have been looking at some finite categories recently and noticed that many of them have a generator and a cogenerator. In fact, in CatDat, currently every finite inhabited category has a generator and a cogenerator (search result), and this has been checked manually with every example. (Well except for thin categories, in which every object is a generator.) This is not true in general, for example does not have a generator where are two non-trivial finite groups. There are also connected examples: Consider the category with two objects , a morphism and two involutions , satisfying . This is connected, but has no generator.
My question is: given a finite category (I am mainly thinking of non-thin walking structures, such as the walking fork, or the walking reflexive pair), how can I efficiently decide (i.e. without looping over the objects) if it has a generator or cogenerator? Is there some general property P which we already know anyway such that finite + P implies having a generator?
Posed by Martin Brandenburg · ct.category-theory
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-510714.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-510714.lean
import Mathlib /-! # How to detect if a finite category has a generator? Source: https://mathoverflow.net/questions/510714 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_510714 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_510714