Left to Solve
Problems / MathOverflow (not formalized)

An explicit "easily" computable-and-invertible mapping between permutations?

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

Statement

TL;DR version: With the magician's back turned, a spectator shuffles a standard deck of playing cards and selects and arranges of them face-up in a row left to right. The magician's assistant turns one of these cards face-down, leaving the ordered arrangement otherwise undisturbed. The magician turns around, observes this arrangement with face-up cards, and announces the single face-down card. How do the magician and assistant perform this trick?

Details: I'm trying to generalize the ideas behind Fitch Cheney's "5-card trick," where a spectator selects cards, the assistant arranges of them in a row left to right to present to the magician, who announces the remaining card. This trick is feasible if and only if (where the RHS is the falling factorial); that is, considering the set of possible -card selections by the spectator and the set of possible -card arrangements that may be presented to the magician, the obvious necessary condition that is also sufficient (this follows from the bi-regularity of the corresponding bipartite graph with vertex sets and ).

There is a very simple …

Posed by possiblywrong · 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-504530.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-504530.lean

import Mathlib

/-!
# An explicit "easily" computable-and-invertible mapping between permutations?

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

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

theorem main : sorry := by
  sorry

end OMA.S_mo_504530