Is counting Latin squares #P-complete?
Statement
I feel like I should know the answer to this. I did some Googling and didn't easily find the answer...
Question: Is counting Latin squares #P-complete?
Obviously the corresponding decision problem "Is this a Latin square?" belongs to P ⊆ NP, so the Latin-square enumeration problem is in #P.
We have:
• Valiant's theorem shows that computing the permanent of (0,1)-matrices is #P-complete, and the number of extensions of a Latin rectangle can be rephrased in terms of a (0,1)-matrix permanent.
• Colbourn's (1984) result that completing partial Latin squares is NP-complete (see also Easton and Parker (2001)).
• Gessel (1987) showed that the number of Latin rectangles with a fixed number of rows is P-recursive.
I'm not sure what's known beyond this.
Posed by Rebecca J. Stones · co.combinatorics, computational-complexity, enumerative-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-425806.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-425806.lean
import Mathlib /-! # Is counting Latin squares #P-complete? Source: https://mathoverflow.net/questions/425806 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_425806 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_425806