Left to Solve
Problems / MathOverflow (not formalized)

NP-hardness of a string transformation problem with k templates

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

Statement

Given strings and , a template length , and a maximum number of different templates , the task is to determine if it's possible to convert into using no more than different templates, each of exactly length . For example, if , , , and , the answer would be YES because it's feasible to achieve the transformation with just two different templates of length 2. For example to get and then to get the desired .

The goal would be to prove that this problem is NP-hard by reducing a known problem to this problem. I've tried many problems but never successfully. Thanks for your help!

EDIT:

A template is a string of length (fixed for all templates and given as a parameter of the problem) that is composed of the letter of the alphabet ( to ). It can be 'printed' onto the original string. It will replace all the characters that were present in the section of the string where the template is applied.

To clarify the use of templates, here is a more detailed example:

Let’s take . If the first template is set to be , we could choose to ‘print’ at position 1 of , resulting …

Posed by Paul Calvi · algorithms, computational-complexity, computer-science

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

import Mathlib

/-!
# NP-hardness of a string transformation problem with k templates

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

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

theorem main : sorry := by
  sorry

end OMA.S_mo_470198