Zulip Chat Archive
Stream: mathlib4
Topic: CategoryTheory.Limits.IsLimit not in Prop
Yury G. Kudryashov (Feb 11 2024 at 23:15):
I accidentally found out (I don't usually use this part of the library) that docs#CategoryTheory.Limits.IsLimit (and all the typeclasses defined in terms of this one) is not a Prop
. It would be nice if someone who is more familiar with category theory in Mathlib will expand the docstring to explain that this has Is
prefix but is not a Prop
, so the users should be careful. Also, it would be nice to add similar comments to typeclasses like PreservesLimitsOfShape
.
Yury G. Kudryashov (Feb 11 2024 at 23:22):
Pinging @Scott Morrison, the author of this file.
Adam Topaz (Feb 11 2024 at 23:49):
IsLimit should definitely not be a prop. OTOH one could argue that PreservesLimitsOfShape and friends should be a prop
Adam Topaz (Feb 11 2024 at 23:51):
IMO, This is one case where the prefix “Is” does make sense, even though the structure contains data
Yury G. Kudryashov (Feb 11 2024 at 23:57):
I don't claim that it should be a Prop
. I claim that the fact that it's not a Prop
should be explained in the docstring.
Kevin Buzzard (Feb 12 2024 at 00:10):
Kevin Buzzard (Feb 12 2024 at 00:11):
You're familiar with that part of the library :P
Yury G. Kudryashov (Feb 12 2024 at 00:11):
Thanks, I'll expand this docstring soon!
Yury G. Kudryashov (Feb 12 2024 at 00:20):
#10444 ?
Yury G. Kudryashov (Feb 12 2024 at 00:21):
Wait a minute, I'll add more.
Yury G. Kudryashov (Feb 12 2024 at 00:36):
Done.
Last updated: May 02 2025 at 03:31 UTC