Left to Solve
Problems / MathOverflow (not formalized)

Number of permutations in a set in an algorithm

Open, not yet stated in LeanMathOverflow (not formalized)Combinatoricsdifficulty55/100

Statement

Previously I asked a question about the space usage in an algorithm of mine: Upper bound on the number of permutations in a set during an algorithm. This question does not depend on the previous one, so no need to follow the link to proceed.

If the input to the algorithm is , it computes the number of commutation classes of reduced words of the longest element of .

In terms of speed the algorithm has been greatly improved, and the space usage has gotten a bit worse. The number of units of space seems to have gotten better, but this is cancelled out by the fact that the unit is inflated by a factor of .

In any case, I estimate that the number of units of space it uses (which corresponds to a set of permutations) is about 1.25 times the number of permutations with inversions. I'm wondering if someone can verify that for me.

We have a total ordering on such that if has fewer inversions than or if and have the same number of inversions and comes before in lexicographical order. The relevant part of the algorithm for my question is as follows, which constructs sets :

• Let …

Posed by Matt Samuel · co.combinatorics, symmetric-groups

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-289686.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-289686.lean

import Mathlib

/-!
# Number of permutations in a set in an algorithm

Source: https://mathoverflow.net/questions/289686
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_289686

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_289686