Presentation is loading. Please wait.

Presentation is loading. Please wait.

Some stupid remarks by smart people If it should turn out that the basic logics of a machine designed for the numerical solution of differential equations.

Similar presentations


Presentation on theme: "Some stupid remarks by smart people If it should turn out that the basic logics of a machine designed for the numerical solution of differential equations."— Presentation transcript:

1 Some stupid remarks by smart people If it should turn out that the basic logics of a machine designed for the numerical solution of differential equations coincide with the logics of a machine intended to make bills for a department store, I would regard this as the most amazing coincidence I have even encountered. -Howard Aiken, Harvard University (1956) I think there is a world market for maybe five computers. -Thomas Watson, chairman of IBM (1943)

2 Universal computation The universal computing machine It is possible to invent a single machine which can be used to compute any computable sequence. -Alan Turing (1936) Let us now return to the analogy of the theoretical computing machines… It can be shown that a single special machine of that type can be made to do the work of all. It could in fact be made to work as a model of any other machine. The special machine may be called the universal machine. -Alan Turing (1947) There will be positively no internal alterations to be made even if we wish suddenly to switch from calculating the energy levels of the neon atom to the enumeration of groups of order 720. -Alan Turing (1945) We do not need to have an infinity of different machines doing different jobs... the engineering problem of producing various machines for various jobs is replaced by the office work of programming the universal machine to do these jobs. -Alan Turing (1948)

3 Practicality: note 1 Turing was not –solving differential equations, or –doing department-store billing His goal: solve a basic question in logic of mathematics –This forced an approach that was as general as possible as simple as possible –and permitted an approach that was conceptual rather than physical in fact completely impractical Nevertheless...

4 Background: Foundations of Mathematics Frege & Russell (1879, 1913): –invention of formal logic for mathematical reasoning –new logical foundations for mathematics Hilbert (1928): –is mathematics logically complete? –is mathematics logically consistent? –is mathematics logically decidable? Gödel (1931): –mathematical logic is incomplete –consistency of such a system can’t be proved within itself Turing (1936): –mathematical logic is undecidable –there is no procedure for determining whether a proposition is provable

5 Practicality: note 2 Wittgenstein:... The question is: Why are people afraid of contradictions?... Turing says, “Because something may go wrong with the application.” But nothing need go wrong. And if something does go wrong – if the bridge breaks down – then your mistake was of the kind of using a wrong natural law. Turing: You cannot be confident of applying your calculus until you know that there is no hidden contradiction in it. Wittgenstein: There seems to me to be an enormous mistake there... Suppose I convince Rhees of the paradox of the Liar, and he says, “I lie, therefore I do not lie, therefore I lie and I do not lie, therefore we have a contradiction, therefore 2x2=269.’ Well, we should not call this multiplication, that is all... Turing: Although you do not know that the bridge will fall if there are no contradictions, yet it is almost certain that if there are contradictions it will go wrong somewhere. Wittgenstein: But nothing has ever gone wrong that way yet... (Debate in Wittgenstein’s “Foundations of mathematics” course, Cambridge University, 1939)

6 Design of the Universal Machine Infinite “tape” –one-dimensional sequence of “squares” –each square may bear a “symbol” or be blank –there are a finite number of discrete symbols Finite control –machine has finitely many control states (what Turing calls “conditions” or “m-configurations”) –machine sees or “scans” one square of the tape at any step –a given control state specifies what to do for each possible scanned symbol possible actions: –write a symbol in the scanned square or erase the square –move the tape one square left or one square right –or halt

7 Function of the Universal Machine The tape provides –input information (before the machine starts) –output information (after the machines stops – if it does) –a “scratch pad” for working storage The set of control states is the program –Each control state is a tuple, i.e. 1.control-state 2.scanned-symbol 3.written-symbol 4.tape-motion 5.next-state –order of tuples doesn’t affect the program

8 Why is the machine “Universal”? We can write a TM program that “runs” any TM program: Given as input a symbolic description of a TM, combined with a specified input, it simulates the operation of the specified machine and produces the output that the specified machine would have produced for the specified input. We can do the same thing for arbitrary variant designs of “automatic machines” – each can be effectively simulated by the Universal Machine Therefore, the Universal Machine can compute anything that can be computed!

9 Options for the Universal Machine Is the tape infinite in both directions or just rightwards? One tape or multiple tapes? One or many control units? Can the machine both write a symbol & move the tape in one step? Replace the tape with a two-dimensional grid? and so on... None of this makes any essential difference: because any Universal Machine can simulate any other design...

10 How it works TM java applet by Suzanne Brittonjava applet

11 How Turing (1936) used his machine Some TMs with some inputs eventually halt, but some TMs with some inputs will never halt The “halting set” of a TM: the set of inputs for which it eventually halts Define a set D of natural numbers that is not the halting set of any TM –Method express TM programs as numbers use Cantor’s diagonal method –crudely: too few programs vs. too many sets of numbers Problem: find an algorithm to determine whether a given natural number belongs to set D –if such an algorithm existed, we could turn it into a TM whose halting set was D –this is a contradiction –therefore no such algorithm exists Thus there are logical propositions that are not decidable

12 Practicality: note 2 again Wittgenstein:... The question is: Why are people afraid of contradictions?... Turing says, “Because something may go wrong with the application.” But nothing need go wrong. And if something does go wrong – if the bridge breaks down – then your mistake was of the kind of using a wrong natural law. Turing: You cannot be confident of applying your calculus until you know that there is no hidden contradiction in it. Wittgenstein: There seems to me to be an enormous mistake there... Suppose I convince Rhees of the paradox of the Liar, and he says, “I lie, therefore I do not lie, therefore I lie and I do not lie, therefore we have a contradiction, therefore 2x2=269.’ Well, we should not call this multiplication, that is all... Turing: Although you do not know that the bridge will fall if there are no contradictions, yet it is almost certain that if there are contradictions it will go wrong somewhere. Wittgenstein: But nothing has ever gone wrong that way yet... (Debate in Wittgenstein’s “Foundations of mathematics” course, Cambridge University, spring 1939)

13 German “enigma” encryption machine About the enigma...enigma Enigma photographphotograph Enigma simulatorsimulator

14 Logic goes to war On 9/4/1939, Alan Turing reported to the Government Code and Cypher School at Bletchley Park, to work on enigma decryption A key part of the method he developed was: –assume something about the enigma configuration –test cyphertext mechanically against that hypothesis look for patterns inconsistent with the assumptions in case of contradiction, reject the assumption and go on essentially a proof by reductio ad absurdum First direct practical application of logical contradiction? Role of information theory –how to decide what assumptions to test? –use of entropy measure – before Shannon!

15 “Bans” and “Decibans” Possible settings of the enigma machine: 8 x 10 12 –Inferences about the settings were based on the statistics of the German language and the logical consequences of the machine design –Evidence for particular hypotheses was tallied on sheets of paper printed in the town of Banbury, so the process of tallying evidence was called “Banburismus”, and the units of evidence were called “bans” A scoring system based on entropy equation (in base 10) was designed by Turing –one ban =~ 3.3 bits –ban was inconveniently large, so “deciban” =~ 1/3 bit was used –scoring used to combine evidence from different sources rank hypotheses for testing by limited resources To find an enigma key “it was necessary to find about 129 decibans [of information] from somewhere” (I.J. Good) Turing met Shannon at Bell Labs in 1943, and may have helped guide his early thinking about information theory


Download ppt "Some stupid remarks by smart people If it should turn out that the basic logics of a machine designed for the numerical solution of differential equations."

Similar presentations


Ads by Google