Guessing a permutation in a way analogous to Wordle
Statement
Let be a permutation of chosen uniformly at random. You have to determine by successively guessing permutations . After each guess you are told where and agree, i.e., those values for which $v_j(i)= w(i)$. What is the optimal strategy to minimize the number of guesses? What is the expected number of guesses? If an exact answer is intractable, can be determined asymptotically? Is there a constant for which ?
Simple observation. Suppose that for we always choose to satisfy the following: if we already have determined that , then choose . If we have already determined that , then choose . (It seems plausible that some optimal strategy will have this property.) Such a choice is always possible by, for instance, cyclically shifting the previous incorrectly guessed values. Then using this procedure we will determine in at most guesses.
There are numerous related questions. Here are two.
(1) What if we only need to determine ? If we are only allowed to guess a single number each time, then the …
Posed by Richard Stanley · permutations, combinatorial-optimization
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-497111.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-497111.lean
import Mathlib /-! # Guessing a permutation in a way analogous to Wordle Source: https://mathoverflow.net/questions/497111 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_497111 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_497111