Theorem 3. Hardness parameterized by expression size
ProvedBackreferenceMatching.theorem_3With both the expression and the word supplied as input, whole-word matching is -hard when parameterized by . The formal claim is a uniform, computable-parameter, fixed-parameter-time many-one reduction from -Dominating Set, preserving yes and no answers.
import Definitions.Def_BackreferenceMatching_Hardness
namespace BackreferenceMatching theorem theorem_3 : DominatingSetReduction := by sorry end BackreferenceMatching
Read-back
What the Lean code literally says, in plain math · GPT-6
Exact-size domination reduces to whole-word backreference matching. One alphabet size , program , pair of constants , and total computable function work for every and every finite simple graph with its edges listed in any order. The program produces an expression and word over letters. The expression matches exactly when there is a set of vertices such that every vertex lies in or has a neighbor in . For the graph condition holds exactly for the empty graph, and for it always fails.
Writing for the input length in entries, has at most syntax-tree nodes and halts in at most instructions. Matching starts with all variables empty. A capture stores the substring consumed by its body, and a read consumes the current value of its variable.
The input lists ones, a zero, the vertex and edge counts, the endpoints of each listed edge in increasing order within the pair, and every vertex index in order from zero. The word RAM uses -bit words. Its output is the prefix encoding of , with names indexed in its duplicate-free variable list, followed by the letter indices of .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.