Skip to content

Add extremal (co)generating sets and single extremal (co)generators#280

Open
dschepler wants to merge 5 commits into
ScriptRaccoon:mainfrom
dschepler:extremal-generators
Open

Add extremal (co)generating sets and single extremal (co)generators#280
dschepler wants to merge 5 commits into
ScriptRaccoon:mainfrom
dschepler:extremal-generators

Conversation

@dschepler

@dschepler dschepler commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

My primary motivation in the short term is to get "has an extremal generating set" into the database for use in entering one of the equivalent conditions in the Giraud-type theorem for Grothendieck quasitopoi. The property is, of course, of broader interest.

Current status:
extremal generator: 1 unknown
extremal generating set: 1 unknown
extremal cogenerator: 4 unknown
extremal cogenerating set: 4 unknown

(And all of these except for the case of FreeAb are cases where we still didn't even know whether they had generating/cogenerating sets.)

Comment thread database/data/category-properties/extremal generator.yaml
@ScriptRaccoon

ScriptRaccoon commented Jul 12, 2026

Copy link
Copy Markdown
Owner

FYI #283 means that the files have changed their location, so a (trivial) rebasing is required.

Comment thread databases/catdat/data/categories/Ab_fg.yaml Outdated
Comment thread databases/catdat/data/category-properties/extremal generator.yaml Outdated
Comment thread databases/catdat/data/category-properties/extremal generating set.yaml Outdated
Comment thread database/data/categories/BN.yaml
Comment thread databases/catdat/data/categories/FinSet.yaml Outdated
Comment thread databases/catdat/data/categories/FinSet.yaml Outdated
Comment thread databases/catdat/data/categories/FS.yaml Outdated
Comment thread databases/catdat/data/categories/Grp_c.yaml Outdated
Comment thread databases/catdat/data/categories/Mono.yaml Outdated
Comment thread databases/catdat/data/categories/N.yaml Outdated
Comment thread database/data/categories/On.yaml Outdated
Comment thread databases/catdat/data/categories/Set_f.yaml Outdated
Comment thread databases/catdat/data/categories/Top.yaml Outdated
Comment thread database/data/categories/Top.yaml Outdated
Comment thread databases/catdat/data/categories/Top_pointed.yaml Outdated
Comment thread databases/catdat/data/categories/Top_pointed.yaml Outdated
Comment thread databases/catdat/data/categories/Z_div.yaml Outdated
Comment thread database/data/category-implications/accessible.yaml
Comment thread databases/catdat/data/category-implications/generators.yaml Outdated
Comment thread database/data/category-implications/size.yaml
Comment thread database/data/categories/Top.yaml
Comment thread database/data/categories/Top.yaml Outdated
@dschepler
dschepler force-pushed the extremal-generators branch from ffcd1fc to 3e834b0 Compare July 13, 2026 13:48
Comment thread database/data/categories/BN.yaml
Comment thread content/generator_construction.md Outdated
Comment thread content/generator_construction.md Outdated
Comment thread database/data/categories/Man.yaml
Comment thread database/data/categories/Man.yaml Outdated
Comment thread database/data/categories/Met.yaml Outdated
@ScriptRaccoon

Copy link
Copy Markdown
Owner

Remark: many proofs here show something stronger, or are close to that, namely that the set or object is a dense subcategory. This property is not here yet, but maybe we should add it soon. Not in this PR perhaps because it is already big, unless you think it clarifies the proofs much better. We can also have separate PRs then for the missing proofs.

Btw, should I stop looking at this PR as long is it is in draft mode?

@dschepler

Copy link
Copy Markdown
Contributor Author

Btw, should I stop looking at this PR as long is it is in draft mode?

No, comments and suggestions in the mean time are very useful.

Incidentally, I've looked at the remaining unsettled cases, and they seem very tricky. I can maybe make more detailed comments later once I'm done with work for the day. (The exception is extremal cogenerator for Sp which seems like it should be doable if I could get my head around it better. Maybe something like the set of all quotients of $\Sigma_n$ is an extremal cogenerating set for $\Sigma_n-Set$, and then take products and finally the tuple of those products?)

So I should probably be able to take the PR out of draft status soon, and then we can decide on what questions to submit to MO and/or which categories we're OK with leaving unknown for the moment.

@dschepler
dschepler force-pushed the extremal-generators branch from 9d5e193 to 57968df Compare July 16, 2026 00:43
@dschepler
dschepler marked this pull request as ready for review July 16, 2026 01:40
@dschepler

Copy link
Copy Markdown
Contributor Author

Some comments on some of the remaining undecided cases:

For TorsFreeAb: Extremal cogenerator / cogenerating set would be equivalent. We could conjecture that the family of localizations of Z might work. But if it does, I haven't found a simple proof. A sample case to illustrate the difficulties (constructed partially with the aid of AI): the subgroup of Q^2 generated by Z^2 and $(1/2^k, 3/2^k)$ for k=1,2,... Since the category is coregular, the extremal monomorphisms are regular monomorphisms; so we are looking for a saturated embedding of that group into a product of localizations. The map G -> Z[1/2] x Z[1/2] x Z, $(x,y) \mapsto (x, y, 3x-y)$, appears to work for that case, but has a twist required to get it to work. It's easy to imagine more complex examples requiring more and more complex twists, and maybe even a possibility of constructing a counterexample where "too many twists are required" to be able to build a valid map.

For FreeAb: Given the difficulties with infinite products, and that infinite-dimensional free abelian groups probably can't be cut out as regular subobjects of the product in Ab, it seems likely that Z won't work as an extremal cogenerator. In fact, it seems unlikely for any small set of free abelian groups (with limited cardinalities of generating sets) to work as an extremal cogenerating set. But I haven't been able to find a proof of either assertion.

For the various metric space categories with non-expansive maps as morphisms: R doesn't work as an extremal cogenerator, for example because it can't detect the failure of (0,1) -> [0,1] to be an isomorphism. That suggests that any extremal cogenerating set would probably have to contain lots of objects to detect various forms of failure to be complete, perhaps too many to form a set. I haven't succeeded in finding a proof along those lines, though (beyond vague ideas such as considering spaces formed by a pushout of $\kappa$ copies of R joined at a single point, and the inclusion of the space with that point removed).

Then there's still the question whether the category of combinatorial species has a single extremal cogenerator, which I still haven't quite managed to get a good grasp on.

@dschepler dschepler changed the title Add extremal (co)generating sets and single extremal (co)generators (WIP) Add extremal (co)generating sets and single extremal (co)generators Jul 16, 2026
Comment thread tests/categories.spec.ts
@dschepler

Copy link
Copy Markdown
Contributor Author

Looking at the proof I added that TorsFreeAb has $Q \times \prod_p Z_p$ as an extremal cogenerator, I wonder how many other proofs I could simplify by applying the same pattern: prove the canonical map to a product is in fact a regular monomorphism, using already established descriptions of products and regular monomorphisms (and dually for generators of course). For example, looking at the proofs in Ban, I can definitely see that strategy applying there.

If you want, I can look into this; or, we can merge this for now and I can create another PR within a couple days to make those simplifications.

@ScriptRaccoon

Copy link
Copy Markdown
Owner

I need some time to fully review the PR which I haven't done so far. My comments were only after skimming through it.

Co-authored-by: Script Raccoon <scriptraccoon@gmail.com>
@dschepler
dschepler force-pushed the extremal-generators branch from c4aa355 to d7c4061 Compare July 18, 2026 00:57

@ScriptRaccoon ScriptRaccoon left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the first part of my review. I will have a look at the rest later.

Comment thread database/data/categories/Ban.yaml Outdated
Comment thread database/data/categories/Ban.yaml Outdated
Comment thread database/data/categories/Delta.yaml Outdated
- property: generator
proof: The singleton poset $1$ is a generator, since morphisms $1 \to P$ correspond to the elements of $P$.
- property: extremal generator
proof: We can use the same proof as for <a href="/category/PreOrd">$\PreOrd$</a> to show that $\{0<1\}$ is an extremal generator of $\Pos$.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make this more similar to $\Delta$, cannot we say again that it is even an extremal generator in PreOrd and then use the fact that I have mentioned there?

proof: >-
We prove that the poset $\{0 < 1\}$ is an extremal cogenerator. First, to prove it is a cogenerator: Let $P$ be a poset and $a,b \in P$ be two elements such that $f(a) = f(b)$ for all order-preserving maps $f : P \to \{0 < 1 \}$. This means that $a$ and $b$ lie in the same upper sets. In particular, $b$ lies in the upper set generated by $a$, meaning $a \leq b$, and similarly we deduce $b \leq a$. Thus, $a = b$.

Now, suppose we have a morphism $f : P \to Q$ such that ${-} \circ f : \Hom(Q, \{0<1\}) \to \Hom(P, \{0<1\})$ is a bijection. Since it is injective and $\{0<1\}$ is a cogenerator, we get that $f$ is an epimorphism and therefore surjective on the underlying sets (see below). On the other hand, the fact that ${-} \circ f$ induces a bijection of upper sets implies that $f$ is also injective on the underlying sets, and also that $f(a_1) \le f(a_2)$ implies $a_1 \le a_2$. Therefore, $f$ is an isomorphism.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Now, suppose we have a morphism $f : P \to Q$ such that ${-} \circ f : \Hom(Q, \{0<1\}) \to \Hom(P, \{0<1\})$ is a bijection. Since it is injective and $\{0<1\}$ is a cogenerator, we get that $f$ is an epimorphism and therefore surjective on the underlying sets (see below). On the other hand, the fact that ${-} \circ f$ induces a bijection of upper sets implies that $f$ is also injective on the underlying sets, and also that $f(a_1) \le f(a_2)$ implies $a_1 \le a_2$. Therefore, $f$ is an isomorphism.
Now, suppose we have a morphism $f : P \to Q$ such that ${-} \circ f : \Hom(Q, \{0<1\}) \to \Hom(P, \{0<1\})$ is a bijection. Since it is injective and $\{0<1\}$ is a cogenerator, we get that $f$ is an epimorphism and therefore surjective on the underlying sets (see below). On the other hand, the fact that $f$ induces a bijection of upper sets implies that $f$ is also injective on the underlying sets, and also that $f(a_1) \le f(a_2)$ implies $a_1 \le a_2$. Therefore, $f$ is an isomorphism.

Comment thread database/data/categories/FreeAb.yaml Outdated
Comment thread database/data/categories/FS.yaml Outdated
Comment thread database/data/categories/Grp_c.yaml Outdated
conclusions:
- conservative
# TODO: refactor this if adding "reflects monomorphisms" / "reflects epimorphisms" properties
proof: 'It is easy to see that a faithful functor $F$ reflects monomorphisms: If we have two morphisms $x_1, x_2 : U \to X$ and $f : X \to Y$ such that $f(x_1) = f(x_2)$, and $F(f)$ is a monomorphism, then $F(x_1) = F(x_2)$; therefore, $x_1 = x_2$, so $f$ is also a monomorphism. The dual argument shows that $F$ also reflects epimorphisms. Therefore, if $F(f)$ is an isomorphism, then $f$ is both a monomorphism and an epimorphism; by the assumption on the domain category, this implies that $f$ is an isomorphism.'

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this result!

Nit:

Suggested change
proof: 'It is easy to see that a faithful functor $F$ reflects monomorphisms: If we have two morphisms $x_1, x_2 : U \to X$ and $f : X \to Y$ such that $f(x_1) = f(x_2)$, and $F(f)$ is a monomorphism, then $F(x_1) = F(x_2)$; therefore, $x_1 = x_2$, so $f$ is also a monomorphism. The dual argument shows that $F$ also reflects epimorphisms. Therefore, if $F(f)$ is an isomorphism, then $f$ is both a monomorphism and an epimorphism; by the assumption on the domain category, this implies that $f$ is an isomorphism.'
proof: 'It is easy to see that a faithful functor $F$ reflects monomorphisms: If we have two morphisms $x_1, x_2 : U \rightrightarrows X$ and $f : X \to Y$ such that $f(x_1) = f(x_2)$, and $F(f)$ is a monomorphism, then $F(x_1) = F(x_2)$; therefore, $x_1 = x_2$, so $f$ is also a monomorphism. The dual argument shows that $F$ also reflects epimorphisms. Therefore, if $F(f)$ is an isomorphism, then $f$ is both a monomorphism and an epimorphism; by the assumption on the domain category, this implies that $f$ is an isomorphism.'

Comment on lines +75 to +86
- id: locally-finite_right-cancellative_semi-strongly-connected_extremal-generating-set
assumptions:
- locally finite
- right cancellative
- semi-strongly connected
- extremal generating set
conclusions:
- essentially small
proof: >-
Suppose a category $\C$ is locally finite, semi-strongly connected, and has an extremal generating set $S$. We then claim that $\Ob(\C) \to \IN^S, X \mapsto (G \mapsto \card(\Hom(G, X)))$, is injective on isomorphism classes of $\Ob(\C)$. To see this, suppose two objects $X$ and $Y$ map into the same cardinality tuple. Then there is either a morphism $f : X \to Y$ or a morphism $f : Y \to X$; without loss of generality, say $f : X \to Y$. Then since $f$ is a monomorphism, for each $G \in S$ we have $f \circ {-} : \Hom(G, X) \to \Hom(G, Y)$ is an injective function between finite sets of equal cardinality, and therefore is also a bijection. By the assumption that $S$ is an extremal generating set, we thus have $f$ is an isomorphism.

This shows that the collection of isomorphism classes of objects of $X$ is in bijection with a set. Together with the assumption that the category is locally finite, this implies the category is essentially small.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice that the assumption "right cancellative" should be "left cancellative". (Luckily, this doesn't make a difference since the implication is only applied to On.)

I also made some other improvements below.

- id: locally-finite_left-cancellative_semi-strongly-connected_extremal-generating-set
  assumptions:
    - locally finite
    - left cancellative
    - semi-strongly connected
    - extremal generating set
  conclusions:
    - essentially small
  proof: >-
    Suppose a category $\C$ is locally finite, left cancellative, semi-strongly connected, and has an extremal generating set $S$. We then claim that
    $$\Ob(\C) \to \IN^S, \, X \mapsto (G \mapsto \card(\Hom(G, X)))$$
    is injective on isomorphism classes of $\Ob(\C)$. To see this, suppose two objects $X$ and $Y$ map into the same cardinality tuple. Since $\C$ is semi-strongly connected, we may assume without loss of generality that there is a morphism $f : X \to Y$. Then since $f$ is a monomorphism, for each $G \in S$ we have
    $$f \circ {-} : \Hom(G, X) \to \Hom(G, Y)$$
    is an injective function between finite sets of equal cardinality, and therefore is also a bijection. By the assumption that $S$ is an extremal generating set, we thus have $f$ is an isomorphism.

    This shows that the collection of isomorphism classes of objects of $X$ is in bijection with a set. Together with the assumption that the category is locally finite, this implies the category is essentially small.

@ScriptRaccoon ScriptRaccoon left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple more comments.

- generator
proof: This is trivial.
- extremal generator
proof: The fact that any object is a generator is trivial. To see any object is an extremal generator, use the fact that the category is equivalent to $BM$ for some monoid $M$, along with the fact that for an element $m$ of a monoid $M$, $m$ is a unit if and only if left multiplication by $m$ is a bijection $M \to M$.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use the Yoneda Lemma instead.

- property: generator
proof: The one-point set is clearly a generator.
- property: extremal generator
proof: The one-point set is clearly an extremal generator.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment for FinSet.

- property: generator
proof: The one-point set is clearly a generator.
- property: extremal generator
proof: The one-point set is clearly an extremal generator.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment for FinSet.

- property: cogenerator
proof: The two-point set is a cogenerator, this follows as for <a href="/category/Set">$\Set$</a>.
- property: extremal cogenerator
proof: The two-point set is an extremal cogenerator, this follows as for <a href="/category/Set">$\Set$</a>.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment for FinSet.

- property: generator
proof: The object $[0]$ is generator since this is already true in <a href="/category/Delta">$\Delta$</a>. A direct proof is also possible.
- property: extremal generator
proof: The object $[0]$ is an extremal generator since this is already true in <a href="/category/Delta">$\Delta$</a>. A direct proof is also possible.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct. The object [0] is a generator, but not an extremal generator.

@dschepler

Copy link
Copy Markdown
Contributor Author

By the way, I think I've found proofs that $(0, \infty)$ is an extremal cogenerator for Met; similarly $(0, \infty]$ is an extremal cogenerator for $\mathbf{Met}_\infty$; and $[0, \infty) \sqcup { 0' }$ is an extremal cogenerator for PMet. Is it OK for me to add these now, or should I wait until after the current review is done so you don't have a moving target?

@ScriptRaccoon

Copy link
Copy Markdown
Owner

Is it OK for me to add these now

Yes, in a new commit is fine!

@ScriptRaccoon ScriptRaccoon left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another chunk of comments. (not the final one, 11 files are left to review)

proof: >-
Suppose $S$ is any set of topological spaces, and let $\kappa$ be an infinite regular cardinal greater than $\card(G)$ for every $G \in S$. We then claim that $\Hom(G, \kappa \sqcup \{ \kappa \}) \to \Hom(G, \kappa + 1)$ is a bijection for every $G \in S$, showing that $S$ cannot be an extremal generating set. Here we use the standard order topology on both $\kappa$ and $\kappa + 1$.

To see this, suppose we have a continuous function $f : G \to \kappa + 1$, and consider $\im(f) \cap \kappa$. This is a subset of $\kappa$ whose cardinality is strictly less than $\kappa$, so its supremum $\alpha$ is also less than $\kappa$. Therefore, $f^*(\{ \kappa \}) = f^*((\alpha, \kappa])$ is open, showing that $f$ is also continuous as a function $G \to \kappa \sqcup \{ \kappa \}$.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To see this, suppose we have a continuous function $f : G \to \kappa + 1$, and consider $\im(f) \cap \kappa$. This is a subset of $\kappa$ whose cardinality is strictly less than $\kappa$, so its supremum $\alpha$ is also less than $\kappa$. Therefore, $f^*(\{ \kappa \}) = f^*((\alpha, \kappa])$ is open, showing that $f$ is also continuous as a function $G \to \kappa \sqcup \{ \kappa \}$.
To see this, suppose we have a continuous function $f : G \to \kappa + 1$, and consider $T := \im(f) \cap \kappa$. Then $T \subseteq \kappa$ and $\card(T) \leq \card(G) < \kappa$. Since $\kappa$ is regular, this implies $\alpha := \sup(T) < \kappa$. Therefore, $f^*(\{ \kappa \}) = f^*((\alpha, \kappa])$ is open, showing that $f$ is also continuous as a function $G \to \kappa \sqcup \{ \kappa \}$.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remark: I like this new and even stronger proof that no extremal generating set exists much more than the previous one that no small dense subcategory exists (which referenced https://math.stackexchange.com/questions/4097315/).


- property: extremal generating set
proof: >-
Suppose $S$ is any set of topological spaces, and let $\kappa$ be an infinite regular cardinal greater than $\card(G)$ for every $G \in S$. We then claim that $\Hom(G, \kappa \sqcup \{ \kappa \}) \to \Hom(G, \kappa + 1)$ is a bijection for every $G \in S$, showing that $S$ cannot be an extremal generating set. Here we use the standard order topology on both $\kappa$ and $\kappa + 1$.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Suppose $S$ is any set of topological spaces, and let $\kappa$ be an infinite regular cardinal greater than $\card(G)$ for every $G \in S$. We then claim that $\Hom(G, \kappa \sqcup \{ \kappa \}) \to \Hom(G, \kappa + 1)$ is a bijection for every $G \in S$, showing that $S$ cannot be an extremal generating set. Here we use the standard order topology on both $\kappa$ and $\kappa + 1$.
Suppose $S$ is any set of topological spaces, and let $\kappa$ be an infinite regular cardinal greater than $\card(G)$ for every $G \in S$. Equip ordinal numbers with the order topology as usual. We then claim that the canonical continuous bijection $\kappa \sqcup \{ \kappa \} \to \kappa + 1$, which is not a homeomorphism, induces a bijection $\Hom(G, \kappa \sqcup \{ \kappa \}) \to \Hom(G, \kappa + 1)$ for every $G \in S$, showing that $S$ cannot be an extremal generating set.

proof: It is easily checked that the indiscrete two-point space is a cogenerator.
- property: extremal cogenerator
proof: >-
It is easily checked that the indiscrete two-point space is a cogenerator. We claim that adding the Sierpinski space $(\{ 0, 1 \}, \{ \varnothing, \{ 1 \}, \{ 0, 1 \} \})$ makes an extremal cogenerating set. To see this, let $f : X \to Y$ be a continuous function. First, $f$ inducing a bijection of maps to the indiscrete two-point space implies that $f$ is bijective on the underlying sets. Then, $f$ inducing a bijection of maps to the Sierpinski space implies that $f^* : \Open(Y) \to \Open(X)$ is also a bijection.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
It is easily checked that the indiscrete two-point space is a cogenerator. We claim that adding the Sierpinski space $(\{ 0, 1 \}, \{ \varnothing, \{ 1 \}, \{ 0, 1 \} \})$ makes an extremal cogenerating set. To see this, let $f : X \to Y$ be a continuous function. First, $f$ inducing a bijection of maps to the indiscrete two-point space implies that $f$ is bijective on the underlying sets. Then, $f$ inducing a bijection of maps to the Sierpinski space implies that $f^* : \Open(Y) \to \Open(X)$ is also a bijection.
It is easily checked that the indiscrete two-point space is a cogenerator, using that the two-element set is a cogenerator in $\Set$. We claim that adding the Sierpinski space $S$ makes an extremal cogenerating set. To see this, let $f : X \to Y$ be a continuous function. First, $f$ inducing a bijection of maps to the indiscrete two-point space implies that $f$ is bijective on the underlying sets. Then, $f$ inducing a bijection of maps to the Sierpinski space implies that $f^* : \Open(Y) \to \Open(X)$ is also a bijection. That is, $f$ is a homeomorphism.

The definition of the Sierpinski space doesn't need to be repeated since it is already used anyway in various places (even here in Top.yaml); in doubt we can add a link to Wikipedia.

Also, this is an interesting characterization of homeomorphism which most texts on general topology do not mention, right?

Here is the easy proof + generalization: Let $f : X \to Y$ be a surjective map which induces a surjection on open sets via pullback. Let $U \subseteq X$ be open. By assumption there is an open subset $V \subseteq Y$ with $U = f^*(V)$. Then $f_*(U) = f_*(f^*(V)) = V$, the last step uses that $f$ is surjective. Thus, $f$ is an open map.

Comment on lines -60 to -61
- property: balanced
proof: If $X$ is a set, consider the discrete space $X_d$ on $X$ and the indiscrete space $X_i$ on $X$. The identity map $X \to X$ lifts to a continuous map $X_d \to X_i$, which is bijective and therefore both a mono- and an epimorphism, but it is not an isomorphism unless $X$ has at most one element.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not 100% sure if we should remove this (even if it is redundant), since this is a very instructive proof which many people should know. WDYT?

We can definitely remove it for pointed spaces since this is just a boring variation of the proof for spaces.

proof: It is easily checked that the indiscrete two-point space $\{0,1\}$ with base point $1$ is a cogenerator.
- property: extremal cogenerator
proof: >-
It is easily checked that the indiscrete two-point space $\{0,1\}$ with base point $1$ is a cogenerator. If $S$ is the Sierpinski space on $\{0,1\}$, we claim that adding $(S, 0)$ and $(S, 1)$ gives an extremal cogenerating set. To see this, let $f : X \to Y$ be a continuous function. Then $f$ inducing a bijection on maps to $(\{0,1\},1)$ implies that the underlying function of $f$ is bijective. In particular, because $f$ is injective, we see that for $V$ an open subset of $Y$, $f^*(V)$ contains the base point of $X$ if and only if $V$ contains the base point of $Y$. Also, $f$ inducing a bijection on maps to $(S, 1)$ implies that $f^* : \Open(Y) \to \Open(X)$ is bijective on the open sets containing the base points, and $f$ inducing a bijection on maps to $(S, 0)$ implies that $f^* : \Open(Y) \to \Open(X)$ is bijective on the open sets not containing the base points. From these observations, we can conclude that $f$ is a homeomorphism.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a reference to the extremal cogenerator in Set*.

Comment thread database/data/categories/Man.yaml Outdated
Comment thread database/data/categories/Man.yaml Outdated
proof: >-
The manifold $\IR$ is a cogenerator, since for every smooth manifold $M$ and points $p \neq q$ in $M$ there is a smooth function $f : M \to \IR$ with $f(p) = 1$ and $f(q) = 0$ (John Lee, Introduction to Smooth Manifolds, Prop. 2.25).

In fact, $\IR$ is an extremal cogenerator. To see this, suppose we have a smooth map $f : M \to N$ such that ${-} \circ f : \Hom(N, \IR) \to \Hom(M, \IR)$ is a bijection. Then using bump maps as before to separate points of $M$, we can see that $f$ must be injective on underlying sets. Also, since $\IR$ is a cogenerator and ${-} \circ f$ is injective, we get that $f$ is an epimorphism, so it has dense image (see below). We claim that in fact, $f$ is surjective. To see this, suppose we had $q \in N \setminus \im(f)$. Then there is a bump map $\varphi : N \to \IR$ such that the image of $\varphi$ is contained in $[0,1]$, and $\varphi$ achieves value 1 only at $q$ (for example, $e^{-|x|^2}$ achieves this on $\IR^n$; then we can multiply by a bump function which is 1 on a neighborhood of the origin and which has compact support, and then transport this to a chart around $q$). But then we can construct a smooth function $\psi : M \to \IR$ by $\psi(p) \coloneqq \frac{1}{1 - \phi(f(p))}$. The corresponding function $N \to \IR$ must agree with $\frac{1}{1 - \phi}$ on the image of $f$. We can now get a contradiction from the fact that the image of $f$ is dense, and therefore contains a sequence of points converging to $q$, whereas the values of $\frac{1}{1 - \phi}$ on this sequence diverge to $\infty$.

@ScriptRaccoon ScriptRaccoon Jul 18, 2026

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(for example, $e^{-|x|^2}$ achieves this on $\IR^n$; then we can multiply by a bump function which is 1 on a neighborhood of the origin and which has compact support, and then transport this to a chart around $q$)

This repeats the proof of a general lemma. Let's find this lemma and cite it. I can also look in Lee's book if you want.

Comment thread database/data/categories/Man.yaml Outdated
proof: >-
The manifold $\IR$ is a cogenerator, since for every smooth manifold $M$ and points $p \neq q$ in $M$ there is a smooth function $f : M \to \IR$ with $f(p) = 1$ and $f(q) = 0$ (John Lee, Introduction to Smooth Manifolds, Prop. 2.25).

In fact, $\IR$ is an extremal cogenerator. To see this, suppose we have a smooth map $f : M \to N$ such that ${-} \circ f : \Hom(N, \IR) \to \Hom(M, \IR)$ is a bijection. Then using bump maps as before to separate points of $M$, we can see that $f$ must be injective on underlying sets. Also, since $\IR$ is a cogenerator and ${-} \circ f$ is injective, we get that $f$ is an epimorphism, so it has dense image (see below). We claim that in fact, $f$ is surjective. To see this, suppose we had $q \in N \setminus \im(f)$. Then there is a bump map $\varphi : N \to \IR$ such that the image of $\varphi$ is contained in $[0,1]$, and $\varphi$ achieves value 1 only at $q$ (for example, $e^{-|x|^2}$ achieves this on $\IR^n$; then we can multiply by a bump function which is 1 on a neighborhood of the origin and which has compact support, and then transport this to a chart around $q$). But then we can construct a smooth function $\psi : M \to \IR$ by $\psi(p) \coloneqq \frac{1}{1 - \phi(f(p))}$. The corresponding function $N \to \IR$ must agree with $\frac{1}{1 - \phi}$ on the image of $f$. We can now get a contradiction from the fact that the image of $f$ is dense, and therefore contains a sequence of points converging to $q$, whereas the values of $\frac{1}{1 - \phi}$ on this sequence diverge to $\infty$.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's write $\psi(p) \coloneqq \frac{1}{1 - \phi(f(p))}$ in display math ($$).

Comment thread database/data/categories/Man.yaml Outdated
Comment thread database/data/categories/Meas.yaml Outdated
Comment thread database/data/categories/Met.yaml Outdated
Comment thread database/data/categories/Met.yaml Outdated
Comment thread database/data/categories/Met.yaml Outdated
Comment thread database/data/categories/Met.yaml Outdated
Comment thread database/data/categories/Met.yaml Outdated

@ScriptRaccoon ScriptRaccoon left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the final chunk of comments. I have now checked all the files.

Comment thread database/data/categories/Met_c.yaml Outdated
Comment thread database/data/categories/Met_c.yaml Outdated
Comment thread database/data/categories/Met_c.yaml Outdated
Comment thread database/data/categories/Met_oo.yaml Outdated
Comment thread database/data/categories/Mono.yaml Outdated
Comment thread database/data/categories/walking_span.yaml
- property: generator
proof: 'The object $1$ a generator, since the only parallel pair of non-equal morphisms is $\id_1, ip : 1 \rightrightarrows 1$ with domain $1$.'
- property: extremal generator
proof: 'The object $1$ is a generator, since the only parallel pair of non-equal morphisms is $\id_1, ip : 1 \rightrightarrows 1$ with domain $1$. It is also an extremal generator since $\Hom(1, 0) = \{ p \}$ and $\Hom(1, 1) = \{ \id_1, ip \}$ are not bijective. The only other non-isomorphism to check is $ip : 1 \rightrightarrows 1$, where left multiplication by the non-unit $ip$ cannot induce a bijection on $\End(1)$.'

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
proof: 'The object $1$ is a generator, since the only parallel pair of non-equal morphisms is $\id_1, ip : 1 \rightrightarrows 1$ with domain $1$. It is also an extremal generator since $\Hom(1, 0) = \{ p \}$ and $\Hom(1, 1) = \{ \id_1, ip \}$ are not bijective. The only other non-isomorphism to check is $ip : 1 \rightrightarrows 1$, where left multiplication by the non-unit $ip$ cannot induce a bijection on $\End(1)$.'
proof: 'The object $1$ is a generator, since the only parallel pair of non-equal morphisms is $\id_1, ip : 1 \rightrightarrows 1$ with domain $1$. It is also an extremal generator since $\Hom(1, 0) = \{ p \}$ and $\Hom(1, 1) = \{ \id_1, ip \}$ are not bijective. The only other non-isomorphism to check is $ip : 1 \to 1$, where left multiplication by the non-unit $ip$ cannot induce a bijection on $\End(1)$.'

proof: >-
The additive group $\IQ$ is a cogenerator since every torsion-free abelian group $A$ embeds into $A \otimes \IQ$, which is a vector space over $\IQ$, and by linear algebra $K$ is a cogenerator in the category of vector spaces over $K$.

We claim that $S \coloneqq \{\IQ\} \cup \{\IZ_p : p \mathrm{~prime}\}$ is an extremal cogenerating set, where $\IZ_p$ is the additive group of the $p$-adic integers. To establish this, we will show that for any torsion-free group $G$, the canonical morphism $G \to \prod_{Q\in S} \prod_{f\in\Hom(G,Q)} Q$ is in fact a regular monomorphism, and therefore an extremal monomorphism. By the characterization below, this is equivalent to showing it is injective, and its image is a saturated subgroup. From the above, including $\IQ$ in $S$ is already sufficient to make it a monomorphism, i.e. an injective homomorphism. For the second part, it suffices to show for each prime $p$ that if $x\in G$ is not $p$-divisible, then its image in the product is not $p$-divisible.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the second part, it suffices to show for each prime $p$ that if $x\in G$ is not $p$-divisible, then its image in the product is not $p$-divisible.

Why?


We claim that $S \coloneqq \{\IQ\} \cup \{\IZ_p : p \mathrm{~prime}\}$ is an extremal cogenerating set, where $\IZ_p$ is the additive group of the $p$-adic integers. To establish this, we will show that for any torsion-free group $G$, the canonical morphism $G \to \prod_{Q\in S} \prod_{f\in\Hom(G,Q)} Q$ is in fact a regular monomorphism, and therefore an extremal monomorphism. By the characterization below, this is equivalent to showing it is injective, and its image is a saturated subgroup. From the above, including $\IQ$ in $S$ is already sufficient to make it a monomorphism, i.e. an injective homomorphism. For the second part, it suffices to show for each prime $p$ that if $x\in G$ is not $p$-divisible, then its image in the product is not $p$-divisible.

To see this, let $\{y_i : i \in I\}$ be a set including $x = y_{i_0}$ whose images in $G / pG$ form a basis for this $\IZ / p \IZ$-vector space. We will now prove by induction that for each $n$, $G / p^n G$ is a free $\IZ / p^n \IZ$-module with basis given by the images of $y_i$. The base case $n=1$ is true by assumption. Now for the inductive step from $n$ to $n+1$, for $g \in G$ we can find $a_i \in \IZ$ (all but finitely many equal to zero) such that $g \in \sum_{i\in I} a_i x_i + p^n G$. Since $G$ is torsion-free, there exists a unique $h$ such that $g = \sum_{i\in I} a_i x_i + p^n h$. Now projecting $h$ into $G / pG$, we can find $b_i \in \IZ$ such that $h \in \sum_{i\in I} b_i x_i + pG$. Hence, $g \in \sum_{i\in I} (a_i + p^n b_i) x_i + p^{n+1} G$. The uniqueness of the coefficients up to congruence modulo $p^{n+1}$ follows from the fact that there are unique choices of $a_i$ with $0 \le a_i < p^n$, and then the $b_i$ are unique up to congruence modulo $p$.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To see this, let $\{y_i : i \in I\}$ be a set

In the following, you write x_i.

Also, it would be good to specify that this is a subset of $G$.


To see this, let $\{y_i : i \in I\}$ be a set including $x = y_{i_0}$ whose images in $G / pG$ form a basis for this $\IZ / p \IZ$-vector space. We will now prove by induction that for each $n$, $G / p^n G$ is a free $\IZ / p^n \IZ$-module with basis given by the images of $y_i$. The base case $n=1$ is true by assumption. Now for the inductive step from $n$ to $n+1$, for $g \in G$ we can find $a_i \in \IZ$ (all but finitely many equal to zero) such that $g \in \sum_{i\in I} a_i x_i + p^n G$. Since $G$ is torsion-free, there exists a unique $h$ such that $g = \sum_{i\in I} a_i x_i + p^n h$. Now projecting $h$ into $G / pG$, we can find $b_i \in \IZ$ such that $h \in \sum_{i\in I} b_i x_i + pG$. Hence, $g \in \sum_{i\in I} (a_i + p^n b_i) x_i + p^{n+1} G$. The uniqueness of the coefficients up to congruence modulo $p^{n+1}$ follows from the fact that there are unique choices of $a_i$ with $0 \le a_i < p^n$, and then the $b_i$ are unique up to congruence modulo $p$.

This then allows us to define a morphism $\varphi : G \to \IZ_p$ sending $g\in G$ to the limit of the $i_0$-indexed coefficients in $G / p^n G$. We have $\varphi(x) = 1$; thus, the $(\IZ_p, \varphi)$ component of the image of $x$ in the product is not $p$-divisible, implying that the image of $x$ itself is not $p$-divisible.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please write down a precise definition of $\varphi$ and in particular why it is well-defined.

I would do something like: Let $G/p^n G \to Z/p^n$ be the coordinate projection at $i_0$. These are compatible in $n$ (since the basis has been chosen uniformly), hence yield a homomorphism $G \to \lim_n G/p^n G \to \lim_n Z/p^n = Z_p$.

@ScriptRaccoon

Copy link
Copy Markdown
Owner

Looking at the proof I added that TorsFreeAb has Q × ∏ p Z p as an extremal cogenerator, I wonder how many other proofs I could simplify by applying the same pattern: prove the canonical map to a product is in fact a regular monomorphism, using already established descriptions of products and regular monomorphisms (and dually for generators of course). For example, looking at the proofs in Ban, I can definitely see that strategy applying there.

After having read through the whole PR, I now understand what you mean here. Yes, this is a good idea, but this is a good opportunity for a follow-up PR. Let's try to finish and merge the current state first. There are always improvements we can make, for example also using the already mentioned dense subcategories.

@ScriptRaccoon

ScriptRaccoon commented Jul 21, 2026

Copy link
Copy Markdown
Owner

I don't know why the e2e test for "user can open a proof for a deduced satisfied property of category" is failing. The code looks fine, and it also works locally. I reran the test on GitHub, but it gives the same error. For now, I think you can ignore this issue. I need to make the tests more reliable (also on my side they sometimes fail randomly for obscure reasons). If it keeps failing and it blocks us from merging, just uncomment the test case and I try to fix it after merging.

@dschepler

Copy link
Copy Markdown
Contributor Author

Ah, right, I incorporated the suggestion to make explicit assignments of "Set has an extremal generator" for use in full subcategories, which would have broken the expected text (and even the expectation that it's testing a deduced satisfied property). I could switch that test back to testing the "generator" property, with the text that it's deduced from having an extremal generator.

@ScriptRaccoon

ScriptRaccoon commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Ah, right, I incorporated the suggestion to make explicit assignments of "Set has an extremal generator" for use in full subcategories, which would have broken the expected text (and even the expectation that it's testing a deduced satisfied property). I could switch that test back to testing the "generator" property, with the text that it's deduced from having an extremal generator.

Oups, even though I was on your branch with the latest changes, I forgot to update the database. Now it also fails.

Let us just replace the category by, say, Ring.

await page.goto('/category/Ring', { waitUntil: 'networkidle' })

The rest of the test 'user can open a proof for a deduced satisfied property of category' can stay as is.

By the way, did you check out pnpm e2e:ui already? This is such a cool feature 😎

Comment on lines +42 to +43
- property: extremal generator
proof: The group $\IZ$ is an extremal generator since it represents the forgetful functor $\Grp \to \Set$, which is faithful and conservative.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- property: extremal generator
proof: The group $\IZ$ is an extremal generator since it represents the forgetful functor $\Grp \to \Set$, which is faithful and conservative.
- property: extremal generator
proof: The group $\IZ$ is an extremal generator since it represents the forgetful functor $\Grp \to \Set$, which is faithful and conservative.
check_redundancy: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants