5. Alan Turing and Computability

Size: px
Start display at page:

Download "5. Alan Turing and Computability"

Transcription

1 5. Alan Turing and Computability Türing Machine. In 1936 Dr. Turing wrote a paper on the design and limitations of computing machines. For this reason they are sometimes known by his name. The umlaut is an unearned and undesirable addition, due, presumably, to an impression that anything as incomprehensible must be Teutonic. B. V. Bowden, Faster than Thought. Mathematical foundations On the morning of August 8, 1900 David Hilbert, professor of mathematics at the University of Göttingen and one of world s most eminent mathematicians, gave an invited lecture at the second International Congress of Mathematicians held in Paris during a summer which many chroniclers of this event say was hot and sultry. Instead of a conventional lecture giving a review of some area in which he had made a significant contribution, Hilbert gave a list of twenty-three problems to challenge mathematicians in the twentieth century. It was Hilbert s intention to place the whole of mathematics on a solid logical foundation. He ended his address with the following challenge: This conviction of the solvability of every mathematical problem is a powerful incentive to the worker. We hear within us the perpetual call. There is the problem. Seek its solution. You can find it by pure reason, for in mathematics there is no ignorabimus. Hilbert believed, as did his audience, that for any axiomatic system in mathematics the theorems derived should be complete, consistent and decidable. By complete he meant that a proof or a disproof could be found for every meaningful mathematical statement, by consistent that there could be no contradictions so that a statement could not be proven both true and false, and by decidable that for every meaningful mathematical statement there was a method for determining whether the statement was true or false. When Hilbert retired in 1930 at the age of sixty-eight, the city of Königsberg where he was born made him an honorary citizen at a meeting of the German Society of Scientists and Physicians which was being held there. Here he reiterated his convictions made thirty years before and ended his address with the words Wir müssen wissen. Wir werden wissen - We must know. We shall know. words which were inscribed on his tombstone on his death in We shall mention only three of Hilbert s twenty-three problems. The second was to prove the consistency of the axioms of the arithmetic of real numbers. The eighth was the Riemann hypothesis

2 concerning the real parts of the complex zeroes of the zeta function, a problem which has not yet been solved and which is considered to be the most famous unsolved problem in mathematics. The tenth problem was the decidability or decision problem although Hilbert appears to have restricted it to determining if Diophantine equations were solvable. Just as Hilbert was being made an honorary citizen of Königsberg, Kurt Gödel, a young Czech-born mathematician working in Vienna, submitted a twenty-five-page paper to the Monatshefte für Mathematik und Physik which would put an end to Hilbert s dream of placing mathematics on a sound logical foundation. In it he showed that in any mathematical system, however simple, there would always be statements the truth or falsity of which could not be proven, i.e., that mathematics is incomplete. This in turn implied it could not be proven that mathematics is consistent. Only a few years later Hilbert s belief that every mathematical statement was decidable was shown to be unattainable. The solution to this problem which we shall discuss here is that proposed by the young Cambridge mathematics graduate Alan Turing who formulated a hypothetical mechanical means of solution and in so doing gave his name to the device now known as a Turing machine. As Turing is now such a dominant figure in the history of computing, we shall give a very short summary of his brilliant yet short and tragic life and career. Early life and education Alan Mathison Turing was born on June 23, 1912 in a nursing home in Paddington, London, and was the second and last son of Julius and Sarah Turing. Julius Turing worked for the Indian Civil Service in the Madras Presidency, and his wife, Ethel Sara Stoney and was the daughter of the chief engineer of the Madras railways. The Turings returned to England for the birth of their son. Julius soon returned to India but his mother remained in England until at least September 1913 when she rejoined her husband in India. The Turings returned to England only rarely until Julius s retirement in 1926, and Alan and his brother John were cared for by guardians and were educated in private boarding schools. He found it difficult to fit into what was expected of him in the English public school system with the emphasis on a classical education and the preparation for service to the British Empire and the relative neglect of mathematics and the sciences. His interest in science is said to have been stimulated by popular children s books on science, especially Edwin Tenney Brewster s Natural Wonders Every Child Should Know and later by Arthur Eddington s The Nature of the Physical World. (A contemporary book for Canadian and American readers might have been The Wonder Book of Knowledge compiled and edited by Henry Chase Hill which presented The marvels of modern industry and invention. The interesting stories of common things. The mysterious processes of nature simply explained.) Turing entered King s College, Cambridge in 1931 where he used the liberal atmosphere to satisfy his wide-ranging intellectual interests which included reading John von Neumann s recently published book Chapter 5 2

3 on quantum mechanics. He also had the opportunity to express more openly his homosexuality of which he became increasingly aware in his school days. He graduated from King s in 1934, and was elected a Fellow in 1935 for a thesis on the Central Limit Theorem which he established independently and without knowledge of the proof published about twelve years earlier. It was in 1935 that he first heard of Hilbert s decision problem in a course given by the topologist M. H. A. (Max) Neuman. In 1936 he enrolled as a graduate student at Princeton and received his Ph.D. in 1938 for a thesis on algebra and number theory. He was offered a temporay post at Princeton by von Neumann but declined it, and returned to Britain where he resumed his Fellowship at Cambridge and continued the work he had begun at Princeton. He also in secret worked part-time for the British cryptographic department, the Government Code and Cypher School as it was formally known. He was the first scientist to be engaged in such work as previous positions were held by arts graduates and chess players. Bletchley Park Immediately on the outbreak of the Second World War in September 1939 Turing took up a full-time position at the cryptographic headquarters at Bletchley Park in Buckinghamshire. His work on deciphering German messages encrypted by the Enigma machine resulted first in the generalization of the Polish Bombe, an electromechanical device for decrypting Luftwaffe traffic. He then developed methods for decrypting the much more difficult Enigma naval traffic. This latter work was said to have shortened the war by months or possibly years, and saved of course countless Allied lives. For his work at Bletchley Park Turing was awarded the Order of the British Empire. National Physical Laboratory and Manchester At the end of the war Turing joined the staff of the National Physical Laboratory at Teddington to work on the design of an Automatic Computing Engine or ACE, a stored-program electronic computer to rival the proposed American EDVAC. He not only made detailed plans for the design of this machine but also for its programming including a suggestion for an Abbreviated Code Instructions scheme which was a very early programming language. However none of Turing s work had any influence on the project due in part to bureaucratic indifference and probably to Turing s inability to work well in a governmental environment. In October 1947 he returned, with some encouragement from NPL, to Cambridge for the coming academic year. In May 1948 Max Newman, his former Cambridge teacher who was now Director of the Royal Society Computing Laboratory at Manchester, invited Turing to fill the rather ill-defined position of Deputy Director. Turing worked on program development and explored various topics in mathematical logic and game playing. Some of his work on this latter topic is given in a short paper in the symposium Chapter 5 3

4 edited by Lord Bowden whose tongue-in-cheek comment on the Turing name is given at the beginning of this chapter. He also wrote a manual on machine-language programming for the Manchester computer, part of which served as a manual for FERUT, the model of the Ferranti computer which was installed at the University of Toronto in the 1950s. In July 1951 Turing was made a Fellow of the Royal Society. In March 1952 Turing was arrested and charged with gross indecency because of a homosexual affair with a young man. Rather than be imprisoned he agreed to a one-year period of oestrogen injections to neutralize his libido. On June 8, 1954 he decided that the world was too much for him, and he committed suicide by biting into an apple laced with cyanide. Turing machines As has been mentioned already Turing first heard of the decision problem in Max Neuman s lectures in which it was suggested that a solution might be found by a mechanical method, on paper at least, which could decide if any mathematical assertion is provable. Turing was struck by the term mechanical which implied to him a procedure that could be carried out by either a machine or a person following a prescribed list of rules. He began by defining computable numbers as those real numbers, i.e., positive and negative integers and rational and irrational numbers, that could be expressed as infinite decimals and computed by some given set of rules. Examples are 1/4 = , 1/6 = and 2 = He then devised a hypothetical machine that would carry out these operations which he maintained encompassed all the possible processes which can be carried out in computing a number. We shall describe such a machine, now known as a Turing machine, and give a few simple examples before discussing the theoretical importance of this work.. The machine imagined by Turing was simply a device which could read sequentially, one at a time, the squares on an infinitely long paper tape marked off into squares, changing or leaving unchanged the symbol on the square and then moving one square left or right. The two important features were that there were only a finite number of symbols and a finite number of states which determined the action of the machine on reading a symbol. Thus the machine would start in some initial state reading the symbol on a given square, then change or erase the symbol, and then move one square left or right and possibly change to another state. This process of reading and writing, moving from square to square and changing from state to state would continue until the machine would pass into a stopping state and stop. Thus the operation of a Turing machine could be specified by a number of quintuples of the form (Present state, symbol read, symbol written, move left or right, new state). We shall represent the states by S 0, S 1, S 2, S 3,...where S 0 is the stopping state, and the moves left and right by L and R respectively. (There is no loss of generality in limiting the possible symbols to the digits 0 and 1, although some definitions of Turing machines allow only one symbol while others allow Chapter 5 4

5 several symbols such as the decimal digits 0, 1, 2,..., 9.) For example, the quintuple (S 2,1,0,R,S 4 ) would mean that if the machine is in state S 1 and is reading the symbol 1, it would write the symbol 0, move the read-write head one square to the right, and go to state S 4. The quintuple (S 2,1,,R,S 4 ) would have the same meaning except that the symbol written would be a blank, i.e., the symbol 1 on the tape would be erased. We shall assume that the machine is initially in state S 1 and is reading the leftmost marked square on the tape. As a very simple example consider a Turing machine which reads a sequence of consecutive 1s on a tape until it reads the blank square immediately to the right of the last 1. It then writes a 1 and starts reading the marked squares until it reads the leftmost marked square when it stops. (If the non-negative integer N is represented by N+1 1s, then this procedure could be interpreted as incrementing N by 1 which is given by the J expression >:N.) It is easy to see that this Turing machine is defined by the following quintuples: (S 1,1,1,R,S 1 ) (S 1,,1,L,S 2 ) (S 2,1,1,L,S 2 ) (S 2,,,R,S 0 ) As a second example let us consider a Turing machine that reads a sequence of 0s and 1s on the tape and replaces the sequence by the parity bit defined as 0 when the number of 1s is even and 1 when the number of 1s is odd. (If X is any list of 0s and 1s, then the J expression ~:/X will give parity bit of X.) The machine may be defined by the following seven quintuples: (S 1,0,,R,S 1 ) (S 1,1,,R,S 2 ) (S 1,,0,R,S 3 ) (S 2,0,,R,S 2 ) (S 2,1,,R,S 1 ) (S 2,,1,R,S 3 ) (S 3,,,L,S 0 ) A little thought will show that state S 1 indicates that an even number, including zero, of 1s has been read, and state S 2 that an odd number of 1s has been read. Thus as the read-write head scans successive squares erasing the symbols as it moves, its internal state alternates when necessary between S 1 and S 2. The third quintuple in each row writes the correct parity bit, and the seventh and final quintuple stops the machine. The following diagram shows the operation of the machine as it computes the parity of the string At each stage the current state of the machine is shown to the left of the tape while the position of the read-write head is indicated by the arrow under the appropriate square. S 1 S Chapter 5 5

6 S 2 S 1 S 1 S 2 S 3 S Turing machines which continue without stopping may be simply defined. An example is the machine defined by the quintuples (S1,0,0,R,S2) (S1,1,1,R,S3) (S2,,1,R,S3) (S3,,0,R,S2) which starting with a single 0 or 1 on the tape produces either or , respectively. Computability Turing devised a scheme for the numerical encoding of the quintuples defining any machine so that it could be assigned a unique decimal description number which would be an integer, albeit a very large one. Therefore the description number for any Turing machine could be written on a tape one digit per square and then followed by a number representing input to the machine thus encoded. Turing then developed what is now termed a Universal Turing Machine that would take such a tape and by interpreting the instructions for the particular machine written on the tape and using the data to the right of its description number perform the same calculations as would the given Turing machine working on the given data. Turing then imagined that the description numbers for all possible Turing machines, including those corresponding to computable numbers, be sorted in numerical order. A subset of these numbers could be Chapter 5 6

7 termed satisfactory description numbers corresponding to those machines for generating computable numbers. However Turing showed that there was no Turing machine capable of deciding whether a given description number is satisfactory. Suppose on the contrary, he said, that there was such a machine. Then one could construct a new Turing machine which finds the first digit of the first satisfactory description number and prints a different first digit, then finds the second digit of the second satisfactory description number and prints a different second digit, etc. Thus it generates an infinite computable number that has a satisfactory description number whatever it may be. Yet the number is different from all of the numbers generated by every Turing machine with a satisfactory description number. Thus the hypothesis that there does exist a Turing machine capable of determining if the description number of a given Turing machine is satisfactory is false. This in turn answers Hilbert s decidability problem in the negative, i.e., it is not possible to determine if every mathematical statement is true or false. (There are other ways of proving the same result including one preferred by Turing in which a machine acted upon its own description number.) Turing showed his work to Max Neuman in April 1936 just as the American logician Alonzo Church established the same results using another method known as the λ-calculus. Publication of Turing s work was delayed a few months as he was modifying his paper to acknowledge Church s work and showing that the two methods were equivalent. His classic paper On computable numbers, with an application to the Entscheidungsproblem was published later the same year in the Proceedings of the London Mathematical Society. A play and a novel In the 1980s the British playwright Hugh Whitemore wrote Breaking the Code, a play on Turing s life and work. It was based, as stated on the cover, on Andrew Hodges s definitive biography Alan Turing: The Enigma published earlier in the decade. (The play was subsequently made into a televison drama.) The play discusses Turing s work on the Entscheidungsproblem at Cambridge, his work at Bletchley Park on codebreaking, and his computer work at Manchester. It also gives a sympathetic treatment of his homosexual encounters and the resulting problems with officialdom. In one scene Turing, in a discussion with the classicist and wartime cryptographer Dilwyn Knox, discusses Hilbert s work and defines consistency, completeness and decidability ( Consistency means that you won t ever get a contradiction in your system; in other words, you ll never be able to follow the rules of your system and end up showing that two and two make five. ). He then mentions Gödel s theorem that a mathematical system is either inconsistent or incomplete. ( It s a beautiful theorem, quite beautiful, I think Gödel s theorem is the most beautiful system I know. ) Later in the same scene Knox s says to Turing: Forgive me for asking a crass and naïve question but what is the point of devising a machine that cannot be built Chapter 5 7

8 in order to prove that there are certain mathematical statements that cannot be proved? In another scene Knox ends a discussion with the following quotation by the logician Ludwig Wittgenstein which raises issues far beyond any related to Turing s great accomplishents: We feel that even when all scientific questions have been answered, the problems of life remain completely unanswered. Robert Harris, a Cambridge graduate and former television and newspaper journalist, is the author of several works of nonfiction but is probably better known to the reading public as the author of about half a dozen thrillers some of which are set in Roman times. The theme of his 1995 novel Enigma, as the title may suggest, is concerned with the breaking of the Enigma code and is centred at Bletchley Park. The central character is Tom Jericho, a student of Alan Turing s, who was sent to Bletchley Park at the outbreak of the war. The novel opens in 1943 as Jericho returns to his Cambridge college to recover from a nervous breakdown, He is soon recalled to Bletchley Park to help break the Enigma code. There is a secondary plot involving Jericho s former girlfriend who is missing and is suspected of being a German agent, especially by Jericho who finds stolen cryptograms hidden in her room. By the end of the book the Enigma code has been broken and the secondary plot resolved in a quite unexpected but plausible manner. Harris shows a good understanding of the administrative and physical layout of Bletchley Park and gives sufficient technical detail of codebreaking without letting it intrude on the plot. He also gives an excellent portrayal of life in wartime Britain with the almost unbearable coldness of the living and working conditions, the lack of food, and the awfulness of what food that was available. Both the Breaking the Code and Enigma could serve as excellent introductions to Turing s work and might encourage some readers to turn to some of non-fictionsl sccounts of wartime codebreaking, five of which are referred to at the beginning of Harris s book. A Turing machine simulator The dyadic J function turing may be used to run a variety of Turing machine simulations. The left argument is a table of quintuples defining the Turing machine, and the right argument is the character list giving the initial tape configuration which contains no leading or trailing blank characters. (The program initially appends five leading and five trailing blanks to this list.) The output is the the final tape configuration delimited on the left and right by three asterisks. The global table TRACE gives the state number, position of the read-write head and tape configuration for each quintuple executed. The following shows the assembly of the quintuples for the first example given previously where a 1 is appended on the right to a list of consecutive 1s.: tm01=: 'S1';'1';'1';'R';'S1' tm02=: 'S1';' ';'1';'L';'S2' tm03=: 'S2';'1';'1';'L';'S2' Chapter 5 8

9 tm04=: 'S2';' ';' ';'R';'S0' tm0=: 4 5 $ tm01, tm02, tm03, tm04 The expression tm0 turing 111 would give the result *** 1111 *** and the variable TRACE would be the following table: S S S S S S S S S Chapter 5 9

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Lecture 15 Ana Bove May 17th 2018 Recap: Context-free Languages Chomsky hierarchy: Regular languages are also context-free; Pumping lemma

More information

Theory of Computation CS3102 Spring 2014 A tale of computers, math, problem solving, life, love and tragic death

Theory of Computation CS3102 Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Theory of Computation CS3102 Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Nathan Brunelle Department of Computer Science University of Virginia www.cs.virginia.edu/~njb2b/theory

More information

Alan Turing and the Foundations of Computer Science

Alan Turing and the Foundations of Computer Science Alan Turing and the Foundations of Computer Science Waseda University, SILS, History of Mathematics Outline Introduction Hilbert s Program Foundations and Crisis Alan Turing and the Decidability Problem

More information

Can a Machine Think?

Can a Machine Think? Can a Machine Think? Mathematics 15: Lecture 27 Dan Sloughter Furman University December 4, 2006 Dan Sloughter (Furman University) Can a Machine Think? December 4, 2006 1 / 8 Alan Turing 1912-1954 Dan

More information

Decidable Languages - relationship with other classes.

Decidable Languages - relationship with other classes. CSE2001, Fall 2006 1 Last time we saw some examples of decidable languages (or, solvable problems). Today we will start by looking at the relationship between the decidable languages, and the regular and

More information

Sequence of Topics. 1. The Nature of Truth. 2. Biography of Alan Turing ( ) 3. The Church-Turing Thesis. 4. Interactive Computing

Sequence of Topics. 1. The Nature of Truth. 2. Biography of Alan Turing ( ) 3. The Church-Turing Thesis. 4. Interactive Computing 1 Sequence of Topics 1. The Nature of Truth 2. Biography of Alan Turing (1912-1954) 3. The Church-Turing Thesis 4. Interactive Computing 5. Rationalism Versus Empiricism 6. Can Machines Think? 7. Stephen

More information

Most General computer?

Most General computer? Turing Machines Most General computer? DFAs are simple model of computation. Accept only the regular languages. Is there a kind of computer that can accept any language, or compute any function? Recall

More information

Class 24: Computability

Class 24: Computability Menu Class 24: Review: Gödel s Theorem Proof in Axiomatic Systems : Are there some problems that it is impossible to write a program to solve? Halting Problems Hockey Team Logo CS150: Computer Science

More information

Computation. Some history...

Computation. Some history... Computation Motivating questions: What does computation mean? What are the similarities and differences between computation in computers and in natural systems? What are the limits of computation? Are

More information

Decidability: Church-Turing Thesis

Decidability: Church-Turing Thesis Decidability: Church-Turing Thesis While there are a countably infinite number of languages that are described by TMs over some alphabet Σ, there are an uncountably infinite number that are not Are there

More information

Computability Theory. CS215, Lecture 6,

Computability Theory. CS215, Lecture 6, Computability Theory CS215, Lecture 6, 2000 1 The Birth of Turing Machines At the end of the 19th century, Gottlob Frege conjectured that mathematics could be built from fundamental logic In 1900 David

More information

Turing Centenary Lecture

Turing Centenary Lecture Turing Centenary Lecture P.D.Welch University of Bristol Visiting Research Fellow, Isaac Newton Institute Early Life King s College 1931 King s College 1931 Hardy Eddington He attended Eddington s lectures

More information

and Models of Computation

and Models of Computation CDT314 FABE Formal anguages, Automata and Models of Computation ecture 12 Mälardalen University 2013 1 Content Chomsky s anguage Hierarchy Turing Machines Determinism Halting TM Examples Standard TM Computing

More information

Handouts. CS701 Theory of Computation

Handouts. CS701 Theory of Computation Handouts CS701 Theory of Computation by Kashif Nadeem VU Student MS Computer Science LECTURE 01 Overview In this lecturer the topics will be discussed including The Story of Computation, Theory of Computation,

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automata and Formal Language Theory Course Notes Part III: Limits of Computation Chapter III.1: Introduction Anton Setzer http://www.cs.swan.ac.uk/ csetzer/lectures/ automataformallanguage/current/index.html

More information

Fundamentals of Computer Science

Fundamentals of Computer Science Fundamentals of Computer Science Chapter 8: Turing machines Henrik Björklund Umeå University February 17, 2014 The power of automata Finite automata have only finite memory. They recognize the regular

More information

Church s undecidability result

Church s undecidability result Church s undecidability result Alan Turing Birth Centennial Talk at IIT Bombay, Mumbai Joachim Breitner April 21, 2011 Welcome, and thank you for the invitation to speak about Church s lambda calculus

More information

CS 301. Lecture 17 Church Turing thesis. Stephen Checkoway. March 19, 2018

CS 301. Lecture 17 Church Turing thesis. Stephen Checkoway. March 19, 2018 CS 301 Lecture 17 Church Turing thesis Stephen Checkoway March 19, 2018 1 / 17 An abridged modern history of formalizing algorithms An algorithm is a finite, unambiguous sequence of steps for solving a

More information

Propositions as Types

Propositions as Types Propositions as Types Martin Pfeifhofer & Felix Schett May 25, 2016 Contents 1 Introduction 2 2 Content 3 2.1 Getting Started............................ 3 2.2 Effective Computability And The Various Definitions.......

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 13 CHAPTER 4 TURING MACHINES 1. The definition of Turing machine 2. Computing with Turing machines 3. Extensions of Turing

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automata and Formal Language Theory Course Notes Part III: Limits of Computation Chapt. III.1: Introduction Anton Setzer http://www.cs.swan.ac.uk/ csetzer/lectures/ automataformallanguage/current/index.html

More information

17.1 The Halting Problem

17.1 The Halting Problem CS125 Lecture 17 Fall 2016 17.1 The Halting Problem Consider the HALTING PROBLEM (HALT TM ): Given a TM M and w, does M halt on input w? Theorem 17.1 HALT TM is undecidable. Suppose HALT TM = { M,w : M

More information

Before We Start. Turing Machines. Languages. Now our picture looks like. Theory Hall of Fame. The Turing Machine. Any questions? The $64,000 Question

Before We Start. Turing Machines. Languages. Now our picture looks like. Theory Hall of Fame. The Turing Machine. Any questions? The $64,000 Question Before We Start s Any questions? Languages The $64,000 Question What is a language? What is a class of languages? Now our picture looks like Context Free Languages Deterministic Context Free Languages

More information

Automata Theory. Definition. Computational Complexity Theory. Computability Theory

Automata Theory. Definition. Computational Complexity Theory. Computability Theory Outline THEORY OF COMPUTATION CS363, SJTU What is Theory of Computation? History of Computation Branches and Development Xiaofeng Gao Dept. of Computer Science Shanghai Jiao Tong University 2 The Essential

More information

CSE 105 Theory of Computation

CSE 105 Theory of Computation CSE 105 Theory of Computation http://www.jflap.org/jflaptmp/ Professor Jeanne Ferrante 1 Today s Agenda Quick Review of CFG s and PDA s Introduction to Turing Machines and their Languages Reminders and

More information

Cristina Nita-Rotaru. CS355: Cryptography. Lecture 4: Enigma.

Cristina Nita-Rotaru. CS355: Cryptography. Lecture 4: Enigma. CS355: Cryptography Lecture 4: Enigma. Towards cryptographic engines } How to move from pencil and paper to more automatic ways of encrypting and decrypting? } How to design more secure ciphers } Alberti

More information

Lecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem. Michael Beeson

Lecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem. Michael Beeson Lecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem Michael Beeson The hypotheses needed to prove incompleteness The question immediate arises whether the incompleteness

More information

The roots of computability theory. September 5, 2016

The roots of computability theory. September 5, 2016 The roots of computability theory September 5, 2016 Algorithms An algorithm for a task or problem is a procedure that, if followed step by step and without any ingenuity, leads to the desired result/solution.

More information

ON COMPUTAMBLE NUMBERS, WITH AN APPLICATION TO THE ENTSCHENIDUGSPROBLEM. Turing 1936

ON COMPUTAMBLE NUMBERS, WITH AN APPLICATION TO THE ENTSCHENIDUGSPROBLEM. Turing 1936 ON COMPUTAMBLE NUMBERS, WITH AN APPLICATION TO THE ENTSCHENIDUGSPROBLEM Turing 1936 Where are We? Ignoramus et ignorabimus Wir mussen wissen Wir werden wissen We do not know We shall not know We must know

More information

Introduction to Turing Machines

Introduction to Turing Machines Introduction to Turing Machines Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 12 November 2015 Outline 1 Turing Machines 2 Formal definitions 3 Computability

More information

Obsevations, Truth and Logic

Obsevations, Truth and Logic Obsevations, Truth and Logic Jaap van Oosten Department of Mathematics Utrecht University Axioma, Groningen May 9, 2018 Art and Science have the same basic subject matter: Observations. Art (visual art):

More information

Farewell (for now) to modular arithmetic...

Farewell (for now) to modular arithmetic... Today. Farewell to modular arithmetic. Until the midterm. And final. Coutability and Uncountability. Undecidability. How big are the reals or the integers? Farewell (for now) to modular arithmetic... Modular

More information

Quantum Computing 101. ( Everything you wanted to know about quantum computers but were afraid to ask. )

Quantum Computing 101. ( Everything you wanted to know about quantum computers but were afraid to ask. ) Quantum Computing 101 ( Everything you wanted to know about quantum computers but were afraid to ask. ) Copyright Chris Lomont, 2004 2 67 1 = 193707721 761838257287 Took American Mathematician Frank Nelson

More information

Turing Machines Part One

Turing Machines Part One Turing Machines Part One What problems can we solve with a computer? Regular Languages CFLs Languages recognizable by any feasible computing machine All Languages That same drawing, to scale. All Languages

More information

Mathematical Logic. Giuseppe Peano ( ) Core Logic 2004/05-1ab p. 2/2

Mathematical Logic. Giuseppe Peano ( ) Core Logic 2004/05-1ab p. 2/2 Mathematical Logic. From the XIXth century to the 1960s, logic was essentially mathematical. Development of first-order logic (1879-1928): Frege, Hilbert, Bernays, Ackermann. Development of the fundamental

More information

Can You Count on Your Computer?

Can You Count on Your Computer? Can You Count on Your Computer? Professor Nick Higham School of Mathematics University of Manchester higham@ma.man.ac.uk http://www.ma.man.ac.uk/~higham/ p. 1/33 p. 2/33 Counting to Six I asked my computer

More information

Limits of Computation. Antonina Kolokolova

Limits of Computation. Antonina Kolokolova Limits of Computation Antonina Kolokolova What is computation? What is information? What is learning? Are there any limits of our ability to solve problems? Theoretical Computer Science Is there a perfect

More information

(1.3.1) and in English one says a is an element of M. The statement that a is not an element of M is written as a M

(1.3.1) and in English one says a is an element of M. The statement that a is not an element of M is written as a M 1.3 Set Theory I As long as the terms of a mathematical theory are names of concrete objects as concrete as mothers breast, the very first object that received a name in human languages - there is not

More information

Lecture notes on Turing machines

Lecture notes on Turing machines Lecture notes on Turing machines Ivano Ciardelli 1 Introduction Turing machines, introduced by Alan Turing in 1936, are one of the earliest and perhaps the best known model of computation. The importance

More information

The Chemical Basis of Morphogenesis

The Chemical Basis of Morphogenesis The Chemical Basis of Morphogenesis A. M. Turing Philosophical Transactions of the Royal Society of London. Series B, Biological Sciences, Vol. 237, No. 641. (Aug. 14, 1952), pp. 37-72. Early Life: The

More information

Turing Machines. COMP2600 Formal Methods for Software Engineering. Katya Lebedeva. Australian National University Semester 2, 2014

Turing Machines. COMP2600 Formal Methods for Software Engineering. Katya Lebedeva. Australian National University Semester 2, 2014 Turing Machines COMP2600 Formal Methods for Software Engineering Katya Lebedeva Australian National University Semester 2, 2014 Slides created by Jeremy Dawson and Ranald Clouston COMP 2600 Turing Machines

More information

Discover The Life Of An Inventor. Albert Einstein

Discover The Life Of An Inventor. Albert Einstein Discover The Life Of An Inventor Albert Einstein ALBERT EINSTEIN DISCOVER THE LIFE OF AN INVENTOR Don McLeese Rourke Publishing LLC Vero Beach, Florida 32964 2006 Rourke Publishing LLC All rights reserved.

More information

The Road from Leibniz to Turing, Part II

The Road from Leibniz to Turing, Part II The Road from Leibniz to Turing, Part II DA2205, DD3001 October 11, 2012 Hilbert to the Rescue Source: Lecture material is based on The Universal Computer by Martin Davis Basic bio David Hilbert Born:

More information

Hilbert s problems, Gödel, and the limits of computation

Hilbert s problems, Gödel, and the limits of computation Hilbert s problems, Gödel, and the limits of computation Logan Axon Gonzaga University April 6, 2011 Hilbert at the ICM At the 1900 International Congress of Mathematicians in Paris, David Hilbert gave

More information

CSE355 SUMMER 2018 LECTURES TURING MACHINES AND (UN)DECIDABILITY

CSE355 SUMMER 2018 LECTURES TURING MACHINES AND (UN)DECIDABILITY CSE355 SUMMER 2018 LECTURES TURING MACHINES AND (UN)DECIDABILITY RYAN DOUGHERTY If we want to talk about a program running on a real computer, consider the following: when a program reads an instruction,

More information

Theory of Computation Lecture Notes

Theory of Computation Lecture Notes Theory of Computation Lecture Notes Prof. Yuh-Dauh Lyuu Dept. Computer Science & Information Engineering and Department of Finance National Taiwan University c 2008 Prof. Yuh-Dauh Lyuu, National Taiwan

More information

Understanding Computation

Understanding Computation Understanding Computation 1 Mathematics & Computation -Mathematics has been around for a long time as a method of computing. -Efforts to find canonical way of computations. - Machines have helped with

More information

Turing Machines. Lecture 8

Turing Machines. Lecture 8 Turing Machines Lecture 8 1 Course Trajectory We will see algorithms, what can be done. But what cannot be done? 2 Computation Problem: To compute a function F that maps each input (a string) to an output

More information

THE CONSTRUCTIVE SECOND NUMBER CLASS*

THE CONSTRUCTIVE SECOND NUMBER CLASS* 224 ALONZO CHURCH [April THE CONSTRUCTIVE SECOND NUMBER CLASS* ALONZO CHURCH The existence of at least a vague distinction between what I shall call the constructive and the non-constructive ordinals of

More information

7.1 The Origin of Computer Science

7.1 The Origin of Computer Science CS125 Lecture 7 Fall 2016 7.1 The Origin of Computer Science Alan Mathison Turing (1912 1954) turing.jpg 170!201 pixels On Computable Numbers, with an Application to the Entscheidungsproblem 1936 1936:

More information

5.2. Perfect Numbers Divisors of a natural number were covered in Section 5.1.

5.2. Perfect Numbers Divisors of a natural number were covered in Section 5.1. 5.2 Smith Numbers The mathematician Albert Wilansky, when phoning his brother-in-law, Mr. Smith, noticed an interesting property concerning Smith s phone number (493-7775). The number 4,937,775 is composite,

More information

The Turing Machine. Computability. The Church-Turing Thesis (1936) Theory Hall of Fame. Theory Hall of Fame. Undecidability

The Turing Machine. Computability. The Church-Turing Thesis (1936) Theory Hall of Fame. Theory Hall of Fame. Undecidability The Turing Machine Computability Motivating idea Build a theoretical a human computer Likened to a human with a paper and pencil that can solve problems in an algorithmic way The theoretical provides a

More information

Large Numbers, Busy Beavers, Noncomputability and Incompleteness

Large Numbers, Busy Beavers, Noncomputability and Incompleteness Large Numbers, Busy Beavers, Noncomputability and Incompleteness Food For Thought November 1, 2007 Sam Buss Department of Mathematics U.C. San Diego PART I Large Numbers, Busy Beavers, and Undecidability

More information

Workshop 1- Building on the Axioms. The First Proofs

Workshop 1- Building on the Axioms. The First Proofs Boston University Summer I 2009 Workshop 1- Building on the Axioms. The First Proofs MA341 Number Theory Kalin Kostadinov The goal of this workshop was to organize our experience with the common integers

More information

CS187 - Science Gateway Seminar for CS and Math

CS187 - Science Gateway Seminar for CS and Math CS187 - Science Gateway Seminar for CS and Math Fall 2013 Class 3 Sep. 10, 2013 What is (not) Computer Science? Network and system administration? Playing video games? Learning to use software packages?

More information

Models. Models of Computation, Turing Machines, and the Limits of Turing Computation. Effective Calculability. Motivation for Models of Computation

Models. Models of Computation, Turing Machines, and the Limits of Turing Computation. Effective Calculability. Motivation for Models of Computation Turing Computation /0/ Models of Computation, Turing Machines, and the Limits of Turing Computation Bruce MacLennan Models A model is a tool intended to address a class of questions about some domain of

More information

Foundations of Computation. Ana Bove

Foundations of Computation. Ana Bove Foundations of Computation Ana Bove Programming Logic (ProgLog) Group February 13th 2018 Outline of the talk: What we do in ProgLog Origines of computer science Courses in the area Warming-up Exercise

More information

Isaac Newton Benjamin Franklin Michael Faraday

Isaac Newton Benjamin Franklin Michael Faraday Isaac Newton (4 January 1643 31 March 1727) was born and raised in England. He was a greater thinker and made many discoveries in physics, mathematics, and astronomy. Newton was the first to describe the

More information

The Legacy of Hilbert, Gödel, Gentzen and Turing

The Legacy of Hilbert, Gödel, Gentzen and Turing The Legacy of Hilbert, Gödel, Gentzen and Turing Amílcar Sernadas Departamento de Matemática - Instituto Superior Técnico Security and Quantum Information Group - Instituto de Telecomunicações TULisbon

More information

CST Part IB. Computation Theory. Andrew Pitts

CST Part IB. Computation Theory. Andrew Pitts Computation Theory, L 1 1/171 CST Part IB Computation Theory Andrew Pitts Corrections to the notes and extra material available from the course web page: www.cl.cam.ac.uk/teaching/0910/comptheory/ Introduction

More information

Elementary Linear Algebra, Second Edition, by Spence, Insel, and Friedberg. ISBN Pearson Education, Inc., Upper Saddle River, NJ.

Elementary Linear Algebra, Second Edition, by Spence, Insel, and Friedberg. ISBN Pearson Education, Inc., Upper Saddle River, NJ. 2008 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. APPENDIX: Mathematical Proof There are many mathematical statements whose truth is not obvious. For example, the French mathematician

More information

Computer Science and Logic A Match Made in Heaven

Computer Science and Logic A Match Made in Heaven A Match Made in Heaven Luca Aceto Reykjavik University Reykjavik, 3 April 2009 Thanks to Moshe Vardi from whom I have drawn inspiration (read stolen ideas ) for this presentation. Why This Talk Today?

More information

CRYPTOGRAPHY AND LARGE PRIMES *

CRYPTOGRAPHY AND LARGE PRIMES * CRYPTOGRAPHY AND LARGE PRIMES * B. Hartley University of Manchester, England, and National University of Singapore The word "cryptography" derives from Greek and means "secret writing". Since ancient times,

More information

Indian Mathematicians and Their Contributions

Indian Mathematicians and Their Contributions Indian Mathematicians and Their Contributions By: G. Nagamani M.sc,M.Ed Teacher, Nalgonda-Telangana State ABSTRACT Indian mathematics has its roots in Vedic literature. Between 1000 B.C. and 1800 A.D.

More information

ECS 120 Lesson 18 Decidable Problems, the Halting Problem

ECS 120 Lesson 18 Decidable Problems, the Halting Problem ECS 120 Lesson 18 Decidable Problems, the Halting Problem Oliver Kreylos Friday, May 11th, 2001 In the last lecture, we had a look at a problem that we claimed was not solvable by an algorithm the problem

More information

A Little History Incompleteness The First Theorem The Second Theorem Implications. Gödel s Theorem. Anders O.F. Hendrickson

A Little History Incompleteness The First Theorem The Second Theorem Implications. Gödel s Theorem. Anders O.F. Hendrickson Gödel s Theorem Anders O.F. Hendrickson Department of Mathematics and Computer Science Concordia College, Moorhead, MN Math/CS Colloquium, November 15, 2011 Outline 1 A Little History 2 Incompleteness

More information

Automata & languages. A primer on the Theory of Computation. Laurent Vanbever. ETH Zürich (D-ITET) October,

Automata & languages. A primer on the Theory of Computation. Laurent Vanbever.   ETH Zürich (D-ITET) October, Automata & languages A primer on the Theory of Computation Laurent Vanbever www.vanbever.eu ETH Zürich (D-ITET) October, 19 2017 Part 5 out of 5 Last week was all about Context-Free Languages Context-Free

More information

19 Lorenz Cipher Machine

19 Lorenz Cipher Machine 9 Lorenz Cipher Machine During the Second World War, the codebreakers at Bletchley Park devised a variety of techniques that enabled the Allies to break the major codes used by the Germans. Not only was

More information

The Limit of Humanly Knowable Mathematical Truth

The Limit of Humanly Knowable Mathematical Truth The Limit of Humanly Knowable Mathematical Truth Gödel s Incompleteness Theorems, and Artificial Intelligence Santa Rosa Junior College December 12, 2015 Another title for this talk could be... An Argument

More information

Gödel s Theorem: Limits of logic and computation

Gödel s Theorem: Limits of logic and computation Gödel s Theorem: Limits of logic and computation David Keil (dkeil@frc.mass.edu) Framingham State College Math/CS Faculty Seminar March 27, 2003 1 Overview Kurt Gödel, 1931, at age 25, in Vienna, shook

More information

An Algebraic Characterization of the Halting Probability

An Algebraic Characterization of the Halting Probability CDMTCS Research Report Series An Algebraic Characterization of the Halting Probability Gregory Chaitin IBM T. J. Watson Research Center, USA CDMTCS-305 April 2007 Centre for Discrete Mathematics and Theoretical

More information

Turing s 1935: my guess about his intellectual journey to On Co

Turing s 1935: my guess about his intellectual journey to On Co Turing s 1935: my guess about his intellectual journey to On Computable Numbers Dept. of Computer Science & Engineering Seoul National University 7/11/2017 @ The 15th Asian Logic Conference, Daejeon Turing

More information

The Turing machine model of computation

The Turing machine model of computation The Turing machine model of computation For most of the remainder of the course we will study the Turing machine model of computation, named after Alan Turing (1912 1954) who proposed the model in 1936.

More information

Hilbert s problems, Gödel, and the limits of computation

Hilbert s problems, Gödel, and the limits of computation Hilbert s problems, Gödel, and the limits of computation Logan Axon Gonzaga University November 14, 2013 Hilbert at the ICM At the 1900 International Congress of Mathematicians in Paris, David Hilbert

More information

Introduction to Metalogic

Introduction to Metalogic Introduction to Metalogic Hans Halvorson September 21, 2016 Logical grammar Definition. A propositional signature Σ is a collection of items, which we call propositional constants. Sometimes these propositional

More information

Turing Machines, diagonalization, the halting problem, reducibility

Turing Machines, diagonalization, the halting problem, reducibility Notes on Computer Theory Last updated: September, 015 Turing Machines, diagonalization, the halting problem, reducibility 1 Turing Machines A Turing machine is a state machine, similar to the ones we have

More information

NONSTANDARD MODELS AND KRIPKE S PROOF OF THE GÖDEL THEOREM

NONSTANDARD MODELS AND KRIPKE S PROOF OF THE GÖDEL THEOREM Notre Dame Journal of Formal Logic Volume 41, Number 1, 2000 NONSTANDARD MODELS AND KRIPKE S PROOF OF THE GÖDEL THEOREM HILARY PUTNAM Abstract This lecture, given at Beijing University in 1984, presents

More information

6.080 / Great Ideas in Theoretical Computer Science Spring 2008

6.080 / Great Ideas in Theoretical Computer Science Spring 2008 MIT OpenCourseWare http://ocw.mit.edu 6.080 / 6.089 Great Ideas in Theoretical Computer Science Spring 2008 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

More information

Gottfried Wilhelm Leibniz (1666)

Gottfried Wilhelm Leibniz (1666) Euclid (c. -300) Euclid s GCD algorithm appeared in his Elements. Formulated geometrically: Find common measure for 2 lines. Used repeated subtraction of the shorter segment from the longer. Gottfried

More information

Keith Fligg. 03-April-07

Keith Fligg. 03-April-07 03-April-07 Part 1: Counting Review of Numbers Part 2: Part 1: Counting Review of Numbers Numerical Representation in the Brain Part 2: Part 1: Counting Review of Numbers Numerical Representation in the

More information

Turing Machines (TM) The Turing machine is the ultimate model of computation.

Turing Machines (TM) The Turing machine is the ultimate model of computation. TURING MACHINES Turing Machines (TM) The Turing machine is the ultimate model of computation. Alan Turing (92 954), British mathematician/engineer and one of the most influential scientists of the last

More information

10. Finite Automata and Turing Machines

10. Finite Automata and Turing Machines . Finite Automata and Turing Machines Frank Stephan March 2, 24 Introduction Alan Turing s th Birthday Alan Turing was a completely original thinker who shaped the modern world, but many people have never

More information

Turing machines COMS Ashley Montanaro 21 March Department of Computer Science, University of Bristol Bristol, UK

Turing machines COMS Ashley Montanaro 21 March Department of Computer Science, University of Bristol Bristol, UK COMS11700 Turing machines Department of Computer Science, University of Bristol Bristol, UK 21 March 2014 COMS11700: Turing machines Slide 1/15 Introduction We have seen two models of computation: finite

More information

Opleiding Informatica

Opleiding Informatica Opleiding Informatica Tape-quantifying Turing machines in the arithmetical hierarchy Simon Heijungs Supervisors: H.J. Hoogeboom & R. van Vliet BACHELOR THESIS Leiden Institute of Advanced Computer Science

More information

Regular Languages and Finite Automata

Regular Languages and Finite Automata Regular Languages and Finite Automata 1 Introduction Hing Leung Department of Computer Science New Mexico State University In 1943, McCulloch and Pitts [4] published a pioneering work on a model for studying

More information

Introduction to Logic and Axiomatic Set Theory

Introduction to Logic and Axiomatic Set Theory Introduction to Logic and Axiomatic Set Theory 1 Introduction In mathematics, we seek absolute rigor in our arguments, and a solid foundation for all of the structures we consider. Here, we will see some

More information

The mighty zero. Abstract

The mighty zero. Abstract The mighty zero Rintu Nath Scientist E Vigyan Prasar, Department of Science and Technology, Govt. of India A 50, Sector 62, NOIDA 201 309 rnath@vigyanprasar.gov.in rnath07@gmail.com Abstract Zero is a

More information

To Infinity and Beyond

To Infinity and Beyond University of Waterloo How do we count things? Suppose we have two bags filled with candy. In one bag we have blue candy and in the other bag we have red candy. How can we determine which bag has more

More information

EnM Probability and Random Processes

EnM Probability and Random Processes Historical Note: EnM 503 - Probability and Random Processes Probability has its roots in games of chance, which have been played since prehistoric time. Games and equipment have been found in Egyptian

More information

Hilbert s Tenth Problem

Hilbert s Tenth Problem Hilbert s Tenth Problem by Andrew J. Misner A project submitted to the Department of Mathematical Sciences in conformity with the requirements for Math 4301 (Honour s Seminar) Lakehead University Thunder

More information

Lecture 19: Universality and Computability

Lecture 19: Universality and Computability Fundamental Questions Lecture 19: Universality and Computability Universality What is a general purpose computer? Computability Are there problems that no machine can solve? Church-Turing thesis Are there

More information

STRATEGIES OF PROBLEM SOLVING

STRATEGIES OF PROBLEM SOLVING STRATEGIES OF PROBLEM SOLVING Second Edition Maria Nogin Department of Mathematics College of Science and Mathematics California State University, Fresno 2014 2 Chapter 1 Introduction Solving mathematical

More information

Infinity. The infinite! No other question has ever moved so profoundly the spirit of man. David Hilbert

Infinity. The infinite! No other question has ever moved so profoundly the spirit of man. David Hilbert ℵ ℵ The infinite! No other question has ever moved so profoundly the spirit of man. David Hilbert ℵℵ The Mathematics of the Birds and the Bee Two birds are racing towards each other in the heat of passion.

More information

CSCI3390-Lecture 6: An Undecidable Problem

CSCI3390-Lecture 6: An Undecidable Problem CSCI3390-Lecture 6: An Undecidable Problem September 21, 2018 1 Summary The language L T M recognized by the universal Turing machine is not decidable. Thus there is no algorithm that determines, yes or

More information

ENEE 459E/CMSC 498R In-class exercise February 10, 2015

ENEE 459E/CMSC 498R In-class exercise February 10, 2015 ENEE 459E/CMSC 498R In-class exercise February 10, 2015 In this in-class exercise, we will explore what it means for a problem to be intractable (i.e. it cannot be solved by an efficient algorithm). There

More information

highlights proof by contradiction what about the real numbers?

highlights proof by contradiction what about the real numbers? CSE 311: Foundations of Computing Fall 2013 Lecture 27: Turing machines and decidability highlights Cardinality A set S is countableiffwe can writeit as S={s 1, s 2, s 3,...} indexed by N Set of rationals

More information

IV. Turing Machine. Yuxi Fu. BASICS, Shanghai Jiao Tong University

IV. Turing Machine. Yuxi Fu. BASICS, Shanghai Jiao Tong University IV. Turing Machine Yuxi Fu BASICS, Shanghai Jiao Tong University Alan Turing Alan Turing (23Jun.1912-7Jun.1954), an English student of Church, introduced a machine model for effective calculation in On

More information

(a) Definition of TMs. First Problem of URMs

(a) Definition of TMs. First Problem of URMs Sec. 4: Turing Machines First Problem of URMs (a) Definition of the Turing Machine. (b) URM computable functions are Turing computable. (c) Undecidability of the Turing Halting Problem That incrementing

More information

258 Handbook of Discrete and Combinatorial Mathematics

258 Handbook of Discrete and Combinatorial Mathematics 258 Handbook of Discrete and Combinatorial Mathematics 16.3 COMPUTABILITY Most of the material presented here is presented in far more detail in the texts of Rogers [R], Odifreddi [O], and Soare [S]. In

More information

Complexity Theory. Ahto Buldas. Introduction September 10, Slides based on S.Aurora, B.Barak. Complexity Theory: A Modern Approach.

Complexity Theory. Ahto Buldas. Introduction September 10, Slides based on S.Aurora, B.Barak. Complexity Theory: A Modern Approach. Introduction September 10, 2009 Complexity Theory Slides based on S.Aurora, B.Barak. Complexity Theory: A Modern Approach. Ahto Buldas e-mail: Ahto.Buldas@ut.ee home: http://home.cyber.ee/ahtbu phone:

More information