Definition 10 on unary codes is computable in polynomial time
ProvedNQueensComp.NPC.reduce13Bits_polytimen-queensparsimonious-reductionpolynomial-time
The specific function defined by the unary-code implementation of Definition 10 is computable in polynomial time on the CookLevin multi-tape Turing-machine model. That is, one machine outputs and halts within steps on every input, including malformed codes and codes that fail the instance-validity checks.
The unary fields bound the decoded board size and each parsed coordinate by the input length. The validity checks use bounded scans and pairwise comparisons. The construction forms a fixed number of translated blocks, indexes sorted columns and rows, and writes the output board size and a sorted duplicate-free list of queens in unary. A formal machine and a bound on its running time are required.
Preamble
import Definitions.Def_NQueensComp_NPC_SharpP import Definitions.Def_NQueensComp_NPC_CodeReduction13
Formal statement
namespace NQueensComp.NPC theorem reduce13Bits_polytime : CookLevin.IsPolyTimeComputable reduce13Bits := by sorry end NQueensComp.NPC
Source
Gent, Jefferson & Nightingale, Complexity of n-Queens Completion, https://doi.org/10.1613/jair.5512, pp. 819–820, Definition 10 (pp. 824–825), Theorem 13 (p. 826), and the polynomial-time observation in Theorem 37 (p. 836).