Zulip Chat Archive
Stream: new members
Topic: Capital letters
Iocta (Aug 15 2020 at 04:40):
What is the convention for capitalization, like Union
vs union
?
Mario Carneiro (Aug 15 2020 at 04:54):
Almost everything is in all lowercase snake_case
, but there are a few exceptions for name segments with particular meanings. There are a few related union-like functions, which have names differ in capitalization:
union : set A -> set A -> set A
means the binary union of two sets (or finsets, etc)Union : (I -> set A) -> set A
is the indexed union of a family of setssUnion : set (set A) -> set A
is the union of a set of setsbUnion
is the name for the iterated unionU i \in s, f i
, essentially having the typeset I -> (I -> set A) -> set A
There is a similar pattern withinter
,Inter
,sInter
andbInter
.
Another capitalized name segment, for similar reasons, is the same sequence of functions, this time for lattices:
sup
,inf
: binary supremum/infimumsupr
,infi
: supremum/infimum over a typeSup
,Inf
: supremum/infimum over a set of elementsbSup
,bInf
: bounded supremum/infimum
Scott Morrison (Aug 15 2020 at 04:58):
We also use Group
for a bundled group
, etc.
Bryan Gin-ge Chen (Aug 15 2020 at 05:44):
Anyone want to add this to our naming conventions doc here?
Last updated: Dec 20 2023 at 11:08 UTC