Are there fast rank and unrank algorithms for integer vectors under the action of a permutation group?
Statement
We are distributing indistinguishable balls in numbered boxes . A distribution is a tuple of nonnegative integers whose sum is . We also have a permutation group acting on , and two distributions are considered equivalent, if there is a permutation such that for all . Denote the set of the equivalence classes by . An equivalence class can be represented by some canonical element of it, for example the distribution that comes first in reverse lexical order.
Question: Are there known fast rank and unrank algorithms for ?
A rank function is a bijection , and its inverse is an unrank function. So the unranking gives "the th member", in some linear order, and the ranking tells the index of a given member.
By "fast" I mean clearly faster than iterating the distributions in a linear order until a match is found. Let's say a "fast" unranking takes time , where is a constant, . The naive iteration takes time when accessing the last element …
Posed by Jukka Kohonen · co.combinatorics, permutations, bijective-combinatorics
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-459276.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-459276.lean
import Mathlib /-! # Are there fast rank and unrank algorithms for integer vectors under the action of a permutation group? Source: https://mathoverflow.net/questions/459276 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_459276 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_459276