Left to Solve
Problems / MathOverflow (not formalized)

How to generate a Latin square $M'$ in the same main class as $M \in \mathrm{LS}(9)$ which agrees with $L$ in the most cells?

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

Statement

I'm brainstorming an idea for storing a compressed list of main class representatives of Latin squares of order . One way to compress the list would be to store one Latin square , and for , store the Latin trade between and . We can reduce the size of the Latin trade by replacing by another main class representative that agrees with in more positions. However, main classes of Latin squares of order usually contain Latin squares, which is too many to look at exhaustively.

Question: Given two Latin squares, and , of order , which Latin square in the same main class as agrees with in the most cells? How can we generate it?

I'm seeking an algorithmic answer (something implementable), and practical approximations would suffice.

Posed by Rebecca J. Stones · 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-239160.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-239160.lean

import Mathlib

/-!
# How to generate a Latin square $M'$ in the same main class as $M \in \mathrm{LS}(9)$ which agrees with $L$ in the most cells?

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

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

theorem main : sorry := by
  sorry

end OMA.S_mo_239160