NLA-lib Explorer

NLAlib.uniformOn_injective_singleton

Library · theorem

Under the uniform law on injections, each injection f : k \to n has mass 1 / (\lvert n \rvert)_{\lvert k \rvert}, the falling factorial \lvert n \rvert (\lvert n \rvert - 1) \cdots (\lvert n \rvert - \lvert k \rvert + 1), which is the number of injections.

NLAlib.uniformOn_injective_singleton.{u_1, u_2} {k : Type u_1} {n : Type u_2} [Fintype k]
  [Fintype n] [MeasurableSpace n] [MeasurableSingletonClass n] {f : k → n}
  (hf : Function.Injective f) :
  (uniformOn {g | Function.Injective g}) {f} =
    (↑((Fintype.card n).descFactorial (Fintype.card k)))⁻¹

Full source on GitHub

Import NLAlib.Probability.Distributions.UniformInjection.