Documentation

Papers.Rockel2025Approximation.PermutationShuffles

← Mathematical handbook

Proposition 3.2: all equal-width straight permutation shuffles #

The source's positive order N is represented as n+1, with zero-based indices. Thus the source's endpoint conditions π(1)=1 and π(N)=N become π(0)=0 and π(Fin.last n)=Fin.last n. No symmetry assumption is imposed on π.

Number of pairs j<i with π(j)>π(i), equivalent to the source's inversion count.

Equations
Instances For
    theorem Papers.Rockel2025Approximation.permutationShuffle_cdf (n : ℕ) (π : Equiv.Perm (Fin (n + 1))) (u v : ↑unitInterval) :
    (permutationShuffle n π).cdf ![u, v] = ∑ i : Fin (n + 1), min (Verification.stripCut (1 / (↑n + 1)) (↑↑i / (↑n + 1)) ↑u) (Verification.stripCut (1 / (↑n + 1)) (↑↑(π i) / (↑n + 1)) ↑v)
    theorem Papers.Rockel2025Approximation.permutationShuffle_rho (n : ℕ) (π : Equiv.Perm (Fin (n + 1))) :
    (permutationShuffle n π).spearmanRho = 1 - (6 * ∑ i : Fin (n + 1), (↑↑(π i) - ↑↑i) ^ 2) / (↑n + 1) ^ 3