Zulip Chat Archive
Stream: mathlib4
Topic: CategoryTheory.Functor.essImage: `Set` defeq abuse
Yury G. Kudryashov (Feb 25 2024 at 19:52):
We define docs#CategoryTheory.Functor.essImage as a set, then use it as a predicate (e.g., by using dot notation). Should we resolve it one way or another? Note: I never used this part of the library, so I have no opinion on which way is better.
Yury G. Kudryashov (Feb 25 2024 at 19:52):
I found this while trying to turn Set
into a one-field structure (not yet sure if this is a good change, let's not discuss it here anyway).
Adam Topaz (Feb 25 2024 at 20:20):
I think we want it to be a set
Adam Topaz (Feb 25 2024 at 20:21):
We want to be able to say things of the form "This object is an element of the essential image" using Membership
notation, for instance.
Adam Topaz (Feb 25 2024 at 20:21):
I guess the real question is whether we want docs#CategoryTheory.FullSubcategory to take a set or a predicate
Matthew Ballard (Feb 25 2024 at 20:24):
I would lean predicate. That’s how I think of things in real life
Adam Topaz (Feb 25 2024 at 20:25):
you mean for the full subcat?
Adam Topaz (Feb 25 2024 at 20:25):
I'm the other way -- I think of it as being associated to a (sub)set of objects.
Matthew Ballard (Feb 25 2024 at 20:28):
Yeah, I would go predicate everywhere but don’t have strong opinion
Joël Riou (Feb 25 2024 at 20:53):
In a near future, when I start PRing notions of triangulated subcategories, I will have to manipulate some "sets" of objects in a category. For example, I will introduce a typeclass Set.RespectsIso {C : Type*} {Category C] (S : Set C) : Prop
. Then, I would prefer if we do not change sets into predicates.
Last updated: May 02 2025 at 03:31 UTC