Left to Solve
Problems / MathOverflow (not formalized)

How do we calculate the number of cases to reverse an order with single crossing?

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

Statement

I'm trying to solve the following question.

Let there be number of things. They have an ordering. I would like to know how many cases are there to reverse the ordering by reversing the nearby pair of things without allowing reoverlap to happen.

Let me give you an example. Let's say there are three things 1, 2, 3. They are ordered as . I'd like to know what is the number of cases we can reverse the ordering to . The possible case are two: or . Once has changed to , I won't allow this reversal to happen, again.

I think there should be a systematic way to get the formula to calculate the number of cases in the reversal of the above way that happens for general objects. But I can't easily think of finding it.

Can someone help?

Posed by user23329063 · co.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-486049.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-486049.lean

import Mathlib

/-!
# How do we calculate the number of cases to reverse an order with single crossing?

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

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

theorem main : sorry := by
  sorry

end OMA.S_mo_486049