# Polynomial creativity

In computational complexity theory, polynomial creativity is a theory analogous to the theory of creative sets in recursion theory and mathematical logic. The $k$-creative sets are a family of formal languages in the complexity class NP whose complements certifiably do not have $O(n^{k})$-time nondeterministic recognition algorithms. It is generally believed that NP is unequal to co-NP (the class of complements of languages in NP), which would imply more strongly that the complements of all NP-complete languages do not have polynomial-time nondeterministic recognition algorithms. However, for the $k$-creative sets, the lack of a (more restricted) recognition algorithm can be proven, whereas a proof that NP ≠ co-NP remains elusive.
The $k$-creative sets are conjectured to form counterexamples to the Berman–Hartmanis conjecture on isomorphism of NP-complete sets. It is NP-complete to test whether an input string belongs to any one of these languages, but no polynomial time isomorphisms between all such languages and other NP-complete languages are known. Polynomial creativity and the $k$-creative sets were introduced in 1985 by Deborah Joseph and Paul Young, following earlier attempts to define polynomial analogues for creative sets by Ko and Moore.

## Definition

Intuitively, a set is creative when there is a polynomial-time algorithm that creates a counterexample for any candidate fast nondeterministic recognition algorithm for its complement.
The classes of fast nondeterministic recognition algorithms are formalized by Joseph and Young as the sets $\mathrm {NP} ^{(k)}$ of nondeterministic Turing machine programs $p$ that, for inputs $x$ that they accept, have an accepting path with a number of steps that is at most $|p|(|x|^{k}+1)$. This notation should be distinguished with that for the complexity class NP. The complexity class NP is a set of formal languages, while $\mathrm {NP} ^{(k)}$ is instead a set of programs that accept some of these languages. Every language in NP is recognized by a program in one of the sets $\mathrm {NP} ^{(k)}$, with a parameter $k$ that is (up to the factor $|p|$ in the bound on the number of steps) the exponent in the polynomial running time of the program.
According to Joseph and Young's theory, a language $L$ in NP is $k$-creative if it is possible to find a witness showing that the complement of $L$ is not recognized by any program in $\mathrm {NP} ^{(k)}$. More formally, there should exist a polynomially computable function $f$ that maps programs in this class to inputs on which they fail. When given a nondeterministic program $p$ in $\mathrm {NP} ^{(k)}$, the function $f$ should produce an input string $x=f(p)$ that either belongs to $L$ and causes the program to accept $x$, or does not belong to $L$ and causes the program to reject $x$. The function $f$ is called a productive function for $L$. If this productive function exists, the given program does not produce the behavior on input $x$ that would be expected of a program for recognizing the complement of $L$.

## Existence

Joseph and Young construct creative languages by reversing the definitions of these languages: rather than starting with a language and trying to find a productive function for it, they start with a function and construct a language for which it is the productive function. They define a polynomial-time function $f$ to be polynomially honest if its running time is at most a polynomial function of its output length. This disallows, for instance, functions that take polynomial time but produce outputs of less than polynomial length. As they show, every one-to-one polynomially-honest function $f$ is the productive function for a $k$-creative language $K_{f}^{k}$.
Given $f$, Joseph and Young define K$_f$$^k${\textstyle K_{f}^{k}} to be the set of values $f(p)$ for nondeterministic programs $p$ that have an accepting path for $f(p)$ using at most |p|(|f(p)|$^k$+1){\textstyle |p|(|f(p)|^{k}+1)} steps. This number of steps (on that input) would be consistent with $p$ belonging to NP$^{(k)}${\textstyle \mathrm {NP} ^{(k)}}. Then $K_{f}^{k}$ belongs to NP: given an input $f(p)$ one can nondeterministically guess both $p$ and its accepting path, and then verify that the input equals $f(p)$ and that the path is valid for $p$.
Language K$_f$$^k${\textstyle K_{f}^{k}} is $k$-creative, with $f$ as its productive function, because every program $p$ in $\mathrm {NP} ^{(k)}$ is mapped by $f$ to a value $f(p)$ that is either accepted by $p$ (and therefore also belongs to $K_{f}^{k}$) or rejected by $p$ (and therefore also does not belong to $K_{f}^{k}$).

## Completeness

Every $k$-creative set with a polynomially honest productive function is NP-complete. For any other language $X$ in NP, by the definition of NP, one can translate any input $x$ for $X$ into a nondeterministic program $p_{x}$ that ignores its own input and instead searches for a witness for $x$, accepting its input if it finds one and rejecting otherwise. The length of $p_{x}$ is polynomial in the size of $x$ and a padding argument can be used to make $p_{x}$ long enough (but still polynomial) for its running time to qualify for membership in $\mathrm {NP} ^{(k)}$.
Let $f$ be the productive function used to define a given $k$-creative set $L$, and let $g$ be the translation from $x$ to $p_{x}$. Then the composition of $g$ with $f$ maps an input $x$ for problem $X$ into a string $y=f(g(x))=f(p_{x})$ that causes program $p_{x}$ to return the incorrect answer to the question of whether $y$ belongs to the complement of $L$. When $x\in X$, program $p_{x}$ will return true (regardless of the value of $y$), so for this true answer to be incorrect it must be the case that $y\in L$. By the same reasoning, when $x\notin X$, $y\notin L$. Thus, the composition of $g$ with $f$ is a polynomial-time many-one reduction from $X$ to $L$. Since $L$ is (by definition) in NP, and every other language in NP has a reduction to it, it must be NP-complete.

## Application to the Berman–Hartmanis conjecture

The Berman–Hartmanis conjecture states that there exists a polynomial-time isomorphism between any two NP-complete sets: a function that maps yes-instances of one such set one-to-one into yes-instances of the other, takes polynomial time, and whose inverse function can also be computed in polynomial time. It was formulated by Leonard C. Berman and Juris Hartmanis in 1977, based on the observation that all NP-complete sets known at that time were isomorphic. An equivalent formulation of the conjecture is that every NP-complete set is paddable. This means that there exists a polynomial-time and polynomial-time-invertible one-to-one transformation $h(x,y)$ from instances $x$ to larger equivalent instances that encode the "irrelevant" information $y$.
However, it is unknown how to find such a padding transformation for a $k$-creative language whose productive function is not polynomial-time-invertible. Therefore, if one-way permutations exist, the $k$-creative languages having these permutations as their productive functions provide candidate counterexamples to the Berman–Hartmanis conjecture.
The (unproven) Joseph–Young conjecture formalizes this reasoning. The conjecture states that there exists a one-way length-increasing function $f$ such that $K_{f}^{k}$ is not paddable. Alan Selman observed that this would imply a simpler conjecture, the encrypted complete set conjecture: there exists a one-way function $f$ such that $\mathrm {SAT}$ (the set of yes-instances for the satisfiability problem) and $f(\mathrm {SAT} )$ are non-isomorphic. There exists an oracle relative to which one-way functions exist, both of these conjectures are false, and the Berman–Hartmanis conjecture is true.