User:IssaRice/Computability and logic/Diagonalization out of a class: Difference between revisions
(Created page with "'''Diagonalization out of a class''' is a trick used to define a function that is not in a given list of functions. Let <math>C</math> be some class of total functions. If we...") |
No edit summary |
||
| Line 1: | Line 1: | ||
'''Diagonalization out of a class''' is a trick used to define a function that is not in a given list of functions. | '''Diagonalization out of a class''' is a trick used to define a function that is not in a given list of functions. | ||
Let <math>C</math> be some class of total functions. If we are given an enumeration of <math>C</math> such as <math>f_0, f_1, f_2, f_3, \ldots</math> then we can define a new total function <math>g(x) := f_x(x) + 1</math>. Now given any <math>n \in \mathbf N</math>, we have <math>f_n(n) \ne f_n(n) + 1 = g(n)</math>. Thus, <math>g\ne f_n</math> for every <math>n\in \mathbf N</math>, so <math>g\ | Let <math>C</math> be some class of total functions. If we are given an enumeration of <math>C</math> such as <math>f_0, f_1, f_2, f_3, \ldots</math> then we can define a new total function <math>g(x) := f_x(x) + 1</math>. Now given any <math>n \in \mathbf N</math>, we have <math>f_n(n) \ne f_n(n) + 1 = g(n)</math>. Thus, <math>g\ne f_n</math> for every <math>n\in \mathbf N</math>, so <math>g\notin C</math>. | ||
Latest revision as of 06:47, 18 December 2018
Diagonalization out of a class is a trick used to define a function that is not in a given list of functions.
Let be some class of total functions. If we are given an enumeration of such as then we can define a new total function . Now given any , we have . Thus, for every , so .