Transcript
00:00:00Tu devi continue talking about universal function and we are
00:00:07ready to the beat about it so it is for fixed function,
00:00:14which is all the other compatible functions of
00:00:17the same mariti more formal fixed and KEE.
00:00:22IT is defined in this way so
00:00:26given KEE argument where the first argument is actually.
00:00:30The is interpreta as a program to
00:00:33the executive and the other arguments
00:00:35are instead the parameters for
00:00:36this program that is to simulate execution of the input program
00:00:42over the input that is more less
00:00:44that you can do you like this is a defined function,
00:00:48but the point that we want
00:00:50to you is that this function is computabile which again
00:00:56doesn't com as a real surprise because we know what it
00:01:00is it is in interprete e general purpose machine.
00:01:04IT is something, which is machine,
00:01:07which is thinking as an input program.
00:01:10Some that it is execution the program over the data
00:01:13so the informal argument of this should be able
00:01:17it is now forward from
00:01:19the program and the data for the program and what you want to do
00:01:24is to simulate a program over the data and how can you do
00:01:27this is encoding in a number as
00:01:32it happens in a machine and you have to
00:01:36understand the program is so you have to the code code
00:01:39into the real program a listing and you
00:01:43setup the memory with a input and
00:01:46then you simulate from the first instructions.
00:01:48The input over the data until possible.
00:01:51Finally you get to it so in
00:01:55the first register find the output otherwise you were.
00:01:59And then this is the point so intuitive.
00:02:04This is compatible because we are able to
00:02:08recover the program from the could be able to think of a machine,
00:02:13which is able to execute and the instructions of the program,
00:02:16but this is a bit to inform and so
00:02:20now it like to give you a more formal proof,
00:02:24which is very similar to be fast
00:02:27because it is very similar reasonable fast
00:02:29because it is very similar to the proof of
00:02:31the effect of partial functions is the
00:02:34same as the class of your computer functions.
00:02:39IT is based on several similar ideas because but we do we have to
00:02:44do we have to work directly on numbers,
00:02:48not only things or
00:02:50instructions that cannot be written in the machine.
00:02:54Ehm. We count on encoding the coding which is just
00:02:59informali effective and we
00:03:02have to our present everything is a number,
00:03:04but we're ready place to be on the two to difficult
00:03:09first we have to encode the configuration of
00:03:12the memory as as a number, but this is easy.
00:03:16We are this configuration of the memory of our program.
00:03:29We might be that the beginning because
00:03:34the number of register memory actually infinite, but.
00:03:41Where is the memory potential,
00:03:45but our program is always using
00:03:47just a part of this is not a real problem.
00:03:51We will have one something in register to something
00:03:56register three up to some bound it register,
00:04:00which is the register,
00:04:03which can be Typekit by
00:04:05the program and then all the rest will be remain zero all along
00:04:09the computational so actually it is a part of the memory,
00:04:14which is really interesting.
00:04:17AM we can present this by using the
00:04:20unique of the composition of a number to
00:04:23numbers so we present this by using the product
00:04:28for going from one two and or
00:04:33we want to but it general from
00:04:35the larger equal one because then some components will be relevant
00:04:41of the iframe number elevati to
00:04:44the content register and this looks like a product,
00:04:49but it is not were ready to this.
00:04:52Given that this representation we can
00:04:55recover the content of every register
00:04:58by just teaching the experiment
00:05:01of the brain number for which we have a function,
00:05:04which is compatible good and we
00:05:08defined to central functions for the first one
00:05:14is how the content of the memory and the second one will
00:05:20be how the number of instruction to be execute ed evolve.
00:05:28In cases the arguments are key
00:05:31to work is the right the number of arguments of the program.
00:05:40Why is this because the first argument is the program to be
00:05:46execute the second argument are
00:05:49the parameters for the program and
00:05:51the first one is the number of steps.
00:05:54And this function is providing the configuration of the memory.
00:06:03Encoder as a number.
00:06:10After the steps of computational the input program.
00:06:21Starting from the initial input ex where it is intended
00:06:27that this is the final configuration
00:06:29is the program in the or steps.
00:06:47So this is at the same function,
00:06:51but we are ready considered in that case.
00:06:54Maybe you remember the program was fixed now it.
00:07:07Is doing some similar. Thing, but.
00:07:15For the program counter for the index
00:07:19of the instructions to be execute so
00:07:22j k I t is the index of instruction to be execute.
00:07:35After the steps of computational.
00:07:51Starting from the input
00:07:54is this in the program does not terminate for your steps.
00:08:18Zero otherwise if the program terminate in the first steps.
00:08:28And we are these functions
00:08:31useful they argument is the same that we are ready.
00:08:34In the case of the proof of the facts that
00:08:37the you are compatible functions are the same as the partial.
00:08:41Functions because this are INAF to compute function.
00:08:48Express by the program how well observation is that.
00:08:54If the program P over the input at some point then this happens.
00:09:04We can have the number of steps
00:09:06that it is required for the program to terminate.
00:09:13This happens in a number of steps,
00:09:17which is it is the minimum number of steps,
00:09:22which makes the function J.K. to become zero.
00:09:40Which means that the output of the program.
00:09:45Will be found after this number of steps in register one.
00:09:52So that the program,
00:09:55which is the value of the function computer by the program will
00:09:59be the content of the memory if we execute program ex.
00:10:09Starting from input x in steps,
00:10:13which is not KEE XD.
00:10:20This is actually the content of the full memory,
00:10:23we want register one and we go by taking the point of the prime.
00:10:28The first prime number, which is.
00:10:32On the second observation is
00:10:35that if instead the program does not terminate.
00:10:42Tenda semi. Minimalismo is.
00:10:56What is that we take the same expression that we about.
00:11:06This is. Because it is an inner turn,
00:11:11which is the verge so in case is the function is.
00:11:17The equality between this function in this expression and so
00:11:22we have that this is exactly what we want to computer.
00:11:29Which is the value of the universal function of rtk.
00:11:34On. This is.
00:11:37I KEE ex and this is above.
00:11:47Se key ex night jay key I ex.
00:11:58Component which means that we are able to show
00:12:03that are compatible universal functions computer.
00:12:20So we want to to this. This is your name by now.
00:12:25Show that KEE J.K. are compatible functions and we want to show.
00:12:31This is not by doing that Ma mai best friend
00:12:37that clear this must be compatible because this is it
00:12:41is what rather by giving a mathematical proof.
00:12:52Okay, and we do and it is reasonable.
00:12:57Easy we it needs several steps of this is
00:13:01conceptual deep only the observer
00:13:03certain transformation of the memory,
00:13:05which are induced by the execution of the program can be express
00:13:09by some algebra transformation of the number,
00:13:13which is the content memory.
00:13:15This is mirrorless all the day of
00:13:19the proof of the functions
00:13:22become larger larger and finally we go to see.
00:13:27Ok so we start from something
00:13:32very simple given an Destruction could be
00:13:34want to get back to the parameters,
00:13:37which is what again.
00:13:39We are some time ago so
00:13:43given what we interprete as an instructions could.
00:13:54We want to get back to its parameters.
00:13:57We are thinking to pay as the encoding of an instructions.
00:14:09And we want to.
00:14:12Determined which are the parameters so we have to
00:14:15remember for a short time.
00:14:18How we encoding instructions for if the instruction is.
00:14:24As the encoding was a multiple for.
00:14:33And so in case destruction is
00:14:37the encoding of the zero extraction than the argument that we
00:14:41were as the art of the instruction it will be the.
00:14:50Big four of life and are we have to add on
00:14:55because this one just to have numbers starting from zero.
00:15:04Is the function, which is computabile as it is the one good in
00:15:11the instruction where is
00:15:13success we should use a different function because.
00:15:21For the encoding we have to use a different function we confused.
00:15:29Le but if you want to get back to the argument actually use
00:15:36the same function even if we have
00:15:39it different because this is still the place.
00:15:51And the others in the instruction was the encoding of the transfer.
00:15:59Then we take four times the encoding of the two arguments at the.
00:16:10Last so in this case if we want the first argument of the.
00:16:16Instructions after taking the question,
00:16:21We have also to remember that this is not a single number,
00:16:25but so we have to project on
00:16:27the first component and this is the content of the.
00:16:33First argument, but minus one to save for the second argument.
00:16:49And then we could do the same,
00:16:51but we don't for the or the jump so we should get back to the.
00:17:01To the. Two the number
00:17:07which is time for but
00:17:09in this is this is the encoding of the triple.
00:17:11We are the first and second argument would be the first.
00:17:16Register and the comparison the second
00:17:20and the target of the jump. We don't to this.
00:17:26You understand how we are playing
00:17:31this trick good and I just this is not
00:17:36interesting in any sense just numbers functions and like
00:17:40the only point to the year is that this computer functions.
00:17:47This are not intuitive compatible functions up
00:17:50to an effective transformation. These are computabile.
00:18:01Small step forward because here we
00:18:04just back to the argument we want to see
00:18:07the effect of execution an instruction of
00:18:09memory when we know which instruction it is.
00:18:17So actually the function that we want is it function in
00:18:21the effect of Somme algebriche.
00:18:28Instructions because jump doesn't
00:18:32change the memories of the only consider
00:18:36zero success or transfer. One configuration.
00:18:53Different function for every possible instructions
00:18:57if the instruction is a zero zero.
00:19:01In the configuration si at position n in
00:19:06register and you have to remember how the memory is organized.
00:19:14If this is the content of
00:19:17register content register to content register.
00:19:20Three you have to remember that used to this encoding by one.
00:19:27To the power air one two to the power air too
00:19:32big three to the power three and so this is so if
00:19:36we want to put zero sei in register
00:19:40and you have to put zero in the one of
00:19:46the prime number you want to put zero
00:19:48here which means divided by air
00:19:52one way to the air one to you have to take the end of.
00:20:03Sì, divided by ends and be the content of register and.
00:20:16That the content of register and.
00:20:20Is the value.
00:20:24Of the prime number in the the composition of
00:20:29sex and all the others
00:20:32are for the same so if you want to take a success or.
00:20:36You have to increase the content of
00:20:39register and so you have to multiply by pm.
00:20:44And if you want to transfer.
00:20:47Transfer. In configuration see
00:20:54from register to register where you first?
00:21:00Zero. Register n e multipli.
00:21:09By PM to the point of the number to the content.
00:21:15Per. He he is now I want to transfer to inverted everything.
00:21:25I want to first register and then transfer the container of.
00:21:43These are computer functions not intuitive computer not
00:21:48I think but somebody to me that
00:21:51this might be compatible computer functions.
00:22:00End finally.
00:22:09Maybe not maybe go to go to the next page.
00:22:14We can come to.
00:22:18Other important function which is the effect
00:22:21on the configuration of execution,
00:22:24the instruction of now of having just the code.
00:22:39Of execution.
00:22:47Instruction with code.
00:22:57Because this function change or apply.
00:23:01We could call it apply instruction execute.
00:23:05IT change and so which is
00:23:09the effect of several possibility dependent on what instructions
00:23:16presented by and how can we know which instructions presented
00:23:19by by you remember how to
00:23:25the different instruction multiple for multiple for Plos one for
00:23:29you need to get the reminder of the voice of the divided by for.
00:23:39This remains. Is the instruction is zero.
00:23:50And we want to zero configuration
00:23:53where at the position integrated by
00:23:57the unique argument of the instructions,
00:24:04which is the dark.
00:24:09If there is. one this is.
00:24:18The way of the argument of this.
00:24:25Is it is a transfer when it is transfer when the remains is to.
00:24:35Transfer content of register.
00:24:41First argument of it is to register second argument of life.
00:24:55And finally. Jump what we do.
00:25:04Effect of execution jump over the configuration. No effect.
00:25:18Changed. And this is
00:25:24a bit you have this curly Brexit
00:25:26and then you have to this is a function,
00:25:28which is defined by using compatible functions
00:25:32and cases are defined by the
00:25:35stable and we know that this is computabile.
00:25:40We have a small theorem about this.
00:25:51Is finally welcome to.
00:25:57The first main component of our.
00:26:06Construction which is.
00:26:10The configuration of register time.
00:26:23Starting. From configuration see.
00:26:37And execute the same instructions on
00:26:41specific instruction in the program execute instruction KEE.
00:26:51With index timing. In program.
00:27:02Now this is really the core of this first part of construction.
00:27:06Because it says I give a program.
00:27:09I give me the current configuration.
00:27:11I give the point where i in executive program tell me.
00:27:15Next. Next configuration Next.
00:27:24Event program I current configuration installation to be execute.
00:27:30Tell me What's what is coming next?
00:27:37And this will be just change the current configuration.
00:27:43How execute the instructions for
00:27:49program is in position the end of this instruction.
00:27:53We have the function for this.
00:27:54IT is the function simply call given a sequence.
00:27:59That's me, which is the value position in the sequence.
00:28:06Where to do this it is a real instructions so it is between one.
00:28:17And the last of the program.
00:28:20If instead we are already out of
00:28:23the execution because this is becomes.
00:28:28With the last configuration.
00:28:38So this is the first block for for construct in
00:28:43the universal function it says how
00:28:46the computational evolve execute
00:28:47in some instruction of the program.
00:28:52And this is not just intuitive or maybe it is computabile.
00:28:59IT is the function defined using
00:29:02compatible functions and predicate.
00:29:13That we have to play the same game,
00:29:17but the program counter when the index of destruction execute,
00:29:20but this is must simply because the only instructions,
00:29:23which is changing the program counter is the jump
00:29:26so first to find the single one single ausiliari function,
00:29:32which is the number of next instruction to be execute.
00:29:36Index actually it.
00:29:51After execution some instruction with some code.
00:30:02In which is.
00:30:06The encoding of some.
00:30:10Instructions. And this is specific position of the program.
00:30:35Just and next instruction.
00:30:43So.
00:30:53Program so we
00:30:55have the current configuration the instruction.
00:30:58Eye and the number of the instruction team and this will be.
00:31:08One if it is not a jump.
00:31:11IT is not a jump.
00:31:15And how do it is not a jump.
00:31:18I have to say that the
00:31:19reminder of the division by four of the instructions.
00:31:24IT is not true,
00:31:28but this is not the only case,
00:31:30which I move to the next interaction.
00:31:31I move to the next instructions also when
00:31:34the instruction is a jump at the conditions falls.
00:31:40No, this is not and but it is or maybe instruction is a jump.
00:31:49But the conditions for jumping is what is the conditions for
00:31:54jumping is The content of the memory at the position,
00:31:59which is the first argument of the job instructions.
00:32:07Is not the same because of the content is the
00:32:11same of the content of the memory and the position,
00:32:15which is the second argument of the jump instruction in all cases,
00:32:22which just move to the next if instead.
00:32:30We are in the other case,
00:32:32which is we are execution jump and the condition is true we jump.
00:32:41Where to the first argument of the instruction.
00:32:50Predicate compatible
00:32:52functions God
00:33:03we can define the last function,
00:33:07but it which is similar to the orange one year,
00:33:12but for the program counter.
00:33:16This is the next instructions to be
00:33:19execute to the index of the next instructions.
00:33:26If we execute some specific instructions at position.
00:33:43Of. Time configuration.
00:33:58And we can it next.
00:34:05And this is very easy to write because this
00:34:09before it will be the value provided by
00:34:14the ausiliarie function and the given configuration
00:34:19see the code of the execution that we can recover it is
00:34:24e i. Artisti but this
00:34:32is when the next instructions
00:34:38exist so when it is the index of the instructions of the program.
00:35:02And additional sense our convention
00:35:07is that this will become zero when the program is terminate.
00:35:12We also had to impose that the number is within the bones.
00:35:21We could also but different we write.
00:35:25Maybe this is more evocative.
00:35:35If the program already terminate then
00:35:38it count start again if it did not
00:35:41but the next instructions bringing out of
00:35:44the program it terminate so the output must be zero.
00:36:02In Equality between numbers so this is
00:36:07the side and we are using
00:36:09compatible functions in the cases. This is computer.
00:36:27And how we have everything that we need to find
00:36:30the universal function How we are able to say
00:36:34how to configuration execution
00:36:36and instruction we are able to say how the
00:36:38counter and we need to combine this two to say.
00:36:46How this construction can be either rated which is our support.
00:36:53IT is primitive recursion so we can define functions.
00:37:16Possible only next become.
00:37:21More difficult because you should to
00:37:26this test which is over over something,
00:37:33which is likely more complex and so you will
00:37:38have it is possible for your to
00:37:41the two single function it is just for Conference writing.
00:37:47Not really safe for convenience of writing because
00:37:52the end of the table as some size and everything is to fit their.
00:37:59Not for modular may be
00:38:02actually for modular would be better to combine them because.
00:38:07This is little significant rated by the other.
00:38:15And so what we want to do know how.
00:38:19We want to define si their computer how we use
00:38:26the function what we square in
00:38:29orange right now and we combine them by primitive.
00:38:37Actually as we did it the other proof the primitive should act on
00:38:42the two functions but again also for for convenience of writing.
00:38:47I do this by
00:38:49the functions and I do sort of mutual primitive reaction.
00:38:55So which is the configuration of
00:39:00the memory after zero steps of computational.
00:39:04IT is the initial configuration of the memory.
00:39:08And the configuration of memory contains the input.
00:39:15The input will be expand ex KEE
00:39:20in the first register and zero in the others.
00:39:24And so this is encode by the product from
00:39:28the KEE of the exile. IT is a number.
00:39:33And which is the next instruction to be execute
00:39:38after zero steps of computational
00:39:42after steps computational we need nothing and so we are starting
00:39:45the program and program starts at line on.
00:39:52This is the base and that it is now.
00:40:05What? We used?
00:40:12The next configuration.
00:40:16Given that we are execution program
00:40:20in configuration which is the configuration at the previous step.
00:40:27So with argument and we execute the.
00:40:33Instruction describe by J.K..
00:40:42Jack at the one is similar.
00:40:49The next instructions executives given their executive.
00:40:56Program I am in configuration seek.
00:41:03And instructions execute has been one given by J.K. so this is
00:41:12a plane primitive actually mutual you should take
00:41:15the perfect functions and so this to function
00:41:19c KEE J KEE the primitive regression.
00:41:33Using only compatible functions.
00:41:47Al computer. With that
00:41:55the universal function is compatible because you remember
00:41:59that universal function was expression.
00:42:09By using sic, it is
00:42:13the content of the memory if I execute program I.
00:42:18Starting from input and perform a number of steps,
00:42:22which is the minimum T such that the program counter becomes hero.
00:42:28And then the first register.
00:42:34Okay, and this is it so this is.
00:42:46IT is like minutes of we are not may be exciting,
00:42:56but it is much much better than
00:42:58saying it looks computer and it must
00:43:01be because this is really
00:43:04a central part of the theory of compatibility.
00:43:08Being happy of just this is
00:43:13intuitive compatible then it must be compatible is it factory e
00:43:17Mike Ok. AM maybe we
00:43:23also observer as a side observation that by for the final key.
00:43:30J.K. Why never used
00:43:33minimal section never so
00:43:35actually this functions are primitive ricorsive.
00:43:49Next next.
00:43:53Are because defined by primitive using KEE.
00:44:13As you see that.
00:44:20You have instead minimal.
00:44:26Because if you didn't use minimal
00:44:28neither here you would be able to compute
00:44:31every function without minimal section
00:44:33and we claim that some point could be.
00:44:36What you can use it just face to you should write
00:44:41your program by using the single while loop.
00:44:45Maybe the program within the very
00:44:48nice from the point of view of the style of programming,
00:44:51but it is possible.
00:44:57Good. Any questo.
00:45:07If not we have a simple very simple, but important corollari.
00:45:17By product of this construction.
00:45:21What is that some predicate are
00:45:24the side by the following predicate are decidibile.
00:45:41The first one is the holding predicate,
00:45:45which says that program on input ex terminal in the steps or.
00:45:56So program on input ex art.
00:46:08And the second similar.
00:46:13But it also provides the output.
00:46:19So it is essential the same, but in addition.
00:46:28IT provides also what I expect to be the output.
00:46:35We have only this additional program program and produced in this.
00:46:45That this predicate are the siblings comes again is not surprise,
00:46:50because this is in the steps a executive for this steps and.
00:46:58And or not by the way.
00:47:03The first version of gpt asked about
00:47:08this is it whether terminate this is now,
00:47:13it is the notorious problem,
00:47:16but it is it better.
00:47:23So let's go, but we want to proof of what we have
00:47:27an immediate proof by by product of it before.
00:47:38What is it mean that is it means that the
00:47:44corrispondente characteristic function which escape two arguments.
00:47:51And it is better the predicate is true or not.
00:47:57To it is one if.
00:48:02You if the program arts and other wise.
00:48:11Es computer we want to do it
00:48:14is what we can write this function very easily by using
00:48:19some function that we just defined before because J KEE Sterling
00:48:25exactly whether the program on
00:48:27input X terminate this or not because it is.
00:48:33Zero if the program terminate.
00:48:44And it is different from zero otherwise.
00:48:52IT is the converse what we want so we just need to put in front.
00:49:05So this is. Why because
00:49:09this is the composition of compatible function.
00:49:21And the other is very similar.
00:49:25In this case we want the characteristic function,
00:49:30which is now one additional argument,
00:49:34which is the output is the side and when it is that the program
00:49:39terminate and products as an output while first it is to terminate.
00:49:46So we use.
00:49:50The function what we just find this is.
00:49:56One if the program.
00:49:58Terminate.
00:50:11What we want
00:50:13to take the con function of
00:50:15output is one where is the output output is in the memory.
00:50:20And register.
00:50:25So we take the content of memory after the steps.
00:50:30We consider whether this is why?
00:50:38And how do it is what we check IT is zero.
00:50:47This is zero if output why?
00:50:52And different from zero otherwise.
00:50:58Which is again the night of what we
00:51:02want and so we have to put in front end.
00:51:10And the product which is and contracting.
00:51:18Okay? Again, this is computer by composition.
00:51:48But here we put about the difference between this
00:51:51and the problem is that in the problem is
00:51:54better there exist such that this is
00:51:58true listed here you have a bound and to say a just
00:52:03want to know better my program stops in
00:52:05the steps or less and clear you
00:52:08can do you don't need to wait for you just
00:52:10wait and you check is my program.
00:52:15Ecco. An important predicate
00:52:24since now on we will be using this predicate
00:52:27continuous so try to remember the notation.
00:52:34As it happens with other things.
00:52:38We have the sky,
00:52:39we just do we have predicate.
00:52:45KEE. When KEE is one we.
00:52:56Can we just right write this is.
00:53:04This notation together with notation for the.
00:53:10Domain of function.
00:53:14Key range of functions with the function itself.
00:53:23With rtk. From now on.
00:53:29We will be using this continuous and also we actually move it up.
00:53:39So we just write w x
00:53:43x x time to remember this notation Ok,
00:53:51if you follow it will be impossible not to remember it,
00:53:54but it has to be completely clear
00:53:57on your mind because we will be using it continuous.
00:54:05We can use this for several objectives
00:54:10in particular for which remain how perform
00:54:14some time you remember at some point we need
00:54:18an exercise which was
00:54:19the following compiuto ability of the inverse.
00:54:31That in complexity theory.
00:54:34This typical that is
00:54:37the function is much more complex than the functional
00:54:41itself or much more simple
00:54:45where you start from and this is very useful for several purposes,
00:54:50but this is not a case.
00:54:53If you have the function.
00:54:58Which is infected.
00:55:03And computer. Then it's inverse.
00:55:21Which is to the minus one of what
00:55:27is the unique value ex such that.
00:55:40FX. IT is this
00:55:49is what we choose the function to be.
00:55:53Undefined otherwise if the way is not in the main.
00:55:58This function is computer.
00:56:05To the direct function function computer
00:56:10and the proof that we have one to one is just search
00:56:16for the next step by which means that is what we are that this
00:56:26is not always true because it is
00:56:30undefined on some point we miss the real counter image
00:56:36because this is undefined before find
00:56:40the counter image and so what we show is actually true
00:56:45only if the function is total otherwise this is
00:56:49false so this is this
00:56:52requires this is blue because it requires the blue option,
00:56:57but now we want to show.
00:57:00This is it is essential for this proof,
00:57:03but it is not essential for their result so we want to get rid of
00:57:08this intuition that is what the case that we
00:57:11could it so without option of the.
00:57:24World is what we discuss was the following since it
00:57:32is very dangerous to each single input
00:57:36and computer for ever we might to the following.
00:57:42And we have a program for health and so we can
00:57:48try not all the possible steps on a single argument, but.
00:57:54Try steps on argument the one steps one argument,
00:57:59then change the argument to one step and
00:58:02other argument Steps on the previous
00:58:04one of these are the possible inputs.
00:58:20And on the vertical line.
00:58:23We are the possible steps.
00:58:25We do steps input zero that we move to input one step with
00:58:32stop the competition and we perform one step on zero zero.
00:58:41Then we consider input to we perform zero steps on
00:58:45input setup machine that
00:58:50we move on and consider one steps on input one.
00:58:57And this way by following this minor diagonal you see That we try.
00:59:07And steps. Over input ex
00:59:18for all possible combination for all pairs.
00:59:30Which means that if at some point.
00:59:34There is a combination of number of steps and input output.
00:59:39We can check it out to the right one if no we continue,
00:59:43but it is in output of our function at some point.
00:59:48We will find a number of steps and
00:59:50then input output so this argument is kind of convince.
00:59:58But the you are machine doesn't
01:00:02have the facilities of freezing the computer
01:00:06or running in parallel or all this kind of
01:00:10that we can't really this kind of argument directly on the machine,
01:00:15but now we can because we can
01:00:18perform use the functions be defined before
01:00:23the predicate happens after the number of steps to
01:00:27simulate this kind of freezing starting more formali.
01:00:32We know that is computer and
01:00:36therefore it meets at least one program so there is some program.
01:00:41I. That is the function computer program.
01:00:51And is exactly to look
01:00:57For some input sex and the number of steps.
01:01:09Call it and. Such that.
01:01:19The program P on input X and produced in the steps.
01:01:30While up to know this is just an
01:01:34and we can express most of this things because.
01:01:41This is exactly the predicate that we just introduce this is as.
01:01:48I ex while t.
01:01:57And search for something is a minimal section.
01:02:04So we are kind of happy of this and we are convince that
01:02:08we can write minus one of as search.
01:02:16Ex an such that.
01:02:22The predicate as becomes true.
01:02:29But we have a problem sourcing is minimal,
01:02:34but we are not searching a single value,
01:02:37but to one might think
01:02:40that it is to search the two in a given order.
01:02:45Maybe a search for each and then and.
01:02:55This is not good. Because if you think to
01:03:02what is minimal as you fix ex to the first value.
01:03:08Sei zero and you start searching for hand,
01:03:11which means that you for zero all the
01:03:14possible and for one of the possible
01:03:16and which is exactly what we are
01:03:19doing before so in the table input.
01:03:24Steps. What we are doing is?
01:03:34Start from zero and try all possible steps then possible steps,
01:03:41but all possible steps are to many and
01:03:45we don't find the right value in the for zero, then we just.
01:03:52Ok, this is not the right to do so let's another order.
01:04:06This is the other.
01:04:13What we are doing now is.
01:04:18To go by roads instead of going by so.
01:04:24First fixing the number of steps steps and then
01:04:28try all in one step and try al possible inputs,
01:04:32but al possible impostare to many to be
01:04:36trusted so this we also when it should.
01:04:45But the solution is much simply because this is for Per is.
01:04:54The same searching for a number interprete per.
01:05:01La sua idea is.
01:05:05The search for a single number.
01:05:12Called w that we interprete as a per.
01:05:20How do we interprete per.
01:05:25When we possibility would be.
01:05:30With us encoding of the numbers so.
01:05:36To understand which are the component of the air W we take pay
01:05:42to the minus one of which is one of the way to you.
01:05:50Intrinseco. But this is not the way that we will do
01:05:56because this is because we need we need we need for tables.
01:06:03We need five tables,
01:06:05sometimes we should change the encoding every
01:06:07time and maybe you are you
01:06:12think you need a table and you think thank you
01:06:15discover what you need more and you should change the everything.
01:06:19This is not this is not this is good,
01:06:22but this is not what we do in this case in general.
01:06:26We interprete w as the table.
01:06:31We take for this is
01:06:35the end of the different playing numbers
01:06:38and the composition of table of you.
01:06:43For instance if we want to see double
01:06:45double But it present perfect double one w two.
01:06:58You don't consider. And so here
01:07:03you search for w such that the program
01:07:08on input first component of
01:07:12the air products on the second component of
01:07:16the power and after
01:07:19all this way you find the blue you are interested in.
01:07:26Which is the first component of the power to this
01:07:30is this is the number of steps and finally you want.
01:07:39To you want the first component.
01:07:46We will be doing this over and over and over so if it is not clear,
01:07:52please ask because this must be super clear.
01:07:56IT is the construction that we will continuous.
01:08:09Because this is just a mistake side. In my mind.
01:08:18The number of steps this is the problem
01:08:22somewhere and then the two only this.
01:08:31Is it was the number steps or and
01:08:35everywhere and was just a mistake.
01:08:43Okay.
01:08:52Good as
01:08:55a side observation.
01:09:00This is not in. This encoding.
01:09:09Because if you think what is this is to the zero times,
01:09:19three to the one times, nothing,
01:09:22but because we want to this would
01:09:27produced per what if you take double.
01:09:33Six this is to the one free to the one.
01:09:41So it is the one one if you take double equal to the times five.
01:09:50So it is to go to the one to
01:09:53one and then would have to the one, but we don't care.
01:10:00And so this is again.
01:10:04So when we search by
01:10:07using this kind of encoding which several times the
01:10:09same which is extremely efficient you should do that in a program,
01:10:14but in compatibility we don't care about the efficiency,
01:10:17we just about reliability and so
01:10:21the only real point is that it is
01:10:24subject and so will be eventuali considered.
01:10:28This is the only what we care.
01:10:36È Convenient because it is
01:10:41the same independent whether we need per stripes for the life.
01:10:46And the last observation is that.
01:10:51Actually here. I wrote.
01:10:56Minimalisti with the body e predicate
01:11:02minimal function because this is not whether
01:11:06predicate becomes true and so if I want to be really form.
01:11:14Function should be written as minimum w
01:11:18such that something becomes zero and typical way.
01:11:23We do this is to say that the characteristic function.
01:11:35We can. Which is one it becomes.
01:11:42Solid characteristic function becomes on
01:11:46which present the same but
01:11:48the characteristic function minus one becomes.
01:11:54An moving from the previous expression,
01:11:58which is a bit informant to this
01:11:59is completely automatic several times.
01:12:02We will just use the informal notation
01:12:05which search for a predicate to become true that we
01:12:08mean that we are searching from
01:12:11the characteristic function to be one and so on this.
01:12:20This is a minimal section,
01:12:23this is. A bit.
01:12:27Informo. Che sono not questions about this.
01:12:36No so we close we the last observation.
01:12:49Which is the following we.
01:12:53View we discuss in couple of the lessons ago.
01:13:00An example of the function,
01:13:01which is total not compatible.
01:13:15And this function was.
01:13:19Defined in this way that are several ways of
01:13:23the function defined in this way,
01:13:27it was defined to be physics of x plus one.
01:13:33If fi ex of this is defined and it
01:13:40is zero if physics of this is undefined.
01:13:49And what is it not compatible
01:13:52and argument what is it is not computabile
01:13:56because it is defined by
01:13:58diagonal section and so it is different from
01:14:00al computer functions and that we are we
01:14:03are just about this it is a bit factory because.
01:14:09IT looks like an indirect argument,
01:14:13which doesn't explain why this is not compatible,
01:14:17but we said we could think still that the problem is
01:14:21here and the problem is that we are trying to take a number view.
01:14:27IT is a program execution other number And then check it
01:14:32out or the problem could be
01:14:34on the other side and we actually almost now.
01:14:37What we are the problem was but at the time.
01:14:40We don't say this is what we know that
01:14:44This is not the problem, this is computer.
01:14:53What is it computer because it is the university,
01:14:56We can use universal functions.
01:15:08And so the problem must be here.
01:15:21So what we are not able to
01:15:24decide whether a program terminate on its own Code.
01:15:30Which is the problem.
01:15:36And so the exercise which I leave you to you is.
01:15:41The following so that the program.
01:15:45Property is this.
01:16:04Is an important exercise so in case you don't managed to do it.
01:16:08We do it together and predicate is the predicate that exactly
01:16:13whether the program ex an input ex terminate or not for it is true.
01:16:24If Ehm fai ex.
01:16:28Ex defined which means that is in
01:16:33the domain of view of X ex and it is false or the voice.
01:16:51Ehm I have a suggestions for
01:16:54this exercise and they observations what you can't use
01:16:59something what we are did because
01:17:03you think that we know that this is compatible.
01:17:08This is the constant so it is compatible and we proof
01:17:13that function defined by cases by using the sidebar predicate.
01:17:20Is computer is the component used in the different cases.
01:17:27So this immediately would like that this praticati
01:17:32can be because where you have a function keys
01:17:36using computer functions and
01:17:41the cases are distinguished by
01:17:43the sidebar predicate so the functions should be compatible,
01:17:46but we know what is not so this must be not be able.
01:17:51But this is not
01:17:55a good argument because what we need
01:18:00is that the function defined by
01:18:01case is by using the sidebar predicate.
01:18:05And total computer functions is computer.
01:18:20To what we should is that.
01:18:27If we have sei to functions just to make it simple one and the
01:18:32two from end to end, which are total.
01:18:40And computer. And you which is the side of.
01:18:51The function defined by fx.
01:18:57One of us if you
01:19:01if you want to each if you is false.
01:19:14Il computer.
01:19:23Ehm. What we
01:19:26have this is what the functions must be total?
01:19:33And so if you need to result
01:19:38without the total options than the end of this,
01:19:43which is called alten problem.
01:19:45If name.
01:19:59Is try to this result about this definition
01:20:06because. This is it.