Documentation

CslibFrontier.Computability.Complexity.Classes.Immune

Immune and bi-immune sets #

A set A is immune to a class C of sets (Cslib.Complexity.IsImmune) when it is infinite and every member of C contained in A is finite. A is bi-immune to C (Cslib.Complexity.IsBiImmune) when both A and its complement are immune to C. For C = P, a P-immune set has no infinite subset decidable in polynomial time. A P-bi-immune set cannot be told apart from its complement on any infinite polynomial-time decidable set of instances Balcázar and Schöning.

For a class containing the universe and closed under removing finite sets, such as P (Set.Finite.mem_P), bi-immunity says that every infinite member of the class meets both A and its complement (Cslib.Complexity.isBiImmune_iff_of_sdiff_finite, Cslib.Complexity.isBiImmune_P_iff). Diagonalization constructions use this form.

A P-bi-immune problem in E is constructed in CslibFrontier.Computability.Complexity.Classes.Immune.Construction. Berman's theorem, that problems complete for E or EXP are not P-immune, is in CslibFrontier.Computability.Complexity.Classes.Immune.Complete.

Main definitions #

Main results #

References #

def Cslib.Complexity.IsImmune {α : Type u_1} (C : Set (Set α)) (A : Set α) :

A is immune to the class C: A is infinite and every member of C contained in A is finite Balcázar and Schöning.

def Cslib.Complexity.IsBiImmune {α : Type u_1} (C : Set (Set α)) (A : Set α) :

A is bi-immune to the class C: both A and its complement are immune to C Balcázar and Schöning.

theorem Cslib.Complexity.isImmune_iff {α : Type u_1} {C : Set (Set α)} {A : Set α} :
IsImmune C A ↔ A.Infinite ∧ ∀ B ∈ C, B ⊆ A → B.Finite
theorem Cslib.Complexity.isBiImmune_iff {α : Type u_1} {C : Set (Set α)} {A : Set α} :
theorem Cslib.Complexity.IsImmune.infinite {α : Type u_1} {C : Set (Set α)} {A : Set α} (h : IsImmune C A) :
theorem Cslib.Complexity.IsImmune.finite_of_subset {α : Type u_1} {C : Set (Set α)} {A : Set α} (h : IsImmune C A) {B : Set α} (hB : B ∈ C) (hBA : B ⊆ A) :
theorem Cslib.Complexity.IsImmune.mono {α : Type u_1} {C D : Set (Set α)} {A : Set α} (h : IsImmune C A) (hDC : D ⊆ C) :

Immunity to a class gives immunity to every subclass.

theorem Cslib.Complexity.IsImmune.notMem {α : Type u_1} {C : Set (Set α)} {A : Set α} (h : IsImmune C A) :
A ∉ C

An immune set is not in the class.

theorem Cslib.Complexity.IsImmune.subset {α : Type u_1} {C : Set (Set α)} {A A' : Set α} (h : IsImmune C A) (hA' : A'.Infinite) (hA'A : A' ⊆ A) :

Infinite subsets of immune sets are immune.

theorem Cslib.Complexity.isImmune_iff_sdiff_nonempty {α : Type u_1} {C : Set (Set α)} {A : Set α} :
IsImmune C A ↔ A.Infinite ∧ ∀ B ∈ C, B.Infinite → (B \ A).Nonempty

A is immune to C when it is infinite and every infinite member of C leaves A.

theorem Cslib.Complexity.IsBiImmune.isImmune {α : Type u_1} {C : Set (Set α)} {A : Set α} (h : IsBiImmune C A) :
theorem Cslib.Complexity.IsBiImmune.isImmune_compl {α : Type u_1} {C : Set (Set α)} {A : Set α} (h : IsBiImmune C A) :
theorem Cslib.Complexity.IsBiImmune.compl {α : Type u_1} {C : Set (Set α)} {A : Set α} (h : IsBiImmune C A) :
@[simp]
theorem Cslib.Complexity.isBiImmune_compl {α : Type u_1} {C : Set (Set α)} {A : Set α} :

Bi-immunity is invariant under complement.

theorem Cslib.Complexity.IsBiImmune.mono {α : Type u_1} {C D : Set (Set α)} {A : Set α} (h : IsBiImmune C A) (hDC : D ⊆ C) :

Bi-immunity to a class gives bi-immunity to every subclass.

theorem Cslib.Complexity.IsBiImmune.compl_notMem {α : Type u_1} {C : Set (Set α)} {A : Set α} (h : IsBiImmune C A) :
Aᶜ ∉ C

The complement of a bi-immune set is not in the class.

theorem Cslib.Complexity.isBiImmune_iff_nonempty {α : Type u_1} {C : Set (Set α)} {A : Set α} :
IsBiImmune C A ↔ A.Infinite ∧ Aᶜ.Infinite ∧ ∀ B ∈ C, B.Infinite → (B ∩ A).Nonempty ∧ (B \ A).Nonempty

A is bi-immune to C when A and its complement are infinite and every infinite member of C meets A and leaves it.

theorem Cslib.Complexity.isBiImmune_iff_of_sdiff_finite {α : Type u_1} {C : Set (Set α)} {A : Set α} [Infinite α] (huniv : Set.univ ∈ C) (hsdiff : ∀ B ∈ C, ∀ (F : Set α), F.Finite → B \ F ∈ C) :
IsBiImmune C A ↔ ∀ B ∈ C, B.Infinite → (B ∩ A).Nonempty ∧ (B \ A).Nonempty

Bi-immunity by meeting and leaving. If C contains the universe and is closed under removing finite sets, A is bi-immune to C exactly when every infinite member of C meets A and leaves it.

theorem Cslib.Complexity.isBiImmune_P_iff {β : Type} [Infinite β] {enc : β ↪ List Bool} {A : Set β} :
IsBiImmune (P enc) A ↔ ∀ B ∈ P enc, B.Infinite → (B ∩ A).Nonempty ∧ (B \ A).Nonempty

P-bi-immunity by meeting and leaving: A is P-bi-immune exactly when every infinite problem in P meets A and leaves it.