Counting entropy along the prime factorisation #
For a finite set R and a function f, ent R f = ∑_{m ∈ R} log (|R| / |fibre of m|); this is
|R| times the Shannon entropy of f(X) for X uniform on R.
key t m records the exponents of the primes < t in m (the t-smooth part of m).
D T t is |T| times the conditional entropy of v_t(X) given key t X; the chain rule
∑_{t < B} D T t = |T| log |T| is sum_D.
The exponents of the primes < t in m.
Equations
- RunsOfMultiples.key t m = Finsupp.filter (fun (x : ℕ) => x < t) m.factorization
Instances For
D T t: |T| times the conditional entropy of v_t(X) given the t-smooth part of X.
Equations
- RunsOfMultiples.D T t = ∑ c ∈ Finset.image (RunsOfMultiples.key t) T, RunsOfMultiples.ent ({m ∈ T | RunsOfMultiples.key t m = c}) fun (m : ℕ) => m.factorization t