Commit 2024-07-12 14:35 f8516eba
View on Github →feat: Density of a finset (#11243)
The density of a finite set in an ambient group is a quantity of great interest in combinatorics.
This PR defines Finset.dens s
for s : Finset α
as the size of s
divided by the size of α
, with value in any semifield.
The API lemmas are copied from Finset.card
(but not all Finset.card
lemmas are sensible Finset.dens
lemmas).
From LeanAPAP