Video recording
Aggregazione dei criteri
Trascrizione
00:00:00We start from the last time,
00:00:03which is a point in which
00:00:05considerino the first example of function,
00:00:10which is total and not compatible.
00:00:12This is what we are ready couple of lessons a go
00:00:16and the function by diagonal session in order to
00:00:21be different from al computer functions how which weather
00:00:27the same input whether the function of
00:00:32computer by program over input is defined and in this case we want.
00:00:37Undefined We make it different by giving.
00:00:41Zero as output This is not
00:00:43computabile clear because it is different just because
00:00:46it is different from al computer functions and then we know.
00:00:52What is the reason? Why it is not computer
00:00:56and in principle we would have had to
00:00:59possibility either using the input
00:01:03has a program and simulation ex program
00:01:08x over x seen as a parameters might
00:01:12have as an durable in principle we know,
00:01:17but actually we after words
00:01:22that this is just in time of
00:01:23the university of the universal function,
00:01:26which is compatible so the problem,
00:01:30but not and so we decided.
00:01:32The problem was must be here so
00:01:34the weather program is on some input,
00:01:39which is must be and what we want.
00:01:44And actually this is one of the central problems of ability,
00:01:49which is under the name of problems.
00:01:53So what as it is the following given a Programma X.
00:02:00X x x over input x terminate or
00:02:06not and we want to show that this is on the side.
00:02:13And in principle it has something very
00:02:18easy because we need some time ago that function
00:02:23defined by cases using
00:02:27for each case compatible function and discrimination
00:02:30between the different cases by using the double predicate
00:02:33is always compatible now since year.
00:02:38The two cases are using this,
00:02:42which is the universal function.
00:02:44This is the composition of computer functions,
00:02:47it is computer and this is just the constant so this is
00:02:52compatible if this predicate where
00:02:56the side conclude that the overall functions computabile,
00:03:00but we know that it is not so
00:03:02we would like to conclude that the corrispondente predicate is not.
00:03:06But actually invite you to
00:03:10think deeper to this because this is not right because
00:03:14the result that we lying on the fact that
00:03:20the functions used in the different cases per total
00:03:24which is not the case here so we try again the same proof,
00:03:29but now being careful of this fact
00:03:32so we want to side by tradition and that is total.
00:03:36This is the that the functions would be
00:03:40compatible and their living
00:03:43by tradition with the praticate cannot be.
00:03:47So what is the side and we want to use this function.
00:04:12Computer. And. One to
00:04:23be careful as it you before not to feel to to get into the.
00:04:31To be. To get it to the mistake which ok,
00:04:38but the first KEE is just the universal function.
00:04:46And I want the worst case when the predicate is true here.
00:04:50We can think that it is it out of.
00:04:52Weeks. And so on in the other case
00:04:59just want I can simply multiply
00:05:02this by the characteristic function of all of.
00:05:11This is. Zero If
00:05:18fi ex of this is on defined and this is one.
00:05:24Of this is defined and this computer by the way.
00:05:30I think that as a result we get the right function,
00:05:34which is this first component it.
00:05:38Is defined and zero otherwise this is not the case.
00:05:45This is not the case because this function is
00:05:49not total and so what we actually get here.
00:05:58This is something different from what we want.
00:06:06This is it physics of this is
00:06:13defined and so this element is one and this is the weight.
00:06:26And other wise if I is undefined yes it is true.
00:06:32This is this is undefined so everything is on the mind.
00:06:40Which is not the function that we want it is not
00:06:44dysfunction now I am saying
00:06:47this kind of Anderlini This kind of mistake several times,
00:06:51but it is very common mistake so be careful.
00:06:55This is not the way to go and what
00:06:59is this reasoning technical ready,
00:07:03but intuitive what we are doing here is we compiute fix and then we
00:07:12check is by ADCs effect defined if
00:07:16so we want to give fixed otherwise we want to give a zero,
00:07:23but computing is a ready problem because this is this is
00:07:29undefined which just so having
00:07:33this sequential view is not the right way to go rather.
00:07:39We want to first to check whether and program is defined using
00:07:43the fake the predicate and only then
00:07:47the right things So how can we included this?
00:07:54What we do is to say?
00:08:03Forex can be written in the following way we check whether.
00:08:10Alto is true o false?
00:08:16So this will be enough with
00:08:19several other things and then in case true yes,
00:08:24we have to computer the function so we have to search.
00:08:30For some number of steps.
00:08:38And the output such that the program ADCs effect input x over.
00:08:48produce output. In this is.
00:08:56This is what we have to do?
00:09:03Is true. Is not true.
00:09:07We don't have to make any computational.
00:09:10We have to output zero.
00:09:13We would like to output plus
00:09:15one and in the second KEE would like to output
00:09:20zero and so the typical trick in this situation is to at
00:09:26the first parameter to the
00:09:27minimal which is output what we want to provide.
00:09:35And ask that in the first case, it is one.
00:09:44Of Quali the second case no computational it is just zero.
00:09:59To unique minimal, but actually
00:10:04the first time that we do is better all of this is this.
00:10:10Is true and so this is false.
00:10:13This is useless and we're really
00:10:16doing at the computational to
00:10:18computer and then we provide as an output,
00:10:21which is one of the.
00:10:27Other which is it is false.
00:10:32This is this is total useless will never
00:10:35contribute to the through the of
00:10:39the end of this is true
00:10:42and the only way to make the Over it is to let it.
00:10:48Ok, so this is the structure of what we want to computer.
00:10:57This is still a bit informal because
00:11:01this projection of which is the something which doesn't exist.
00:11:05We are using this search triple which is something which
00:11:09we can do so this is in principal inputs.
00:11:14Several quotes, but this is it to something,
00:11:18which is formal is very
00:11:21easy because this is for means search for a number,
00:11:24which is interpreta as the triple.
00:11:28So we search for the single number,
00:11:30which is W what we interprete double as a triple where
00:11:34the first component is t. So this
00:11:39is actually interpretate as a triple and
00:11:42the first Component of the tribal is
00:11:45the number of the second component is the output component.
00:11:53Is that which is the what we want to provide as
00:11:59a final result and then it
00:12:01is just a pattern matching activity not very clever,
00:12:04not very deep so we just put the predicate
00:12:08as is what is what you and so on.
00:12:15This. Must be equal
00:12:20to. One which is.
00:12:433X0 and not.
00:12:51To be careful not to do mistake in the encoding,
00:12:56but it is nothing really deep
00:12:59here finally we want which is the component.
00:13:05And to be completely formal actually.
00:13:08We don't search for become true for the function to be so
00:13:13we should define the corrispondente characteristic function
00:13:18and save we want to function become one which is the function
00:13:23minus one to become so
00:13:25we will typically don't perform this last step,
00:13:28which is completely mechanical,
00:13:29but in this case it is one of the first times.
00:13:33We do it if you know.
00:13:36How to know which is a predicate of
00:13:41the art of this is the predicate.
00:13:56This predicate what you are actually do you first
00:13:59observer able wise it.
00:14:04Will because you're using the sidebar.
00:14:09You are using equality,
00:14:10which is the side of your using which is the black and you are
00:14:16taking actions and functions of this which is the ability actually.
00:14:21This is not really is,
00:14:22but it is confused with the projection,
00:14:26but the composition of compatible functions
00:14:29is computer and so computing e predicate with
00:14:31total functions always gives
00:14:32a deciderle predicate you should in
00:14:35principal do all this kind of consideration,
00:14:37where By saying that this is clear because the components are
00:14:42the sidebar and then the function that we want if.
00:14:52Is just. Surf for w such
00:14:59that the predicate over x
00:15:02w minus one zero and then we want to find component.
00:15:09So this is the side is the side by the function.
00:15:15This is a minimal of
00:15:17computer function confused with the production,
00:15:19which is the compatible function
00:15:21and function F would be compatible.
00:15:31Minimal and composition.
00:15:40Ho computer functions.
00:15:47And we have a problem because we know what is not computer and
00:15:53it is that it is compatible so we have tradition.
00:16:03And the addiction arise from the shadow,
00:16:09which means, but also is not the side.
00:16:24And this is the end of the exercise.
00:16:31Già. Of the fact
00:16:41that the world in some way
00:16:45in some way you are doing some kind of diagonal you have to.
00:16:50Which kind of you expect.
00:16:57Not really on this function,
00:17:00but on the fact that we are using the possibility
00:17:05of about the termination of a program to construct the program,
00:17:11which cannot exist this is that the kind of argument. You.
00:17:20Are the.
00:17:24World is that we construct function of function f. As a function,
00:17:34which is different from al compatible functions
00:17:36and so it is not compatible,
00:17:38but then we are what is predicate,
00:17:40which is just for the shining.
00:17:42The function is the side by using this.
00:17:45We show that function is compatible since we know
00:17:50what is not and we have by using the fact that is the stable,
00:17:56but it is computabile.
00:17:57IT must be not the case that is decided.
00:18:04If you really read, but we are being writing up to now you
00:18:10see that we actually did a special case of a general construction,
00:18:17which is a general of the argument that
00:18:21we are ready provided for the functions,
00:18:25which is function defined using the computer functions and
00:18:31the side predicate compiute sono
00:18:34without to extract, this more explicit.
00:18:38Li so I just remember as
00:18:40just recap it was the result result is that we are several decided,
00:18:46but for simplicity we just take one on the sidebar praticate.
00:18:57And you have to computer functions.
00:19:02See you again, this is to KEE functions without any problem.
00:19:15And you define it function by cases what you typically do.
00:19:21You have if else which is.
00:19:27To one of his true.
00:19:33And. So if.
00:19:41Then this function is computabile.
00:19:51And we have a proof in the case that functions or total.
00:20:06White because outlook express FX employment
00:20:14conditional by using the characteristic function
00:20:18of which whether is false.
00:20:22Is true in the characteristic function is one.
00:20:32And this is the wise.
00:20:37And similar we can check the complementari conditions.
00:20:44And this will be one if you.
00:20:54And. See what we want we want one in the first.
00:21:05And to find the second keys.
00:21:09We just need to know how to connect is it we
00:21:13multiply by the way of the characteristic function.
00:21:18This is one of us, if you.
00:21:25And it is zero otherwise.
00:21:29And similar here this is what if you.
00:21:39And it is otherwise.
00:21:44And so if you just take that you get the right.
00:21:48But all this is strictly related on the one and
00:21:54the total to this is essential for this kind of proof to work.
00:22:01Everything this is this is
00:22:05computer product is computer al the summit computer and computer
00:22:09by hypothesis and so everything
00:22:13is computer and we are
00:22:15we have the composition of computer functions,
00:22:17which we know how to be computer.
00:22:23And this is proof,
00:22:25which is not working when and we are that are not total,
00:22:30but now we know which is the problem there the problem is to.
00:22:36But here we are some how sequential this way,
00:22:41we are computing one computing and that we
00:22:44ask which is the function what we have to give
00:22:48back and this is not good because one of
00:22:51the two ten everything so we have to play the same,
00:22:55but with the other case.
00:23:02Which is. Performing a computational step
00:23:09by step and going deep only in the right direction,
00:23:14which is one when it is true and to when it is more
00:23:20precise we take two programs
00:23:24on computing one and the other computing to.
00:23:33And then we start our reputation, which is searching.
00:23:40For a number of steps and an output which is.
00:23:46However. When you is true.
00:23:51IT is the output produced by program one over input this is fx.
00:24:02In the steps. And when
00:24:08it is false we have to use the other program it to.
00:24:22The same trick that we played before.
00:24:28The value of più discriminate of the branching.
00:24:31We are taking and if then this is false,
00:24:36this is useless and we are using one
00:24:39and trying to find the output over and in
00:24:43the other case is for this is false
00:24:46and the only way to make the other branch true is to find.
00:24:52A number of steps and the number of steps
00:24:55and the output or program two
00:24:58and finally we want to give back output that we found which is.
00:25:08And in the other case that we have to search for.
00:25:14A single number, but the real creative is here all the rest is
00:25:19just or in keeping with the same,
00:25:24but this is a search tableau a interprete tableau as.
00:25:31Component is the second component
00:25:36is the and then we do some pattern matching.
00:25:41As you want.
00:25:45You want to.
00:25:56IT. W one two and not sex.
00:26:05And finally we want component one which is.
00:26:13Ok. Ok.
00:26:19This is for which is to but
00:26:22the other transformation transforming this into the.
00:26:27Characteristic functions minus one we
00:26:31don't do it and this is the sidebar. We just observer.
00:26:33This is the side of the characteristic functions computer
00:26:38and so the overall function is computer.
00:26:49Ok, this kind of reasoning is everywhere from
00:26:53non so it must be clear and it is not please ask.
00:27:09The predicate as it will step by step allows us to do some
00:27:16to use your model which is quite primitive in
00:27:19a sofisticati way doing
00:27:21several computational at the same time and so.
00:27:29Another exercise what we do exercise is today and
00:27:35other exercise is to do with the property which
00:27:37them in the book United States,
00:27:42which is on the side ability of the quality.
00:27:51Which is the following predicate
00:27:55that which says that the program computers
00:27:58by the function computer by program is total total.
00:28:07And we claim that this is on the sidebar.
00:28:16Per un totale di Mike Lucas A Strange Mathematical Property.
00:28:25If you think of what we are saying
00:28:27this is actually from the point of
00:28:29view of software verification interesting property
00:28:32what is that the program to give in input pics on every input.
00:28:48Which is what we would like to check
00:28:51probably for every sequential program.
00:28:53If you have in ideal static analyzer in the same way as you static
00:28:59analyzer whether this variable declare what
00:29:03you are not using this is probably mistake or.
00:29:08You included package which this is probably mistake in this is
00:29:15given a program you like your static analyzer to say
00:29:18on your program is not which is probably mistake,
00:29:23but this is cannot be down at least not in my complete way.
00:29:29You can give some of this,
00:29:31but you can't do it exactly so this is on the side.
00:29:34There is no program, which is taking in input
00:29:36and other program and which is checking
00:29:39whether input program terminate on every possible parameter.
00:29:43Ok. I want to show these and intuitive
00:29:48this is clear and because because
00:29:51it is more complex checking the problem.
00:29:54Gli altri problem is happy hour program
00:29:57some specific input while instead want to every possible input
00:30:04which looks at stronger property indeed you can reduce
00:30:09as we will say that the side of
00:30:12the problem to the side of the problem,
00:30:15but we don't have this tool yet reduction and so for now,
00:30:20we just give direct proof.
00:30:22Of is easy even we take it a
00:30:26bit long just because we do all the small details.
00:30:33And pass through the same function as before.
00:30:36Sorry.
00:30:47IT is defined
00:30:49by using a different predicate,
00:30:50which is the predicate so we have of it is
00:30:56the code of the total program and other wise.
00:31:07WebServer function is as
00:31:11several features in particular it is not computer.
00:31:15The first observation is that it is total.
00:31:24IT is clear total because we need to be it.
00:31:34Is a program which terminate on every input then.
00:31:39F x x x x x x
00:31:45is on every input determinate in particular
00:31:48on x and so this is the end.
00:31:53Of instead. Exist program
00:31:58which is not which is clear a number defined.
00:32:03So it is defined in cases.
00:32:16So. But it is different from all total compatible functions.
00:32:36While for the standard reason why take?
00:32:48Any possible total computer functions.
00:32:53We take for each if fi total.
00:33:01Then f is different from physics why?
00:33:07IT is different from ex an ex because if you take fx.
00:33:15Science ex is the code of total function.
00:33:21According to our definition.
00:33:25Is ex ex plus one,
00:33:29which is different from ex.
00:33:35So dysfunction is total and different
00:33:41from all total compatible functions so it can be
00:33:44total it can be computer.
00:34:05And how we Observer that if instead predicato
00:34:11this total dysfunction would be computer and
00:34:15so to can be cannot be the sidebar.
00:34:25Passion by the addiction.
00:34:35That is the side.
00:34:42Of them our functions.
00:34:48Can be written as follows.
00:34:52Just to use the exercise that we can write it.
00:35:00And the following way, we say that it is one.
00:35:07If. If not tot
00:35:17of ex where to.
00:35:28This is one.
00:35:32Which is compatible it is the universal function.
00:35:46By the way just this is a compatible function for some reasons.
00:35:56Maybe because this is typical involved in
00:35:58diagonale argument as a part of the argument
00:36:03several students Believe that this is not
00:36:06computer is a perfect computer function
00:36:10it is the universal function.
00:36:14I know this book strange to
00:36:16you saying is because several times people.
00:36:22This is not for some reasons, but it is clear.
00:36:25Computer what is the universal function?
00:36:26Compost with success. And the function.
00:36:33He is the constant.
00:36:38This to our computer functions.
00:36:48Also as. Is the
00:36:55by cases using computer functions on the basis of the total.
00:37:00Predicate if that we have.
00:37:13Contraddette. Our knowledge.
00:37:23And for it must be the predicate is not the.
00:37:32Table by the result of the previous exercise.
00:37:42Which is the function computer by case is
00:37:46the basis predicate using computer functions computer.
00:37:58If they are not doubt I go.
00:38:01Good. In the book
00:38:09again is to be a series of results like proposition or theorem,
00:38:14but this are small exercise is actually,
00:38:18which mostly say the following if you take some programs
00:38:25and combined them in a reasonable way you still get
00:38:28the program and this can be done in an effective way.
00:38:31Algoritmi What the title is more.
00:38:37About more enfasi is on the result and
00:38:40the effective operations of computer functions.
00:38:48Which is also a source of exercise.
00:38:53Of the given shape that you find examples so the first one.
00:39:01There is a total computer functions for function.
00:39:12As from peer to single numbers such that.
00:39:25For all that we interpreta as programs.
00:39:36You can transform this program into another program.
00:39:41This is a program transformer.
00:39:47That this function is. The product.
00:40:03Of the function computers by ex and computer by.
00:40:13One of this is saying result is kind of but the most difficult part
00:40:21understanding result is saying saying
00:40:25that we have computer function function.
00:40:29You can ready to you have the program.
00:40:32Which is taking in input,
00:40:35which are again programs.
00:40:43Program ex and program why and it is providing as an output and
00:40:50other program because you are using the result against
00:40:54the index is a program And this is of.
00:41:01This program is computing a function,
00:41:05which is the product of
00:41:08the function computer and computer by the way.
00:41:12If you have to write this program is in a high level language.
00:41:18This is kind of immediate you to do some string manipulation,
00:41:23but that's not the problem so you start from.
00:41:27The way to meet in program, which is.
00:41:34Which is the following.
00:41:38On the specific language,
00:41:40but it is the following it is an argument that.
00:41:47And it is the result.
00:41:52Of the first program on computer result of the second program
00:42:00on set and finally it return the product product of the to results.
00:42:11Is not difficult to have that is function as exist.
00:42:19IT is not surprise it
00:42:21all the only surprise things
00:42:24to make it is that you can it in our setting in
00:42:27a completely formal way to lines and
00:42:31the pattern is one to find most exercise as.
00:42:37You want this program is.
00:42:41Which is taking input
00:42:46something while which interpreta program week end products
00:42:52and other program as an output this program will have an input
00:42:56used to the first step you
00:42:59define the function which takes actually.
00:43:09Free arguments so it takes as input and also set.
00:43:23Steel at the stage you think as parameters,
00:43:27which are fixed and the only real argument is
00:43:32by thinking in this way you want this is this.
00:43:38So it is ex of
00:43:42the times of this because once you have this function
00:43:49this computer you can you can take you can
00:43:53you can bring this fixed this parameters so that the act of art.
00:44:00This parameter is a compatible function.
00:44:05That this is compatible is because this is the universal function.
00:44:11This.
00:44:22Is the composition of compatible functions.
00:44:32Product the universal functions.
00:44:42And now if you think intuitive
00:44:48and I think thank you Ok several times this the same things,
00:44:54you're continuous to move between
00:44:56the intuitive level and the level you have to think
00:44:58intuitive write normally and here
00:45:02what we just this is to show that we have.
00:45:07The program di computing the function which is taking input x.
00:45:15But this is interpreta as program.
00:45:23And the input is used.
00:45:28And the different nature is
00:45:31the input to be provided the real time program.
00:45:38And this producers is an output of the times of this is
00:45:46g. And then the function as is this function
00:45:52which given ex art could this way to get.
00:46:02This is what we want to say,
00:46:05but this is what we need is completely
00:46:08general what is your. Computer.
00:46:25Actually by the corollari but always.
00:46:32There is which is doing exactly what we want.
00:46:41Total in computer this is just.
00:46:52For all ex wi.
00:46:56FI e way. To.
00:47:05GX poi.
00:47:09Zed. Which is.
00:47:14This.
00:47:16It is what we want.
00:47:29Just sequence of simple steps some how what you combine
00:47:36in simple way so
00:47:40there is essential only one moment with your doing something,
00:47:44which is Creative which
00:47:48is understanding what you want and understanding actually
00:47:52just need dysfunction everything else
00:47:55everything else if just pattern matching just.
00:48:07Porta altri to you to follow this kind of conventions that
00:48:12capital letters are for programs
00:48:14and lower letters are for functions,
00:48:17but I don't ensure I don't put
00:48:22my total assurance that this will happen always altri to.
00:48:33Cut so we go further and we do another exercise.
00:48:43Of the same shape.
00:48:51Exercise is the following says you remember that we proof
00:48:58that given a compatible function it is
00:49:01compatible and we move a step forward.
00:49:06But it is a small step forward,
00:49:09which says say that
00:49:11the operation of investing function is compatible.
00:49:22Is that there is a total compatible function so a program.
00:49:32And we can. IT KEE.
00:49:40That For each other program ex.
00:49:48If the function physics is.
00:49:59Then. KEE ex of set.
00:50:12Tu fai exposed to the minor minus one.
00:50:27Okay.
00:50:29Again, if you think of this. Program, etc.
00:50:36We have the program che which is taken
00:50:39input E program picks providing as an output and other program.
00:50:48Pick and this program is computer the function.
00:51:01Of the function computer by px.
00:51:12And as we as we are we discuss this originally.
00:51:19Function is typically algoritmica something extremely difficult so.
00:51:26This might look like a miracle,
00:51:31but you have a program, which is taking
00:51:33any other program and it is in the input function,
00:51:36but the point is that in the function efficient is difficult,
00:51:42but function without any requirement of efficiency
00:51:45just a team principal we are able to do that if you
00:51:48have amount memory and wounded amount of time.
00:51:52This is not difficult how can you do this.
00:51:56In order to computer.
00:52:05Pay to the one of the same.
00:52:11But can you do you just try?
00:52:17O possible inputs so maybe the counter images
00:52:26zero and how can you do this is your the input program by
00:52:31using the universal function to zero and is the output get.
00:52:38IT Esso and other wise take input one and
00:52:44that is this may be the counter image so how can do it.
00:52:49Simulate program x over one and is the results and so to you take
00:52:57all possible inputs you can do this in
00:52:59this sequential fashion because we have the problem,
00:53:04but it is not so you have to do it,
00:53:09but it is this.
00:53:16And now we have just translate.
00:53:18This is in terms.
00:53:24So what e function of two arguments not surprise.
00:53:34Where the first argument is Sex and the program what we want
00:53:40to the second argument is the input for the program.
00:53:47So we want this is to the minus one of set.
00:53:54And how we just need to write this in a computer manner.
00:54:02And this will be some such that.
00:54:08Is what is what we have it
00:54:14exists because it might be that is not in the image of.
00:54:20What if the?
00:54:25End of this is.
00:54:33And it is. Undefined. E This
00:54:40is it is we're ready kind of it, this is.
00:54:47To search. For. Which is
00:54:54the possible counter image and the number of steps
00:54:57such that program ex on input while
00:55:03terminate and produced in the steps and in case.
00:55:10We are able to find this we give.
00:55:14Which is not.
00:55:20KEE. And then it is not what we can search for predicate become
00:55:29through very often we just ignore this
00:55:33also IT is not search for a peer to peer is easy.
00:55:40We can you and then. Here we want.
00:55:54Ladies. And the steps are the argument.
00:56:03When we find it we want.
00:56:08With which is the first component and this
00:56:13is the minimum w that characteristic function.
00:56:20At all this is very mechanical.
00:56:25There is no clever involved in the steps after the first one.
00:56:35So this is stable.
00:56:43And we given that this is compatible.
00:56:47We can used to bring this become a parameter by computer function.
00:57:03Automatic driving machine now
00:57:07everything is more less straightforward by theorem.
00:57:14Is KEE from end to end total computer.
00:57:29Such that. Fai KEE of zed is the same as.
00:57:39We can eat of ex zed,
00:57:44which is back. To the.
00:57:59Effect is. What we?
00:58:16Actually never only.
00:58:20IT is a condition to have the inverse defined.
00:58:23Otherwise you don't know which
00:58:25result to get and so what we when it is not?
00:58:35What is the result of fake?
00:58:46We search for an input such
00:58:50that some number of steps the output is not.
00:58:57So it is unique that otherwise find some.
00:59:07Of set is one.
00:59:13Of the values possible many.
00:59:28WISE that he is not.
00:59:39So this is a bit factory may be
00:59:44one would like to have a better defined function,
00:59:50which takes some precise counter images
00:59:53not just one of the counter images for the
00:59:55minimal and this is a very nice exercise.
01:00:02Which is the following given function
01:00:08from end to end, which is compatible.
01:00:15You want to a better deterministiche counter function function
01:00:22to the fine For.
01:00:29O sad and set of counter images of used to the
01:00:37minus one of set is the state of wise that.
01:00:48Is that. And then.
01:00:58The find the function,
01:01:01which takes the minimum of the counter images.
01:01:09So. The minimum of to the one of used.
01:01:21Is this if there is some counter image.
01:01:31And it is undefined.
01:01:36So different from before we don't
01:01:40just in case there are many elements,
01:01:43which produce output just we don't take any other
01:01:48with the minimum this is different from
01:01:51before and the question is better this is compatible.
01:01:58The previous was computer is one,
01:02:02which is more deterministiche compatible.
01:02:09E question is not easy to answer.
01:02:12Neither terrible difficult, but it requires some creativity.
01:02:19You have guess yes.
01:02:23Because this is a function from elements to
01:02:29sets and so I change notation
01:02:32to that the result is not an element, but not.
01:02:44Least is this computer?
01:02:48Makes.
01:02:58Voi. Opinion is
01:03:07not because if function I know what is
01:03:14what we have as he he condition that is computer.
01:03:22Ma that can be really computer because I have
01:03:27a function that he is the image of.
01:03:38The starting function then this is just annotation for the feeling.
01:03:43This is just take one of
01:03:46the country images and in the first case while in this case.
01:03:50I take the minimum of the counter images.
01:03:57As just give this.
01:04:02Is your search for the minimum counter images
01:04:06of the country images and you
01:04:08want to find and possible while which
01:04:13provides set design output
01:04:16that you don't know is it the minimum because the
01:04:18computational over the One to one of the smaller finish,
01:04:25but the steel some computational smaller one which is going.
01:04:29And I think what is hard to know
01:04:33whether this computational on the smaller one will terminate
01:04:36so you will be able to say whether
01:04:39the current candidate counter image is
01:04:44the right one to this so answer is now,
01:04:50This is not computer, which is kind of observation.
01:04:53IT is also the reason why.
01:04:55Minimalismo is defined in the way.
01:04:59Minimalismo does not find the minimal element of the function
01:05:04is the minimum element over
01:05:07the world function zero and before it must be defined everywhere.
01:05:13The reason why it is that is connected to this exercise.
01:05:22On with other exercise.
01:05:30Of.
01:05:36The total compatible function prefix is over the same.
01:06:01For all. The domain of
01:06:10the program as is the union of the domain of the domain of.
01:06:23Potrebbe saying we are saying that we take
01:06:27away to them programs and we construct
01:06:30program as of this program is the property
01:06:35what is defined on some get if if.
01:06:41IT is the final get or pay.
01:06:51As many other exercise is the only point is
01:06:55the right to get an intuition,
01:06:59but after intuition should be less easy.
01:07:05To give our input used to something which
01:07:10must have either pics or terminator.
01:07:18Non so. What might be idea give as in input to pay as you are.
01:07:29We let them compiute when one of the two.
01:07:34Terminate. Terminate. So you
01:07:40want to parallel threads
01:07:42running and you for determination of one of the two.
01:07:48Only we have to do this with you will have threads so we
01:07:54do it in the in
01:07:56the more primitive way by first function of the arguments.
01:08:03Which takes input ex while the program and
01:08:09also set the input to this program we want to be.
01:08:18F ex defined or find.
01:08:28And undefined. And this
01:08:37is another point typically you don't put there results here
01:08:40because this is one best with your construction.
01:08:47And what we do we run in parallel the
01:08:51to program how do we do before.
01:08:56The use the predicate age in this case
01:09:00because we are interested determination
01:09:04and take program gives a zed and perform some number of steps.
01:09:15At the same time, we want to do the same for program why?
01:09:24And you are you find the number of steps,
01:09:27which makes program or program why
01:09:29terminate the corrisponde in pratica through and so the
01:09:33true and then we want to
01:09:36terminate only this would be ready fine as a function,
01:09:42but we have a problem that we don't know how to put
01:09:45here because the output would be the number of steps,
01:09:49which is to one of
01:09:51the two program terminate which is long to write so in
01:09:55this is what we do while just use
01:09:58one and how to this kind of result.
01:10:03IT is to be one way out.
01:10:05We compose with the constant one.
01:10:11Qui Where the function.
01:10:17This is this function front end to which is.
01:10:31Back. To this is the only creative part of the construction,
01:10:40then all the rest is this is compatible,
01:10:43but it is because it is compatible by composition
01:10:46of it is a minimal action of the sidebar.
01:10:52Predicate plus composition with the constant one,
01:10:55which is compatible so this is computer. And their for by the.
01:11:13There is the function has which is total compatible.
01:11:33That. Offset is
01:11:41the way used,
01:11:45which is the function defined this.
01:12:00Is one and the year.
01:12:05And now we claim that As is the function, which is.
01:12:12Dead everything to let as soddisfi the property,
01:12:19but since the general shape of these exercise as is
01:12:24the function as the property even is it in this case, it is it.
01:12:31As is the.
01:12:37Function what is it mean that it is the decided function and that.
01:12:53Is the union of you and.
01:13:02With the check it is clear.
01:13:07cos'è W What?
01:13:13If if by definition of domain if
01:13:17fi ex while offset is the end of now.
01:13:23We remember that is this is.
01:13:33That it is defined.
01:13:35IT. IT is the final set on if the end of.
01:13:48IT is in.
01:13:54Or set is in.
01:13:57Which is what we want.
01:14:04That If you to the exercise and you don't do this part time.
01:14:11Anyway, because this is this is what if you have that may
01:14:17be I have to you some how about the appropriate of my solution.
01:14:22IT is never back to to give some double check.
01:14:32Okay, so another exercise.
01:14:43Which is that is a total compatible function very creative start.
01:15:02As. That in this case before we wanted domains in this case.
01:15:12We want a domain you are we playing with this information
01:15:16because this are then essential for doing reactions so principle.
01:15:21This is just an exercise.
01:15:24We know how they will be employer by doing reduction.
01:15:31You want to the set of output produced by
01:15:35the program is the union of output of the original program.
01:15:40So we are we are saying that the program transform of products.
01:15:51As output. Oil and only.
01:16:01The Outputs. Of pics MP Why?
01:16:14We are experienced? We know that we can run programs in parallel.
01:16:21So we have a great idea, which is what?
01:16:24We are.
01:16:29Given that.
01:16:33We provided it is what we have a problem because we have to
01:16:39results and we don't know
01:16:41what to do we have to give in output only one result.
01:16:46And then we have a better idea,
01:16:51which is it is even.
01:16:55I give it to get out.
01:17:01And then I outputs to have
01:17:05just single output for this is kind of God,
01:17:10but you are just taking not all possible output,
01:17:13but only the event output for each and
01:17:16only the output for so if you have your program.
01:17:24What are like this? Sei Pick
01:17:28up and over input one two three for life
01:17:35is one to undefined for zero undefined zero
01:17:44three for three what we are obtaining in this way is only the.
01:17:53Even output.
01:17:59For each and only the hot or so keeping for two which is not good.
01:18:10So we want a way of taking number and map
01:18:15it all over all the possible inputs
01:18:17this is not difficult. You just.
01:18:21And same here. To this
01:18:29is the end of the exercise essential this is
01:18:31the only point where you really think tank.
01:18:35The rest is translated in the language,
01:18:37but we are using so we function which is doing this where are
01:18:43parameters you used to
01:18:46the parameters into the fixed arguments and then your.
01:18:52First function of three arguments and
01:18:57which is playing as here. To it is.
01:19:04Of ex art.
01:19:08If heaven.
01:19:12And it is my way of divided,
01:19:17but it is not is not.
01:19:24Only say very.
01:19:28Clever because this is that
01:19:31the universal function takes and to this is the argument.
01:19:41Too e mises similar stories still very similar.
01:19:47Okay. As the.
01:19:56And then the right one it is even so there is to.
01:20:06Take the one and it is one at the second one. And this is wrong.
01:20:18Because this is another instance of what we don't do when
01:20:24the functions are partial because one of the two components is.
01:20:28Undefined everything is undefined
01:20:29and multiply by zero doesn't change.
01:20:31This is this is not write.
01:20:41What you have to do is to go step by step careful.
01:20:48Search for the output.
01:20:52But also the number of Which is needed to the top ten,
01:20:56this output and it is even.
01:21:00The output must be search for.
01:21:14The output must be search for program.
01:21:26And the real time we have to do it is.
01:21:34PROpel by using a single.
01:21:38Number which interprete per.
01:21:50Over the. Beh, divided by
01:21:54the first component of
01:21:57the second component of the year and that is given.
01:22:04Or same for.
01:22:13The. Winner is not.
01:22:23And finally we want the results,
01:22:26which is the first component.
01:22:29And you see everything is because you are the side predicate.
01:22:43The.
01:22:55E total computer function.
01:23:03That. Fai of his KEE.
01:23:13Of ex zed, which is the function that we wrote about.
01:23:30IT is it is heaven.
01:23:38And other.
01:23:47Which is not.
01:23:56Previous case I claim that this is the function what we want?
01:24:05What we want we want that the domain of
01:24:12the transform program is
01:24:16the union of the domains of the original program.
01:24:21We have double inclusion again also in this case it is not clear,
01:24:26but let's do it.
01:24:29We have inequality that we translate.
01:24:32This suggest equality between sides is better to be
01:24:36provided as a double inclusion so first.
01:24:46The first set is included in the second set.
01:24:57So take. EM è value.
01:25:06In iOS ex ex ex.
01:25:18This is produced as a output by the function so there is that.
01:25:27Way of set di.
01:25:40Event that this is either fix or five.
01:25:52We will be either ex of art
01:25:59or it will be fairway offset minus one off.
01:26:08And we don't care that we the first even and
01:26:13the second is not from the first with the house
01:26:18that we is in the domain of
01:26:22us and from the second that it is in
01:26:26the way of life and so putting together.
01:26:30This is it is in the union.
01:26:41Okay.
01:26:46Inclusion. We want.
01:26:56To take a genetic element
01:27:00in the second set and we want it is in the first set.
01:27:04To be value B in union why?
01:27:14Then either.
01:27:20B X.
01:27:25Or. B is. In the first case.
01:27:36So finish in the second
01:27:40so we want to
01:27:43find an input that we can provide to transform program.
01:27:50And which provides output the same v. V. B.
01:27:57Program x this.
01:28:04There will be. Some such that.
01:28:12Is love and so it is not to
01:28:16give input to the program w of the double object.
01:28:25Which is certainly even so since it is
01:28:29even which is. The first branch.
01:28:39Argument. Okay, so it
01:28:48is given time again.
01:28:52Be this is in the state of output.
01:29:01Of the transport program.
01:29:05The same is in the second case.
01:29:09Just need to take the good number and so on this is the proof.
01:29:25Of this case. This is
01:29:28not strictly necessary because the construction.
01:29:31Directly and then this result that it was essential,
01:29:37but it is never bad. Ok.