Productive, creative, simple and immune sets
DefinitionStandard enumeration of the recursively enumerable sets#✓fully proved
For natural numbers \(e\) and \(n\), \(n\) belongs to \(W_e\), the \(e\)-th recursively enumerable set, when the partial recursive function \(\varphi_e\) computed by the program with index \(e\) in the standard numbering of partial recursive programs is defined at \(n\); thus \(W_e\) is the domain of \(\varphi_e\).
def enumRE (e n : ℕ) : Prop :=
(Nat.Partrec.Code.eval (Denumerable.ofNat Nat.Partrec.Code e) n).Dom
Sources
- Rogers, Theory of Recursive Functions and Effective Computability, §1.6 (standard enumeration of the partial recursive functions).
Used by 2
DefinitionProductive set#✓fully proved
A set \(A\) of natural numbers is productive when there is a partial recursive function \(f\) such that for every natural number \(e\) with \(W_e \subseteq A\), where \(W_e\) is the \(e\)-th recursively enumerable set in the standard enumeration, \(f(e)\) is defined, \(f(e) \in A\) and \(f(e) \notin W_e\).
def Productive (P : ℕ → Prop) : Prop :=
∃ f : ℕ →. ℕ, Partrec f ∧ ∀ e, (∀ n, enumRE e n → P n) →
∃ h : (f e).Dom, P ((f e).get h) ∧ ¬ enumRE e ((f e).get h)
def enumRE (e n : ℕ) : Prop :=
(Nat.Partrec.Code.eval (Denumerable.ofNat Nat.Partrec.Code e) n).Dom
CSLibExt/Computability/Decidability/SpecialSets.lean:41
Sources
- Soare, Recursively Enumerable Sets and Degrees, Ch. I, Definition 5.1.
Uses 1 · Used by 4
DefinitionCreative set#✓fully proved
A set \(A\) of natural numbers is creative when it is recursively enumerable and its complement \(\mathbb{N} \setminus A\) is productive.
def Creative (P : ℕ → Prop) : Prop :=
REPred P ∧ Productive (fun n ↦ ¬ P n)
def Productive (P : ℕ → Prop) : Prop :=
∃ f : ℕ →. ℕ, Partrec f ∧ ∀ e, (∀ n, enumRE e n → P n) →
∃ h : (f e).Dom, P ((f e).get h) ∧ ¬ enumRE e ((f e).get h)
CSLibExt/Computability/Decidability/SpecialSets.lean:47
Sources
- Soare, Recursively Enumerable Sets and Degrees, Ch. I, Definition 5.2.
Uses 1 · Used by 2
DefinitionImmune set#✓fully proved
A set \(A\) of natural numbers is immune when it is infinite and every recursively enumerable set \(B \subseteq A\) is finite.
def Immune (P : ℕ → Prop) : Prop :=
Set.Infinite {n | P n} ∧ ∀ A : ℕ → Prop, REPred A → (∀ n, A n → P n) →
Set.Finite {n | A n}
Sources
- Soare, Recursively Enumerable Sets and Degrees, Ch. I, Definition 5.4.
DefinitionSimple set#✓fully proved
A set \(P\) of natural numbers is simple when it is recursively enumerable and its complement \(\{n \mid \neg P(n)\}\) is immune.
def Simple (P : ℕ → Prop) : Prop :=
REPred P ∧ Immune (fun n ↦ ¬ P n)
def Immune (P : ℕ → Prop) : Prop :=
Set.Infinite {n | P n} ∧ ∀ A : ℕ → Prop, REPred A → (∀ n, A n → P n) →
Set.Finite {n | A n}
CSLibExt/Computability/Decidability/SpecialSets.lean:58
Sources
- Soare, Recursively Enumerable Sets and Degrees, Ch. I, Definition 5.3.
Uses 1 · Used by 3
TheoremA productive set is not recursively enumerable#✓fully proved
No productive set of natural numbers is recursively enumerable: if it were the \(e\)-th recursively enumerable set \(W_e\), its productive function would produce a member of it outside \(W_e\).
theorem productive_not_re {P : ℕ → Prop} (hP : Productive P) : ¬ REPred P
def Productive (P : ℕ → Prop) : Prop :=
∃ f : ℕ →. ℕ, Partrec f ∧ ∀ e, (∀ n, enumRE e n → P n) →
∃ h : (f e).Dom, P ((f e).get h) ∧ ¬ enumRE e ((f e).get h)
CSLibExt/Computability/Decidability/SpecialSets.lean:47
Sources
- Soare, Recursively Enumerable Sets and Degrees, Ch. I, Theorem 5.5.
Uses 2 · Used by 1
TheoremAn immune set is not recursively enumerable#✓fully proved
It would be an infinite RE subset of itself.
theorem immune_not_re {P : ℕ → Prop} (hP : Immune P) : ¬ REPred P
def Immune (P : ℕ → Prop) : Prop :=
Set.Infinite {n | P n} ∧ ∀ A : ℕ → Prop, REPred A → (∀ n, A n → P n) →
Set.Finite {n | A n}
CSLibExt/Computability/Decidability/SpecialSets.lean:58
Sources
- Soare, Recursively Enumerable Sets and Degrees, Ch. I, Theorem 5.6.
Uses 1
TheoremA simple set is not computable#✓fully proved
Its complement would be an infinite RE set, contradicting immunity.
theorem simple_not_computable {P : ℕ → Prop} (hP : Simple P) : ¬ ComputablePred P
def Simple (P : ℕ → Prop) : Prop :=
REPred P ∧ Immune (fun n ↦ ¬ P n)
CSLibExt/Computability/Decidability/SpecialSets.lean:64
Sources
- Soare, Recursively Enumerable Sets and Degrees, Ch. I, Theorem 5.6.
Uses 2
TheoremA simple set is recursively enumerable#✓fully proved
A simple set is recursively enumerable, by definition.
theorem simple_re {P : ℕ → Prop} (hP : Simple P) : REPred P
def Simple (P : ℕ → Prop) : Prop :=
REPred P ∧ Immune (fun n ↦ ¬ P n)
CSLibExt/Computability/Decidability/SpecialSets.lean:64
Sources
- Soare, Recursively Enumerable Sets and Degrees, Ch. I, Definition 5.3.
Uses 2
TheoremThe complement of a simple set is immune#✓fully proved
The complement of a simple set is immune, by definition.
theorem simple_complement_immune {P : ℕ → Prop} (hP : Simple P) :
Immune (fun n ↦ ¬ P n)
def Simple (P : ℕ → Prop) : Prop :=
REPred P ∧ Immune (fun n ↦ ¬ P n)
CSLibExt/Computability/Decidability/SpecialSets.lean:64
def Immune (P : ℕ → Prop) : Prop :=
Set.Infinite {n | P n} ∧ ∀ A : ℕ → Prop, REPred A → (∀ n, A n → P n) →
Set.Finite {n | A n}
CSLibExt/Computability/Decidability/SpecialSets.lean:58
Sources
- Soare, Recursively Enumerable Sets and Degrees, Ch. I, Definition 5.3.
Uses 2
TheoremA creative set is recursively enumerable#✓fully proved
A creative set is recursively enumerable, by definition.
theorem creative_re {P : ℕ → Prop} (hP : Creative P) : REPred P
def Creative (P : ℕ → Prop) : Prop :=
REPred P ∧ Productive (fun n ↦ ¬ P n)
CSLibExt/Computability/Decidability/SpecialSets.lean:53
Sources
- Soare, Recursively Enumerable Sets and Degrees, Ch. I, Definition 5.2.
Uses 2
TheoremA creative set is not computable#✓fully proved
Its complement is productive, hence not RE, but the complement of a computable set is RE.
theorem creative_not_computable {P : ℕ → Prop} (hP : Creative P) :
¬ ComputablePred P
def Creative (P : ℕ → Prop) : Prop :=
REPred P ∧ Productive (fun n ↦ ¬ P n)
CSLibExt/Computability/Decidability/SpecialSets.lean:53
Sources
- Soare, Recursively Enumerable Sets and Degrees, Ch. I, Theorem 5.7.
Uses 3
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.