Complexity cores #
A set X is a complexity core of A for a class C of sets
(Cslib.Complexity.IsComplexityCore) when every member of C that lies inside A, or inside its
complement, meets X in a finite set.
A member of C that accepts only instances in A, or only instances outside A, accepts only
finitely many instances of X. For C = P and decidable A, these are the polynomial complexity
cores of Lynch: every machine deciding A runs in superpolynomial time on all but
finitely many instances of X. The machine form, with binary machines as in P where Lynch allows
any machine (a polynomially robust choice), is in
CslibFrontier.Computability.Complexity.Classes.Immune.PolyTimeCore. Cores were studied further by
Orponen and Schöning.
A set is bi-immune to C exactly when it and its complement are infinite and the universe is a
core (Cslib.Complexity.isBiImmune_iff_isComplexityCore_univ). Problems in a class closed under
complement have only finite cores (Cslib.Complexity.IsComplexityCore.finite_of_mem).
Lynch, Lemma 1 shows that a recursive set outside P has an infinite recursive
polynomial complexity core, a subset of all words. A standard diagonal argument gives a
class-generic form with a proper core, one inside the set: for every countable class C that
contains the finite sets and is closed under union, a set not in C has an infinite core inside it
(Cslib.Complexity.exists_infinite_isComplexityCore_subset). Enumerate
C as e₀, e₁, …, and let Dₙ be the union of the eᵢ with i < n that lie inside A. Then
A \ Dₙ is infinite, since otherwise A would be the union of Dₙ and a finite set. Choosing
xₙ ∈ A \ Dₙ gives an infinite set {xₙ} that meets each eᵢ inside A only at indices
n ≤ i. P is such a class (Cslib.Complexity.countable_P), so problems outside P have
infinite cores inside them (Cslib.Complexity.exists_infinite_isComplexityCore_P_subset). Compared
with Lynch's lemma, the core is proper, which is stronger, but it is chosen without regard to
decidability. For decidable problems on bit strings, a delayed diagonalization chooses it decidable
(Cslib.Complexity.exists_infinite_isDecidable_isPolyTimeCore, in Immune.RecursiveCore).
Main definitions #
Cslib.Complexity.IsComplexityCore: a complexity core of a set for a class.
Main results #
Cslib.Complexity.IsComplexityCore.subset,.union,.mono,Set.Finite.isComplexityCore,Cslib.Complexity.isComplexityCore_compl: cores are closed under subsets and finite unions, finite sets are cores, andAand its complement have the same cores.Cslib.Complexity.IsComplexityCore.finite_of_mem: ifAand its complement are in the class, every core ofAis finite.Cslib.Complexity.isBiImmune_iff_isComplexityCore_univ: bi-immunity is a core condition.Cslib.Complexity.exists_infinite_isComplexityCore_subset: the class-generic core theorem, generalizing Lynch, Lemma 1 to countable classes containing the finite sets and closed under union, with a proper core.Cslib.Complexity.exists_infinite_isComplexityCore_P_subset,Cslib.Complexity.notMem_P_iff_exists_infinite_isComplexityCore: a problem is outsidePexactly when it has an infinite core forP.
References #
Subsets of cores are cores.
Unions of two cores are cores.
A core for a class is a core for every subclass.
A set and its complement have the same cores.
Bi-immunity is a core condition: A is bi-immune to C exactly when A and its
complement are infinite and the universe is a core of A.
Class-generic core theorem, generalizing Lynch, Lemma 1 by a standard diagonal
argument: if C is countable, contains the finite sets and is closed under union, every set not in
C has an infinite core inside it.
Problems outside P have infinite cores (Lynch, Lemma 1, proper-core
strengthening): a problem outside P has an infinite core for P inside it. Unlike Lynch's core,
this one is not claimed to be recursive; for a decidable core of a decidable problem on bit strings,
see Cslib.Complexity.exists_infinite_isDecidable_isPolyTimeCore.