The Joy of Logic


The Joy of Logic

Similar Content

Browse content similar to The Joy of Logic. Check below for episodes and series from the same categories and more!

Transcript


LineFromTo

The world we live in can seem pretty illogical.

0:00:030:00:07

The things people say,

0:00:070:00:09

the ways we behave,

0:00:090:00:12

the complex choices we have to make.

0:00:120:00:14

HE SHOUTS

0:00:140:00:16

What's the quickest way to get home?

0:00:160:00:19

Can I trust any of you lot?

0:00:190:00:22

Where did you all come from?

0:00:230:00:26

That process of making sense of all this stuff,

0:00:260:00:29

of sorting between the truth and the nonsense,

0:00:290:00:32

comes down to one of the most simple and yet powerful tools

0:00:320:00:36

ever created by humans - logic.

0:00:360:00:39

Yes. Yes.

0:00:390:00:42

There is definitely beauty in logic!

0:00:420:00:44

Who would like to be bits of a computer?

0:00:440:00:48

ALL CHEER

0:00:480:00:49

In the building next door to me at work,

0:00:490:00:51

there's a door and there's a sign on it that says,

0:00:510:00:54

"This door must be kept closed at all times."

0:00:540:00:57

I just look at this in amazement. Really?!

0:00:570:01:00

Why did you build a door then?

0:01:000:01:02

Is this sentence true or false?

0:01:020:01:05

Philosophy, maths, science and language -

0:01:050:01:08

logic is the engine for all of them.

0:01:080:01:11

In fact, it drives the fundamental process of reasoning itself.

0:01:110:01:15

I'm a professor of computer science.

0:01:150:01:18

Computer scientists tend to think that logic is the bee's knees.

0:01:180:01:22

So, it follows that I think logic is brilliant.

0:01:220:01:25

Logic has inspired our greatest boffins.

0:01:260:01:28

I'm Socrates!

0:01:280:01:31

It's given us transformational technologies...

0:01:310:01:33

Delta 11, report your entry point.

0:01:330:01:35

..and even made us question what it means to be human.

0:01:350:01:38

Off with her head!

0:01:380:01:40

I want to see if there's any limit to what logic can do for us.

0:01:400:01:45

So, join me - it would be terribly illogical not to.

0:01:450:01:48

Logic is right at the heart of what I do.

0:01:590:02:03

Around 15 years ago, kind of by accident,

0:02:030:02:05

I created something that had a really big impact here -

0:02:050:02:08

on the trading floors of the City of London.

0:02:080:02:12

CLAMOUR

0:02:120:02:15

It was a computer programme I called ZIP,

0:02:150:02:18

and it used logic to replicate THIS -

0:02:180:02:21

a centuries-old tradition of human traders,

0:02:210:02:24

supposedly vested with very special skills,

0:02:240:02:26

crammed into rooms, shouting at each other.

0:02:260:02:29

SHOUTING

0:02:290:02:32

It's ever so simple, just a few logical inferences - decisions -

0:02:320:02:36

and a little bit of maths.

0:02:360:02:38

It learns from its trading successes and failures.

0:02:380:02:41

Its aim is to trade as profitably as possible in a fast-moving market,

0:02:410:02:46

where levels of supply and demand are shifting rapidly.

0:02:460:02:49

It turned out that ZIP, built squarely on logic,

0:02:520:02:55

was impressively proficient at this trading lark.

0:02:550:02:59

In fact today, in many markets,

0:02:590:03:02

billions or trillions of dollars' worth of deals go through

0:03:020:03:05

with no human intervention at all, which is kind of mind-boggling.

0:03:050:03:09

Every day, computer programs, on their own,

0:03:110:03:14

do deals that determine the cost of everything

0:03:140:03:16

from our fuel and food, to the worth of our pensions.

0:03:160:03:20

It's pretty important stuff!

0:03:200:03:22

And, every day, scientists like me

0:03:220:03:25

earn a living using logic to find solutions

0:03:250:03:27

to all kinds of other real-world challenges.

0:03:270:03:30

So, why am I not as rich as Bill Gates?

0:03:320:03:35

Well, I gave away the ZIP software for free.

0:03:350:03:38

And, looking back, that was probably NOT my most logical move.

0:03:380:03:42

So what IS logic?

0:03:460:03:48

What does "being logical" even mean?

0:03:480:03:51

I'd like a pint of lager, please.

0:03:520:03:54

Well, all you need to explain it are three logicians and a boozer.

0:03:540:03:58

Logic is actually all about the "rules of correct reasoning".

0:04:000:04:05

Let me tell you a joke.

0:04:050:04:07

Three logicians walk into a bar.

0:04:070:04:09

The barman says...

0:04:090:04:11

Gents, would you three like a beer?

0:04:110:04:13

And the first logician says...

0:04:130:04:15

I don't know.

0:04:150:04:17

The second logician says..

0:04:170:04:18

I don't know.

0:04:200:04:21

And then the third logician says..

0:04:210:04:24

-Yes, yes, we would all like a beer.

-LAUGHTER

0:04:240:04:28

OK, so it's not exactly a side-splitting, laugh-out-loud gag,

0:04:280:04:32

more of a chortle for nerds.

0:04:320:04:34

But what went on there?

0:04:340:04:36

Well, forgive me, I'm going to analyse that joke to death.

0:04:360:04:39

TAPE SCROLLING

0:04:390:04:41

Remember, the barman's question was -

0:04:410:04:43

"Would all three of you like a beer?"

0:04:430:04:46

The key here is the "all three" bit.

0:04:460:04:49

If any one of those logicians doesn't want a beer,

0:04:490:04:52

then he'd be able to answer "no".

0:04:520:04:54

That's because if one doesn't want a beer, they don't ALL want one.

0:04:540:04:59

Logician 1 does want a beer, but he can't speak for the others,

0:04:590:05:03

so he HAS to say, "I don't know".

0:05:030:05:06

Exactly the same goes for Logician 2.

0:05:060:05:09

Then, happily for Logicians 1 and 2,

0:05:090:05:12

Logician 3 ALSO wants a beer,

0:05:120:05:13

and so he correctly uses logical inference

0:05:130:05:17

to arrive at the right answer to the question.

0:05:170:05:20

Yes, yes, we would all like a beer.

0:05:200:05:23

At last! Logician 3 ends the torment because he CAN speak for everyone.

0:05:230:05:29

Cheers to that!

0:05:290:05:30

The important thing to understand is that logic isn't knowledge.

0:05:320:05:36

Logic doesn't create knowledge -

0:05:360:05:38

what it does is it give us cast-iron rules

0:05:380:05:41

for how to organise and handle knowledge.

0:05:410:05:44

Even so, the quality of the conclusions you get out

0:05:440:05:48

depends on the quality of the ideas that you put in.

0:05:480:05:51

Time, please, gents!

0:05:510:05:54

ALL: 11 o'clock!

0:05:550:05:57

HE SIGHS

0:05:570:05:59

It'd be a funny old world

0:06:020:06:04

if we followed the rules of logic all of the time.

0:06:040:06:07

These days, logic is studied

0:06:230:06:25

and taught in academic institutions the world over.

0:06:250:06:28

Its history stretches back 2,500 years,

0:06:280:06:31

to the age of the Greek philosopher, Aristotle.

0:06:310:06:34

He created the first formal rules of logic

0:06:340:06:38

that would govern good reasoning, clear thought and reliable argument.

0:06:380:06:42

Aristotle's most famous logical tool is the syllogism.

0:06:430:06:48

A syllogism is a certain simple kind of argument

0:06:480:06:51

consisting of three propositions.

0:06:510:06:54

And the first two propositions are the premises,

0:06:540:06:56

the things that we take for granted in the argument.

0:06:560:06:59

So, for example, "All men are mortal",

0:07:120:07:15

"Socrates is a man".

0:07:150:07:17

Those are our two premises.

0:07:170:07:18

And from them, we draw the conclusion -

0:07:180:07:21

"Socrates is mortal".

0:07:210:07:22

Aristotle's example is good logical reasoning.

0:07:220:07:26

First, we take one premise, or thing we know -

0:07:260:07:30

"All men are mortal".

0:07:300:07:32

Yes, indeed.

0:07:320:07:33

I'm Socrates.

0:07:330:07:36

Then pair it with a second one...

0:07:360:07:38

I am a man.

0:07:380:07:40

Then we figure out, or infer,

0:07:400:07:42

that, alas, Socrates is mortal

0:07:420:07:46

That makes me sad.

0:07:460:07:48

If your premises are reliable,

0:07:490:07:51

and you follow Aristotle's rules,

0:07:510:07:53

you get answers that are reliable, too.

0:07:530:07:55

But Aristotle's theory of the syllogism

0:07:580:08:01

can deal with more complicated arguments

0:08:010:08:03

that don't just have "all" in them but "some" in them, and "not".

0:08:030:08:08

Take all these into account,

0:08:110:08:13

and you find there are lots of ways to make a syllogism.

0:08:130:08:16

So, if you multiply that up,

0:08:180:08:21

you find that there are 256 kinds of syllogism.

0:08:210:08:24

And Aristotle identified 19 of these as being logically valid,

0:08:240:08:31

so that if the premises are true,

0:08:310:08:33

the conclusion has to be true as well.

0:08:330:08:36

And all the others of those 256 forms,

0:08:360:08:39

you can have true premises but a false conclusion,

0:08:390:08:42

so arguing in that way is fallacious,

0:08:420:08:46

those kind of syllogisms are fallacies.

0:08:460:08:49

It's the old logical fallacy - all cats have four legs.

0:08:490:08:53

My dog has four legs.

0:08:530:08:55

Therefore, my dog is a cat.

0:08:550:08:58

He is suffering from politicians' logic!

0:08:590:09:02

This is just one of Aristotle's fallacies.

0:09:030:09:06

It looks similar to good logic, the premises are both true,

0:09:060:09:09

but the way they're organised

0:09:090:09:11

means the reasoning is completely backwards,

0:09:110:09:14

and the conclusion - bonkers.

0:09:140:09:16

Something must be done. This is something, therefore, we must do it.

0:09:160:09:20

But doing the wrong thing is worse than doing nothing.

0:09:200:09:23

Doing anything is worse than doing nothing.

0:09:230:09:25

LAUGHTER

0:09:250:09:26

BELLS RING

0:09:260:09:31

Such was the power of Aristotle's logic

0:09:310:09:34

that scholars used and taught it,

0:09:340:09:36

but actually didn't do a great deal to change it,

0:09:360:09:38

for the next 2,000 years.

0:09:380:09:40

But it wasn't just philosophers that were enamoured of logic.

0:09:420:09:45

By the 19th Century, the public had fallen for it, too.

0:09:450:09:48

For this, our thanks must chiefly go a mathematician

0:09:490:09:53

who spent most of his life working at Christchurch, in Oxford.

0:09:530:09:56

Charles Dodgson.

0:09:560:09:58

He's much better known by his pen name, Lewis Carroll.

0:09:580:10:02

The mathematics books were mainly under his real name,

0:10:030:10:07

Charles Lutwidge Dodgson,

0:10:070:10:09

but he chose to use his pen name, Lewis Carroll,

0:10:090:10:13

for the game of logic and symbolic logic,

0:10:130:10:16

clearly to give it a wider audience.

0:10:160:10:19

Explain yourself, child.

0:10:290:10:32

Alice's adventures may seem barmy

0:10:320:10:35

but, curiouser and curiouser,

0:10:350:10:38

she was actually up to her eyeballs in logic.

0:10:380:10:41

In the Mad Tea-Party,

0:10:410:10:43

the March Hare says, "You must say what you mean."

0:10:430:10:48

And Alice replies "Well, I mean what I say.

0:10:480:10:51

"It's the same thing, you know."

0:10:510:10:54

The Hatter says, "You might as well say that,

0:10:540:10:57

" 'I see what I eat' is the same as, 'I eat what I see'."

0:10:570:11:01

Got you!

0:11:010:11:03

Bottles don't talk!

0:11:030:11:05

Dodgson was so keen to introduce people to the delights of logic,

0:11:050:11:10

that he drafted a book initially called Logic For Ladies.

0:11:100:11:15

He was very conscious that girls in particular were not heard,

0:11:150:11:19

they were not given the chance to go to school,

0:11:190:11:22

very few had the opportunity of going to university.

0:11:220:11:25

They certainly weren't able to get a degree.

0:11:250:11:28

Happily for us blokes, Dodgson had a change of heart

0:11:290:11:33

and Logic For Ladies was renamed Symbolic Logic.

0:11:330:11:37

Together with The Game Of Logic, it did surprisingly well.

0:11:370:11:41

He felt that young people needed a tool

0:11:410:11:44

to detect fallacious arguments

0:11:440:11:47

that they might meet in books and magazines.

0:11:470:11:51

He wanted them to have the ability to detect that.

0:11:510:11:54

While Dodgson's intentions would have made Aristotle proud,

0:11:560:12:00

some of his syllogisms stand out today for the wrong reasons.

0:12:000:12:04

What are you meant to conclude?

0:12:040:12:07

No marks for saying,

0:12:070:12:08

"Victorian England was intrinsically anti-Semitic".

0:12:080:12:12

I think Dodgson would have wholeheartedly approved

0:12:200:12:22

of today's most popular logic game - sudoku.

0:12:220:12:26

There's something captivating about the fact

0:12:260:12:28

that logic tells you the answer must be in there,

0:12:280:12:31

but you need to apply logical reasoning to find it.

0:12:310:12:34

It can be really engaging,

0:12:340:12:36

but it can also be really frustrating and annoying, too.

0:12:360:12:39

Charles Dodgson had been the first person to popularise

0:12:430:12:46

the idea of logical reasoning and critical thinking.

0:12:460:12:49

But, for all its growing popularity,

0:12:510:12:54

logic itself was due for an upgrade.

0:12:540:12:57

In 1847, this ground-breaking book was published.

0:12:590:13:03

It's called The Mathematical Analysis Of Logic.

0:13:030:13:06

Now, this isn't logic for philosophers or puzzle fans.

0:13:060:13:09

The author of this book argues

0:13:090:13:11

that the real purpose of logic is mathematics.

0:13:110:13:13

And this book was written by George Boole.

0:13:130:13:16

Born into a poor family in Lincoln,

0:13:190:13:21

Boole mastered mathematics at a fantastically young age

0:13:210:13:25

and, by 20, he'd opened his own school.

0:13:250:13:28

Boole's big idea was that logic

0:13:300:13:32

was actually closer to mathematics than philosophy.

0:13:320:13:35

All you needed to do was change the words

0:13:350:13:38

in a logical argument to symbols,

0:13:380:13:40

and then it could be solved just like an equation.

0:13:400:13:43

He called it his "calculus of reasoning".

0:13:430:13:47

DOOR SLAMS

0:13:490:13:50

First, he demonstrated that the letters we use in algebra

0:13:500:13:54

to represent numbers can actually be used to represent

0:13:540:13:57

whole classes of things in the real world.

0:13:570:14:00

So, for instance we might have the class, X, of things that are fluffy,

0:14:000:14:05

and the class, Y, of things that bark.

0:14:050:14:08

Second, he introduced a set of operators

0:14:100:14:12

for combining these classes of things

0:14:120:14:15

the three most important ones are AND, OR and NOT,

0:14:150:14:18

and they're known as "Boolean operators" in his honour.

0:14:180:14:21

So, if we redraw our classes so that they overlap,

0:14:210:14:24

the bit in the middle,

0:14:240:14:26

that's things that are fluffy or bark, X AND Y.

0:14:260:14:30

If we look at the whole of the two circles,

0:14:300:14:33

well, that's things that are either fluffy or they bark.

0:14:330:14:36

So that's X OR Y.

0:14:360:14:38

And, finally, if we think about the area outside,

0:14:380:14:40

well, they're neither fluffy nor barking

0:14:400:14:43

so that's NOT X AND NOT Y -

0:14:430:14:45

things that aren't fluffy and don't bark. Like me.

0:14:450:14:48

Boole's new mathematical logic

0:14:490:14:51

reduces any logical problem

0:14:510:14:52

to symbols that can be combined in new ways.

0:14:520:14:55

And there was one final

0:14:550:14:57

and crucial innovation.

0:14:570:14:58

In Boole's new mathematical logic, everything's either in or out,

0:15:000:15:04

statements are either true or false,

0:15:040:15:07

everything's either a 1 or a 0.

0:15:070:15:10

For example, if I were to ask my dog, Floss,

0:15:110:15:14

"Are you fluffy?" AND "Do you bark?"

0:15:140:15:17

she would have to bark, "Yes!"

0:15:170:15:19

RUFF!

0:15:190:15:20

Taking 1 to mean "yes" and 0 to mean "no",

0:15:200:15:23

with Boole, we get this.

0:15:230:15:26

It was an entirely new form of logical reasoning.

0:15:260:15:29

Seemingly anything could be boiled down to symbols

0:15:290:15:32

and just two numbers.

0:15:320:15:34

And it's in my field that Boole's vision would prove transformative.

0:15:350:15:38

Almost a century after his death,

0:15:380:15:41

his logic would become the language of computing.

0:15:410:15:44

My logical hero has to be George Boole,

0:15:440:15:48

Boolean logic is so simple, yet so fundamental to explaining our world,

0:15:480:15:54

and even the world today, which is full of complex systems

0:15:540:15:58

that he could never have imagined,

0:15:580:16:00

and Boolean logic allows us to reason about them.

0:16:000:16:04

(What a guy!)

0:16:040:16:06

I think the application area

0:16:170:16:19

and the use of logics has changed dramatically

0:16:190:16:22

in the last 20-30 years

0:16:220:16:24

with the advent of computer science and software system.

0:16:240:16:28

Because, fundamentally, these systems are about 0s and 1s,

0:16:280:16:32

entities that map onto truth and falsity.

0:16:320:16:36

And what I think is just absolutely brilliant

0:16:360:16:38

is that we go back to lots of the logical ideas

0:16:380:16:41

invented and conceived over 100 years ago,

0:16:410:16:45

before anyone imagined the systems that they'd be applicable to.

0:16:450:16:49

Boole never knew it but, thanks to him, all computers today

0:16:500:16:54

process their information as binary digits or "bits".

0:16:540:16:58

With binary any number can be represented

0:16:580:17:01

by combinations of 1s and 0s.

0:17:010:17:04

I'm going to do an experiment.

0:17:060:17:09

Come on in. So the cool thing about binary numbers

0:17:090:17:13

is that they're really easy for computers to manipulate,

0:17:130:17:16

to add and subtract, or multiply or divide or to compare to each other.

0:17:160:17:21

In fact, any time you see a computer doing anything,

0:17:210:17:24

whether it's adding two numbers together

0:17:240:17:26

or computing stock-market derivatives,

0:17:260:17:29

inside, it's using Boolean logic to do just that.

0:17:290:17:33

I want to demonstrate how Boole's logic can be used for computing.

0:17:350:17:39

At their simplest, computers work by passing bits of information,

0:17:390:17:44

1s and 0s, through a circuit, like the one we're building here.

0:17:440:17:48

The most important parts are the junctions,

0:17:480:17:50

where the bits of information are combined and passed on.

0:17:500:17:55

These are called Boolean logic gates,

0:17:550:17:57

and the way you order them

0:17:570:17:59

determines exactly what the circuit can do.

0:17:590:18:02

From simple addition to calculations we could never do in our own heads -

0:18:020:18:06

they can all be worked out with something like this.

0:18:060:18:09

I'm going to use these guys,

0:18:100:18:13

and some very simple logic gates -

0:18:130:18:15

AND, NOT and OR -

0:18:150:18:19

and a circuit that we've got out there in the school hall,

0:18:190:18:22

and what this circuit is going to do

0:18:220:18:24

is to add together two numbers to come up with one answer.

0:18:240:18:28

Who would like to be bits of a computer?

0:18:280:18:32

ALL CHEER

0:18:320:18:34

Come on up, and I'll give you out your shirts, OK?

0:18:340:18:37

This one is a number 1. Which is for Ishmael...

0:18:370:18:42

'They're not just pretending - they WILL be a computer.'

0:18:420:18:47

Charlie T, thank you very much for being an AND gate.

0:18:470:18:49

'Normally, of course, computers work on electric currents.

0:18:490:18:53

'Our computer will be powered by kids,

0:18:530:18:55

'who will pass on their 1s and 0s

0:18:550:18:57

'by either tagging the next kid in line for a 1 -

0:18:570:19:01

'or not tagging them for 0.'

0:19:010:19:03

CHEERING

0:19:030:19:04

'It's time for the kids to take their places in our circuit.

0:19:040:19:08

'And, for the record, I've never tried this before!'

0:19:080:19:12

OK, some of you are being AND gates.

0:19:120:19:15

Do you remember what an AND gate has to do?

0:19:150:19:17

'The rule for ANDs is they only get a 1 to pass on

0:19:170:19:20

'if they're tagged on both shoulders.'

0:19:200:19:23

So, some of you are being OR gates.

0:19:230:19:25

'ORs pass on a 1 if they're tagged on one or both shoulders.'

0:19:250:19:30

Some of you are being NOT gates.

0:19:300:19:32

'NOTs are different.

0:19:320:19:34

'They get a 1 to pass on if they're not tagged.'

0:19:340:19:37

Numbers - you are the most important thing,

0:19:370:19:39

cos the whole circuit is about processing numbers.

0:19:390:19:42

'We're going to put these four bits into the circuit,

0:19:420:19:44

'which arranged like this, represent 2 and 3.'

0:19:440:19:48

Off you go!

0:19:480:19:49

The bits of information have been inputted.

0:19:500:19:54

They're relayed on by the first set of kids.

0:19:540:19:57

If they're following their rules, only some should be carrying 1s.

0:19:570:20:01

While other's won't.

0:20:010:20:02

At each gate, the bits are combined and passed on.

0:20:040:20:08

They're nearly there!

0:20:080:20:09

At last, the output numbers are either tagged or not.

0:20:090:20:13

So. We've got a 1, and 0 and a 1.

0:20:130:20:17

4 and 1, and that makes 5.

0:20:170:20:19

And the numbers we added at the start were a 3 and a 2.

0:20:210:20:25

So, a 3 and a 2 moving through this circuit,

0:20:250:20:27

with all of you just doing very simple things,

0:20:270:20:29

being AND or OR or NOT, ended up a 5 this end,

0:20:290:20:33

so you have calculated the right number!

0:20:330:20:35

WILD CHEERING

0:20:350:20:38

Today, all our computers are built using Boole's logic gates.

0:20:410:20:45

Here we have 13,

0:20:450:20:46

but a modern computer chip like this one might have 250 million.

0:20:460:20:51

They're all doing exactly what these guys were doing,

0:20:510:20:53

but an awful lot faster.

0:20:530:20:56

We just did a simple sum here,

0:20:570:20:59

but Boole heralded a new era for logic,

0:20:590:21:02

in which reasoning about anything

0:21:020:21:04

could be done in the language of maths.

0:21:040:21:06

There are lots of different logics

0:21:070:21:10

because there's lots of different kinds of systems

0:21:100:21:12

or worlds that we want to reason about.

0:21:120:21:15

I've been applying logic to reason

0:21:150:21:18

about a wide variety of complex systems.

0:21:180:21:21

I've looked at communications for air-traffic control systems,

0:21:210:21:25

molecular biology, I've also looked at advanced telephony.

0:21:250:21:29

But, regardless of the application,

0:21:300:21:33

all logics have one thing in common.

0:21:330:21:35

Amongst all these logics, the unifying property

0:21:360:21:39

is they're about axioms and rules so the answer is unambiguous.

0:21:390:21:44

We can automate the procedure of computing the answer in logics,

0:21:440:21:50

but we still need to pose the question.

0:21:500:21:53

Taking exactly those questions

0:21:550:21:57

and automating the way we logically answer them

0:21:570:22:00

requires what's known as an "algorithm".

0:22:000:22:03

It's the province of my very own breed of nerd -

0:22:030:22:06

the computer programmer.

0:22:060:22:08

And there's nowhere more important for today's generation

0:22:100:22:13

of up-and-coming young programmers than this -

0:22:130:22:16

the annual International Olympiad of Informatics,

0:22:160:22:19

held this year in Brisbane, Australia.

0:22:190:22:21

We're trying to find the best and the smartest students

0:22:220:22:25

when it comes to computational thinking,

0:22:250:22:28

algorithms and programming.

0:22:280:22:29

On each competition day, everyone is set three questions

0:22:310:22:34

which must be answered within five hours.

0:22:340:22:36

The easiest one, you just had a bunch of locked doors

0:22:370:22:41

and you had a bunch of switches,

0:22:410:22:43

each of the switches was connected to one of the doors,

0:22:430:22:46

but you didn't know which switch was connected to which door.

0:22:460:22:50

And what they ask for is to determine, for each switch,

0:22:500:22:54

which door it's connected to and which position is the correct one.

0:22:540:22:58

Johnny Ho is last year's champion,

0:22:590:23:01

so there's a lot to live up to,

0:23:010:23:03

but things aren't quite going his way.

0:23:030:23:06

By now I've actually solved all three,

0:23:060:23:08

but I didn't actually solve them during the contest

0:23:080:23:11

because there's just a lot of pressure..

0:23:110:23:13

We test the ability of students to come up with clever algorithms

0:23:130:23:17

to solve algorithmic problems.

0:23:170:23:20

They not only have to come up with the algorithms,

0:23:200:23:23

but they have to write a computer program that runs the algorithm.

0:23:230:23:26

Algorithms turn real-world problems

0:23:290:23:31

into questions that logic can help us answer.

0:23:310:23:35

If, for example, these guys wanted to spend

0:23:350:23:37

their day off competition duties

0:23:370:23:39

defining the group of all animals in a zoo that are marsupials,

0:23:390:23:43

the first step of the algorithm could be to ask -

0:23:430:23:46

"Of all the animals I see,

0:23:460:23:48

"which would I find in the wild in Australia?"

0:23:480:23:51

No.

0:23:520:23:54

Nope.

0:23:540:23:55

No.

0:23:550:23:57

Yes!

0:23:570:23:58

No.

0:23:580:23:59

I don't know.

0:23:590:24:01

Yes. Yes.

0:24:010:24:03

Yes.

0:24:030:24:04

Definitely not.

0:24:040:24:07

Yes.

0:24:070:24:08

Certainly not all of the yeses and don't-knows will be marsupials,

0:24:080:24:12

so the list can then be refined

0:24:120:24:14

by asking which of these animals have pouches.

0:24:140:24:16

And here there are options, too.

0:24:160:24:18

They could look in a book.

0:24:180:24:21

They could ask Chris, he's an expert.

0:24:210:24:24

Or they could crowd-source the question

0:24:240:24:26

and go for the most popular answer.

0:24:260:24:28

Each logical algorithm incurs a different cost -

0:24:280:24:31

in effort, time or accuracy -

0:24:310:24:33

but, whichever way, they'd each get to an answer eventually.

0:24:330:24:37

And there are certain situations where a good logical algorithm

0:24:410:24:44

can be the difference between life and death.

0:24:440:24:47

This is the NATS control centre, in Swanwick, south-east England.

0:24:530:24:58

At any one time, around 100 air-traffic controllers

0:24:580:25:01

are responsible for 200,000 square miles of airspace over the UK.

0:25:010:25:06

Delta 11, report your entry point.

0:25:060:25:09

Landing over 2 million flights a year,

0:25:090:25:12

it's perhaps surprising that, until very recently,

0:25:120:25:15

these folk did their job using brain power alone.

0:25:150:25:20

But that's all changing.

0:25:200:25:21

New automated algorithms have started to take on

0:25:210:25:24

some of that responsibility for guiding the planes in our skies.

0:25:240:25:28

The equipment now is talking to the aircraft,

0:25:300:25:33

and so whereas before the human was reacting with the human,

0:25:330:25:36

and, obviously, there are sometimes mistakes made,

0:25:360:25:39

the computers can now double-check that interaction

0:25:390:25:41

and provide a warning to the controller if anything is amiss.

0:25:410:25:45

Equally, in terms of capacity,

0:25:450:25:47

because it's reduced the amount of workload for the controller,

0:25:470:25:50

we've seen capacity about 40% increase on some sectors,

0:25:500:25:52

because the computers are doing

0:25:520:25:54

some of the logical calculations and thinking

0:25:540:25:56

on behalf of the human being.

0:25:560:25:57

I think logics are really crucial as a tool for reasoning

0:26:000:26:04

about the systems we use in our modern world.

0:26:040:26:07

We are surrounded by these complex systems like air-traffic control,

0:26:070:26:11

railway signalling, the electricity grid.

0:26:110:26:14

I think it's really important that we raise the next generation

0:26:210:26:24

of users of these systems so that they know it's not magic,

0:26:240:26:29

they also know that they have the tools of logic

0:26:290:26:32

to understand and reason about the systems

0:26:320:26:34

that they depend on crucially every single day of their lives.

0:26:340:26:38

Back at the International Olympiad of Informatics,

0:26:420:26:44

it's day two of the contest.

0:26:440:26:47

The judges are looking for programs to do logic

0:26:470:26:49

that aren't just right, they have to be FAST.

0:26:490:26:53

So, if you have an algorithm that is technically correct

0:26:530:26:56

but will take 100 million years to run, then you would score no points.

0:26:560:27:00

If you have an algorithm that solves the same problem

0:27:000:27:03

and runs in, say, five seconds, then you can score much higher points.

0:27:030:27:07

I think the simpler an argument is, the more beautiful it is.

0:27:080:27:12

So, if it can be expressed in perhaps just ten words,

0:27:120:27:16

that argument would be pretty neat.

0:27:160:27:19

'The competition has finished. Thank you very much for your patience.'

0:27:200:27:24

It's an anxious wait for the final ranking.

0:27:270:27:30

I think this competition is, in all its geeky glory, an amazing event.

0:27:320:27:38

With the ability to implement their problem-solving talents

0:27:380:27:41

in the language of computing,

0:27:410:27:43

these kids are going to be the future of all things logical.

0:27:430:27:48

'The first-place winner of IOI is...

0:27:480:27:52

'Lijie Chen from China.'

0:27:520:27:54

CHEERING AND APPLAUSE

0:27:540:27:59

In the end, it's a Chinese one, two, three.

0:27:590:28:02

'It's lucky the Brisbane competitors didn't have this problem to solve.

0:28:080:28:13

'It's one that no logical algorithm can cope with.'

0:28:130:28:17

All I want to know is, what do you think?

0:28:170:28:19

Is this sentence true or false?

0:28:190:28:21

Is it true or false?

0:28:210:28:23

You can have this if it's false.

0:28:230:28:24

'The point is, if the sentence is false, then it's true.

0:28:260:28:30

'But if it's true, then it must be false.

0:28:300:28:33

'It's a paradox.'

0:28:330:28:35

But if it's false, it's true.

0:28:350:28:37

'My sign is inspired by the first known logical paradox,

0:28:370:28:40

'from around 600 BC, by the Cretan Epimenides of Knossos.'

0:28:400:28:45

Well, if you read the sentence that this sentence is false,

0:28:450:28:49

as its true meaning, then, yes, it is false.

0:28:490:28:52

'Epimenides wrote, "All Cretans are liars,"

0:28:520:28:56

'but he was a Cretan - so was he lying?

0:28:560:28:58

'If so, then all Cretans aren't liars,

0:28:580:29:01

'in which case, he would be telling the truth.'

0:29:010:29:05

It's a paradox.

0:29:050:29:07

A paradox! Well done!

0:29:070:29:09

'Paradoxes are fundamental contradictions

0:29:090:29:12

'that logicians have puzzled over for centuries.

0:29:120:29:15

'They've been described as

0:29:150:29:16

' "Truth standing on her head to get attention" -

0:29:160:29:19

'and for good reason.

0:29:190:29:22

'In the late 19th Century,'

0:29:220:29:24

round about the same time that George Boole was developing

0:29:240:29:27

logical deduction as a branch of mathematics,

0:29:270:29:29

paradoxes exactly like this became a really deadly serious matter.

0:29:290:29:34

In fact, they came to threaten

0:29:340:29:36

the very foundation of mathematics itself.

0:29:360:29:39

The Austrian capital, Vienna,

0:29:500:29:52

renowned for its music, elegance, legendary cafes and exquisite cakes.

0:29:520:29:58

But, at the turn of the 20th Century,

0:30:000:30:02

it was also THE place to be if you were interested in logic.

0:30:020:30:06

Despite its grace and gentility,

0:30:080:30:11

Vienna can lay justifiable claim, perhaps more than any other city,

0:30:110:30:15

to being the birthplace of the modern.

0:30:150:30:17

For it was here in art, design, philosophy,

0:30:170:30:21

science and psychology, that people most boldly challenged

0:30:210:30:24

the tired conventions and assumptions of the 19th Century.

0:30:240:30:28

But what was "modern"?

0:30:310:30:33

Was it about replacing religion and tradition

0:30:330:30:35

with logical empiricism and pure reason?

0:30:350:30:38

Or was it about admitting to a new uncertainty -

0:30:380:30:41

the limits of our perceptions

0:30:410:30:43

and the moral vacuum of the Freudian subconscious?

0:30:430:30:46

Until this point, it could be argued

0:30:470:30:49

that logic wasn't exactly a topic on everybody's mind

0:30:490:30:53

but, here, it was at the forefront of this titanic clash.

0:30:530:30:57

From the city's coffee houses to the University of Vienna itself,

0:30:590:31:03

the struggle for modernity played out.

0:31:030:31:05

In 1894, the university commissioned a great ceiling painting

0:31:070:31:10

for their ceremonial hall.

0:31:100:31:12

The theme was "The Victory Of Light Over Darkness",

0:31:120:31:15

and it had separate panels celebrating the great achievements

0:31:150:31:19

of the university's faculties of jurisprudence,

0:31:190:31:21

of medicine and of philosophy.

0:31:210:31:24

Given the subject matter, it was perhaps unfortunate

0:31:240:31:27

that the artist they commissioned for these paintings

0:31:270:31:30

was Gustav Klimt.

0:31:300:31:31

In 1900, he presented them with Philosophy,

0:31:350:31:39

a depiction of naked men and women drifting trance-like in empty voids.

0:31:390:31:44

It expressed anything but victory, certainty or optimism.

0:31:440:31:48

Klimt's proto-modernist vision of philosophy

0:31:500:31:53

was shocking to the people of Vienna,

0:31:530:31:55

and deeply unsettling to the professors at the university.

0:31:550:31:59

He was attacking everything they stood for,

0:32:000:32:03

and Klimt's paintings were rejected outright.

0:32:030:32:06

Hidden away for 40 years,

0:32:110:32:13

the original works were destroyed by the Nazis.

0:32:130:32:16

These replicas were finally installed

0:32:160:32:18

on the centenary of their rejection.

0:32:180:32:20

Klimt's dark vision had seriously offended

0:32:220:32:25

the growing academic aspiration,

0:32:250:32:27

that science and mathematics would provide us with complete knowledge,

0:32:270:32:30

founded on absolute, provable truth.

0:32:300:32:34

This was something it was hoped logic could provide.

0:32:350:32:39

In mathematics, this problem of definitive truth,

0:32:400:32:43

of certainty, had recently become all too real.

0:32:430:32:47

No-one yet had proven the most basic rules of mathematics.

0:32:470:32:52

Those rules might say that 1 + 2 is 3.

0:32:520:32:55

But, without proof, that they will never lead to a contradiction,

0:32:550:32:59

you can never say for sure that 1 + 2 might not also equal 20.

0:32:590:33:03

Or anything else for that matter.

0:33:030:33:07

In the grip of uncertainty, a logic fever took hold.

0:33:070:33:11

Boole's logic had already been adopted

0:33:130:33:15

by the greatest logicians of the day, but there was a problem.

0:33:150:33:19

His method was simply insufficient to describe all of maths.

0:33:190:33:23

The race was on for a new, and more complex, logic.

0:33:240:33:28

Over 20 years earlier,

0:33:300:33:32

a German mathematician called Gottlob Frege

0:33:320:33:34

had studied exactly this problem.

0:33:340:33:36

Frege's work ensured that logic was up to this search for certainty

0:33:360:33:40

which was unfolding right here.

0:33:400:33:42

# If I had it in my power... #

0:33:440:33:48

It was in Jena, Germany, in the late 19th Century

0:33:490:33:53

that Gottlob Frege opened a new chapter in the story of logic.

0:33:530:33:57

For him, there should be nothing - whether numbers or ideas -

0:33:570:34:01

that could not be described and analysed

0:34:010:34:04

using his new logical quantifiers.

0:34:040:34:07

# Everybody loves somebody sometime... #

0:34:070:34:10

So, with his new mathematical logic,

0:34:100:34:13

he could express ideas like, "Everybody loves Frege",

0:34:130:34:17

"Everybody loves somebody",

0:34:170:34:20

"There is somebody whom everybody loves",

0:34:200:34:23

"There is somebody whom no-one loves",

0:34:230:34:27

and, alas, "There is somebody whom Frege does not love".

0:34:270:34:32

# If I had it in my power... #

0:34:320:34:35

That somebody whom Frege probably did not love

0:34:360:34:39

was British philosopher Bertrand Russell,

0:34:390:34:41

who independently was engaged in exactly the same project -

0:34:410:34:45

using logic to firm up the foundations of mathematics.

0:34:450:34:49

In 1902, Frege was just days

0:34:490:34:52

from publishing the second volume of his magnum opus on logic

0:34:520:34:56

when he received a letter from Russell -

0:34:560:34:59

and it was the kind of letter any logician dreads receiving.

0:34:590:35:03

Russell had spotted a big problem.

0:35:050:35:08

Both men's logic relied

0:35:080:35:10

on consistently describing sets of things.

0:35:100:35:13

You can have the set of all even numbers.

0:35:130:35:15

Or, for that matter. the set of all mums, or the set of all dogs.

0:35:150:35:21

Almost all sets aren't members of themselves.

0:35:210:35:25

The set of dogs isn't itself a dog.

0:35:250:35:28

So, if you take the dog set

0:35:280:35:30

and bundle it up together with all the other ones like it,

0:35:300:35:33

you get the set containing all sets that are not members of themselves.

0:35:330:35:39

But this is the set of all sets

0:35:390:35:41

that DON'T contain themselves,

0:35:410:35:43

and it DOESN'T contain itself.

0:35:430:35:45

So this set SHOULD include itself.

0:35:450:35:48

But then, if it DOES, then this is no longer

0:35:480:35:51

the "set of all sets that DON'T contain themselves".

0:35:510:35:54

So, it CAN'T be part of itself.

0:35:540:35:56

It's one of those logical paradoxes.

0:35:590:36:02

Frege immediately wrote back to Russell.

0:36:030:36:05

"Dear colleague. Your discovery of the contradiction

0:36:050:36:08

"has surprised me beyond words and, I should almost like to say,

0:36:080:36:12

"left me thunderstruck, because it has rocked the ground

0:36:120:36:15

"on which I meant to build arithmetic.

0:36:150:36:18

"Your discovery is, at any rate, a very remarkable one,

0:36:180:36:21

"and it may perhaps lead to a great advance in logic,

0:36:210:36:24

"undesirable as it may seem at first sight."

0:36:240:36:27

Russell now took on Frege's project with an even greater zeal,

0:36:290:36:33

to develop an even more outrageously complex logic

0:36:330:36:36

that would get round this problem with sets,

0:36:360:36:39

and so be free of paradox.

0:36:390:36:42

After nine years of toil,

0:36:420:36:44

the monumental Principia Mathematica was published.

0:36:440:36:48

It took over 360 pages to logically prove

0:36:480:36:53

that 1 + 1 = 2.

0:36:530:36:55

CHEERING, APPLAUSE, FIREWORKS POP

0:36:550:36:57

It was never going to a best-seller,

0:36:570:36:59

but, here, it had a huge impact.

0:36:590:37:02

It was magnificent, a whopping great bucketload of logical concrete

0:37:030:37:07

poured right into the foundations of mathematics.

0:37:070:37:11

Definitely a triumph, not a trauma, for philosophy.

0:37:110:37:14

But the final word on logic would not come from Bertrand Russell.

0:37:210:37:25

It was here that that project came to a dramatic conclusion,

0:37:300:37:34

centred on a group of thinkers called the "Vienna Circle".

0:37:340:37:37

They were firmly pro-logic.

0:37:400:37:44

For them, Russell's Principia Mathematica was manna from heaven.

0:37:440:37:48

The Vienna Circle had people who inspired them,

0:37:480:37:52

they were their idols.

0:37:520:37:53

One was Albert Einstein, one was Bertrand Russell.

0:37:530:37:57

And these were the most prominent scientists of the day.

0:37:570:38:02

Their interest shifted almost imperceptibly at first

0:38:140:38:18

from the foundations of physics to the foundations of mathematics

0:38:180:38:24

and to logic.

0:38:240:38:25

It came almost against their will

0:38:250:38:28

that this became the most prominent topic of the Vienna Circle.

0:38:280:38:34

Once every two weeks, they would meet here, in this actual room.

0:38:370:38:42

It's now a working physics lab

0:38:470:38:50

but, when they met here, they had one aim

0:38:500:38:52

and that was to purge philosophy

0:38:520:38:54

of anything that was neither directly observable

0:38:540:38:57

through scientific experiment, or derivable through the laws of logic.

0:38:570:39:01

This logical analysis of the meaning

0:39:030:39:07

was an essential first step.

0:39:070:39:09

Therefore, it was forbidden to talk about

0:39:090:39:13

such concepts like God, for instance,

0:39:130:39:17

or metaphysical statements.

0:39:170:39:20

about thinking itself or whatever,

0:39:200:39:23

because you could never find a sentence

0:39:230:39:26

that could be verified in a scientific way.

0:39:260:39:29

In fact, the Vienna Circle loathed the idea of metaphysics so much

0:39:290:39:34

that when they met here, Rudolf Carnap, a former pupil of Frege,

0:39:340:39:39

appointed someone to shout "M!"...

0:39:390:39:41

M!

0:39:410:39:42

..during their discussions, at the hint of any illegitimate sentence.

0:39:420:39:47

M stands for metaphysics.

0:39:470:39:48

M!

0:39:480:39:50

It's the logician's equivalent of saying, "Bollocks!"

0:39:500:39:54

Now the thing is, he was saying "M!" so much...

0:39:540:39:57

M!

0:39:570:39:58

..that they got sick of it.

0:39:580:40:00

Instead, they had him shout "Non-M"

0:40:000:40:03

any time that someone actually said something that was legitimate.

0:40:030:40:06

Nicht M!

0:40:060:40:07

Despite the purity of their logical methods,

0:40:090:40:12

the problem of uncertainty that had plagued logic,

0:40:120:40:16

likewise stalked the Vienna Circle.

0:40:160:40:18

Something that may have also imprinted

0:40:190:40:23

this young generation of Austrian scientists

0:40:230:40:26

was a scandal that happened in 1913

0:40:260:40:30

when it was discovered that the head, practically,

0:40:300:40:34

of the Counter Espionage Service was a spy.

0:40:340:40:37

And, you see, the task of a counter-spy service

0:40:370:40:43

is actually to make sure that there are no spies around.

0:40:430:40:47

But what happens when the head of that organisation is a spy himself?

0:40:470:40:52

This is a fundamental uncertainty.

0:40:520:40:55

Yes, yes, the secret service can work very well,

0:40:550:40:58

but can you be sure that the secret service is not infected?

0:40:580:41:02

And something similar is happening in mathematics.

0:41:020:41:06

You make sure that there exists no contradictions,

0:41:060:41:11

you build up big walls against uncertainty or so,

0:41:110:41:15

but maybe, within these big walls, there is a contradiction sitting.

0:41:150:41:20

Contradiction bothered one man more than most. Kurt Godel.

0:41:220:41:27

Kurt Godel was the most reclusive member of the Vienna Circle.

0:41:290:41:33

He'd had the finest logical training that you could imagine.

0:41:330:41:37

It was in one of Vienna's famed coffee houses, in August 1930,

0:41:400:41:45

that 24-year-old Godel first revealed a discovery

0:41:450:41:48

that would end, for ever, the logical quest

0:41:480:41:52

that Frege, Russell and the like had set themselves.

0:41:520:41:55

Godel was one of the few who definitely had read

0:41:570:42:00

all of Russell's Principia.

0:42:000:42:03

He knew that, for any logical system to be the foundation of mathematics,

0:42:030:42:07

it had to be both complete and consistent.

0:42:070:42:10

Godel told Carnap that, by studying the Principia,

0:42:120:42:15

he had come to the conclusion that, in any logical system,

0:42:150:42:19

you could either be consistent or complete,

0:42:190:42:22

but you couldn't have both at the same time.

0:42:220:42:25

In Russell's masterpiece,

0:42:250:42:27

Godel had discovered a contradiction

0:42:270:42:29

that became known as "incompleteness".

0:42:290:42:33

This means that, in mathematical logic,

0:42:330:42:36

there are going to be some truths which, although true,

0:42:360:42:39

can never be proven to be so.

0:42:390:42:42

This result of Kurt Godel

0:42:420:42:44

about the limitations of mathematics and logics

0:42:440:42:49

was a terrible blow to the optimism of the Vienna Circle,

0:42:490:42:54

and some of the members took a long time to come to grips with it.

0:42:540:42:59

The grand search for "absolute, provable truth"

0:43:000:43:04

had hit the buffers.

0:43:040:43:06

By the mid-1930s, the Vienna Circle was over.

0:43:100:43:13

The rise of fascism and the looming threat of war

0:43:140:43:17

meant its members fled,

0:43:170:43:19

were expelled, or killed.

0:43:190:43:22

Kurt Godel left Vienna for Princeton,

0:43:220:43:24

where his own search for certainty also came to a tragic end.

0:43:240:43:29

Godel became convinced that someone might try to poison him.

0:43:320:43:36

The only person that he would trust to cook

0:43:360:43:38

and, indeed, to taste his food was his wife.

0:43:380:43:42

And when she fell ill and was hospitalised, he starved.

0:43:420:43:46

He literally reasoned himself to death.

0:43:470:43:50

The fact that all systems of mathematical logic were limited,

0:43:570:44:01

that we could never have complete certainty,

0:44:010:44:04

signalled the end of an era for logic.

0:44:040:44:07

But for one British logician, Alan Turing,

0:44:090:44:12

Godel's work was the inspiration he needed to launch,

0:44:120:44:16

inadvertently, a new and entirely more practical logic revolution.

0:44:160:44:22

Alan Turing was just 23 years old

0:44:260:44:29

when he imagined something extraordinary.

0:44:290:44:32

He called it a "universal machine".

0:44:320:44:35

The universal machine is an entirely imaginary, hypothetical device,

0:44:360:44:41

and yet, it's one of the most influential machines ever

0:44:410:44:45

in human history.

0:44:450:44:46

The device Turing imagined could tackle any mathematical problem

0:44:480:44:52

using a logical algorithm encoded in its own limitless memory.

0:44:520:44:57

In 1936, Alan Turing published a paper in which he demonstrated...

0:44:570:45:02

He proved that you couldn't decide beforehand

0:45:020:45:06

which mathematical problems the machine would be able to solve,

0:45:060:45:09

and which would just cause it to run on and on and on for ever.

0:45:090:45:12

That there are some problems that are simply "uncomputable"

0:45:120:45:16

was startling, and yet another blow for mathematics.

0:45:160:45:20

But it was also the beginning of something entirely unexpected

0:45:200:45:24

and destined to cement logic's role in the modern world.

0:45:240:45:29

It's an extraordinary, almost exquisite, paradox

0:45:300:45:34

that, in demonstrating that some things can't be proved

0:45:340:45:37

using a logical machine, what Alan Turing did

0:45:370:45:41

almost single-handedly launched a technology revolution.

0:45:410:45:45

Turing's universal machine is what we today call the "computer".

0:45:450:45:51

While stationed here at Bletchley Park, during the Second World War,

0:45:520:45:57

Turing began to implement his abstract ideas

0:45:570:45:59

as real logical hardware.

0:45:590:46:03

Working with Gordon Welchman,

0:46:030:46:05

Turing developed this machine, it's called the "Bombe".

0:46:050:46:09

THE BOMBE WHIRRS AND CLICKS

0:46:090:46:11

It's a bit loud!

0:46:110:46:13

It's a form of electromechanical computer,

0:46:130:46:16

and its logical function was to decode the messages

0:46:160:46:19

that the Germans were sending, using their Enigma encryption machines.

0:46:190:46:24

But then Turing's colleague, Tommy Flowers, went a step further.

0:46:280:46:33

This is Colossus.

0:46:380:46:41

It was built to crack another German encryption machine

0:46:410:46:43

called the Lorenz,

0:46:430:46:45

and, for the men and women who built and operated it,

0:46:450:46:48

it was an astonishing achievement.

0:46:480:46:49

It shortened the war.

0:46:490:46:51

But I think it's special for another reason.

0:46:520:46:55

You see, this is the world's first programmable electronic computer.

0:46:550:47:01

It used digital information - binary -

0:47:010:47:03

the streams of 1s and 0s that are in all modern computers.

0:47:030:47:06

And these vacuum tubes down here,

0:47:060:47:09

they're wired together to be our Boolean logic gates,

0:47:090:47:11

which perform Boolean operations and calculations.

0:47:110:47:15

Colossus might not look hi tech to us,

0:47:170:47:20

but it's hard to express just how important it was.

0:47:200:47:24

This significance of all this, as a piece of human engineering,

0:47:270:47:30

is on a par with the Pyramids,

0:47:300:47:32

or the printing press or steam power,

0:47:320:47:35

and yet it was all top secret.

0:47:350:47:38

All these developments of electronic programmable computers

0:47:380:47:41

here at Bletchley Park were classified

0:47:410:47:44

and the details were only declassified in the late 1970s.

0:47:440:47:48

After the war, Turing went on to help build

0:47:510:47:53

some of the world's first stored-program computers.

0:47:530:47:58

At their core, it all comes back to logical reasoning.

0:47:580:48:01

Think about this, we're all surrounded by things

0:48:080:48:11

that rely on some kind of logical machine or code.

0:48:110:48:15

The failure of logic

0:48:150:48:16

to deliver foundational answers for mathematics

0:48:160:48:20

nonetheless gave rise to one of the most significant achievements

0:48:200:48:24

in all of science and engineering.

0:48:240:48:26

It started with those huge, secret, single-purpose computers,

0:48:290:48:33

and yet, right from the very beginning,

0:48:330:48:35

some folk were already imagining the next big thing.

0:48:350:48:39

'We're still finding out what Logics will do,

0:48:410:48:43

'but everybody's got 'em.

0:48:430:48:45

'You got a Logic in your house.

0:48:450:48:47

'It looks like a vision receiver used to,

0:48:470:48:50

'only it's got keys instead of dials

0:48:500:48:52

'and you punch the keys for what you want to get...'

0:48:520:48:55

In 1946, science fiction writer Murray Leinster imagined

0:48:570:49:02

an impressive specimen of interconnected technology.

0:49:020:49:06

He named it a Logic.

0:49:060:49:08

'Relays in the tank take over and whatever vision-program

0:49:080:49:12

'SNAFU is telecasting comes on your Logic's screen.

0:49:120:49:16

'Or you punch "Sally Hancock's Phone"

0:49:160:49:19

'and you're hooked up with the Logic in her house.

0:49:190:49:23

'Also, it does math for you, and keeps books,

0:49:230:49:25

'and acts as consulting chemist, physicist, astronomer

0:49:250:49:28

'and tea-leaf reader, with an "Advice To Lovelorn" thrown in.

0:49:280:49:32

'It's very convenient.'

0:49:330:49:35

Well, that's extraordinary!

0:49:370:49:39

It's a great characterisation of the web that wasn't yet born!

0:49:390:49:43

The digital world we live in, the computers that surround us,

0:49:550:49:58

at their base, are running Boolean logic.

0:49:580:50:02

I mean, they're running actually electrical currents,

0:50:020:50:04

1s and 0s are the product of those electrical currents,

0:50:040:50:07

but on top of that, there are layers on layers on layers of complexity -

0:50:070:50:11

operating systems, machine code,

0:50:110:50:14

applications that we use every day,

0:50:140:50:16

from word processors to spreadsheets,

0:50:160:50:19

to the browsers we use. And, when you have your Skype conversation

0:50:190:50:22

with your aunt in Australia, you don't think of that interaction

0:50:220:50:25

in terms of those 1s and 0s but, without them,

0:50:250:50:28

without the underlying processing, none of this would work.

0:50:280:50:32

Not only did logic launch the digital revolution,

0:50:330:50:36

but it's also the tool we use to sort,

0:50:360:50:39

search and retrieve the information we want online.

0:50:390:50:44

The World Wide Web we have today

0:50:440:50:46

represents the largest information construct humanity has ever created.

0:50:460:50:50

It's 20 years old, barely,

0:50:500:50:52

and yet we have billions and billions of pages

0:50:520:50:56

encapsulating knowledge and information

0:50:560:50:58

from all of human culture and all of human history.

0:50:580:51:02

The challenge is to organise this mass of information,

0:51:030:51:06

this complexity,

0:51:060:51:07

and logic gives us some of the perfect tools to do that.

0:51:070:51:10

With the World Wide Web of information,

0:51:140:51:17

logic means we're all more interconnected and informed.

0:51:170:51:21

But, back in the City, the march of logical machines has come at a cost,

0:51:210:51:25

and I don't mean all the traders are spending too much time on Facebook.

0:51:250:51:30

In the year that I was born,

0:51:300:51:32

there were 22 separate stock exchanges in the UK,

0:51:320:51:35

and THIS is how business was done.

0:51:350:51:37

Now, this place, the London Metal Exchange,

0:51:380:51:41

is the last venue where traders still go face to face.

0:51:410:51:44

First, technology squeezed out the need for traders to meet in person.

0:51:480:51:53

And now it's the traders themselves who may be heading for extinction.

0:51:530:51:56

Not long after I wrote it,

0:51:580:52:00

IBM did some tests of the ZIP trading algorithm,

0:52:000:52:04

and not only did they confirm that it worked,

0:52:040:52:06

they showed that it out-performed human traders.

0:52:060:52:09

When it comes to pure logical reasoning,

0:52:160:52:18

the computers tend to beat us, hands down.

0:52:180:52:20

It's an old adage,

0:52:220:52:24

but people in this business joke

0:52:240:52:26

that soon the only things you'll find on a trading floor

0:52:260:52:29

will be a big computer, a man and a dog.

0:52:290:52:34

The big computer is there to do all the trading.

0:52:350:52:39

The dog's there to make sure that no-one touches the computer.

0:52:390:52:43

And the man's job?

0:52:430:52:45

On the trading floor of the future,

0:52:450:52:46

the man's job is to feed the dog.

0:52:460:52:49

Mind you, despite my role in inventing these black boxes,

0:52:540:52:57

I'm grateful that there's still a human around

0:52:570:53:00

to pull the plug sometimes.

0:53:000:53:01

DOG BARKS

0:53:010:53:03

The thing is, computers still need

0:53:030:53:05

their logical algorithms to be written for them,

0:53:050:53:08

so they might take our jobs, but we still have the upper hand.

0:53:080:53:13

Yet, ever since their invention,

0:53:130:53:15

the question as to whether this will always be the case

0:53:150:53:18

has been a matter of fierce debate.

0:53:180:53:21

When the digital revolution was in its infancy,

0:53:280:53:31

the possibility of computers developing human-like intelligence

0:53:310:53:35

was the hottest topic in town.

0:53:350:53:38

Could a machine ever think, using the rules of logic alone?

0:53:380:53:43

Or is there more to US than that?

0:53:430:53:45

In 1950, Alan Turing published another visionary essay.

0:53:470:53:51

In it, he predicted that, by the end of the century,

0:53:510:53:54

a computer would be able to converse with a human,

0:53:540:53:57

and the human wouldn't know the difference.

0:53:570:53:59

In trying to achieve this,

0:54:010:54:02

people in my field have created some truly amazing computing machines.

0:54:020:54:07

This is my university's supercomputer.

0:54:100:54:14

Although it's bigger and noisier than Colossus,

0:54:140:54:17

for every one Lorenz cipher that machine could solve,

0:54:170:54:21

this can solve over 2 million.

0:54:210:54:23

It's takes up the whole room!

0:54:250:54:26

Machines like this are the workhorses

0:54:280:54:31

of today's data-centric research.

0:54:310:54:33

All the switches, wires and logic gates

0:54:330:54:35

have long since disappeared under the hood

0:54:350:54:38

meaning that, for TV, we have a habit of trying to pretend

0:54:380:54:41

that this doesn't all look like a load of...

0:54:410:54:44

well, cupboards.

0:54:440:54:46

Or a launderette.

0:54:470:54:48

Turing thought that,

0:54:520:54:54

by the time we'd developed computers as powerful as this,

0:54:540:54:57

we would also be capable of programming a machine

0:54:570:55:00

with sufficient rules of logical reasoning

0:55:000:55:02

that its intelligence would rival that of us humans.

0:55:020:55:06

That was then, and remains now, a very controversial idea.

0:55:070:55:11

We like to think of our intelligence as raising us

0:55:130:55:17

to a level above the rest of the creation.

0:55:170:55:20

We associate it with the idea perhaps of an immaterial soul,

0:55:200:55:25

being not just one amongst other animals, but special.

0:55:250:55:29

And what Turing was suggesting was that this special quality

0:55:290:55:33

could belong to a lump of computing machinery,

0:55:330:55:37

and it could reason just as well as we could,

0:55:370:55:42

maybe even better.

0:55:420:55:44

At Bletchley Park,

0:55:460:55:47

Turing had sketched out algorithms for playing chess.

0:55:470:55:51

At that time, the chessboard was dominated

0:55:510:55:53

by some of the world's most brilliant strategic,

0:55:530:55:56

logical, mathematical brains.

0:55:560:55:59

And so it became the battle ground

0:55:590:56:01

for an entirely new challenge for logic - artificial intelligence.

0:56:010:56:06

In 1997, the most famous public battle

0:56:080:56:12

between man and machine took place.

0:56:120:56:15

Garry Kasparov, the reigning chess world champion,

0:56:150:56:18

had previously trounced IBM's chess-playing computer, Deep Blue.

0:56:180:56:23

During their rematch,

0:56:230:56:25

for the first time ever, he was beaten.

0:56:250:56:28

Kasparov has resigned!

0:56:290:56:32

APPLAUSE

0:56:320:56:33

When I see something that is well beyond my understanding,

0:56:330:56:36

I'm scared. And that was something well beyond my understanding.

0:56:360:56:41

It was front-page news the world over.

0:56:410:56:44

People demanded answers.

0:56:440:56:46

Was this purely logical intelligence equivalent,

0:56:460:56:49

or even superior, to the human brain?

0:56:490:56:52

In the past, people have tended to compare humans

0:56:530:56:58

to the latest technology.

0:56:580:57:00

So maybe the brain is like a clock,

0:57:000:57:02

or maybe it's like a steam engine,

0:57:020:57:05

now, maybe it's like an electronic computer.

0:57:050:57:08

What Turing would want to say, and, I think, correctly,

0:57:100:57:14

is that there's something different

0:57:140:57:16

about the equation of the brain with a computer.

0:57:160:57:19

He put it that both a brain and a computer

0:57:200:57:23

are information processing systems, governed by logical rules.

0:57:230:57:27

In theory, there should be logical rules out there

0:57:290:57:33

that would capture the way we think.

0:57:330:57:36

This was a very big idea, with profound -

0:57:390:57:43

even troubling - implications.

0:57:430:57:45

If we knew those rules, then one day, theoretically,

0:57:450:57:49

we could code a logical rendering of ourselves into a computer.

0:57:490:57:54

All we'd need to reproduce all of human thought is logic.

0:57:540:57:58

My view is that there remain uniquely human characteristics,

0:58:000:58:05

arguably the best ones, like altruism or creativity or love,

0:58:050:58:11

that computers aren't even close to having programmed

0:58:110:58:14

within their repertoire of logical reasoning.

0:58:140:58:17

No-one has yet created a logical machine that's just like us.

0:58:170:58:22

And, arguably, that could take a very, very long time,

0:58:220:58:25

if indeed it's possible at all.

0:58:250:58:27

And yet, surely, we should marvel at what we have achieved with logic.

0:58:290:58:34

Remember WE created the rules of logic to pin down the truth

0:58:340:58:38

and certainty that otherwise would so easily evade us.

0:58:380:58:42

We harnessed logic in machines

0:58:420:58:45

and, in doing so, we placed the power of pure reason

0:58:450:58:48

at our fingertips.

0:58:480:58:49

Mind you, I'm still no good at sudoku...

0:58:510:58:54

Subtitles by Red Bee Media Ltd

0:59:210:59:24

Download Subtitles

SRT

ASS