Commit 2024-10-17 15:41 0456b9a1
View on Github →feat: #s as notation for Finset.card s (#17646)
I believe it is time that we finally introduce this notation. This makes serious finset calculations significantly nicer (see eg #5297) and is standard notation.
|s| would be an alternative, but absolute value elaboration is very complicated like that, so I would rather not, and #{x | p x} looks nicer than |{x | p x}| (although in return |s ∩ t| looks nicer than #(s ∩ t)).
I am scoping the notation to the Finset namespace to avoid clashes with Cardinal.mk, which also uses that notation.