Left to Solve
Problems / MathOverflow (not formalized)

Most and least number of ways to extend a Latin rectangle

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

Statement

Let be a Latin rectangle, . Thus the entries of are the numbers , and the numbers in every row and column are distinct. It is well-known that can be extended to a Latin rectangle. What is the most number in which this can be done? What is the least number of ways? An exact answer will be intractable since we cannot describe all Latin rectangles, so are there there good estimates? What if we start with first row and then add one row at a time, always making a choice that maximizes (or minimizes) the number of choices for the following row?

As a random example, let be a Latin rectangle with first row (without loss of generality). The most number of ways to extend is , obtained by taking the second row to be any permutation with cycles of length . The least number of ways is , obtained by taking the second row to be any permutation with cycles of length or . For a Latin rectangle with first row , the least number of ways to extend is to take the second row to have cycles of length (but not ).

Posed by Richard Stanley · co.combinatorics, latin-square

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

import Mathlib

/-!
# Most and least number of ways to extend a Latin rectangle

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

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

theorem main : sorry := by
  sorry

end OMA.S_mo_498565