fbpx
Wikipedia

Gödel numbering for sequences

In mathematics, a Gödel numbering for sequences provides an effective way to represent each finite sequence of natural numbers as a single natural number. While a set theoretical embedding is surely possible, the emphasis is on the effectiveness of the functions manipulating such representations of sequences: the operations on sequences (accessing individual members, concatenation) can be "implemented" using total recursive functions, and in fact by primitive recursive functions.

It is usually used to build sequential “data types” in arithmetic-based formalizations of some fundamental notions of mathematics. It is a specific case of the more general idea of Gödel numbering. For example, recursive function theory can be regarded as a formalization of the notion of an algorithm, and can be regarded as a programming language to mimic lists by encoding a sequence of natural numbers in a single natural number.[1][2]

Gödel numbering edit

Besides using Gödel numbering to encode unique sequences of symbols into unique natural numbers (i.e. place numbers into mutually exclusive or one-to-one correspondence with the sequences), we can use it to encode whole “architectures” of sophisticated “machines”. For example, we can encode Markov algorithms,[3] or Turing machines[4] into natural numbers and thereby prove that the expressive power of recursive function theory is no less than that of the former machine-like formalizations of algorithms.

Accessing members edit

Any such representation of sequences should contain all the information as in the original sequence—most importantly, each individual member must be retrievable. However, the length does not have to match directly; even if we want to handle sequences of different length, we can store length data as a surplus member,[5] or as the other member of an ordered pair by using a pairing function.

We expect that there is an effective way for this information retrieval process in form of an appropriate total recursive function. We want to find a totally recursive function f with the property that for all n and for any n-length sequence of natural numbers  , there exists an appropriate natural number a, called the Gödel number of the sequence, such that for all i where  ,  .

There are effective functions which can retrieve each member of the original sequence from a Gödel number of the sequence. Moreover, we can define some of them in a constructive way, so we can go well beyond mere proofs of existence.

Gödel's β-function lemma edit

By an ingenious use of the Chinese remainder theorem, we can constructively define such a recursive function   (using simple number-theoretical functions, all of which can be defined in a total recursive way) fulfilling the specifications given above. Gödel defined the   function using the Chinese remainder theorem in his article written in 1931. This is a primitive recursive function.[6]

Thus, for all n and for any n-length sequence of natural numbers  , there exists an appropriate natural number a, called the Gödel number of the sequence such that  .[7]

Using a pairing function edit

Our specific solution will depend on a pairing function—there are several ways to implement the pairing function, so one method must be selected. Now, we can abstract from the details of the implementation of the pairing function. We need only to know its “interface”: let  , K, and L denote the pairing function and its two projection functions, respectively, satisfying specification:

 
 

Remainder for natural numbers edit

We shall use another auxiliary function that will compute the remainder for natural numbers. Examples:

  •  
  •  

It can be proven that this function can be implemented as a recursive function.

Using the Chinese remainder theorem edit

Implementation of the β function edit

Using the Chinese remainder theorem, we can prove that implementing   as

 

will work, according to the specification we expect   to satisfy. We can use a more concise form by an abuse of notation (constituting a sort of pattern matching):

 

Let us achieve even more readability by more modularity and reuse (as these notions are used in computer science[8]): by defining   the sequence  , we can write

 .

We shall use this   notation in the proof.

Hand-tuned assumptions edit

For proving the correctness of the above definition of the   function, we shall use several lemmas. These have their own assumptions. Now we try to find out these assumptions, calibrating and tuning their strength carefully: they should not be said in an either superfluously sharp, or unsatisfactorily weak form.

Let   be a sequence of natural numbers. Let m be chosen to satisfy

 
 

The first assumption is meant as

 

It is needed to meet an assumption of the Chinese remainder theorem (that of being pairwise coprime). In the literature, sometimes this requirement is replaced with a stronger one, e.g. constructively built with the factorial function,[1] but the stronger premise is not required for this proof.[2]

The second assumption does not concern the Chinese remainder theorem in any way. It will have importance in proving that the specification for   is met eventually. It ensures that an   solution of the simultaneous congruence system

  for each i where  

also satisfies

 .[5][9]

A stronger assumption for m requiring   automatically satisfies the second assumption (if we define the notation   as above).

Proof that (coprimality) assumption for Chinese remainder theorem is met edit

In the section Hand-tuned assumptions, we required that

 . What we want to prove is that we can produce a sequence of pairwise coprime numbers in a way that will turn out to correspond to the Implementation of the β function.

In detail:

 

remembering that   we defined  .

The proof is by contradiction; assume the negation of the original statement:

 

First steps edit

We know what “coprime” relation means (in a lucky way, its negation can be formulated in a concise form); thus, let us substitute in the appropriate way:

 

Using a “more” prenex normal form (but note allowing a constraint-like notation in quantifiers):

 

Because of a theorem on divisibility,   allows us to also say

 .

Substituting the definitions of  -sequence notation, we get  , thus (as equality axioms postulate identity to be a congruence relation[10]) we get

 .

Since p is a prime element (note that the irreducible element property is used), we get

 .

Resorting to the first hand-tuned assumption edit

Now we must resort to our assumption

 .

The assumption was chosen carefully to be as weak as possible, but strong enough to enable us to use it now.

The assumed negation of the original statement contains an appropriate existential statement using indices  ; this entails  , thus the mentioned assumption can be applied, so   holds.

Using an (object) theorem of the propositional calculus as a lemma edit

We can prove by several means [11] known in propositional calculus that

 

holds.

Since  , by the transitivity property of the divisibility relation,  . Thus (as equality axioms postulate identity to be a congruence relation [10])

 

can be proven.

Reaching the contradiction edit

The negation of original statement contained

 

and we have just proved

 .

Thus,

 

should also hold. But after substituting the definition of  ,

 

Thus, summarizing the above three statements, by transitivity of the equality,

 

should also hold.

However, in the negation of the original statement p is existentially quantified and restricted to primes  . This establishes the contradiction we wanted to reach.

End of reductio ad absurdum edit

By reaching contradiction with its negation, we have just proven the original statement:

 

The system of simultaneous congruences edit

We build a system of simultaneous congruences

 
 
 

We can write it in a more concise way:

 

Many statements will be said below, all beginning with " ". To achieve a more ergonomic treatment, from now on all statements should be read as being in the scope of an   quantification. Thus,   begins here.

Let us chose a solution   for the system of simultaneous congruences. At least one solution must exist, because   are pairwise comprime as proven in the previous sections, so we can refer to the solution ensured by the Chinese remainder theorem. Thus, from now on we can regard   as satisfying

 ,

which means (by definition of modular arithmetic) that

 

Resorting to the second hand-tuned assumption edit

Recall the second assumption, “ ”, and remember that we are now in the scope of an implicit quantification for i, so we don't repeat its quantification for each statement.

The second assumption   implies that

 .

Now by transitivity of equality we get

 .

QED edit

Our original goal was to prove that the definition

 

is good for achieving what we declared in the specification of  : we want   to hold.

This can be seen now by transitivity of equality, looking at the above three equations.

(The large scope of i ends here.)

Existence and uniqueness edit

We have just proven the correctness of the definition of  : its specification requiring

 

is met. Although proving this was most important for establishing an encoding scheme for sequences, we have to fill in some gaps yet. These are related notions similar to existence and uniqueness (although on uniqueness, “at most one” should be meant here, and the conjunction of both is delayed as a final result).

Uniqueness of encoding, achieved by minimalization edit

Our ultimate question is: what number should stand for the encoding of sequence  ? The specification declares only an existential quantification, not yet a functional connection. We want a constructive and algorithmic connection: a (total) recursive function that performs the encoding.

Totality, because minimalization is restricted to special functions edit

This gap can be filled in a straightforward way: we shall use minimalization, and the totality of the resulting function is ensured by everything we have proven till now (i.e. the correctness of the definition of   by meeting its specification). In fact, the specification

 

plays a role here of a more general notion (“special function”[12]). The importance of this notion is that it enables us to split off the (sub)class of (total) recursive functions from the (super)class of partial recursive functions. In brief, the specification says that a function f [13] satisfying the specification

 

is a special function; that is, for each fixed combination of all-but-last arguments, the function f has root in its last argument:

 

The Gödel numbering function g can be chosen to be total recursive edit

Thus, let us choose the minimal possible number that fits well in the specification of the   function:[5]

 
 .

It can be proven (using the notions of the previous section ) that g is (total) recursive.

Access of length edit

If we use the above scheme for encoding sequences only in contexts where the length of the sequences is fixed, then no problem arises. In other words, we can use them in an analogous way as arrays are used in programming.

But sometimes we need dynamically stretching sequences, or we need to deal with sequences whose length cannot be typed in a static way. In other words, we may encode sequences in an analogous way to lists in programming.

To illustrate both cases: if we form the Gödel numbering of a Turing machine, then the each row in the matrix of the “program” can be represented with tuples, sequences of fixed length (thus, without storing the length), because the number of the columns is fixed.[14] But if we want to reason about configuration-like things (of Turing-machines), and specifically if we want to encode the significant part of the tape of a running Turing machine, then we have to represent sequences together with their length. We can mimic dynamically stretching sequences by representing sequence concatenation (or at least, augmenting a sequence with one more element) with a totally recursive function.[15]

Length can be stored simply as a surplus member:[5]

 
 .

The corresponding modification of the proof is straightforward, by adding a surplus

 

to the system of simultaneous congruences (provided that the surplus member index is chosen to be 0). Also, the assumptions have to be modified accordingly.

Notes edit

  1. ^ a b Monk 1976: 56–58
  2. ^ a b Csirmaz 1994: 99–100 (see online)
  3. ^ Monk 1976: 72–74
  4. ^ Monk 1976: 52–55
  5. ^ a b c d Csirmaz 1994: 100 (see online)
  6. ^ Smullyan 2003: 56 (= Chpt IV, § 5, note 1)
  7. ^ Monk 1976: 58 (= Thm 3.46)
  8. ^ Hughes 1989 (see online 2006-12-08 at the Wayback Machine)
  9. ^ Burris 1998: Supplementary Text, Arithmetic I, Lemma 4
  10. ^ a b see also related notions, e.g. “equals for equals” (referential transparency), and another related notion Leibniz's law / identity of indiscernibles
  11. ^ either proof theoretic (algebraic steps); or semantic (truth table, method of analytic tableaux, Venn diagram, Veitch diagram / Karnaugh map)
  12. ^ Monk 1976: 45 (= Def 3.1.)
  13. ^ E.g. defined by
     
     
  14. ^ Monk 1976: 53 (= Def 3.20, Lem 3.21)
  15. ^ Csirmaz 1994: 101 (=Thm 10.7, Conseq 10.8), see online

References edit

  • Burris, Stanley N. (1998). "Supplementary Text, Arithmetic I". Logic for Mathematics and Computer Science. Prentice Hall. ISBN 978-0-13-285974-5.
  • Csirmaz, László; Hajnal, András (1994). "Rekurzív függvények". Matematikai logika (postscript + gzip) (in Hungarian). Budapest: Eötvös Loránd University. Each chapter is downloadable verbatim on author's page.
  • Hughes, John (1989). . Computer Journal. 32 (2): 98–107. doi:10.1093/comjnl/32.2.98. Archived from the original on December 8, 2006.
  • Monk, J. Donald (1976). Mathematical Logic. Graduate Texts in Mathematics. New York • Heidelberg • Berlin: Springer-Verlag. ISBN 9780387901701.
  • Smullyan, Raymond Merrill (1992). Gödel's Incompleteness Theorems. Oxford University Press. ISBN 978-0-19-504672-4.
  • Smullyan, Raymond Merrill (2003). Gödel nemteljességi tételei (in Hungarian). Budapest: Typotex. ISBN 978-963-9326-99-6. Translation of Smullyan 1992.

External links edit

  • Burris, Stanley N. (1998). "Supplementary Text, Arithmetic I". Logic for Mathematics and Computer Science. Prentice Hall. ISBN 978-0-13-285974-5.

gödel, numbering, sequences, this, article, require, cleanup, meet, wikipedia, quality, standards, specific, problem, article, should, edited, tone, length, meet, other, conventions, wikipedia, manual, style, mathematics, please, help, improve, this, article, . This article may require cleanup to meet Wikipedia s quality standards The specific problem is the article should be edited for tone length and to meet the other conventions of Wikipedia Manual of Style Mathematics Please help improve this article if you can January 2017 Learn how and when to remove this message In mathematics a Godel numbering for sequences provides an effective way to represent each finite sequence of natural numbers as a single natural number While a set theoretical embedding is surely possible the emphasis is on the effectiveness of the functions manipulating such representations of sequences the operations on sequences accessing individual members concatenation can be implemented using total recursive functions and in fact by primitive recursive functions It is usually used to build sequential data types in arithmetic based formalizations of some fundamental notions of mathematics It is a specific case of the more general idea of Godel numbering For example recursive function theory can be regarded as a formalization of the notion of an algorithm and can be regarded as a programming language to mimic lists by encoding a sequence of natural numbers in a single natural number 1 2 Contents 1 Godel numbering 2 Accessing members 2 1 Godel s b function lemma 2 1 1 Using a pairing function 2 1 2 Remainder for natural numbers 2 1 3 Using the Chinese remainder theorem 2 1 3 1 Implementation of the b function 2 1 3 2 Hand tuned assumptions 2 2 Proof that coprimality assumption for Chinese remainder theorem is met 2 2 1 First steps 2 2 2 Resorting to the first hand tuned assumption 2 2 3 Using an object theorem of the propositional calculus as a lemma 2 2 4 Reaching the contradiction 2 2 5 End of reductio ad absurdum 2 3 The system of simultaneous congruences 2 3 1 Resorting to the second hand tuned assumption 2 3 2 QED 2 4 Existence and uniqueness 2 4 1 Uniqueness of encoding achieved by minimalization 2 4 2 Totality because minimalization is restricted to special functions 2 4 3 The Godel numbering function g can be chosen to be total recursive 2 5 Access of length 3 Notes 4 References 5 External linksGodel numbering editMain article Godel numbering Besides using Godel numbering to encode unique sequences of symbols into unique natural numbers i e place numbers into mutually exclusive or one to one correspondence with the sequences we can use it to encode whole architectures of sophisticated machines For example we can encode Markov algorithms 3 or Turing machines 4 into natural numbers and thereby prove that the expressive power of recursive function theory is no less than that of the former machine like formalizations of algorithms Accessing members editAny such representation of sequences should contain all the information as in the original sequence most importantly each individual member must be retrievable However the length does not have to match directly even if we want to handle sequences of different length we can store length data as a surplus member 5 or as the other member of an ordered pair by using a pairing function We expect that there is an effective way for this information retrieval process in form of an appropriate total recursive function We want to find a totally recursive function f with the property that for all n and for any n length sequence of natural numbers a 0 a n 1 displaystyle langle a 0 dots a n 1 rangle nbsp there exists an appropriate natural number a called the Godel number of the sequence such that for all i where 0 i n 1 displaystyle 0 leq i leq n 1 nbsp f a i a i displaystyle f a i a i nbsp There are effective functions which can retrieve each member of the original sequence from a Godel number of the sequence Moreover we can define some of them in a constructive way so we can go well beyond mere proofs of existence Godel s b function lemma edit See also Godel s b function By an ingenious use of the Chinese remainder theorem we can constructively define such a recursive function b displaystyle beta nbsp using simple number theoretical functions all of which can be defined in a total recursive way fulfilling the specifications given above Godel defined the b displaystyle beta nbsp function using the Chinese remainder theorem in his article written in 1931 This is a primitive recursive function 6 Thus for all n and for any n length sequence of natural numbers a 0 a n 1 displaystyle langle a 0 dots a n 1 rangle nbsp there exists an appropriate natural number a called the Godel number of the sequence such that b a i a i displaystyle beta a i a i nbsp 7 Using a pairing function edit Main article Pairing function Our specific solution will depend on a pairing function there are several ways to implement the pairing function so one method must be selected Now we can abstract from the details of the implementation of the pairing function We need only to know its interface let p displaystyle pi nbsp K and L denote the pairing function and its two projection functions respectively satisfying specification K p x y x displaystyle K left pi left x y right right x nbsp L p x y y displaystyle L left pi left x y right right y nbsp Remainder for natural numbers edit We shall use another auxiliary function that will compute the remainder for natural numbers Examples r e m 5 3 2 displaystyle mathrm rem 5 3 2 nbsp r e m 7 2 1 displaystyle mathrm rem 7 2 1 nbsp It can be proven that this function can be implemented as a recursive function Using the Chinese remainder theorem edit Implementation of the b function edit Using the Chinese remainder theorem we can prove that implementing b displaystyle beta nbsp as b s i r e m K s i 1 L s 1 displaystyle beta s i mathrm rem left K left s right left i 1 right cdot L left s right 1 right nbsp will work according to the specification we expect b displaystyle beta nbsp to satisfy We can use a more concise form by an abuse of notation constituting a sort of pattern matching b p x 0 m i r e m x 0 i 1 m 1 displaystyle beta left pi left x 0 m right i right mathrm rem left x 0 left i 1 right cdot m 1 right nbsp Let us achieve even more readability by more modularity and reuse as these notions are used in computer science 8 by defining i lt n displaystyle forall i lt n nbsp the sequence m i i 1 m 1 displaystyle m i i 1 cdot m 1 nbsp we can write b p x 0 m i r e m x 0 m i displaystyle beta left pi left x 0 m right i right mathrm rem left x 0 m i right nbsp We shall use this m i displaystyle m i nbsp notation in the proof Hand tuned assumptions edit For proving the correctness of the above definition of the b displaystyle beta nbsp function we shall use several lemmas These have their own assumptions Now we try to find out these assumptions calibrating and tuning their strength carefully they should not be said in an either superfluously sharp or unsatisfactorily weak form Let a 0 a n 1 displaystyle a 0 dots a n 1 nbsp be a sequence of natural numbers Let m be chosen to satisfy i n 0 i m displaystyle forall i in overline n setminus left 0 right left i mid m right nbsp i lt n a i lt m i displaystyle forall i lt n left a i lt m i right nbsp The first assumption is meant as 1 m n 1 m displaystyle 1 mid m land dots land n 1 mid m nbsp It is needed to meet an assumption of the Chinese remainder theorem that of being pairwise coprime In the literature sometimes this requirement is replaced with a stronger one e g constructively built with the factorial function 1 but the stronger premise is not required for this proof 2 The second assumption does not concern the Chinese remainder theorem in any way It will have importance in proving that the specification for b displaystyle beta nbsp is met eventually It ensures that an x displaystyle tilde x nbsp solution of the simultaneous congruence system x a i mod m i displaystyle x equiv a i pmod m i nbsp for each i where 0 i n 1 displaystyle 0 leq i leq n 1 nbsp also satisfies a i r e m x m i displaystyle a i mathrm rem tilde x m i nbsp 5 9 A stronger assumption for m requiring i lt n a i lt m displaystyle forall i lt n a i lt m nbsp automatically satisfies the second assumption if we define the notation m i displaystyle m i nbsp as above Proof that coprimality assumption for Chinese remainder theorem is met edit In the section Hand tuned assumptions we required that i n 0 i m displaystyle forall i in overline n setminus left 0 right left i mid m right nbsp What we want to prove is that we can produce a sequence of pairwise coprime numbers in a way that will turn out to correspond to the Implementation of the b function In detail i lt n j lt n i j c o p r i m e m i m j displaystyle forall i lt n j lt n left i neq j rightarrow mathrm coprime left m i m j right right nbsp remembering that i lt n displaystyle forall i lt n nbsp we defined m i i 1 m 1 displaystyle m i i 1 cdot m 1 nbsp The proof is by contradiction assume the negation of the original statement i lt n j lt n i j c o p r i m e m i m j displaystyle exists i lt n j lt n left i neq j land lnot mathrm coprime left m i m j right right nbsp First steps edit We know what coprime relation means in a lucky way its negation can be formulated in a concise form thus let us substitute in the appropriate way i lt n j lt n i j p P r i m e p m i p m j displaystyle exists i lt n j lt n left i neq j land exists p in mathrm Prime left p mid m i land p mid m j right right nbsp Using a more prenex normal form but note allowing a constraint like notation in quantifiers i lt n j lt n p P r i m e i j p m i p m j displaystyle exists i lt n j lt n p in mathrm Prime left i neq j land p mid m i land p mid m j right nbsp Because of a theorem on divisibility p m i p m j displaystyle p mid m i land p mid m j nbsp allows us to also say p m i m j displaystyle p mid m i m j nbsp Substituting the definitions of m k displaystyle m k nbsp sequence notation we get m i m j i j m displaystyle m i m j i j cdot m nbsp thus as equality axioms postulate identity to be a congruence relation 10 we get p i j m displaystyle p mid i j cdot m nbsp Since p is a prime element note that the irreducible element property is used we get p i j p m displaystyle p mid i j lor p mid m nbsp Resorting to the first hand tuned assumption edit Now we must resort to our assumption i n 0 i m displaystyle forall i in overline n setminus left 0 right left i mid m right nbsp The assumption was chosen carefully to be as weak as possible but strong enough to enable us to use it now The assumed negation of the original statement contains an appropriate existential statement using indices i lt n j lt n i j displaystyle i lt n land j lt n land i neq j nbsp this entails i j n 0 displaystyle i j in overline n setminus left 0 right nbsp thus the mentioned assumption can be applied so i j m displaystyle i j mid m nbsp holds Using an object theorem of the propositional calculus as a lemma edit We can prove by several means 11 known in propositional calculus that A A B B displaystyle left A land left A rightarrow B right right rightarrow B nbsp holds Since i j m displaystyle i j mid m nbsp by the transitivity property of the divisibility relation p i j p m displaystyle p mid i j rightarrow p mid m nbsp Thus as equality axioms postulate identity to be a congruence relation 10 p m displaystyle p mid m nbsp can be proven Reaching the contradiction edit The negation of original statement contained p m i displaystyle p mid m i nbsp and we have just proved p m displaystyle p mid m nbsp Thus p m i i 1 m displaystyle p mid m i left i 1 right cdot m nbsp should also hold But after substituting the definition of m i displaystyle m i nbsp m i i 1 m 1 displaystyle m i left i 1 right cdot m 1 nbsp Thus summarizing the above three statements by transitivity of the equality p 1 displaystyle p mid 1 nbsp should also hold However in the negation of the original statement p is existentially quantified and restricted to primes p P r i m e displaystyle exists p in mathrm Prime nbsp This establishes the contradiction we wanted to reach End of reductio ad absurdum edit By reaching contradiction with its negation we have just proven the original statement i lt n j lt n i j c o p r i m e m i m j displaystyle forall i lt n j lt n left i neq j rightarrow mathrm coprime left m i m j right right nbsp The system of simultaneous congruences edit We build a system of simultaneous congruences x a 0 mod m 0 displaystyle x equiv a 0 pmod m 0 nbsp displaystyle vdots nbsp dd x a n 1 mod m n 1 displaystyle x equiv a n 1 pmod m n 1 nbsp We can write it in a more concise way i lt n x a i mod m i displaystyle forall i lt n left x equiv a i pmod m i right nbsp Many statements will be said below all beginning with i lt n displaystyle forall i lt n left dots right nbsp To achieve a more ergonomic treatment from now on all statements should be read as being in the scope of an i lt n displaystyle forall i lt n left dots right nbsp quantification Thus i lt n displaystyle forall i lt n nbsp begins here Let us chose a solution x 0 displaystyle x 0 nbsp for the system of simultaneous congruences At least one solution must exist because m 0 m n 1 displaystyle m 0 dots m n 1 nbsp are pairwise comprime as proven in the previous sections so we can refer to the solution ensured by the Chinese remainder theorem Thus from now on we can regard x 0 displaystyle x 0 nbsp as satisfying x 0 a i mod m i displaystyle x 0 equiv a i pmod m i nbsp which means by definition of modular arithmetic that r e m x 0 m i r e m a i m i displaystyle mathrm rem left x 0 m i right mathrm rem left a i m i right nbsp Resorting to the second hand tuned assumption edit Recall the second assumption i lt n a i lt m i displaystyle forall i lt n left a i lt m i right nbsp and remember that we are now in the scope of an implicit quantification for i so we don t repeat its quantification for each statement The second assumption a i lt m i displaystyle a i lt m i nbsp implies that r e m a i m i a i displaystyle mathrm rem left a i m i right a i nbsp Now by transitivity of equality we get r e m x 0 m i a i displaystyle mathrm rem left x 0 m i right a i nbsp QED edit Our original goal was to prove that the definition b p x 0 m i r e m x 0 m i displaystyle beta left pi left x 0 m right i right mathrm rem left x 0 m i right nbsp is good for achieving what we declared in the specification of b displaystyle beta nbsp we want b p x 0 m i a i displaystyle beta left pi left x 0 m right i right a i nbsp to hold This can be seen now by transitivity of equality looking at the above three equations The large scope of i ends here Existence and uniqueness edit We have just proven the correctness of the definition of b displaystyle beta nbsp its specification requiring a 0 a n 1 s i lt n b s i a i displaystyle forall a 0 dots a n 1 exists s forall i lt n beta s i a i nbsp is met Although proving this was most important for establishing an encoding scheme for sequences we have to fill in some gaps yet These are related notions similar to existence and uniqueness although on uniqueness at most one should be meant here and the conjunction of both is delayed as a final result Uniqueness of encoding achieved by minimalization edit Our ultimate question is what number should stand for the encoding of sequence a 0 a n 1 displaystyle left langle a 0 dots a n 1 right rangle nbsp The specification declares only an existential quantification not yet a functional connection We want a constructive and algorithmic connection a total recursive function that performs the encoding Totality because minimalization is restricted to special functions edit This gap can be filled in a straightforward way we shall use minimalization and the totality of the resulting function is ensured by everything we have proven till now i e the correctness of the definition of b displaystyle beta nbsp by meeting its specification In fact the specification a 0 a n 1 s i lt n b s i a i displaystyle forall a 0 dots a n 1 exists s forall i lt n beta s i a i nbsp plays a role here of a more general notion special function 12 The importance of this notion is that it enables us to split off the sub class of total recursive functions from the super class of partial recursive functions In brief the specification says that a function f 13 satisfying the specification f a 0 a n 1 s 0 i lt n b s i a i displaystyle f left a 0 dots a n 1 s right 0 leftrightarrow forall i lt n left beta s i a i right nbsp is a special function that is for each fixed combination of all but last arguments the function f has root in its last argument a 0 a n 1 s f a 0 a n 1 s 0 displaystyle forall a 0 dots a n 1 exists s left f left a 0 dots a n 1 s right 0 right nbsp The Godel numbering function g can be chosen to be total recursive edit Thus let us choose the minimal possible number that fits well in the specification of the b displaystyle beta nbsp function 5 g N n N displaystyle g mathbb N n to mathbb N nbsp a 0 a n 1 m a i lt n b a i a i displaystyle left langle a 0 dots a n 1 right rangle longmapsto mu a left forall i lt n left beta left a i right a i right right nbsp It can be proven using the notions of the previous section that g is total recursive Access of length edit If we use the above scheme for encoding sequences only in contexts where the length of the sequences is fixed then no problem arises In other words we can use them in an analogous way as arrays are used in programming But sometimes we need dynamically stretching sequences or we need to deal with sequences whose length cannot be typed in a static way In other words we may encode sequences in an analogous way to lists in programming To illustrate both cases if we form the Godel numbering of a Turing machine then the each row in the matrix of the program can be represented with tuples sequences of fixed length thus without storing the length because the number of the columns is fixed 14 But if we want to reason about configuration like things of Turing machines and specifically if we want to encode the significant part of the tape of a running Turing machine then we have to represent sequences together with their length We can mimic dynamically stretching sequences by representing sequence concatenation or at least augmenting a sequence with one more element with a totally recursive function 15 Length can be stored simply as a surplus member 5 g N N displaystyle g mathbb N to mathbb N nbsp a 0 a n 1 a n m a a 0 n i lt n b a i 1 a i displaystyle left langle a 0 dots a n 1 a n right rangle longmapsto mu a left a 0 n land forall i lt n left beta left a i 1 right a i right right nbsp The corresponding modification of the proof is straightforward by adding a surplus x n mod m 0 displaystyle x equiv n pmod m 0 nbsp to the system of simultaneous congruences provided that the surplus member index is chosen to be 0 Also the assumptions have to be modified accordingly Notes edit a b Monk 1976 56 58 a b Csirmaz 1994 99 100 see online Monk 1976 72 74 Monk 1976 52 55 a b c d Csirmaz 1994 100 see online Smullyan 2003 56 Chpt IV 5 note 1 Monk 1976 58 Thm 3 46 Hughes 1989 see online Archived 2006 12 08 at the Wayback Machine Burris 1998 Supplementary Text Arithmetic I Lemma 4 a b see also related notions e g equals for equals referential transparency and another related notion Leibniz s law identity of indiscernibles either proof theoretic algebraic steps or semantic truth table method of analytic tableaux Venn diagram Veitch diagram Karnaugh map Monk 1976 45 Def 3 1 E g defined by f N n 1 N displaystyle f mathbb N n 1 to mathbb N nbsp f a 0 a n 1 s 0 i f i lt n b s i a i 1 i f i lt n b s i a i displaystyle f left a 0 dots a n 1 s right begin cases 0 amp mathrm if forall i lt n left beta s i a i right 1 amp mathrm if exists i lt n left beta s i neq a i right end cases nbsp Monk 1976 53 Def 3 20 Lem 3 21 Csirmaz 1994 101 Thm 10 7 Conseq 10 8 see onlineReferences editBurris Stanley N 1998 Supplementary Text Arithmetic I Logic for Mathematics and Computer Science Prentice Hall ISBN 978 0 13 285974 5 Csirmaz Laszlo Hajnal Andras 1994 Rekurziv fuggvenyek Matematikai logika postscript gzip in Hungarian Budapest Eotvos Lorand University Each chapter is downloadable verbatim on author s page Hughes John 1989 Why Functional Programming Matters Computer Journal 32 2 98 107 doi 10 1093 comjnl 32 2 98 Archived from the original on December 8 2006 Monk J Donald 1976 Mathematical Logic Graduate Texts in Mathematics New York Heidelberg Berlin Springer Verlag ISBN 9780387901701 Smullyan Raymond Merrill 1992 Godel s Incompleteness Theorems Oxford University Press ISBN 978 0 19 504672 4 Smullyan Raymond Merrill 2003 Godel nemteljessegi tetelei in Hungarian Budapest Typotex ISBN 978 963 9326 99 6 Translation of Smullyan 1992 External links editBurris Stanley N 1998 Supplementary Text Arithmetic I Logic for Mathematics and Computer Science Prentice Hall ISBN 978 0 13 285974 5 Retrieved from https en wikipedia org w index php title Godel numbering for sequences amp oldid 1222587930, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.