WEBVTT
Kind: captions
Language: en

00:00:00.440 --> 00:00:01.830 align:start position:0%
 
What<00:00:00.560><c> you're</c><00:00:00.720><c> watching</c><00:00:01.080><c> right</c><00:00:01.240><c> now</c><00:00:01.400><c> is</c><00:00:01.560><c> pure</c>

00:00:01.830 --> 00:00:01.840 align:start position:0%
What you're watching right now is pure
 

00:00:01.840 --> 00:00:04.030 align:start position:0%
What you're watching right now is pure
computation.

00:00:04.030 --> 00:00:04.040 align:start position:0%
computation.
 

00:00:04.040 --> 00:00:06.710 align:start position:0%
computation.
Not<00:00:04.240><c> quite</c><00:00:04.440><c> algebraic</c><00:00:04.880><c> manipulation.</c>

00:00:06.710 --> 00:00:06.720 align:start position:0%
Not quite algebraic manipulation.
 

00:00:06.720 --> 00:00:09.510 align:start position:0%
Not quite algebraic manipulation.
Not<00:00:06.920><c> quite</c><00:00:07.120><c> Boolean</c><00:00:07.480><c> logic,</c><00:00:07.840><c> either.</c>

00:00:09.510 --> 00:00:09.520 align:start position:0%
Not quite Boolean logic, either.
 

00:00:09.520 --> 00:00:13.550 align:start position:0%
Not quite Boolean logic, either.
Just<00:00:10.280><c> pure</c><00:00:11.360><c> computation.</c>

00:00:13.550 --> 00:00:13.560 align:start position:0%
Just pure computation.
 

00:00:13.560 --> 00:00:14.990 align:start position:0%
Just pure computation.
Specifically,<00:00:14.200><c> it's</c><00:00:14.360><c> evaluating</c><00:00:14.840><c> three</c>

00:00:14.990 --> 00:00:15.000 align:start position:0%
Specifically, it's evaluating three
 

00:00:15.000 --> 00:00:16.830 align:start position:0%
Specifically, it's evaluating three
factorial,<00:00:15.880><c> and</c><00:00:16.000><c> sure</c><00:00:16.160><c> enough,</c><00:00:16.480><c> it</c><00:00:16.600><c> found</c><00:00:16.760><c> the</c>

00:00:16.830 --> 00:00:16.840 align:start position:0%
factorial, and sure enough, it found the
 

00:00:16.840 --> 00:00:19.030 align:start position:0%
factorial, and sure enough, it found the
result,<00:00:17.320><c> six.</c>

00:00:19.030 --> 00:00:19.040 align:start position:0%
result, six.
 

00:00:19.040 --> 00:00:21.390 align:start position:0%
result, six.
What<00:00:19.160><c> are</c><00:00:19.240><c> all</c><00:00:19.360><c> these</c><00:00:19.520><c> weird</c><00:00:19.760><c> lines,</c><00:00:20.080><c> though?</c>

00:00:21.390 --> 00:00:21.400 align:start position:0%
What are all these weird lines, though?
 

00:00:21.400 --> 00:00:23.590 align:start position:0%
What are all these weird lines, though?
Going<00:00:21.600><c> back</c><00:00:21.760><c> to</c><00:00:21.840><c> the</c><00:00:21.920><c> original</c><00:00:22.320><c> setup,</c><00:00:23.360><c> this</c>

00:00:23.590 --> 00:00:23.600 align:start position:0%
Going back to the original setup, this
 

00:00:23.600 --> 00:00:25.270 align:start position:0%
Going back to the original setup, this
pink<00:00:23.840><c> chunk</c><00:00:24.160><c> represents</c><00:00:24.600><c> the</c><00:00:24.680><c> factorial</c>

00:00:25.270 --> 00:00:25.280 align:start position:0%
pink chunk represents the factorial
 

00:00:25.280 --> 00:00:26.470 align:start position:0%
pink chunk represents the factorial
function.

00:00:26.470 --> 00:00:26.480 align:start position:0%
function.
 

00:00:26.480 --> 00:00:27.990 align:start position:0%
function.
This<00:00:26.640><c> yellow</c><00:00:26.920><c> chunk</c><00:00:27.200><c> represents</c><00:00:27.680><c> the</c><00:00:27.760><c> number</c>

00:00:27.990 --> 00:00:28.000 align:start position:0%
This yellow chunk represents the number
 

00:00:28.000 --> 00:00:29.150 align:start position:0%
This yellow chunk represents the number
three.

00:00:29.150 --> 00:00:29.160 align:start position:0%
three.
 

00:00:29.160 --> 00:00:30.550 align:start position:0%
three.
And<00:00:29.280><c> this</c><00:00:29.440><c> blue</c><00:00:29.640><c> chunk</c><00:00:30.000><c> represents</c><00:00:30.440><c> the</c>

00:00:30.550 --> 00:00:30.560 align:start position:0%
And this blue chunk represents the
 

00:00:30.560 --> 00:00:31.750 align:start position:0%
And this blue chunk represents the
application<00:00:31.040><c> of</c><00:00:31.120><c> the</c><00:00:31.240><c> function</c><00:00:31.600><c> to</c><00:00:31.680><c> the</c>

00:00:31.750 --> 00:00:31.760 align:start position:0%
application of the function to the
 

00:00:31.760 --> 00:00:33.230 align:start position:0%
application of the function to the
number.

00:00:33.230 --> 00:00:33.240 align:start position:0%
number.
 

00:00:33.240 --> 00:00:35.430 align:start position:0%
number.
We<00:00:33.360><c> can</c><00:00:33.480><c> make</c><00:00:33.680><c> all</c><00:00:33.800><c> sorts</c><00:00:34.080><c> of</c><00:00:34.160><c> other</c><00:00:34.360><c> values.</c>

00:00:35.430 --> 00:00:35.440 align:start position:0%
We can make all sorts of other values.
 

00:00:35.440 --> 00:00:38.750 align:start position:0%
We can make all sorts of other values.
We've<00:00:35.600><c> got</c><00:00:35.840><c> 1,</c><00:00:36.520><c> 2,</c><00:00:37.120><c> 3,</c>

00:00:38.750 --> 00:00:38.760 align:start position:0%
We've got 1, 2, 3,
 

00:00:38.760 --> 00:00:40.630 align:start position:0%
We've got 1, 2, 3,
as<00:00:38.920><c> well</c><00:00:39.080><c> as</c><00:00:39.200><c> plus</c><00:00:39.400><c> and</c><00:00:39.560><c> times.</c>

00:00:40.630 --> 00:00:40.640 align:start position:0%
as well as plus and times.
 

00:00:40.640 --> 00:00:42.310 align:start position:0%
as well as plus and times.
We<00:00:40.720><c> can</c><00:00:40.840><c> express</c><00:00:41.360><c> any</c><00:00:41.640><c> computational</c>

00:00:42.310 --> 00:00:42.320 align:start position:0%
We can express any computational
 

00:00:42.320 --> 00:00:43.990 align:start position:0%
We can express any computational
procedure,<00:00:43.000><c> such</c><00:00:43.240><c> as</c><00:00:43.360><c> the</c><00:00:43.440><c> factorial</c>

00:00:43.990 --> 00:00:44.000 align:start position:0%
procedure, such as the factorial
 

00:00:44.000 --> 00:00:45.670 align:start position:0%
procedure, such as the factorial
function.

00:00:45.670 --> 00:00:45.680 align:start position:0%
function.
 

00:00:45.680 --> 00:00:47.150 align:start position:0%
function.
But,<00:00:45.960><c> the</c><00:00:46.080><c> magic</c><00:00:46.520><c> is</c><00:00:46.640><c> that</c><00:00:46.760><c> it's</c><00:00:46.920><c> not</c>

00:00:47.150 --> 00:00:47.160 align:start position:0%
But, the magic is that it's not
 

00:00:47.160 --> 00:00:48.670 align:start position:0%
But, the magic is that it's not
immediately<00:00:47.600><c> obvious</c><00:00:48.040><c> whether</c><00:00:48.280><c> a</c><00:00:48.360><c> certain</c>

00:00:48.670 --> 00:00:48.680 align:start position:0%
immediately obvious whether a certain
 

00:00:48.680 --> 00:00:51.270 align:start position:0%
immediately obvious whether a certain
expression<00:00:49.320><c> is</c><00:00:49.480><c> a</c><00:00:49.560><c> number,</c>

00:00:51.270 --> 00:00:51.280 align:start position:0%
expression is a number,
 

00:00:51.280 --> 00:00:53.670 align:start position:0%
expression is a number,
a<00:00:51.360><c> function</c><00:00:51.720><c> that</c><00:00:51.880><c> operates</c><00:00:52.320><c> on</c><00:00:52.440><c> numbers,</c>

00:00:53.670 --> 00:00:53.680 align:start position:0%
a function that operates on numbers,
 

00:00:53.680 --> 00:00:55.950 align:start position:0%
a function that operates on numbers,
or<00:00:53.800><c> something</c><00:00:54.120><c> else</c><00:00:54.320><c> entirely.</c>

00:00:55.950 --> 00:00:55.960 align:start position:0%
or something else entirely.
 

00:00:55.960 --> 00:00:57.630 align:start position:0%
or something else entirely.
And<00:00:56.080><c> that's</c><00:00:56.280><c> because</c><00:00:56.760><c> in</c><00:00:56.920><c> this</c><00:00:57.120><c> language,</c>

00:00:57.630 --> 00:00:57.640 align:start position:0%
And that's because in this language,
 

00:00:57.640 --> 00:01:00.590 align:start position:0%
And that's because in this language,
there<00:00:57.920><c> is</c><00:00:58.160><c> no</c><00:00:58.320><c> difference.</c>

00:01:00.590 --> 00:01:00.600 align:start position:0%
there is no difference.
 

00:01:00.600 --> 00:01:02.430 align:start position:0%
there is no difference.
Just<00:01:00.880><c> like</c><00:01:01.040><c> we</c><00:01:01.160><c> applied</c><00:01:01.520><c> factorial</c><00:01:02.080><c> to</c><00:01:02.160><c> three</c>

00:01:02.430 --> 00:01:02.440 align:start position:0%
Just like we applied factorial to three
 

00:01:02.440 --> 00:01:04.270 align:start position:0%
Just like we applied factorial to three
with<00:01:02.560><c> a</c><00:01:02.600><c> function</c><00:01:02.880><c> application,</c>

00:01:04.270 --> 00:01:04.280 align:start position:0%
with a function application,
 

00:01:04.280 --> 00:01:06.430 align:start position:0%
with a function application,
we<00:01:04.400><c> can</c><00:01:04.559><c> apply</c><00:01:04.839><c> three</c><00:01:05.199><c> to</c><00:01:05.320><c> factorial</c><00:01:06.160><c> in</c><00:01:06.320><c> the</c>

00:01:06.430 --> 00:01:06.440 align:start position:0%
we can apply three to factorial in the
 

00:01:06.440 --> 00:01:08.630 align:start position:0%
we can apply three to factorial in the
exact<00:01:06.840><c> same</c><00:01:07.080><c> way,</c><00:01:07.760><c> as</c><00:01:07.920><c> though</c><00:01:08.080><c> three</c><00:01:08.440><c> was</c><00:01:08.600><c> a</c>

00:01:08.630 --> 00:01:08.640 align:start position:0%
exact same way, as though three was a
 

00:01:08.640 --> 00:01:12.470 align:start position:0%
exact same way, as though three was a
function<00:01:09.280><c> and</c><00:01:09.440><c> factorial</c><00:01:10.120><c> was</c><00:01:10.240><c> a</c><00:01:10.280><c> value.</c>

00:01:12.470 --> 00:01:12.480 align:start position:0%
function and factorial was a value.
 

00:01:12.480 --> 00:01:14.110 align:start position:0%
function and factorial was a value.
Okay,<00:01:12.800><c> but</c><00:01:13.000><c> you</c><00:01:13.080><c> can't</c><00:01:13.280><c> actually</c><00:01:13.600><c> evaluate</c>

00:01:14.110 --> 00:01:14.120 align:start position:0%
Okay, but you can't actually evaluate
 

00:01:14.120 --> 00:01:15.670 align:start position:0%
Okay, but you can't actually evaluate
that,<00:01:14.400><c> right?</c>

00:01:15.670 --> 00:01:15.680 align:start position:0%
that, right?
 

00:01:15.680 --> 00:01:18.110 align:start position:0%
that, right?
Well,<00:01:15.960><c> you</c><00:01:16.080><c> can.</c><00:01:16.920><c> But,</c><00:01:17.400><c> it's</c><00:01:17.560><c> certainly</c><00:01:17.920><c> not</c>

00:01:18.110 --> 00:01:18.120 align:start position:0%
Well, you can. But, it's certainly not
 

00:01:18.120 --> 00:01:19.670 align:start position:0%
Well, you can. But, it's certainly not
the<00:01:18.200><c> case</c><00:01:18.480><c> that</c><00:01:18.600><c> when</c><00:01:18.720><c> evaluating</c><00:01:19.320><c> it,</c><00:01:19.520><c> the</c>

00:01:19.670 --> 00:01:19.680 align:start position:0%
the case that when evaluating it, the
 

00:01:19.680 --> 00:01:23.150 align:start position:0%
the case that when evaluating it, the
answer<00:01:19.920><c> would</c><00:01:20.040><c> make</c><00:01:20.200><c> any</c><00:01:20.400><c> sense,</c><00:01:21.400><c> right?</c>

00:01:23.150 --> 00:01:23.160 align:start position:0%
answer would make any sense, right?
 

00:01:23.160 --> 00:01:24.270 align:start position:0%
answer would make any sense, right?
We're<00:01:23.280><c> going</c><00:01:23.400><c> to</c><00:01:23.480><c> have</c><00:01:23.600><c> to</c><00:01:23.720><c> totally</c><00:01:24.040><c> unlearn</c>

00:01:24.270 --> 00:01:24.280 align:start position:0%
We're going to have to totally unlearn
 

00:01:24.280 --> 00:01:26.070 align:start position:0%
We're going to have to totally unlearn
the<00:01:24.360><c> concepts</c><00:01:24.800><c> of</c><00:01:24.920><c> functions,</c><00:01:25.480><c> programs,</c>

00:01:26.070 --> 00:01:26.080 align:start position:0%
the concepts of functions, programs,
 

00:01:26.080 --> 00:01:28.750 align:start position:0%
the concepts of functions, programs,
values,<00:01:26.640><c> and</c><00:01:26.760><c> data</c><00:01:27.000><c> types.</c>

00:01:28.750 --> 00:01:28.760 align:start position:0%
values, and data types.
 

00:01:28.760 --> 00:01:29.990 align:start position:0%
values, and data types.
Cuz<00:01:28.920><c> today,</c><00:01:29.280><c> we're</c><00:01:29.440><c> learning</c><00:01:29.680><c> the</c><00:01:29.760><c> lambda</c>

00:01:29.990 --> 00:01:30.000 align:start position:0%
Cuz today, we're learning the lambda
 

00:01:30.000 --> 00:01:38.950 align:start position:0%
Cuz today, we're learning the lambda
calculus.

00:01:38.950 --> 00:01:38.960 align:start position:0%
 
 

00:01:38.960 --> 00:01:41.870 align:start position:0%
 
But,<00:01:39.240><c> what</c><00:01:39.400><c> even</c><00:01:39.600><c> is</c><00:01:39.760><c> computation?</c>

00:01:41.870 --> 00:01:41.880 align:start position:0%
But, what even is computation?
 

00:01:41.880 --> 00:01:43.110 align:start position:0%
But, what even is computation?
David<00:01:42.120><c> Hilbert,</c><00:01:42.560><c> one</c><00:01:42.720><c> of</c><00:01:42.760><c> the</c><00:01:42.840><c> greatest</c>

00:01:43.110 --> 00:01:43.120 align:start position:0%
David Hilbert, one of the greatest
 

00:01:43.120 --> 00:01:45.190 align:start position:0%
David Hilbert, one of the greatest
mathematicians<00:01:43.720><c> of</c><00:01:43.760><c> the</c><00:01:43.840><c> 1900s,</c><00:01:44.880><c> wanted</c><00:01:45.120><c> to</c>

00:01:45.190 --> 00:01:45.200 align:start position:0%
mathematicians of the 1900s, wanted to
 

00:01:45.200 --> 00:01:46.830 align:start position:0%
mathematicians of the 1900s, wanted to
know<00:01:45.320><c> whether</c><00:01:45.560><c> there</c><00:01:45.680><c> was</c><00:01:45.840><c> some</c><00:01:46.080><c> procedure,</c>

00:01:46.830 --> 00:01:46.840 align:start position:0%
know whether there was some procedure,
 

00:01:46.840 --> 00:01:48.710 align:start position:0%
know whether there was some procedure,
some<00:01:47.080><c> algorithm,</c><00:01:48.000><c> which</c><00:01:48.200><c> can</c><00:01:48.320><c> determine</c>

00:01:48.710 --> 00:01:48.720 align:start position:0%
some algorithm, which can determine
 

00:01:48.720 --> 00:01:50.670 align:start position:0%
some algorithm, which can determine
whether<00:01:48.960><c> any</c><00:01:49.200><c> given</c><00:01:49.400><c> mathematical</c><00:01:49.960><c> statement</c>

00:01:50.670 --> 00:01:50.680 align:start position:0%
whether any given mathematical statement
 

00:01:50.680 --> 00:01:52.710 align:start position:0%
whether any given mathematical statement
is<00:01:50.840><c> true</c><00:01:51.280><c> or</c><00:01:51.480><c> false.</c>

00:01:52.710 --> 00:01:52.720 align:start position:0%
is true or false.
 

00:01:52.720 --> 00:01:53.990 align:start position:0%
is true or false.
Three<00:01:52.880><c> men</c><00:01:53.080><c> independently</c><00:01:53.600><c> answered</c><00:01:53.840><c> this</c>

00:01:53.990 --> 00:01:54.000 align:start position:0%
Three men independently answered this
 

00:01:54.000 --> 00:01:56.550 align:start position:0%
Three men independently answered this
question<00:01:54.400><c> in</c><00:01:54.480><c> different</c><00:01:54.800><c> ways.</c>

00:01:56.550 --> 00:01:56.560 align:start position:0%
question in different ways.
 

00:01:56.560 --> 00:01:58.150 align:start position:0%
question in different ways.
The<00:01:56.720><c> ideas</c><00:01:57.040><c> they</c><00:01:57.160><c> encountered</c><00:01:57.560><c> along</c><00:01:57.800><c> the</c>

00:01:58.150 --> 00:01:58.160 align:start position:0%
The ideas they encountered along the
 

00:01:58.160 --> 00:01:59.870 align:start position:0%
The ideas they encountered along the
were<00:01:58.320><c> so</c><00:01:58.560><c> groundbreaking</c><00:01:59.320><c> that</c><00:01:59.480><c> they</c><00:01:59.600><c> proved</c>

00:01:59.870 --> 00:01:59.880 align:start position:0%
were so groundbreaking that they proved
 

00:01:59.880 --> 00:02:02.030 align:start position:0%
were so groundbreaking that they proved
Hilbert's<00:02:00.240><c> task</c><00:02:00.520><c> impossible,</c>

00:02:02.030 --> 00:02:02.040 align:start position:0%
Hilbert's task impossible,
 

00:02:02.040 --> 00:02:03.670 align:start position:0%
Hilbert's task impossible,
spawned<00:02:02.440><c> two</c><00:02:02.560><c> of</c><00:02:02.640><c> the</c><00:02:02.720><c> paradigms</c><00:02:03.200><c> underlying</c>

00:02:03.670 --> 00:02:03.680 align:start position:0%
spawned two of the paradigms underlying
 

00:02:03.680 --> 00:02:05.830 align:start position:0%
spawned two of the paradigms underlying
modern<00:02:04.000><c> programming</c><00:02:04.479><c> languages,</c>

00:02:05.830 --> 00:02:05.840 align:start position:0%
modern programming languages,
 

00:02:05.840 --> 00:02:07.270 align:start position:0%
modern programming languages,
showed<00:02:06.040><c> that</c><00:02:06.200><c> mathematics</c><00:02:06.720><c> is</c><00:02:06.800><c> essentially</c>

00:02:07.270 --> 00:02:07.280 align:start position:0%
showed that mathematics is essentially
 

00:02:07.280 --> 00:02:09.510 align:start position:0%
showed that mathematics is essentially
incomplete,<00:02:08.280><c> and</c><00:02:08.479><c> spawned</c><00:02:08.759><c> the</c><00:02:08.880><c> entire</c><00:02:09.240><c> field</c>

00:02:09.510 --> 00:02:09.520 align:start position:0%
incomplete, and spawned the entire field
 

00:02:09.520 --> 00:02:12.550 align:start position:0%
incomplete, and spawned the entire field
of<00:02:09.600><c> computer</c><00:02:10.000><c> science.</c>

00:02:12.550 --> 00:02:12.560 align:start position:0%
of computer science.
 

00:02:12.560 --> 00:02:14.110 align:start position:0%
of computer science.
But,<00:02:12.800><c> Hilbert's</c><00:02:13.200><c> question</c><00:02:13.560><c> is</c><00:02:13.680><c> a</c><00:02:13.760><c> question</c>

00:02:14.110 --> 00:02:14.120 align:start position:0%
But, Hilbert's question is a question
 

00:02:14.120 --> 00:02:16.390 align:start position:0%
But, Hilbert's question is a question
about<00:02:14.400><c> procedures,</c><00:02:15.480><c> about</c><00:02:15.760><c> ways</c><00:02:16.000><c> of</c><00:02:16.120><c> doing</c>

00:02:16.390 --> 00:02:16.400 align:start position:0%
about procedures, about ways of doing
 

00:02:16.400 --> 00:02:18.550 align:start position:0%
about procedures, about ways of doing
computation.

00:02:18.550 --> 00:02:18.560 align:start position:0%
computation.
 

00:02:18.560 --> 00:02:20.190 align:start position:0%
computation.
We<00:02:18.640><c> won't</c><00:02:18.880><c> answer</c><00:02:19.120><c> his</c><00:02:19.240><c> question</c><00:02:19.600><c> explicitly</c>

00:02:20.190 --> 00:02:20.200 align:start position:0%
We won't answer his question explicitly
 

00:02:20.200 --> 00:02:21.390 align:start position:0%
We won't answer his question explicitly
here.

00:02:21.390 --> 00:02:21.400 align:start position:0%
here.
 

00:02:21.400 --> 00:02:23.230 align:start position:0%
here.
My<00:02:21.520><c> goal,</c><00:02:21.840><c> instead,</c><00:02:22.680><c> is</c><00:02:22.800><c> to</c><00:02:22.880><c> give</c><00:02:23.040><c> you</c><00:02:23.160><c> a</c>

00:02:23.230 --> 00:02:23.240 align:start position:0%
My goal, instead, is to give you a
 

00:02:23.240 --> 00:02:24.590 align:start position:0%
My goal, instead, is to give you a
visceral<00:02:23.760><c> understanding</c><00:02:24.360><c> of</c><00:02:24.480><c> how</c>

00:02:24.590 --> 00:02:24.600 align:start position:0%
visceral understanding of how
 

00:02:24.600 --> 00:02:27.230 align:start position:0%
visceral understanding of how
computation<00:02:25.240><c> itself</c><00:02:25.600><c> can</c><00:02:25.760><c> be</c><00:02:25.880><c> formalized.</c>

00:02:27.230 --> 00:02:27.240 align:start position:0%
computation itself can be formalized.
 

00:02:27.240 --> 00:02:28.949 align:start position:0%
computation itself can be formalized.
This<00:02:27.440><c> video</c><00:02:27.760><c> is</c><00:02:27.880><c> the</c><00:02:28.000><c> story</c><00:02:28.400><c> of</c><00:02:28.560><c> Alonzo</c>

00:02:28.949 --> 00:02:28.959 align:start position:0%
This video is the story of Alonzo
 

00:02:28.959 --> 00:02:31.150 align:start position:0%
This video is the story of Alonzo
Church's<00:02:29.360><c> answer.</c>

00:02:31.150 --> 00:02:31.160 align:start position:0%
Church's answer.
 

00:02:31.160 --> 00:02:33.190 align:start position:0%
Church's answer.
His<00:02:31.360><c> lambda</c><00:02:31.640><c> calculus,</c><00:02:32.320><c> to</c><00:02:32.440><c> be</c><00:02:32.520><c> clear,</c><00:02:33.040><c> had</c>

00:02:33.190 --> 00:02:33.200 align:start position:0%
His lambda calculus, to be clear, had
 

00:02:33.200 --> 00:02:34.590 align:start position:0%
His lambda calculus, to be clear, had
nothing<00:02:33.480><c> to</c><00:02:33.560><c> do</c><00:02:33.680><c> with</c><00:02:33.800><c> derivatives</c><00:02:34.480><c> or</c>

00:02:34.590 --> 00:02:34.600 align:start position:0%
nothing to do with derivatives or
 

00:02:34.600 --> 00:02:35.910 align:start position:0%
nothing to do with derivatives or
integrals<00:02:35.280><c> or</c><00:02:35.400><c> what</c><00:02:35.520><c> you</c><00:02:35.600><c> learned</c><00:02:35.840><c> in</c>

00:02:35.910 --> 00:02:35.920 align:start position:0%
integrals or what you learned in
 

00:02:35.920 --> 00:02:37.630 align:start position:0%
integrals or what you learned in
calculus<00:02:36.360><c> in</c><00:02:36.480><c> high</c><00:02:36.600><c> school.</c>

00:02:37.630 --> 00:02:37.640 align:start position:0%
calculus in high school.
 

00:02:37.640 --> 00:02:39.430 align:start position:0%
calculus in high school.
The<00:02:37.680><c> term</c><00:02:37.880><c> calculus,</c><00:02:38.520><c> up</c><00:02:38.680><c> until</c><00:02:38.920><c> recently,</c>

00:02:39.430 --> 00:02:39.440 align:start position:0%
The term calculus, up until recently,
 

00:02:39.440 --> 00:02:40.750 align:start position:0%
The term calculus, up until recently,
was<00:02:39.640><c> used</c><00:02:39.800><c> to</c><00:02:39.880><c> describe</c><00:02:40.280><c> all</c><00:02:40.400><c> sorts</c><00:02:40.680><c> of</c>

00:02:40.750 --> 00:02:40.760 align:start position:0%
was used to describe all sorts of
 

00:02:40.760 --> 00:02:43.030 align:start position:0%
was used to describe all sorts of
logical<00:02:41.160><c> systems.</c>

00:02:43.030 --> 00:02:43.040 align:start position:0%
logical systems.
 

00:02:43.040 --> 00:02:44.350 align:start position:0%
logical systems.
It<00:02:43.160><c> might</c><00:02:43.320><c> as</c><00:02:43.440><c> well</c><00:02:43.560><c> be</c><00:02:43.680><c> called</c><00:02:44.000><c> the</c><00:02:44.080><c> way</c><00:02:44.240><c> of</c>

00:02:44.350 --> 00:02:44.360 align:start position:0%
It might as well be called the way of
 

00:02:44.360 --> 00:02:45.630 align:start position:0%
It might as well be called the way of
the<00:02:44.480><c> lambda.</c>

00:02:45.630 --> 00:02:45.640 align:start position:0%
the lambda.
 

00:02:45.640 --> 00:02:47.110 align:start position:0%
the lambda.
It's<00:02:45.840><c> fundamentally</c><00:02:46.480><c> a</c><00:02:46.520><c> system</c><00:02:47.000><c> for</c>

00:02:47.110 --> 00:02:47.120 align:start position:0%
It's fundamentally a system for
 

00:02:47.120 --> 00:02:49.470 align:start position:0%
It's fundamentally a system for
manipulating<00:02:47.760><c> strings</c><00:02:48.120><c> of</c><00:02:48.240><c> symbols,</c><00:02:49.200><c> just</c>

00:02:49.470 --> 00:02:49.480 align:start position:0%
manipulating strings of symbols, just
 

00:02:49.480 --> 00:02:51.190 align:start position:0%
manipulating strings of symbols, just
like<00:02:49.640><c> algebra</c><00:02:50.040><c> teaches</c><00:02:50.360><c> us</c><00:02:50.520><c> to</c><00:02:50.640><c> manipulate</c>

00:02:51.190 --> 00:02:51.200 align:start position:0%
like algebra teaches us to manipulate
 

00:02:51.200 --> 00:02:54.870 align:start position:0%
like algebra teaches us to manipulate
numbers<00:02:51.680><c> and</c><00:02:51.840><c> pluses</c><00:02:52.320><c> and</c><00:02:52.440><c> equal</c><00:02:52.760><c> signs.</c>

00:02:54.870 --> 00:02:54.880 align:start position:0%
numbers and pluses and equal signs.
 

00:02:54.880 --> 00:02:56.470 align:start position:0%
numbers and pluses and equal signs.
In<00:02:55.040><c> the</c><00:02:55.120><c> lambda</c><00:02:55.360><c> calculus,</c><00:02:55.920><c> the</c><00:02:56.040><c> strings</c><00:02:56.320><c> look</c>

00:02:56.470 --> 00:02:56.480 align:start position:0%
In the lambda calculus, the strings look
 

00:02:56.480 --> 00:02:58.510 align:start position:0%
In the lambda calculus, the strings look
something<00:02:56.760><c> like</c><00:02:56.920><c> this.</c>

00:02:58.510 --> 00:02:58.520 align:start position:0%
something like this.
 

00:02:58.520 --> 00:03:01.470 align:start position:0%
something like this.
They're<00:02:58.640><c> composed</c><00:02:59.000><c> of</c><00:02:59.120><c> parentheses,</c>

00:03:01.470 --> 00:03:01.480 align:start position:0%
They're composed of parentheses,
 

00:03:01.480 --> 00:03:03.470 align:start position:0%
They're composed of parentheses,
letters<00:03:01.720><c> of</c><00:03:01.800><c> the</c><00:03:01.920><c> alphabet,</c>

00:03:03.470 --> 00:03:03.480 align:start position:0%
letters of the alphabet,
 

00:03:03.480 --> 00:03:05.310 align:start position:0%
letters of the alphabet,
and<00:03:03.560><c> this</c><00:03:03.720><c> notation</c><00:03:04.400><c> involving</c><00:03:04.760><c> a</c><00:03:04.840><c> lambda</c><00:03:05.200><c> and</c>

00:03:05.310 --> 00:03:05.320 align:start position:0%
and this notation involving a lambda and
 

00:03:05.320 --> 00:03:06.350 align:start position:0%
and this notation involving a lambda and
a<00:03:05.360><c> dot.</c>

00:03:06.350 --> 00:03:06.360 align:start position:0%
a dot.
 

00:03:06.360 --> 00:03:07.509 align:start position:0%
a dot.
Those<00:03:06.560><c> two</c><00:03:06.680><c> always</c><00:03:06.959><c> come</c><00:03:07.080><c> together</c><00:03:07.400><c> in</c><00:03:07.480><c> a</c>

00:03:07.509 --> 00:03:07.519 align:start position:0%
Those two always come together in a
 

00:03:07.519 --> 00:03:09.550 align:start position:0%
Those two always come together in a
pair.

00:03:09.550 --> 00:03:09.560 align:start position:0%
pair.
 

00:03:09.560 --> 00:03:11.310 align:start position:0%
pair.
We<00:03:09.640><c> can</c><00:03:09.800><c> build</c><00:03:10.040><c> these</c><00:03:10.239><c> strings</c><00:03:10.519><c> ourselves</c>

00:03:11.310 --> 00:03:11.320 align:start position:0%
We can build these strings ourselves
 

00:03:11.320 --> 00:03:13.110 align:start position:0%
We can build these strings ourselves
following<00:03:11.720><c> three</c><00:03:11.920><c> templates.</c>

00:03:13.110 --> 00:03:13.120 align:start position:0%
following three templates.
 

00:03:13.120 --> 00:03:14.750 align:start position:0%
following three templates.
The<00:03:13.239><c> blanks</c><00:03:13.600><c> are</c><00:03:13.680><c> places</c><00:03:14.120><c> where</c><00:03:14.239><c> you</c><00:03:14.360><c> can</c><00:03:14.480><c> put</c>

00:03:14.750 --> 00:03:14.760 align:start position:0%
The blanks are places where you can put
 

00:03:14.760 --> 00:03:17.030 align:start position:0%
The blanks are places where you can put
any<00:03:14.959><c> other</c><00:03:15.200><c> template,</c><00:03:16.160><c> and</c><00:03:16.280><c> the</c><00:03:16.480><c> A's</c><00:03:16.760><c> can</c><00:03:16.920><c> be</c>

00:03:17.030 --> 00:03:17.040 align:start position:0%
any other template, and the A's can be
 

00:03:17.040 --> 00:03:18.430 align:start position:0%
any other template, and the A's can be
substituted<00:03:17.640><c> for</c><00:03:17.800><c> any</c><00:03:18.000><c> letter</c><00:03:18.239><c> in</c><00:03:18.320><c> the</c>

00:03:18.430 --> 00:03:18.440 align:start position:0%
substituted for any letter in the
 

00:03:18.440 --> 00:03:19.550 align:start position:0%
substituted for any letter in the
alphabet.

00:03:19.550 --> 00:03:19.560 align:start position:0%
alphabet.
 

00:03:19.560 --> 00:03:21.190 align:start position:0%
alphabet.
As<00:03:19.680><c> an</c><00:03:19.800><c> example,</c><00:03:20.400><c> we</c><00:03:20.480><c> can</c><00:03:20.640><c> grab</c><00:03:20.840><c> the</c><00:03:20.920><c> third</c>

00:03:21.190 --> 00:03:21.200 align:start position:0%
As an example, we can grab the third
 

00:03:21.200 --> 00:03:22.830 align:start position:0%
As an example, we can grab the third
template,

00:03:22.830 --> 00:03:22.840 align:start position:0%
template,
 

00:03:22.840 --> 00:03:24.910 align:start position:0%
template,
take<00:03:22.959><c> a</c><00:03:23.000><c> variable</c><00:03:23.480><c> from</c><00:03:23.640><c> the</c><00:03:23.720><c> first</c><00:03:24.000><c> template,</c>

00:03:24.910 --> 00:03:24.920 align:start position:0%
take a variable from the first template,
 

00:03:24.920 --> 00:03:27.150 align:start position:0%
take a variable from the first template,
slap<00:03:25.200><c> it</c><00:03:25.320><c> in</c><00:03:25.400><c> one</c><00:03:25.519><c> of</c><00:03:25.600><c> the</c><00:03:25.680><c> blanks,</c>

00:03:27.150 --> 00:03:27.160 align:start position:0%
slap it in one of the blanks,
 

00:03:27.160 --> 00:03:29.070 align:start position:0%
slap it in one of the blanks,
take<00:03:27.320><c> template</c><00:03:27.680><c> two,</c><00:03:28.400><c> and</c><00:03:28.560><c> slap</c><00:03:28.800><c> it</c><00:03:28.880><c> in</c><00:03:28.959><c> the</c>

00:03:29.070 --> 00:03:29.080 align:start position:0%
take template two, and slap it in the
 

00:03:29.080 --> 00:03:30.509 align:start position:0%
take template two, and slap it in the
other.

00:03:30.509 --> 00:03:30.519 align:start position:0%
other.
 

00:03:30.519 --> 00:03:32.070 align:start position:0%
other.
There's<00:03:30.640><c> still</c><00:03:30.840><c> a</c><00:03:30.920><c> blank</c><00:03:31.200><c> left,</c><00:03:31.720><c> so</c><00:03:31.840><c> we</c><00:03:31.959><c> can</c>

00:03:32.070 --> 00:03:32.080 align:start position:0%
There's still a blank left, so we can
 

00:03:32.080 --> 00:03:33.710 align:start position:0%
There's still a blank left, so we can
put<00:03:32.239><c> another</c><00:03:32.480><c> variable</c><00:03:32.959><c> in,</c>

00:03:33.710 --> 00:03:33.720 align:start position:0%
put another variable in,
 

00:03:33.720 --> 00:03:35.470 align:start position:0%
put another variable in,
and<00:03:34.000><c> just</c><00:03:34.200><c> like</c><00:03:34.400><c> that,</c><00:03:34.800><c> we've</c><00:03:34.959><c> made</c><00:03:35.120><c> a</c><00:03:35.160><c> lambda</c>

00:03:35.470 --> 00:03:35.480 align:start position:0%
and just like that, we've made a lambda
 

00:03:35.480 --> 00:03:37.270 align:start position:0%
and just like that, we've made a lambda
expression.

00:03:37.270 --> 00:03:37.280 align:start position:0%
expression.
 

00:03:37.280 --> 00:03:38.750 align:start position:0%
expression.
Remember,<00:03:37.680><c> these</c><00:03:37.920><c> A's</c><00:03:38.080><c> can</c><00:03:38.239><c> be</c><00:03:38.360><c> changed</c><00:03:38.640><c> to</c>

00:03:38.750 --> 00:03:38.760 align:start position:0%
Remember, these A's can be changed to
 

00:03:38.760 --> 00:03:41.030 align:start position:0%
Remember, these A's can be changed to
any<00:03:38.959><c> letter</c><00:03:39.160><c> we</c><00:03:39.280><c> want.</c><00:03:40.239><c> Any</c><00:03:40.400><c> combination</c><00:03:40.959><c> of</c>

00:03:41.030 --> 00:03:41.040 align:start position:0%
any letter we want. Any combination of
 

00:03:41.040 --> 00:03:42.229 align:start position:0%
any letter we want. Any combination of
these<00:03:41.200><c> templates</c><00:03:41.680><c> forms</c><00:03:41.920><c> a</c><00:03:41.959><c> valid</c>

00:03:42.229 --> 00:03:42.239 align:start position:0%
these templates forms a valid
 

00:03:42.239 --> 00:03:43.509 align:start position:0%
these templates forms a valid
expression.

00:03:43.509 --> 00:03:43.519 align:start position:0%
expression.
 

00:03:43.519 --> 00:03:45.310 align:start position:0%
expression.
Using<00:03:43.760><c> them,</c><00:03:44.160><c> we</c><00:03:44.280><c> can</c><00:03:44.400><c> create</c><00:03:44.760><c> all</c><00:03:44.920><c> sorts</c><00:03:45.200><c> of</c>

00:03:45.310 --> 00:03:45.320 align:start position:0%
Using them, we can create all sorts of
 

00:03:45.320 --> 00:03:47.470 align:start position:0%
Using them, we can create all sorts of
different<00:03:45.640><c> lambda</c><00:03:45.920><c> terms.</c>

00:03:47.470 --> 00:03:47.480 align:start position:0%
different lambda terms.
 

00:03:47.480 --> 00:03:49.110 align:start position:0%
different lambda terms.
Even<00:03:47.720><c> a</c><00:03:47.760><c> variable</c><00:03:48.239><c> itself</c><00:03:48.680><c> is</c><00:03:48.800><c> a</c><00:03:48.840><c> valid</c>

00:03:49.110 --> 00:03:49.120 align:start position:0%
Even a variable itself is a valid
 

00:03:49.120 --> 00:03:51.310 align:start position:0%
Even a variable itself is a valid
expression.

00:03:51.310 --> 00:03:51.320 align:start position:0%
expression.
 

00:03:51.320 --> 00:03:53.190 align:start position:0%
expression.
Now,<00:03:51.640><c> one</c><00:03:51.840><c> thing</c><00:03:52.000><c> you</c><00:03:52.120><c> should</c><00:03:52.360><c> know,</c><00:03:52.960><c> these</c>

00:03:53.190 --> 00:03:53.200 align:start position:0%
Now, one thing you should know, these
 

00:03:53.200 --> 00:03:54.350 align:start position:0%
Now, one thing you should know, these
two<00:03:53.360><c> templates</c><00:03:53.760><c> have</c><00:03:54.000><c> special</c>

00:03:54.350 --> 00:03:54.360 align:start position:0%
two templates have special
 

00:03:54.360 --> 00:03:56.270 align:start position:0%
two templates have special
interpretations.<00:03:55.720><c> The</c><00:03:55.840><c> template</c><00:03:56.120><c> with</c><00:03:56.240><c> a</c>

00:03:56.270 --> 00:03:56.280 align:start position:0%
interpretations. The template with a
 

00:03:56.280 --> 00:03:58.230 align:start position:0%
interpretations. The template with a
lambda<00:03:56.640><c> and</c><00:03:56.760><c> a</c><00:03:56.800><c> dot</c><00:03:57.320><c> represents</c><00:03:57.760><c> a</c><00:03:57.800><c> function</c>

00:03:58.230 --> 00:03:58.240 align:start position:0%
lambda and a dot represents a function
 

00:03:58.240 --> 00:03:59.670 align:start position:0%
lambda and a dot represents a function
definition.

00:03:59.670 --> 00:03:59.680 align:start position:0%
definition.
 

00:03:59.680 --> 00:04:01.470 align:start position:0%
definition.
The<00:03:59.760><c> letter</c><00:03:59.960><c> that</c><00:04:00.120><c> we</c><00:04:00.240><c> put</c><00:04:00.440><c> in</c><00:04:00.880><c> is</c><00:04:01.040><c> the</c><00:04:01.120><c> name</c><00:04:01.360><c> of</c>

00:04:01.470 --> 00:04:01.480 align:start position:0%
The letter that we put in is the name of
 

00:04:01.480 --> 00:04:03.430 align:start position:0%
The letter that we put in is the name of
the<00:04:01.600><c> input,</c><00:04:02.320><c> and</c><00:04:02.440><c> the</c><00:04:02.520><c> blank</c><00:04:02.920><c> represents</c><00:04:03.320><c> the</c>

00:04:03.430 --> 00:04:03.440 align:start position:0%
the input, and the blank represents the
 

00:04:03.440 --> 00:04:06.590 align:start position:0%
the input, and the blank represents the
return<00:04:03.840><c> statement</c><00:04:04.280><c> of</c><00:04:04.360><c> the</c><00:04:04.480><c> function.</c>

00:04:06.590 --> 00:04:06.600 align:start position:0%
return statement of the function.
 

00:04:06.600 --> 00:04:08.390 align:start position:0%
return statement of the function.
The<00:04:06.800><c> third</c><00:04:07.080><c> template</c><00:04:07.560><c> involves</c><00:04:07.880><c> applying</c>

00:04:08.390 --> 00:04:08.400 align:start position:0%
The third template involves applying
 

00:04:08.400 --> 00:04:09.990 align:start position:0%
The third template involves applying
such<00:04:08.640><c> functions.</c>

00:04:09.990 --> 00:04:10.000 align:start position:0%
such functions.
 

00:04:10.000 --> 00:04:11.670 align:start position:0%
such functions.
In<00:04:10.080><c> this</c><00:04:10.240><c> case,</c><00:04:10.760><c> we're</c><00:04:10.920><c> suggesting</c><00:04:11.440><c> the</c><00:04:11.520><c> thing</c>

00:04:11.670 --> 00:04:11.680 align:start position:0%
In this case, we're suggesting the thing
 

00:04:11.680 --> 00:04:13.949 align:start position:0%
In this case, we're suggesting the thing
on<00:04:11.760><c> the</c><00:04:11.840><c> left,</c><00:04:12.400><c> A,</c><00:04:12.920><c> is</c><00:04:13.040><c> going</c><00:04:13.160><c> to</c><00:04:13.240><c> be</c><00:04:13.400><c> used</c><00:04:13.800><c> as</c><00:04:13.920><c> a</c>

00:04:13.949 --> 00:04:13.959 align:start position:0%
on the left, A, is going to be used as a
 

00:04:13.959 --> 00:04:17.150 align:start position:0%
on the left, A, is going to be used as a
function<00:04:14.880><c> which</c><00:04:15.080><c> takes</c><00:04:15.360><c> in</c><00:04:15.560><c> B.</c>

00:04:17.150 --> 00:04:17.160 align:start position:0%
function which takes in B.
 

00:04:17.160 --> 00:04:18.590 align:start position:0%
function which takes in B.
That's<00:04:17.320><c> all</c><00:04:17.440><c> we</c><00:04:17.560><c> need</c><00:04:17.799><c> to</c><00:04:17.920><c> generate</c><00:04:18.320><c> lambda</c>

00:04:18.590 --> 00:04:18.600 align:start position:0%
That's all we need to generate lambda
 

00:04:18.600 --> 00:04:22.870 align:start position:0%
That's all we need to generate lambda
expressions.

00:04:22.870 --> 00:04:22.880 align:start position:0%
 
 

00:04:22.880 --> 00:04:24.230 align:start position:0%
 
We'll<00:04:22.960><c> try</c><00:04:23.120><c> evaluating</c><00:04:23.640><c> these</c><00:04:23.760><c> expressions</c>

00:04:24.230 --> 00:04:24.240 align:start position:0%
We'll try evaluating these expressions
 

00:04:24.240 --> 00:04:25.990 align:start position:0%
We'll try evaluating these expressions
in<00:04:24.320><c> a</c><00:04:24.360><c> sec,</c><00:04:24.760><c> but</c><00:04:25.000><c> first</c><00:04:25.240><c> let's</c><00:04:25.440><c> visualize</c>

00:04:25.990 --> 00:04:26.000 align:start position:0%
in a sec, but first let's visualize
 

00:04:26.000 --> 00:04:26.990 align:start position:0%
in a sec, but first let's visualize
them.

00:04:26.990 --> 00:04:27.000 align:start position:0%
them.
 

00:04:27.000 --> 00:04:28.790 align:start position:0%
them.
There's<00:04:27.080><c> a</c><00:04:27.120><c> ton</c><00:04:27.320><c> of</c><00:04:27.400><c> styles,</c><00:04:28.240><c> but</c><00:04:28.400><c> the</c><00:04:28.520><c> one</c><00:04:28.680><c> I</c>

00:04:28.790 --> 00:04:28.800 align:start position:0%
There's a ton of styles, but the one I
 

00:04:28.800 --> 00:04:31.350 align:start position:0%
There's a ton of styles, but the one I
chose<00:04:29.120><c> is</c><00:04:29.240><c> John</c><00:04:29.480><c> Trump's</c><00:04:29.800><c> lambda</c><00:04:30.080><c> diagrams.</c>

00:04:31.350 --> 00:04:31.360 align:start position:0%
chose is John Trump's lambda diagrams.
 

00:04:31.360 --> 00:04:33.350 align:start position:0%
chose is John Trump's lambda diagrams.
After<00:04:31.680><c> all,</c><00:04:31.919><c> I'm</c><00:04:32.040><c> biased.</c><00:04:32.800><c> He</c><00:04:32.919><c> was</c><00:04:33.040><c> the</c><00:04:33.120><c> first</c>

00:04:33.350 --> 00:04:33.360 align:start position:0%
After all, I'm biased. He was the first
 

00:04:33.360 --> 00:04:36.110 align:start position:0%
After all, I'm biased. He was the first
person<00:04:33.600><c> to</c><00:04:33.720><c> strongly</c><00:04:34.080><c> solve</c><00:04:34.280><c> Connect</c><00:04:34.600><c> Four.</c>

00:04:36.110 --> 00:04:36.120 align:start position:0%
person to strongly solve Connect Four.
 

00:04:36.120 --> 00:04:37.710 align:start position:0%
person to strongly solve Connect Four.
Each<00:04:36.280><c> of</c><00:04:36.360><c> our</c><00:04:36.480><c> three</c><00:04:36.680><c> templates</c><00:04:37.280><c> is</c><00:04:37.400><c> part</c><00:04:37.600><c> of</c><00:04:37.680><c> a</c>

00:04:37.710 --> 00:04:37.720 align:start position:0%
Each of our three templates is part of a
 

00:04:37.720 --> 00:04:40.350 align:start position:0%
Each of our three templates is part of a
different<00:04:38.120><c> shape</c><00:04:38.400><c> in</c><00:04:38.520><c> a</c><00:04:38.560><c> lambda</c><00:04:38.880><c> diagram.</c>

00:04:40.350 --> 00:04:40.360 align:start position:0%
different shape in a lambda diagram.
 

00:04:40.360 --> 00:04:41.950 align:start position:0%
different shape in a lambda diagram.
Variables<00:04:40.800><c> from</c><00:04:40.960><c> the</c><00:04:41.040><c> first</c><00:04:41.320><c> template</c><00:04:41.880><c> are</c>

00:04:41.950 --> 00:04:41.960 align:start position:0%
Variables from the first template are
 

00:04:41.960 --> 00:04:44.350 align:start position:0%
Variables from the first template are
these<00:04:42.200><c> vertical</c><00:04:42.640><c> lines.</c>

00:04:44.350 --> 00:04:44.360 align:start position:0%
these vertical lines.
 

00:04:44.360 --> 00:04:46.630 align:start position:0%
these vertical lines.
Lambda<00:04:44.640><c> abstractions,</c><00:04:45.640><c> or</c><00:04:45.760><c> template</c><00:04:46.120><c> two,</c>

00:04:46.630 --> 00:04:46.640 align:start position:0%
Lambda abstractions, or template two,
 

00:04:46.640 --> 00:04:50.030 align:start position:0%
Lambda abstractions, or template two,
are<00:04:46.760><c> the</c><00:04:46.840><c> horizontal</c><00:04:47.360><c> bars</c><00:04:47.640><c> at</c><00:04:47.720><c> the</c><00:04:47.840><c> top.</c>

00:04:50.030 --> 00:04:50.040 align:start position:0%
are the horizontal bars at the top.
 

00:04:50.040 --> 00:04:51.510 align:start position:0%
are the horizontal bars at the top.
This<00:04:50.200><c> branching</c><00:04:50.640><c> structure</c><00:04:51.040><c> at</c><00:04:51.120><c> the</c><00:04:51.200><c> bottom</c>

00:04:51.510 --> 00:04:51.520 align:start position:0%
This branching structure at the bottom
 

00:04:51.520 --> 00:04:53.430 align:start position:0%
This branching structure at the bottom
is<00:04:51.680><c> template</c><00:04:52.000><c> three,</c><00:04:52.600><c> representing</c><00:04:53.120><c> function</c>

00:04:53.430 --> 00:04:53.440 align:start position:0%
is template three, representing function
 

00:04:53.440 --> 00:04:56.070 align:start position:0%
is template three, representing function
application.

00:04:56.070 --> 00:04:56.080 align:start position:0%
application.
 

00:04:56.080 --> 00:04:57.550 align:start position:0%
application.
Notice<00:04:56.360><c> that</c><00:04:56.480><c> there's</c><00:04:56.760><c> eight</c><00:04:56.919><c> vertical</c><00:04:57.280><c> lines</c>

00:04:57.550 --> 00:04:57.560 align:start position:0%
Notice that there's eight vertical lines
 

00:04:57.560 --> 00:04:59.390 align:start position:0%
Notice that there's eight vertical lines
here,<00:04:58.000><c> just</c><00:04:58.200><c> how</c><00:04:58.280><c> the</c><00:04:58.400><c> expression</c><00:04:58.840><c> itself</c><00:04:59.240><c> has</c>

00:04:59.390 --> 00:04:59.400 align:start position:0%
here, just how the expression itself has
 

00:04:59.400 --> 00:05:01.430 align:start position:0%
here, just how the expression itself has
eight<00:04:59.520><c> variables.</c>

00:05:01.430 --> 00:05:01.440 align:start position:0%
eight variables.
 

00:05:01.440 --> 00:05:03.070 align:start position:0%
eight variables.
These<00:05:01.680><c> correspond</c><00:05:02.280><c> one-to-one,</c>

00:05:03.070 --> 00:05:03.080 align:start position:0%
These correspond one-to-one,
 

00:05:03.080 --> 00:05:04.710 align:start position:0%
These correspond one-to-one,
left-to-right.

00:05:04.710 --> 00:05:04.720 align:start position:0%
left-to-right.
 

00:05:04.720 --> 00:05:06.070 align:start position:0%
left-to-right.
Note<00:05:04.919><c> how</c><00:05:05.040><c> they</c><00:05:05.160><c> collide</c><00:05:05.640><c> into</c><00:05:05.800><c> different</c>

00:05:06.070 --> 00:05:06.080 align:start position:0%
Note how they collide into different
 

00:05:06.080 --> 00:05:08.390 align:start position:0%
Note how they collide into different
horizontal<00:05:06.600><c> abstraction</c><00:05:07.120><c> bars.</c>

00:05:08.390 --> 00:05:08.400 align:start position:0%
horizontal abstraction bars.
 

00:05:08.400 --> 00:05:10.350 align:start position:0%
horizontal abstraction bars.
Those<00:05:08.600><c> horizontal</c><00:05:09.120><c> bars,</c><00:05:09.680><c> corresponding</c><00:05:10.280><c> to</c>

00:05:10.350 --> 00:05:10.360 align:start position:0%
Those horizontal bars, corresponding to
 

00:05:10.360 --> 00:05:12.710 align:start position:0%
Those horizontal bars, corresponding to
template<00:05:10.760><c> two,</c><00:05:11.480><c> are</c><00:05:11.600><c> associated</c><00:05:12.280><c> each</c><00:05:12.560><c> with</c>

00:05:12.710 --> 00:05:12.720 align:start position:0%
template two, are associated each with
 

00:05:12.720 --> 00:05:14.909 align:start position:0%
template two, are associated each with
one<00:05:12.840><c> of</c><00:05:12.919><c> the</c><00:05:13.040><c> lambda</c><00:05:13.360><c> dot</c><00:05:13.640><c> pairs.</c>

00:05:14.909 --> 00:05:14.919 align:start position:0%
one of the lambda dot pairs.
 

00:05:14.919 --> 00:05:16.590 align:start position:0%
one of the lambda dot pairs.
Variables<00:05:15.400><c> touch</c><00:05:15.680><c> the</c><00:05:15.800><c> bars</c><00:05:16.080><c> which</c><00:05:16.280><c> bind</c>

00:05:16.590 --> 00:05:16.600 align:start position:0%
Variables touch the bars which bind
 

00:05:16.600 --> 00:05:17.670 align:start position:0%
Variables touch the bars which bind
them.

00:05:17.670 --> 00:05:17.680 align:start position:0%
them.
 

00:05:17.680 --> 00:05:19.150 align:start position:0%
them.
The<00:05:17.840><c> X's</c><00:05:18.360><c> connect</c><00:05:18.680><c> to</c><00:05:18.760><c> the</c><00:05:18.880><c> lambda</c>

00:05:19.150 --> 00:05:19.160 align:start position:0%
The X's connect to the lambda
 

00:05:19.160 --> 00:05:22.710 align:start position:0%
The X's connect to the lambda
abstraction<00:05:19.960><c> which</c><00:05:20.160><c> binds</c><00:05:20.520><c> the</c><00:05:20.600><c> variable</c><00:05:21.080><c> X.</c>

00:05:22.710 --> 00:05:22.720 align:start position:0%
abstraction which binds the variable X.
 

00:05:22.720 --> 00:05:26.110 align:start position:0%
abstraction which binds the variable X.
And<00:05:22.840><c> the</c><00:05:22.919><c> Y's</c><00:05:23.280><c> touch</c><00:05:23.520><c> the</c><00:05:23.600><c> bar</c><00:05:23.760><c> which</c><00:05:23.919><c> binds</c><00:05:24.200><c> Y.</c>

00:05:26.110 --> 00:05:26.120 align:start position:0%
And the Y's touch the bar which binds Y.
 

00:05:26.120 --> 00:05:27.310 align:start position:0%
And the Y's touch the bar which binds Y.
Template<00:05:26.440><c> three,</c><00:05:26.880><c> for</c><00:05:27.000><c> function</c>

00:05:27.310 --> 00:05:27.320 align:start position:0%
Template three, for function
 

00:05:27.320 --> 00:05:29.270 align:start position:0%
Template three, for function
application,<00:05:28.240><c> has</c><00:05:28.440><c> two</c><00:05:28.600><c> sub-expressions</c>

00:05:29.270 --> 00:05:29.280 align:start position:0%
application, has two sub-expressions
 

00:05:29.280 --> 00:05:31.430 align:start position:0%
application, has two sub-expressions
corresponding<00:05:29.919><c> to</c><00:05:30.000><c> the</c><00:05:30.120><c> two</c><00:05:30.280><c> blanks.</c>

00:05:31.430 --> 00:05:31.440 align:start position:0%
corresponding to the two blanks.
 

00:05:31.440 --> 00:05:33.310 align:start position:0%
corresponding to the two blanks.
This<00:05:31.600><c> lambda</c><00:05:31.880><c> expression</c><00:05:32.440><c> as</c><00:05:32.600><c> a</c><00:05:32.680><c> whole</c><00:05:33.040><c> has</c><00:05:33.200><c> an</c>

00:05:33.310 --> 00:05:33.320 align:start position:0%
This lambda expression as a whole has an
 

00:05:33.320 --> 00:05:35.470 align:start position:0%
This lambda expression as a whole has an
application<00:05:33.880><c> surrounding</c><00:05:34.360><c> everything.</c>

00:05:35.470 --> 00:05:35.480 align:start position:0%
application surrounding everything.
 

00:05:35.480 --> 00:05:37.790 align:start position:0%
application surrounding everything.
It's<00:05:35.640><c> shown</c><00:05:35.840><c> in</c><00:05:36.000><c> white.</c>

00:05:37.790 --> 00:05:37.800 align:start position:0%
It's shown in white.
 

00:05:37.800 --> 00:05:39.150 align:start position:0%
It's shown in white.
The<00:05:37.880><c> lambda</c><00:05:38.160><c> diagram</c><00:05:38.640><c> for</c><00:05:38.800><c> each</c><00:05:38.960><c> of</c><00:05:39.040><c> the</c>

00:05:39.150 --> 00:05:39.160 align:start position:0%
The lambda diagram for each of the
 

00:05:39.160 --> 00:05:41.830 align:start position:0%
The lambda diagram for each of the
sub-expressions<00:05:40.520><c> is</c><00:05:40.680><c> drawn</c><00:05:40.919><c> on</c><00:05:41.000><c> the</c><00:05:41.080><c> left</c><00:05:41.600><c> and</c>

00:05:41.830 --> 00:05:41.840 align:start position:0%
sub-expressions is drawn on the left and
 

00:05:41.840 --> 00:05:45.510 align:start position:0%
sub-expressions is drawn on the left and
right<00:05:42.120><c> branch</c><00:05:42.560><c> of</c><00:05:42.680><c> the</c><00:05:42.800><c> application.</c>

00:05:45.510 --> 00:05:45.520 align:start position:0%
right branch of the application.
 

00:05:45.520 --> 00:05:46.870 align:start position:0%
right branch of the application.
Don't<00:05:45.720><c> worry</c><00:05:45.919><c> too</c><00:05:46.080><c> much</c><00:05:46.280><c> about</c><00:05:46.520><c> trying</c><00:05:46.760><c> to</c>

00:05:46.870 --> 00:05:46.880 align:start position:0%
Don't worry too much about trying to
 

00:05:46.880 --> 00:05:48.590 align:start position:0%
Don't worry too much about trying to
read<00:05:47.080><c> these.</c><00:05:47.640><c> It's</c><00:05:47.840><c> the</c><00:05:47.960><c> kind</c><00:05:48.120><c> of</c><00:05:48.240><c> skill</c><00:05:48.480><c> you</c>

00:05:48.590 --> 00:05:48.600 align:start position:0%
read these. It's the kind of skill you
 

00:05:48.600 --> 00:05:50.590 align:start position:0%
read these. It's the kind of skill you
have<00:05:48.760><c> to</c><00:05:48.840><c> practice</c><00:05:49.280><c> for</c><00:05:49.400><c> a</c><00:05:49.440><c> while.</c>

00:05:50.590 --> 00:05:50.600 align:start position:0%
have to practice for a while.
 

00:05:50.600 --> 00:05:52.150 align:start position:0%
have to practice for a while.
I'll<00:05:50.720><c> color</c><00:05:50.960><c> in</c><00:05:51.080><c> subcomponents</c><00:05:51.840><c> so</c><00:05:51.960><c> you</c><00:05:52.040><c> can</c>

00:05:52.150 --> 00:05:52.160 align:start position:0%
I'll color in subcomponents so you can
 

00:05:52.160 --> 00:05:57.030 align:start position:0%
I'll color in subcomponents so you can
tell<00:05:52.320><c> what's</c><00:05:52.480><c> going</c><00:05:52.760><c> on.</c>

00:05:57.030 --> 00:05:57.040 align:start position:0%
 
 

00:05:57.040 --> 00:05:58.110 align:start position:0%
 
I've<00:05:57.120><c> mentioned</c><00:05:57.400><c> that</c><00:05:57.480><c> these</c><00:05:57.640><c> expressions</c>

00:05:58.110 --> 00:05:58.120 align:start position:0%
I've mentioned that these expressions
 

00:05:58.120 --> 00:06:00.030 align:start position:0%
I've mentioned that these expressions
can<00:05:58.240><c> be</c><00:05:58.360><c> evaluated.</c><00:05:59.600><c> But</c><00:05:59.720><c> what</c><00:05:59.840><c> does</c><00:05:59.920><c> that</c>

00:06:00.030 --> 00:06:00.040 align:start position:0%
can be evaluated. But what does that
 

00:06:00.040 --> 00:06:01.270 align:start position:0%
can be evaluated. But what does that
even<00:06:00.200><c> mean?</c>

00:06:01.270 --> 00:06:01.280 align:start position:0%
even mean?
 

00:06:01.280 --> 00:06:02.470 align:start position:0%
even mean?
Remember<00:06:01.560><c> that</c><00:06:01.720><c> template</c><00:06:02.040><c> two</c><00:06:02.240><c> can</c><00:06:02.400><c> be</c>

00:06:02.470 --> 00:06:02.480 align:start position:0%
Remember that template two can be
 

00:06:02.480 --> 00:06:04.390 align:start position:0%
Remember that template two can be
interpreted<00:06:02.920><c> as</c><00:06:03.040><c> a</c><00:06:03.120><c> function.</c>

00:06:04.390 --> 00:06:04.400 align:start position:0%
interpreted as a function.
 

00:06:04.400 --> 00:06:06.070 align:start position:0%
interpreted as a function.
And<00:06:04.520><c> template</c><00:06:04.840><c> three</c><00:06:05.120><c> can</c><00:06:05.280><c> be</c><00:06:05.400><c> interpreted</c><00:06:05.960><c> as</c>

00:06:06.070 --> 00:06:06.080 align:start position:0%
And template three can be interpreted as
 

00:06:06.080 --> 00:06:08.950 align:start position:0%
And template three can be interpreted as
applying<00:06:06.480><c> a</c><00:06:06.560><c> value</c><00:06:06.960><c> to</c><00:06:07.120><c> a</c><00:06:07.160><c> function.</c>

00:06:08.950 --> 00:06:08.960 align:start position:0%
applying a value to a function.
 

00:06:08.960 --> 00:06:10.750 align:start position:0%
applying a value to a function.
We<00:06:09.080><c> want</c><00:06:09.240><c> to</c><00:06:09.320><c> create</c><00:06:09.920><c> a</c><00:06:10.000><c> strategy</c><00:06:10.560><c> for</c>

00:06:10.750 --> 00:06:10.760 align:start position:0%
We want to create a strategy for
 

00:06:10.760 --> 00:06:12.390 align:start position:0%
We want to create a strategy for
evaluation<00:06:11.480><c> that</c><00:06:11.680><c> combines</c><00:06:12.200><c> these</c>

00:06:12.390 --> 00:06:12.400 align:start position:0%
evaluation that combines these
 

00:06:12.400 --> 00:06:14.070 align:start position:0%
evaluation that combines these
interpretations.

00:06:14.070 --> 00:06:14.080 align:start position:0%
interpretations.
 

00:06:14.080 --> 00:06:15.790 align:start position:0%
interpretations.
First,<00:06:14.640><c> let's</c><00:06:14.800><c> make</c><00:06:15.040><c> a</c><00:06:15.040><c> function</c><00:06:15.400><c> by</c><00:06:15.560><c> using</c>

00:06:15.790 --> 00:06:15.800 align:start position:0%
First, let's make a function by using
 

00:06:15.800 --> 00:06:17.190 align:start position:0%
First, let's make a function by using
template<00:06:16.160><c> two.</c>

00:06:17.190 --> 00:06:17.200 align:start position:0%
template two.
 

00:06:17.200 --> 00:06:20.110 align:start position:0%
template two.
This<00:06:17.360><c> function</c><00:06:17.680><c> is</c><00:06:17.800><c> pretty</c><00:06:18.000><c> simple.</c>

00:06:20.110 --> 00:06:20.120 align:start position:0%
This function is pretty simple.
 

00:06:20.120 --> 00:06:22.750 align:start position:0%
This function is pretty simple.
It<00:06:20.200><c> just</c><00:06:20.400><c> takes</c><00:06:20.640><c> a</c><00:06:20.680><c> value</c><00:06:21.040><c> X</c><00:06:21.400><c> in</c>

00:06:22.750 --> 00:06:22.760 align:start position:0%
It just takes a value X in
 

00:06:22.760 --> 00:06:25.070 align:start position:0%
It just takes a value X in
and<00:06:22.880><c> applies</c><00:06:23.400><c> X</c><00:06:23.720><c> to</c><00:06:23.840><c> B.</c>

00:06:25.070 --> 00:06:25.080 align:start position:0%
and applies X to B.
 

00:06:25.080 --> 00:06:26.510 align:start position:0%
and applies X to B.
We'll<00:06:25.200><c> place</c><00:06:25.440><c> that</c><00:06:25.640><c> function</c><00:06:26.080><c> in</c><00:06:26.200><c> the</c><00:06:26.280><c> spot</c>

00:06:26.510 --> 00:06:26.520 align:start position:0%
We'll place that function in the spot
 

00:06:26.520 --> 00:06:27.870 align:start position:0%
We'll place that function in the spot
where<00:06:26.640><c> the</c><00:06:26.720><c> function</c><00:06:27.120><c> goes</c><00:06:27.440><c> in</c><00:06:27.520><c> template</c>

00:06:27.870 --> 00:06:27.880 align:start position:0%
where the function goes in template
 

00:06:27.880 --> 00:06:29.070 align:start position:0%
where the function goes in template
three.

00:06:29.070 --> 00:06:29.080 align:start position:0%
three.
 

00:06:29.080 --> 00:06:30.830 align:start position:0%
three.
We'll<00:06:29.200><c> make</c><00:06:29.400><c> our</c><00:06:29.520><c> value</c><00:06:29.919><c> just</c><00:06:30.160><c> be</c><00:06:30.280><c> some</c><00:06:30.520><c> random</c>

00:06:30.830 --> 00:06:30.840 align:start position:0%
We'll make our value just be some random
 

00:06:30.840 --> 00:06:32.710 align:start position:0%
We'll make our value just be some random
expression.

00:06:32.710 --> 00:06:32.720 align:start position:0%
expression.
 

00:06:32.720 --> 00:06:33.790 align:start position:0%
expression.
Now,<00:06:33.000><c> we're</c><00:06:33.160><c> going</c><00:06:33.280><c> to</c><00:06:33.360><c> perform</c><00:06:33.680><c> what's</c>

00:06:33.790 --> 00:06:33.800 align:start position:0%
Now, we're going to perform what's
 

00:06:33.800 --> 00:06:35.990 align:start position:0%
Now, we're going to perform what's
called<00:06:34.040><c> beta</c><00:06:34.240><c> reduction.</c><00:06:35.400><c> We</c><00:06:35.480><c> first</c><00:06:35.800><c> note</c>

00:06:35.990 --> 00:06:36.000 align:start position:0%
called beta reduction. We first note
 

00:06:36.000 --> 00:06:37.710 align:start position:0%
called beta reduction. We first note
that<00:06:36.320><c> X</c><00:06:36.560><c> is</c><00:06:36.680><c> the</c><00:06:36.800><c> variable</c><00:06:37.240><c> bound</c><00:06:37.480><c> by</c><00:06:37.600><c> the</c>

00:06:37.710 --> 00:06:37.720 align:start position:0%
that X is the variable bound by the
 

00:06:37.720 --> 00:06:38.790 align:start position:0%
that X is the variable bound by the
lambda.

00:06:38.790 --> 00:06:38.800 align:start position:0%
lambda.
 

00:06:38.800 --> 00:06:40.909 align:start position:0%
lambda.
Since<00:06:39.000><c> the</c><00:06:39.120><c> function</c><00:06:39.440><c> binds</c><00:06:39.720><c> X,</c><00:06:40.480><c> we</c><00:06:40.600><c> first</c>

00:06:40.909 --> 00:06:40.919 align:start position:0%
Since the function binds X, we first
 

00:06:40.919 --> 00:06:42.630 align:start position:0%
Since the function binds X, we first
find<00:06:41.200><c> all</c><00:06:41.480><c> X's</c><00:06:41.960><c> in</c><00:06:42.080><c> the</c><00:06:42.160><c> body</c><00:06:42.440><c> of</c><00:06:42.520><c> the</c>

00:06:42.630 --> 00:06:42.640 align:start position:0%
find all X's in the body of the
 

00:06:42.640 --> 00:06:43.990 align:start position:0%
find all X's in the body of the
function.

00:06:43.990 --> 00:06:44.000 align:start position:0%
function.
 

00:06:44.000 --> 00:06:46.510 align:start position:0%
function.
In<00:06:44.080><c> our</c><00:06:44.240><c> case,</c><00:06:44.640><c> there's</c><00:06:44.840><c> just</c><00:06:45.080><c> this</c><00:06:45.280><c> one.</c>

00:06:46.510 --> 00:06:46.520 align:start position:0%
In our case, there's just this one.
 

00:06:46.520 --> 00:06:48.070 align:start position:0%
In our case, there's just this one.
Now,<00:06:46.960><c> you</c><00:06:47.040><c> discard</c><00:06:47.440><c> everything</c><00:06:47.840><c> but</c><00:06:47.960><c> the</c>

00:06:48.070 --> 00:06:48.080 align:start position:0%
Now, you discard everything but the
 

00:06:48.080 --> 00:06:49.950 align:start position:0%
Now, you discard everything but the
function<00:06:48.400><c> body</c><00:06:48.640><c> itself</c><00:06:49.360><c> and</c><00:06:49.480><c> the</c><00:06:49.560><c> value</c><00:06:49.840><c> we're</c>

00:06:49.950 --> 00:06:49.960 align:start position:0%
function body itself and the value we're
 

00:06:49.960 --> 00:06:51.470 align:start position:0%
function body itself and the value we're
plugging<00:06:50.320><c> in.</c>

00:06:51.470 --> 00:06:51.480 align:start position:0%
plugging in.
 

00:06:51.480 --> 00:06:53.430 align:start position:0%
plugging in.
Now,<00:06:51.640><c> we</c><00:06:51.800><c> take</c><00:06:52.040><c> our</c><00:06:52.160><c> value</c>

00:06:53.430 --> 00:06:53.440 align:start position:0%
Now, we take our value
 

00:06:53.440 --> 00:06:55.190 align:start position:0%
Now, we take our value
and<00:06:53.560><c> replace</c><00:06:53.960><c> every</c><00:06:54.200><c> instance</c><00:06:54.560><c> of</c><00:06:54.680><c> X</c><00:06:55.040><c> with</c>

00:06:55.190 --> 00:06:55.200 align:start position:0%
and replace every instance of X with
 

00:06:55.200 --> 00:06:56.870 align:start position:0%
and replace every instance of X with
that<00:06:55.440><c> value.</c>

00:06:56.870 --> 00:06:56.880 align:start position:0%
that value.
 

00:06:56.880 --> 00:06:57.790 align:start position:0%
that value.
And<00:06:57.040><c> we're</c><00:06:57.120><c> left</c><00:06:57.320><c> with</c><00:06:57.440><c> a</c><00:06:57.480><c> reduced</c>

00:06:57.790 --> 00:06:57.800 align:start position:0%
And we're left with a reduced
 

00:06:57.800 --> 00:06:59.870 align:start position:0%
And we're left with a reduced
expression.

00:06:59.870 --> 00:06:59.880 align:start position:0%
expression.
 

00:06:59.880 --> 00:07:01.750 align:start position:0%
expression.
Okay,<00:07:00.120><c> let's</c><00:07:00.320><c> try</c><00:07:00.440><c> a</c><00:07:00.480><c> slightly</c><00:07:00.800><c> trickier</c><00:07:01.160><c> one.</c>

00:07:01.750 --> 00:07:01.760 align:start position:0%
Okay, let's try a slightly trickier one.
 

00:07:01.760 --> 00:07:04.070 align:start position:0%
Okay, let's try a slightly trickier one.
To<00:07:01.840><c> make</c><00:07:02.000><c> it</c><00:07:02.120><c> clear,</c><00:07:02.919><c> this</c><00:07:03.120><c> is</c><00:07:03.240><c> the</c><00:07:03.360><c> function</c>

00:07:04.070 --> 00:07:04.080 align:start position:0%
To make it clear, this is the function
 

00:07:04.080 --> 00:07:05.830 align:start position:0%
To make it clear, this is the function
and<00:07:04.200><c> this</c><00:07:04.360><c> is</c><00:07:04.480><c> the</c><00:07:04.560><c> value.</c>

00:07:05.830 --> 00:07:05.840 align:start position:0%
and this is the value.
 

00:07:05.840 --> 00:07:08.030 align:start position:0%
and this is the value.
Same<00:07:06.040><c> as</c><00:07:06.160><c> before,</c><00:07:07.000><c> X</c><00:07:07.240><c> is</c><00:07:07.360><c> the</c><00:07:07.440><c> variable</c><00:07:07.840><c> bound</c>

00:07:08.030 --> 00:07:08.040 align:start position:0%
Same as before, X is the variable bound
 

00:07:08.040 --> 00:07:10.070 align:start position:0%
Same as before, X is the variable bound
by<00:07:08.160><c> the</c><00:07:08.280><c> lambda.</c><00:07:09.200><c> So,</c><00:07:09.360><c> we</c><00:07:09.480><c> highlight</c><00:07:09.840><c> all</c><00:07:09.960><c> the</c>

00:07:10.070 --> 00:07:10.080 align:start position:0%
by the lambda. So, we highlight all the
 

00:07:10.080 --> 00:07:11.550 align:start position:0%
by the lambda. So, we highlight all the
instances<00:07:10.560><c> of</c><00:07:10.680><c> X</c><00:07:10.960><c> in</c><00:07:11.080><c> the</c><00:07:11.160><c> body</c><00:07:11.360><c> of</c><00:07:11.440><c> the</c>

00:07:11.550 --> 00:07:11.560 align:start position:0%
instances of X in the body of the
 

00:07:11.560 --> 00:07:12.790 align:start position:0%
instances of X in the body of the
function.

00:07:12.790 --> 00:07:12.800 align:start position:0%
function.
 

00:07:12.800 --> 00:07:15.190 align:start position:0%
function.
There's<00:07:13.000><c> two</c><00:07:13.200><c> this</c><00:07:13.360><c> time.</c>

00:07:15.190 --> 00:07:15.200 align:start position:0%
There's two this time.
 

00:07:15.200 --> 00:07:16.990 align:start position:0%
There's two this time.
Discard<00:07:15.600><c> all</c><00:07:15.720><c> the</c><00:07:15.800><c> scaffolding</c>

00:07:16.990 --> 00:07:17.000 align:start position:0%
Discard all the scaffolding
 

00:07:17.000 --> 00:07:19.350 align:start position:0%
Discard all the scaffolding
and<00:07:17.120><c> perform</c><00:07:17.440><c> the</c><00:07:17.520><c> replacement.</c>

00:07:19.350 --> 00:07:19.360 align:start position:0%
and perform the replacement.
 

00:07:19.360 --> 00:07:22.150 align:start position:0%
and perform the replacement.
Still<00:07:19.600><c> looks</c><00:07:19.800><c> like</c><00:07:19.960><c> abstract</c><00:07:20.360><c> nonsense?</c>

00:07:22.150 --> 00:07:22.160 align:start position:0%
Still looks like abstract nonsense?
 

00:07:22.160 --> 00:07:23.670 align:start position:0%
Still looks like abstract nonsense?
This<00:07:22.320><c> actually</c><00:07:22.640><c> isn't</c><00:07:22.880><c> as</c><00:07:23.000><c> unfamiliar</c><00:07:23.480><c> to</c><00:07:23.560><c> you</c>

00:07:23.670 --> 00:07:23.680 align:start position:0%
This actually isn't as unfamiliar to you
 

00:07:23.680 --> 00:07:25.150 align:start position:0%
This actually isn't as unfamiliar to you
as<00:07:23.800><c> it</c><00:07:23.880><c> might</c><00:07:24.080><c> seem.</c>

00:07:25.150 --> 00:07:25.160 align:start position:0%
as it might seem.
 

00:07:25.160 --> 00:07:26.750 align:start position:0%
as it might seem.
You<00:07:25.320><c> already</c><00:07:25.680><c> know</c><00:07:25.880><c> how</c><00:07:25.960><c> to</c><00:07:26.080><c> do</c><00:07:26.200><c> this</c><00:07:26.400><c> in</c><00:07:26.520><c> plain</c>

00:07:26.750 --> 00:07:26.760 align:start position:0%
You already know how to do this in plain
 

00:07:26.760 --> 00:07:28.190 align:start position:0%
You already know how to do this in plain
old<00:07:26.919><c> algebra.</c>

00:07:28.190 --> 00:07:28.200 align:start position:0%
old algebra.
 

00:07:28.200 --> 00:07:30.430 align:start position:0%
old algebra.
Here's<00:07:28.320><c> an</c><00:07:28.440><c> algebraic</c><00:07:28.960><c> function.</c>

00:07:30.430 --> 00:07:30.440 align:start position:0%
Here's an algebraic function.
 

00:07:30.440 --> 00:07:33.670 align:start position:0%
Here's an algebraic function.
We<00:07:30.560><c> want</c><00:07:30.680><c> to</c><00:07:30.760><c> evaluate</c><00:07:31.240><c> it</c><00:07:31.560><c> at</c><00:07:31.680><c> X</c><00:07:31.840><c> equals</c><00:07:32.160><c> five.</c>

00:07:33.670 --> 00:07:33.680 align:start position:0%
We want to evaluate it at X equals five.
 

00:07:33.680 --> 00:07:35.430 align:start position:0%
We want to evaluate it at X equals five.
We<00:07:33.760><c> can</c><00:07:33.919><c> first</c><00:07:34.200><c> establish</c><00:07:34.640><c> the</c><00:07:34.720><c> function</c><00:07:35.320><c> and</c>

00:07:35.430 --> 00:07:35.440 align:start position:0%
We can first establish the function and
 

00:07:35.440 --> 00:07:37.030 align:start position:0%
We can first establish the function and
then<00:07:35.560><c> on</c><00:07:35.640><c> a</c><00:07:35.680><c> separate</c><00:07:36.080><c> line</c><00:07:36.440><c> apply</c><00:07:36.800><c> it</c><00:07:36.919><c> to</c>

00:07:37.030 --> 00:07:37.040 align:start position:0%
then on a separate line apply it to
 

00:07:37.040 --> 00:07:39.110 align:start position:0%
then on a separate line apply it to
five.<00:07:37.880><c> But</c><00:07:38.120><c> let's</c><00:07:38.320><c> stick</c><00:07:38.520><c> them</c><00:07:38.640><c> on</c><00:07:38.760><c> the</c><00:07:38.840><c> same</c>

00:07:39.110 --> 00:07:39.120 align:start position:0%
five. But let's stick them on the same
 

00:07:39.120 --> 00:07:41.190 align:start position:0%
five. But let's stick them on the same
line.

00:07:41.190 --> 00:07:41.200 align:start position:0%
line.
 

00:07:41.200 --> 00:07:42.390 align:start position:0%
line.
We'll<00:07:41.360><c> wrap</c><00:07:41.600><c> these</c><00:07:41.840><c> two</c><00:07:42.000><c> things</c><00:07:42.280><c> in</c>

00:07:42.390 --> 00:07:42.400 align:start position:0%
We'll wrap these two things in
 

00:07:42.400 --> 00:07:44.470 align:start position:0%
We'll wrap these two things in
parentheses<00:07:43.200><c> to</c><00:07:43.320><c> imply</c><00:07:43.600><c> that</c><00:07:43.760><c> the</c><00:07:43.840><c> first</c><00:07:44.320><c> is</c><00:07:44.440><c> a</c>

00:07:44.470 --> 00:07:44.480 align:start position:0%
parentheses to imply that the first is a
 

00:07:44.480 --> 00:07:46.430 align:start position:0%
parentheses to imply that the first is a
function<00:07:45.160><c> and</c><00:07:45.280><c> the</c><00:07:45.360><c> second</c><00:07:45.840><c> is</c><00:07:45.960><c> the</c><00:07:46.080><c> value</c><00:07:46.320><c> we</c>

00:07:46.430 --> 00:07:46.440 align:start position:0%
function and the second is the value we
 

00:07:46.440 --> 00:07:47.950 align:start position:0%
function and the second is the value we
want<00:07:46.600><c> to</c><00:07:46.640><c> plug</c><00:07:46.880><c> in.</c>

00:07:47.950 --> 00:07:47.960 align:start position:0%
want to plug in.
 

00:07:47.960 --> 00:07:49.670 align:start position:0%
want to plug in.
Now,<00:07:48.400><c> since</c><00:07:48.640><c> we</c><00:07:48.760><c> tied</c><00:07:49.000><c> the</c><00:07:49.080><c> function</c><00:07:49.440><c> to</c><00:07:49.520><c> its</c>

00:07:49.670 --> 00:07:49.680 align:start position:0%
Now, since we tied the function to its
 

00:07:49.680 --> 00:07:53.110 align:start position:0%
Now, since we tied the function to its
value,<00:07:50.440><c> there's</c><00:07:50.640><c> no</c><00:07:50.760><c> point</c><00:07:51.000><c> in</c><00:07:51.120><c> naming</c><00:07:51.400><c> it</c><00:07:51.600><c> F.</c>

00:07:53.110 --> 00:07:53.120 align:start position:0%
value, there's no point in naming it F.
 

00:07:53.120 --> 00:07:55.350 align:start position:0%
value, there's no point in naming it F.
Our<00:07:53.320><c> inline</c><00:07:53.600><c> notation</c><00:07:54.200><c> is</c><00:07:54.400><c> unambiguous</c><00:07:55.080><c> about</c>

00:07:55.350 --> 00:07:55.360 align:start position:0%
Our inline notation is unambiguous about
 

00:07:55.360 --> 00:07:57.230 align:start position:0%
Our inline notation is unambiguous about
which<00:07:55.640><c> function</c><00:07:56.000><c> we</c><00:07:56.120><c> want</c><00:07:56.280><c> to</c><00:07:56.360><c> apply</c><00:07:56.760><c> to</c><00:07:57.000><c> what</c>

00:07:57.230 --> 00:07:57.240 align:start position:0%
which function we want to apply to what
 

00:07:57.240 --> 00:07:59.150 align:start position:0%
which function we want to apply to what
value.

00:07:59.150 --> 00:07:59.160 align:start position:0%
value.
 

00:07:59.160 --> 00:08:01.150 align:start position:0%
value.
We<00:07:59.320><c> do</c><00:07:59.520><c> still</c><00:07:59.720><c> need</c><00:07:59.880><c> to</c><00:08:00.000><c> express</c><00:08:00.520><c> that</c><00:08:00.800><c> X</c><00:08:01.000><c> is</c>

00:08:01.150 --> 00:08:01.160 align:start position:0%
We do still need to express that X is
 

00:08:01.160 --> 00:08:02.550 align:start position:0%
We do still need to express that X is
the<00:08:01.280><c> thing</c><00:08:01.440><c> in</c><00:08:01.520><c> the</c><00:08:01.600><c> body</c><00:08:01.920><c> which</c><00:08:02.120><c> five</c><00:08:02.360><c> will</c><00:08:02.440><c> be</c>

00:08:02.550 --> 00:08:02.560 align:start position:0%
the thing in the body which five will be
 

00:08:02.560 --> 00:08:04.550 align:start position:0%
the thing in the body which five will be
replacing.

00:08:04.550 --> 00:08:04.560 align:start position:0%
replacing.
 

00:08:04.560 --> 00:08:06.190 align:start position:0%
replacing.
And<00:08:04.720><c> the</c><00:08:04.800><c> lambda</c><00:08:05.120><c> calculus</c><00:08:05.560><c> way</c><00:08:05.680><c> to</c><00:08:05.800><c> express</c>

00:08:06.190 --> 00:08:06.200 align:start position:0%
And the lambda calculus way to express
 

00:08:06.200 --> 00:08:08.150 align:start position:0%
And the lambda calculus way to express
that<00:08:06.760><c> is</c><00:08:06.880><c> by</c><00:08:07.040><c> putting</c><00:08:07.280><c> a</c><00:08:07.360><c> lambda</c><00:08:07.680><c> dot</c><00:08:07.920><c> pair</c>

00:08:08.150 --> 00:08:08.160 align:start position:0%
that is by putting a lambda dot pair
 

00:08:08.160 --> 00:08:09.710 align:start position:0%
that is by putting a lambda dot pair
around<00:08:08.520><c> it.</c>

00:08:09.710 --> 00:08:09.720 align:start position:0%
around it.
 

00:08:09.720 --> 00:08:12.030 align:start position:0%
around it.
Now,<00:08:10.080><c> how</c><00:08:10.240><c> do</c><00:08:10.320><c> we</c><00:08:10.400><c> evaluate</c><00:08:10.880><c> it?</c>

00:08:12.030 --> 00:08:12.040 align:start position:0%
Now, how do we evaluate it?
 

00:08:12.040 --> 00:08:14.030 align:start position:0%
Now, how do we evaluate it?
Well,<00:08:12.280><c> exactly</c><00:08:12.640><c> the</c><00:08:12.760><c> same</c><00:08:12.919><c> procedure.</c>

00:08:14.030 --> 00:08:14.040 align:start position:0%
Well, exactly the same procedure.
 

00:08:14.040 --> 00:08:15.630 align:start position:0%
Well, exactly the same procedure.
Identify<00:08:14.520><c> all</c><00:08:14.600><c> the</c><00:08:14.720><c> variables</c><00:08:15.160><c> in</c><00:08:15.240><c> the</c><00:08:15.320><c> body</c>

00:08:15.630 --> 00:08:15.640 align:start position:0%
Identify all the variables in the body
 

00:08:15.640 --> 00:08:17.470 align:start position:0%
Identify all the variables in the body
which<00:08:15.880><c> match</c><00:08:16.120><c> the</c><00:08:16.200><c> one</c><00:08:16.360><c> bound</c><00:08:16.560><c> by</c><00:08:16.680><c> the</c><00:08:16.800><c> lambda,</c>

00:08:17.470 --> 00:08:17.480 align:start position:0%
which match the one bound by the lambda,
 

00:08:17.480 --> 00:08:19.270 align:start position:0%
which match the one bound by the lambda,
in<00:08:17.560><c> this</c><00:08:17.720><c> case</c><00:08:17.960><c> all</c><00:08:18.040><c> the</c><00:08:18.160><c> X's,</c>

00:08:19.270 --> 00:08:19.280 align:start position:0%
in this case all the X's,
 

00:08:19.280 --> 00:08:21.230 align:start position:0%
in this case all the X's,
drop<00:08:19.520><c> all</c><00:08:19.600><c> the</c><00:08:19.680><c> slack,</c>

00:08:21.230 --> 00:08:21.240 align:start position:0%
drop all the slack,
 

00:08:21.240 --> 00:08:23.390 align:start position:0%
drop all the slack,
grab<00:08:21.480><c> our</c><00:08:21.560><c> value,</c><00:08:22.520><c> and</c><00:08:22.680><c> shove</c><00:08:22.840><c> it</c><00:08:23.000><c> everywhere</c>

00:08:23.390 --> 00:08:23.400 align:start position:0%
grab our value, and shove it everywhere
 

00:08:23.400 --> 00:08:24.790 align:start position:0%
grab our value, and shove it everywhere
we<00:08:23.560><c> had</c><00:08:23.680><c> an</c><00:08:23.840><c> X.</c>

00:08:24.790 --> 00:08:24.800 align:start position:0%
we had an X.
 

00:08:24.800 --> 00:08:26.390 align:start position:0%
we had an X.
We're<00:08:24.960><c> left</c><00:08:25.240><c> with</c><00:08:25.360><c> an</c><00:08:25.440><c> algebraic</c><00:08:25.919><c> expression</c>

00:08:26.390 --> 00:08:26.400 align:start position:0%
We're left with an algebraic expression
 

00:08:26.400 --> 00:08:28.430 align:start position:0%
We're left with an algebraic expression
which<00:08:26.600><c> represents</c><00:08:27.040><c> the</c><00:08:27.160><c> answer.</c><00:08:28.040><c> Not</c><00:08:28.280><c> too</c>

00:08:28.430 --> 00:08:28.440 align:start position:0%
which represents the answer. Not too
 

00:08:28.440 --> 00:08:30.030 align:start position:0%
which represents the answer. Not too
alien<00:08:28.760><c> now,</c><00:08:29.000><c> is</c><00:08:29.120><c> it?</c>

00:08:30.030 --> 00:08:30.040 align:start position:0%
alien now, is it?
 

00:08:30.040 --> 00:08:31.750 align:start position:0%
alien now, is it?
Let's<00:08:30.240><c> try</c><00:08:30.440><c> one</c><00:08:30.640><c> more,</c><00:08:31.120><c> but</c><00:08:31.240><c> alongside</c><00:08:31.680><c> the</c>

00:08:31.750 --> 00:08:31.760 align:start position:0%
Let's try one more, but alongside the
 

00:08:31.760 --> 00:08:33.430 align:start position:0%
Let's try one more, but alongside the
diagram<00:08:32.240><c> this</c><00:08:32.400><c> time.</c>

00:08:33.430 --> 00:08:33.440 align:start position:0%
diagram this time.
 

00:08:33.440 --> 00:08:36.149 align:start position:0%
diagram this time.
Let's<00:08:33.640><c> color</c><00:08:33.880><c> the</c><00:08:34.000><c> value</c><00:08:34.280><c> in</c><00:08:34.400><c> blue,</c>

00:08:36.149 --> 00:08:36.159 align:start position:0%
Let's color the value in blue,
 

00:08:36.159 --> 00:08:37.469 align:start position:0%
Let's color the value in blue,
and<00:08:36.280><c> the</c><00:08:36.360><c> variable</c><00:08:36.840><c> which</c><00:08:37.039><c> it's</c><00:08:37.159><c> about</c><00:08:37.400><c> to</c>

00:08:37.469 --> 00:08:37.479 align:start position:0%
and the variable which it's about to
 

00:08:37.479 --> 00:08:39.310 align:start position:0%
and the variable which it's about to
replace<00:08:38.000><c> as</c><00:08:38.159><c> red.</c>

00:08:39.310 --> 00:08:39.320 align:start position:0%
replace as red.
 

00:08:39.320 --> 00:08:41.630 align:start position:0%
replace as red.
Now,<00:08:39.599><c> let's</c><00:08:39.800><c> perform</c><00:08:40.120><c> the</c><00:08:40.200><c> beta</c><00:08:40.440><c> reduction.</c>

00:08:41.630 --> 00:08:41.640 align:start position:0%
Now, let's perform the beta reduction.
 

00:08:41.640 --> 00:08:43.070 align:start position:0%
Now, let's perform the beta reduction.
See<00:08:41.840><c> how</c><00:08:41.960><c> the</c><00:08:42.039><c> value</c><00:08:42.360><c> takes</c><00:08:42.599><c> the</c><00:08:42.680><c> place</c><00:08:42.919><c> of</c><00:08:42.960><c> the</c>

00:08:43.070 --> 00:08:43.080 align:start position:0%
See how the value takes the place of the
 

00:08:43.080 --> 00:08:44.670 align:start position:0%
See how the value takes the place of the
variable,<00:08:43.800><c> and</c><00:08:43.919><c> then</c><00:08:44.039><c> the</c><00:08:44.120><c> application</c>

00:08:44.670 --> 00:08:44.680 align:start position:0%
variable, and then the application
 

00:08:44.680 --> 00:08:46.750 align:start position:0%
variable, and then the application
scaffolding<00:08:45.120><c> drops</c><00:08:45.400><c> out?</c><00:08:46.240><c> Let's</c><00:08:46.440><c> watch</c><00:08:46.640><c> that</c>

00:08:46.750 --> 00:08:46.760 align:start position:0%
scaffolding drops out? Let's watch that
 

00:08:46.760 --> 00:08:51.270 align:start position:0%
scaffolding drops out? Let's watch that
a<00:08:46.800><c> few</c><00:08:46.960><c> times</c><00:08:47.200><c> over.</c>

00:08:51.270 --> 00:08:51.280 align:start position:0%
 
 

00:08:51.280 --> 00:08:52.910 align:start position:0%
 
This<00:08:51.560><c> doesn't</c><00:08:51.880><c> have</c><00:08:52.040><c> to</c><00:08:52.160><c> happen</c><00:08:52.480><c> at</c><00:08:52.560><c> the</c><00:08:52.680><c> top</c>

00:08:52.910 --> 00:08:52.920 align:start position:0%
This doesn't have to happen at the top
 

00:08:52.920 --> 00:08:54.630 align:start position:0%
This doesn't have to happen at the top
level<00:08:53.160><c> of</c><00:08:53.240><c> the</c><00:08:53.360><c> expression.</c>

00:08:54.630 --> 00:08:54.640 align:start position:0%
level of the expression.
 

00:08:54.640 --> 00:08:56.070 align:start position:0%
level of the expression.
Let's<00:08:54.800><c> make</c><00:08:54.960><c> a</c><00:08:55.000><c> big</c><00:08:55.240><c> expression</c><00:08:55.920><c> which</c>

00:08:56.070 --> 00:08:56.080 align:start position:0%
Let's make a big expression which
 

00:08:56.080 --> 00:08:58.510 align:start position:0%
Let's make a big expression which
contains<00:08:56.480><c> this</c><00:08:56.720><c> somewhere</c><00:08:57.040><c> inside.</c>

00:08:58.510 --> 00:08:58.520 align:start position:0%
contains this somewhere inside.
 

00:08:58.520 --> 00:09:00.070 align:start position:0%
contains this somewhere inside.
We<00:08:58.640><c> can</c><00:08:58.800><c> still</c><00:08:59.160><c> beta</c><00:08:59.360><c> reduce</c><00:08:59.680><c> the</c><00:08:59.800><c> entire</c>

00:09:00.070 --> 00:09:00.080 align:start position:0%
We can still beta reduce the entire
 

00:09:00.080 --> 00:09:01.470 align:start position:0%
We can still beta reduce the entire
expression<00:09:00.640><c> by</c><00:09:00.760><c> reducing</c><00:09:01.240><c> this</c>

00:09:01.470 --> 00:09:01.480 align:start position:0%
expression by reducing this
 

00:09:01.480 --> 00:09:03.590 align:start position:0%
expression by reducing this
subcomponent.

00:09:03.590 --> 00:09:03.600 align:start position:0%
subcomponent.
 

00:09:03.600 --> 00:09:08.630 align:start position:0%
subcomponent.
All<00:09:03.680><c> right,</c><00:09:04.080><c> time</c><00:09:04.240><c> to</c><00:09:04.320><c> write</c><00:09:04.480><c> some</c><00:09:04.640><c> code.</c>

00:09:08.630 --> 00:09:08.640 align:start position:0%
 
 

00:09:08.640 --> 00:09:10.430 align:start position:0%
 
First,<00:09:09.280><c> we've</c><00:09:09.440><c> got</c><00:09:09.600><c> to</c><00:09:09.640><c> make</c><00:09:09.800><c> a</c><00:09:09.880><c> function</c><00:09:10.280><c> that</c>

00:09:10.430 --> 00:09:10.440 align:start position:0%
First, we've got to make a function that
 

00:09:10.440 --> 00:09:12.910 align:start position:0%
First, we've got to make a function that
takes<00:09:10.680><c> two</c><00:09:10.880><c> variables.</c>

00:09:12.910 --> 00:09:12.920 align:start position:0%
takes two variables.
 

00:09:12.920 --> 00:09:14.670 align:start position:0%
takes two variables.
Pseudocode<00:09:13.360><c> like</c><00:09:13.520><c> this</c><00:09:13.920><c> isn't</c><00:09:14.160><c> permitted</c><00:09:14.560><c> by</c>

00:09:14.670 --> 00:09:14.680 align:start position:0%
Pseudocode like this isn't permitted by
 

00:09:14.680 --> 00:09:15.950 align:start position:0%
Pseudocode like this isn't permitted by
our<00:09:14.800><c> strict</c><00:09:15.160><c> templates</c><00:09:15.600><c> for</c><00:09:15.720><c> making</c>

00:09:15.950 --> 00:09:15.960 align:start position:0%
our strict templates for making
 

00:09:15.960 --> 00:09:17.270 align:start position:0%
our strict templates for making
expressions.

00:09:17.270 --> 00:09:17.280 align:start position:0%
expressions.
 

00:09:17.280 --> 00:09:19.110 align:start position:0%
expressions.
Of<00:09:17.440><c> course,</c><00:09:17.880><c> we</c><00:09:18.000><c> have</c><00:09:18.120><c> yet</c><00:09:18.280><c> to</c><00:09:18.360><c> define</c><00:09:18.720><c> numbers</c>

00:09:19.110 --> 00:09:19.120 align:start position:0%
Of course, we have yet to define numbers
 

00:09:19.120 --> 00:09:21.430 align:start position:0%
Of course, we have yet to define numbers
and<00:09:19.240><c> times</c><00:09:19.520><c> and</c><00:09:19.640><c> plus,</c><00:09:20.560><c> but</c><00:09:20.880><c> let's</c><00:09:21.080><c> assume</c><00:09:21.360><c> we</c>

00:09:21.430 --> 00:09:21.440 align:start position:0%
and times and plus, but let's assume we
 

00:09:21.440 --> 00:09:23.310 align:start position:0%
and times and plus, but let's assume we
know<00:09:21.600><c> how</c><00:09:21.720><c> those</c><00:09:21.920><c> work</c><00:09:22.120><c> for</c><00:09:22.240><c> now.</c>

00:09:23.310 --> 00:09:23.320 align:start position:0%
know how those work for now.
 

00:09:23.320 --> 00:09:24.829 align:start position:0%
know how those work for now.
The<00:09:23.480><c> real</c><00:09:23.720><c> problem</c><00:09:24.200><c> is</c><00:09:24.320><c> that</c><00:09:24.440><c> we're</c><00:09:24.560><c> trying</c><00:09:24.800><c> to</c>

00:09:24.829 --> 00:09:24.839 align:start position:0%
The real problem is that we're trying to
 

00:09:24.839 --> 00:09:26.150 align:start position:0%
The real problem is that we're trying to
make<00:09:25.000><c> a</c><00:09:25.080><c> function</c><00:09:25.440><c> that</c><00:09:25.600><c> takes</c><00:09:25.839><c> in</c><00:09:26.000><c> two</c>

00:09:26.150 --> 00:09:26.160 align:start position:0%
make a function that takes in two
 

00:09:26.160 --> 00:09:27.510 align:start position:0%
make a function that takes in two
variables.

00:09:27.510 --> 00:09:27.520 align:start position:0%
variables.
 

00:09:27.520 --> 00:09:29.230 align:start position:0%
variables.
Only<00:09:27.800><c> one</c><00:09:28.040><c> letter</c><00:09:28.360><c> is</c><00:09:28.480><c> allowed</c><00:09:28.720><c> to</c><00:09:28.800><c> go</c><00:09:28.920><c> between</c>

00:09:29.230 --> 00:09:29.240 align:start position:0%
Only one letter is allowed to go between
 

00:09:29.240 --> 00:09:31.470 align:start position:0%
Only one letter is allowed to go between
the<00:09:29.320><c> lambda</c><00:09:29.680><c> and</c><00:09:29.800><c> the</c><00:09:29.880><c> dot.</c><00:09:30.800><c> Luckily,</c><00:09:31.320><c> there's</c>

00:09:31.470 --> 00:09:31.480 align:start position:0%
the lambda and the dot. Luckily, there's
 

00:09:31.480 --> 00:09:33.870 align:start position:0%
the lambda and the dot. Luckily, there's
a<00:09:31.520><c> work-around</c><00:09:32.080><c> called</c><00:09:32.360><c> currying.</c>

00:09:33.870 --> 00:09:33.880 align:start position:0%
a work-around called currying.
 

00:09:33.880 --> 00:09:35.310 align:start position:0%
a work-around called currying.
The<00:09:34.000><c> trick</c><00:09:34.200><c> here</c><00:09:34.480><c> is</c><00:09:34.640><c> to</c><00:09:34.720><c> make</c><00:09:34.880><c> a</c><00:09:34.920><c> function</c>

00:09:35.310 --> 00:09:35.320 align:start position:0%
The trick here is to make a function
 

00:09:35.320 --> 00:09:37.070 align:start position:0%
The trick here is to make a function
wrap<00:09:35.520><c> another</c><00:09:35.800><c> function.</c>

00:09:37.070 --> 00:09:37.080 align:start position:0%
wrap another function.
 

00:09:37.080 --> 00:09:38.790 align:start position:0%
wrap another function.
Let's<00:09:37.280><c> see</c><00:09:37.400><c> what</c><00:09:37.600><c> happens</c><00:09:38.000><c> when</c><00:09:38.120><c> we</c><00:09:38.240><c> stick</c><00:09:38.600><c> two</c>

00:09:38.790 --> 00:09:38.800 align:start position:0%
Let's see what happens when we stick two
 

00:09:38.800 --> 00:09:40.830 align:start position:0%
Let's see what happens when we stick two
arguments<00:09:39.400><c> after</c><00:09:39.640><c> this</c><00:09:39.880><c> function</c><00:09:40.440><c> and</c><00:09:40.600><c> beta</c>

00:09:40.830 --> 00:09:40.840 align:start position:0%
arguments after this function and beta
 

00:09:40.840 --> 00:09:42.430 align:start position:0%
arguments after this function and beta
reduce<00:09:41.160><c> it.</c>

00:09:42.430 --> 00:09:42.440 align:start position:0%
reduce it.
 

00:09:42.440 --> 00:09:43.550 align:start position:0%
reduce it.
It's<00:09:42.600><c> best</c><00:09:42.840><c> to</c><00:09:42.920><c> be</c><00:09:43.040><c> clear</c><00:09:43.320><c> what</c><00:09:43.440><c> the</c>

00:09:43.550 --> 00:09:43.560 align:start position:0%
It's best to be clear what the
 

00:09:43.560 --> 00:09:45.270 align:start position:0%
It's best to be clear what the
application<00:09:44.080><c> order</c><00:09:44.320><c> is,</c><00:09:44.840><c> so</c><00:09:44.960><c> we</c><00:09:45.040><c> don't</c>

00:09:45.270 --> 00:09:45.280 align:start position:0%
application order is, so we don't
 

00:09:45.280 --> 00:09:47.070 align:start position:0%
application order is, so we don't
misinterpret<00:09:45.920><c> five</c><00:09:46.200><c> as</c><00:09:46.320><c> being</c><00:09:46.520><c> a</c><00:09:46.560><c> function</c>

00:09:47.070 --> 00:09:47.080 align:start position:0%
misinterpret five as being a function
 

00:09:47.080 --> 00:09:49.230 align:start position:0%
misinterpret five as being a function
which<00:09:47.280><c> takes</c><00:09:47.560><c> in</c><00:09:47.680><c> three.</c>

00:09:49.230 --> 00:09:49.240 align:start position:0%
which takes in three.
 

00:09:49.240 --> 00:09:50.590 align:start position:0%
which takes in three.
Now,<00:09:49.360><c> let's</c><00:09:49.560><c> beta</c><00:09:49.760><c> reduce</c><00:09:50.000><c> the</c><00:09:50.160><c> innermost</c>

00:09:50.590 --> 00:09:50.600 align:start position:0%
Now, let's beta reduce the innermost
 

00:09:50.600 --> 00:09:52.270 align:start position:0%
Now, let's beta reduce the innermost
function<00:09:50.880><c> application.</c>

00:09:52.270 --> 00:09:52.280 align:start position:0%
function application.
 

00:09:52.280 --> 00:09:53.630 align:start position:0%
function application.
Here's<00:09:52.400><c> the</c><00:09:52.480><c> function</c><00:09:53.080><c> and</c><00:09:53.200><c> the</c><00:09:53.280><c> value</c><00:09:53.520><c> we're</c>

00:09:53.630 --> 00:09:53.640 align:start position:0%
Here's the function and the value we're
 

00:09:53.640 --> 00:09:55.390 align:start position:0%
Here's the function and the value we're
passing<00:09:53.960><c> in.</c>

00:09:55.390 --> 00:09:55.400 align:start position:0%
passing in.
 

00:09:55.400 --> 00:09:58.350 align:start position:0%
passing in.
Notice<00:09:55.720><c> the</c><00:09:55.840><c> bound</c><00:09:56.080><c> variable</c><00:09:56.480><c> is</c><00:09:56.680><c> X.</c>

00:09:58.350 --> 00:09:58.360 align:start position:0%
Notice the bound variable is X.
 

00:09:58.360 --> 00:10:00.190 align:start position:0%
Notice the bound variable is X.
Find<00:09:58.560><c> all</c><00:09:58.640><c> the</c><00:09:58.760><c> X's</c><00:09:59.080><c> in</c><00:09:59.160><c> the</c><00:09:59.240><c> body,</c>

00:10:00.190 --> 00:10:00.200 align:start position:0%
Find all the X's in the body,
 

00:10:00.200 --> 00:10:02.550 align:start position:0%
Find all the X's in the body,
rip<00:10:00.360><c> off</c><00:10:00.520><c> the</c><00:10:00.600><c> scaffolding,</c>

00:10:02.550 --> 00:10:02.560 align:start position:0%
rip off the scaffolding,
 

00:10:02.560 --> 00:10:04.750 align:start position:0%
rip off the scaffolding,
and<00:10:02.640><c> replace.</c>

00:10:04.750 --> 00:10:04.760 align:start position:0%
and replace.
 

00:10:04.760 --> 00:10:06.790 align:start position:0%
and replace.
Getting<00:10:04.960><c> the</c><00:10:05.040><c> hang</c><00:10:05.160><c> of</c><00:10:05.240><c> beta</c><00:10:05.440><c> reduction?</c>

00:10:06.790 --> 00:10:06.800 align:start position:0%
Getting the hang of beta reduction?
 

00:10:06.800 --> 00:10:08.630 align:start position:0%
Getting the hang of beta reduction?
Reduce<00:10:07.160><c> one</c><00:10:07.320><c> more</c><00:10:07.480><c> time</c><00:10:08.200><c> and</c><00:10:08.320><c> we</c><00:10:08.400><c> have</c><00:10:08.520><c> the</c>

00:10:08.630 --> 00:10:08.640 align:start position:0%
Reduce one more time and we have the
 

00:10:08.640 --> 00:10:12.830 align:start position:0%
Reduce one more time and we have the
answer.

00:10:12.830 --> 00:10:12.840 align:start position:0%
 
 

00:10:12.840 --> 00:10:15.390 align:start position:0%
 
Let<00:10:13.000><c> that</c><00:10:13.200><c> sink</c><00:10:13.400><c> in</c><00:10:13.520><c> a</c><00:10:13.560><c> little</c><00:10:13.800><c> bit.</c>

00:10:15.390 --> 00:10:15.400 align:start position:0%
Let that sink in a little bit.
 

00:10:15.400 --> 00:10:17.070 align:start position:0%
Let that sink in a little bit.
Since<00:10:15.640><c> a</c><00:10:15.720><c> function</c><00:10:16.080><c> can</c><00:10:16.240><c> only</c><00:10:16.480><c> really</c><00:10:16.840><c> take</c>

00:10:17.070 --> 00:10:17.080 align:start position:0%
Since a function can only really take
 

00:10:17.080 --> 00:10:19.750 align:start position:0%
Since a function can only really take
one<00:10:17.280><c> argument,</c><00:10:18.320><c> a</c><00:10:18.360><c> two-argument</c><00:10:19.000><c> function</c><00:10:19.600><c> is</c>

00:10:19.750 --> 00:10:19.760 align:start position:0%
one argument, a two-argument function is
 

00:10:19.760 --> 00:10:21.350 align:start position:0%
one argument, a two-argument function is
the<00:10:19.840><c> same</c><00:10:20.080><c> thing</c><00:10:20.240><c> as</c><00:10:20.360><c> a</c><00:10:20.400><c> function</c><00:10:20.760><c> which</c><00:10:21.000><c> spits</c>

00:10:21.350 --> 00:10:21.360 align:start position:0%
the same thing as a function which spits
 

00:10:21.360 --> 00:10:23.870 align:start position:0%
the same thing as a function which spits
out<00:10:21.640><c> a</c><00:10:21.720><c> one-argument</c><00:10:22.360><c> function.</c>

00:10:23.870 --> 00:10:23.880 align:start position:0%
out a one-argument function.
 

00:10:23.880 --> 00:10:25.310 align:start position:0%
out a one-argument function.
A<00:10:23.920><c> three-argument</c><00:10:24.480><c> function</c><00:10:24.840><c> would</c><00:10:24.960><c> spit</c><00:10:25.200><c> out</c>

00:10:25.310 --> 00:10:25.320 align:start position:0%
A three-argument function would spit out
 

00:10:25.320 --> 00:10:28.870 align:start position:0%
A three-argument function would spit out
a<00:10:25.360><c> two-argument</c><00:10:25.880><c> function,</c><00:10:26.760><c> and</c><00:10:26.920><c> so</c><00:10:27.160><c> on.</c>

00:10:28.870 --> 00:10:28.880 align:start position:0%
a two-argument function, and so on.
 

00:10:28.880 --> 00:10:30.590 align:start position:0%
a two-argument function, and so on.
So,<00:10:29.040><c> from</c><00:10:29.240><c> now</c><00:10:29.400><c> on,</c><00:10:29.960><c> we'll</c><00:10:30.120><c> permit</c><00:10:30.480><c> two</c>

00:10:30.590 --> 00:10:30.600 align:start position:0%
So, from now on, we'll permit two
 

00:10:30.600 --> 00:10:32.550 align:start position:0%
So, from now on, we'll permit two
variables<00:10:31.000><c> in</c><00:10:31.120><c> the</c><00:10:31.200><c> lambda</c>

00:10:32.550 --> 00:10:32.560 align:start position:0%
variables in the lambda
 

00:10:32.560 --> 00:10:34.110 align:start position:0%
variables in the lambda
since<00:10:32.840><c> we</c><00:10:32.920><c> can</c><00:10:33.080><c> think</c><00:10:33.240><c> of</c><00:10:33.320><c> it</c><00:10:33.440><c> as</c><00:10:33.560><c> shorthand</c>

00:10:34.110 --> 00:10:34.120 align:start position:0%
since we can think of it as shorthand
 

00:10:34.120 --> 00:10:36.070 align:start position:0%
since we can think of it as shorthand
for<00:10:34.280><c> a</c><00:10:34.360><c> curried</c><00:10:34.720><c> function.</c>

00:10:36.070 --> 00:10:36.080 align:start position:0%
for a curried function.
 

00:10:36.080 --> 00:10:37.710 align:start position:0%
for a curried function.
Before,<00:10:36.600><c> we</c><00:10:36.760><c> applied</c><00:10:37.120><c> the</c><00:10:37.200><c> function</c><00:10:37.520><c> like</c>

00:10:37.710 --> 00:10:37.720 align:start position:0%
Before, we applied the function like
 

00:10:37.720 --> 00:10:39.270 align:start position:0%
Before, we applied the function like
this,

00:10:39.270 --> 00:10:39.280 align:start position:0%
this,
 

00:10:39.280 --> 00:10:40.750 align:start position:0%
this,
but<00:10:39.400><c> now</c><00:10:39.520><c> we</c><00:10:39.640><c> can</c><00:10:39.800><c> just</c><00:10:40.000><c> drop</c><00:10:40.320><c> the</c><00:10:40.440><c> extra</c>

00:10:40.750 --> 00:10:40.760 align:start position:0%
but now we can just drop the extra
 

00:10:40.760 --> 00:10:44.270 align:start position:0%
but now we can just drop the extra
parentheses<00:10:41.360><c> as</c><00:10:41.480><c> shorthand,</c><00:10:42.000><c> too.</c>

00:10:44.270 --> 00:10:44.280 align:start position:0%
parentheses as shorthand, too.
 

00:10:44.280 --> 00:10:46.350 align:start position:0%
parentheses as shorthand, too.
All<00:10:44.360><c> right,</c><00:10:44.760><c> it's</c><00:10:44.920><c> programming</c><00:10:45.400><c> time.</c>

00:10:46.350 --> 00:10:46.360 align:start position:0%
All right, it's programming time.
 

00:10:46.360 --> 00:10:47.430 align:start position:0%
All right, it's programming time.
We're<00:10:46.480><c> going</c><00:10:46.600><c> to</c><00:10:46.680><c> start</c><00:10:46.920><c> with</c><00:10:47.040><c> the</c><00:10:47.080><c> values</c>

00:10:47.430 --> 00:10:47.440 align:start position:0%
We're going to start with the values
 

00:10:47.440 --> 00:10:52.430 align:start position:0%
We're going to start with the values
true<00:10:47.800><c> and</c><00:10:48.000><c> false.</c>

00:10:52.430 --> 00:10:52.440 align:start position:0%
 
 

00:10:52.440 --> 00:10:53.750 align:start position:0%
 
Conventionally,<00:10:53.240><c> these</c><00:10:53.440><c> are</c><00:10:53.520><c> the</c><00:10:53.640><c> two</c>

00:10:53.750 --> 00:10:53.760 align:start position:0%
Conventionally, these are the two
 

00:10:53.760 --> 00:10:56.270 align:start position:0%
Conventionally, these are the two
expressions<00:10:54.280><c> which</c><00:10:54.440><c> are</c><00:10:54.560><c> used.</c>

00:10:56.270 --> 00:10:56.280 align:start position:0%
expressions which are used.
 

00:10:56.280 --> 00:10:58.230 align:start position:0%
expressions which are used.
Note<00:10:56.520><c> that</c><00:10:56.640><c> they're</c><00:10:56.760><c> curried</c><00:10:57.080><c> functions,</c><00:10:58.040><c> one</c>

00:10:58.230 --> 00:10:58.240 align:start position:0%
Note that they're curried functions, one
 

00:10:58.240 --> 00:10:59.390 align:start position:0%
Note that they're curried functions, one
function

00:10:59.390 --> 00:10:59.400 align:start position:0%
function
 

00:10:59.400 --> 00:11:01.790 align:start position:0%
function
directly<00:10:59.839><c> inside</c><00:11:00.200><c> the</c><00:11:00.320><c> next.</c>

00:11:01.790 --> 00:11:01.800 align:start position:0%
directly inside the next.
 

00:11:01.800 --> 00:11:04.510 align:start position:0%
directly inside the next.
Let's<00:11:01.960><c> use</c><00:11:02.120><c> our</c><00:11:02.240><c> shorthand.</c>

00:11:04.510 --> 00:11:04.520 align:start position:0%
Let's use our shorthand.
 

00:11:04.520 --> 00:11:06.190 align:start position:0%
Let's use our shorthand.
To<00:11:04.600><c> get</c><00:11:04.760><c> a</c><00:11:04.800><c> sense</c><00:11:05.120><c> of</c><00:11:05.200><c> what</c><00:11:05.320><c> they</c><00:11:05.440><c> do,</c><00:11:06.000><c> let's</c>

00:11:06.190 --> 00:11:06.200 align:start position:0%
To get a sense of what they do, let's
 

00:11:06.200 --> 00:11:08.310 align:start position:0%
To get a sense of what they do, let's
pass<00:11:06.440><c> in</c><00:11:06.560><c> two</c><00:11:06.760><c> values.</c><00:11:07.880><c> We'll</c><00:11:07.960><c> start</c><00:11:08.200><c> with</c>

00:11:08.310 --> 00:11:08.320 align:start position:0%
pass in two values. We'll start with
 

00:11:08.320 --> 00:11:09.670 align:start position:0%
pass in two values. We'll start with
true.

00:11:09.670 --> 00:11:09.680 align:start position:0%
true.
 

00:11:09.680 --> 00:11:11.990 align:start position:0%
true.
Reduce<00:11:10.040><c> once</c><00:11:10.360><c> for</c><00:11:10.440><c> the</c><00:11:10.560><c> first</c><00:11:10.800><c> argument.</c>

00:11:11.990 --> 00:11:12.000 align:start position:0%
Reduce once for the first argument.
 

00:11:12.000 --> 00:11:13.910 align:start position:0%
Reduce once for the first argument.
Reduce<00:11:12.240><c> again</c><00:11:12.560><c> for</c><00:11:12.680><c> the</c><00:11:12.760><c> second.</c>

00:11:13.910 --> 00:11:13.920 align:start position:0%
Reduce again for the second.
 

00:11:13.920 --> 00:11:16.310 align:start position:0%
Reduce again for the second.
We<00:11:14.000><c> passed</c><00:11:14.320><c> in</c><00:11:14.480><c> V1</c><00:11:14.839><c> and</c><00:11:14.960><c> V2,</c><00:11:15.760><c> and</c><00:11:15.880><c> we</c><00:11:15.960><c> got</c><00:11:16.160><c> out</c>

00:11:16.310 --> 00:11:16.320 align:start position:0%
We passed in V1 and V2, and we got out
 

00:11:16.320 --> 00:11:17.710 align:start position:0%
We passed in V1 and V2, and we got out
just<00:11:16.640><c> V1.</c>

00:11:17.710 --> 00:11:17.720 align:start position:0%
just V1.
 

00:11:17.720 --> 00:11:20.270 align:start position:0%
just V1.
Let's<00:11:17.920><c> try</c><00:11:18.080><c> again</c><00:11:18.320><c> with</c><00:11:18.520><c> false.</c>

00:11:20.270 --> 00:11:20.280 align:start position:0%
Let's try again with false.
 

00:11:20.280 --> 00:11:22.190 align:start position:0%
Let's try again with false.
Reduce<00:11:20.600><c> once.</c>

00:11:22.190 --> 00:11:22.200 align:start position:0%
Reduce once.
 

00:11:22.200 --> 00:11:23.710 align:start position:0%
Reduce once.
Reduce<00:11:22.480><c> again.</c>

00:11:23.710 --> 00:11:23.720 align:start position:0%
Reduce again.
 

00:11:23.720 --> 00:11:26.870 align:start position:0%
Reduce again.
This<00:11:23.880><c> time,</c><00:11:24.360><c> we</c><00:11:24.440><c> got</c><00:11:24.600><c> out</c><00:11:24.760><c> V2</c><00:11:25.240><c> instead</c><00:11:25.600><c> of</c><00:11:25.680><c> V1.</c>

00:11:26.870 --> 00:11:26.880 align:start position:0%
This time, we got out V2 instead of V1.
 

00:11:26.880 --> 00:11:28.270 align:start position:0%
This time, we got out V2 instead of V1.
This<00:11:27.040><c> means</c><00:11:27.480><c> these</c><00:11:27.760><c> functions</c><00:11:28.160><c> are</c>

00:11:28.270 --> 00:11:28.280 align:start position:0%
This means these functions are
 

00:11:28.280 --> 00:11:30.230 align:start position:0%
This means these functions are
fundamentally<00:11:28.920><c> selectors.</c>

00:11:30.230 --> 00:11:30.240 align:start position:0%
fundamentally selectors.
 

00:11:30.240 --> 00:11:31.510 align:start position:0%
fundamentally selectors.
True<00:11:30.480><c> picks</c><00:11:30.720><c> out</c><00:11:30.839><c> the</c><00:11:30.920><c> first</c><00:11:31.200><c> of</c><00:11:31.400><c> two</c>

00:11:31.510 --> 00:11:31.520 align:start position:0%
True picks out the first of two
 

00:11:31.520 --> 00:11:34.870 align:start position:0%
True picks out the first of two
arguments,<00:11:32.440><c> and</c><00:11:32.600><c> false</c><00:11:32.960><c> picks</c><00:11:33.200><c> the</c><00:11:33.320><c> second.</c>

00:11:34.870 --> 00:11:34.880 align:start position:0%
arguments, and false picks the second.
 

00:11:34.880 --> 00:11:37.150 align:start position:0%
arguments, and false picks the second.
We<00:11:35.000><c> can</c><00:11:35.120><c> make</c><00:11:35.280><c> a</c><00:11:35.320><c> term</c><00:11:35.520><c> like</c><00:11:35.680><c> this,</c><00:11:36.720><c> where</c><00:11:36.920><c> X</c>

00:11:37.150 --> 00:11:37.160 align:start position:0%
We can make a term like this, where X
 

00:11:37.160 --> 00:11:39.550 align:start position:0%
We can make a term like this, where X
represents<00:11:37.680><c> either</c><00:11:37.920><c> true</c><00:11:38.320><c> or</c><00:11:38.480><c> false.</c>

00:11:39.550 --> 00:11:39.560 align:start position:0%
represents either true or false.
 

00:11:39.560 --> 00:11:43.070 align:start position:0%
represents either true or false.
If<00:11:39.720><c> X</c><00:11:39.920><c> is</c><00:11:40.040><c> true,</c><00:11:40.720><c> then</c><00:11:40.840><c> the</c><00:11:41.000><c> output</c><00:11:41.240><c> will</c><00:11:41.320><c> be</c><00:11:41.440><c> T.</c>

00:11:43.070 --> 00:11:43.080 align:start position:0%
If X is true, then the output will be T.
 

00:11:43.080 --> 00:11:45.750 align:start position:0%
If X is true, then the output will be T.
If<00:11:43.280><c> X</c><00:11:43.480><c> is</c><00:11:43.640><c> false,</c><00:11:44.160><c> the</c><00:11:44.320><c> output</c><00:11:44.520><c> will</c><00:11:44.600><c> be</c><00:11:44.760><c> F.</c>

00:11:45.750 --> 00:11:45.760 align:start position:0%
If X is false, the output will be F.
 

00:11:45.760 --> 00:11:47.310 align:start position:0%
If X is false, the output will be F.
So,<00:11:46.000><c> how</c><00:11:46.080><c> do</c><00:11:46.160><c> we</c><00:11:46.280><c> make</c><00:11:46.440><c> common</c><00:11:46.760><c> logic</c><00:11:47.080><c> gates</c>

00:11:47.310 --> 00:11:47.320 align:start position:0%
So, how do we make common logic gates
 

00:11:47.320 --> 00:11:49.470 align:start position:0%
So, how do we make common logic gates
using<00:11:47.600><c> these</c><00:11:47.760><c> values?</c>

00:11:49.470 --> 00:11:49.480 align:start position:0%
using these values?
 

00:11:49.480 --> 00:11:52.190 align:start position:0%
using these values?
Let's<00:11:49.760><c> start</c><00:11:49.960><c> with</c><00:11:50.080><c> not.</c>

00:11:52.190 --> 00:11:52.200 align:start position:0%
Let's start with not.
 

00:11:52.200 --> 00:11:53.790 align:start position:0%
Let's start with not.
In<00:11:52.400><c> other</c><00:11:52.560><c> words,</c><00:11:52.880><c> we</c><00:11:53.000><c> want</c><00:11:53.120><c> a</c><00:11:53.200><c> function</c><00:11:53.600><c> that</c>

00:11:53.790 --> 00:11:53.800 align:start position:0%
In other words, we want a function that
 

00:11:53.800 --> 00:11:57.390 align:start position:0%
In other words, we want a function that
maps<00:11:54.040><c> true</c><00:11:54.320><c> onto</c><00:11:54.520><c> false,</c><00:11:55.280><c> and</c><00:11:55.400><c> vice</c><00:11:55.680><c> versa.</c>

00:11:57.390 --> 00:11:57.400 align:start position:0%
maps true onto false, and vice versa.
 

00:11:57.400 --> 00:11:59.990 align:start position:0%
maps true onto false, and vice versa.
Not<00:11:57.920><c> only</c><00:11:58.160><c> takes</c><00:11:58.440><c> in</c><00:11:58.600><c> one</c><00:11:58.800><c> variable,</c><00:11:59.720><c> so</c><00:11:59.880><c> our</c>

00:11:59.990 --> 00:12:00.000 align:start position:0%
Not only takes in one variable, so our
 

00:12:00.000 --> 00:12:01.630 align:start position:0%
Not only takes in one variable, so our
function<00:12:00.400><c> should,</c><00:12:00.680><c> too.</c>

00:12:01.630 --> 00:12:01.640 align:start position:0%
function should, too.
 

00:12:01.640 --> 00:12:03.550 align:start position:0%
function should, too.
The<00:12:01.760><c> trick</c><00:12:02.280><c> is</c><00:12:02.440><c> to</c><00:12:02.560><c> use</c><00:12:02.760><c> that</c><00:12:02.920><c> argument</c><00:12:03.400><c> as</c><00:12:03.520><c> a</c>

00:12:03.550 --> 00:12:03.560 align:start position:0%
The trick is to use that argument as a
 

00:12:03.560 --> 00:12:04.790 align:start position:0%
The trick is to use that argument as a
selector.

00:12:04.790 --> 00:12:04.800 align:start position:0%
selector.
 

00:12:04.800 --> 00:12:06.630 align:start position:0%
selector.
If<00:12:04.960><c> the</c><00:12:05.080><c> input</c><00:12:05.360><c> is</c><00:12:05.520><c> true,</c><00:12:06.160><c> then</c><00:12:06.320><c> the</c><00:12:06.400><c> first</c>

00:12:06.630 --> 00:12:06.640 align:start position:0%
If the input is true, then the first
 

00:12:06.640 --> 00:12:07.790 align:start position:0%
If the input is true, then the first
argument<00:12:07.120><c> is</c><00:12:07.240><c> the</c><00:12:07.320><c> one</c><00:12:07.480><c> which</c><00:12:07.600><c> will</c><00:12:07.680><c> be</c>

00:12:07.790 --> 00:12:07.800 align:start position:0%
argument is the one which will be
 

00:12:07.800 --> 00:12:11.070 align:start position:0%
argument is the one which will be
picked.<00:12:08.760><c> Since</c><00:12:09.040><c> not</c><00:12:09.360><c> true</c><00:12:09.680><c> is</c><00:12:09.840><c> false,</c><00:12:10.800><c> false</c>

00:12:11.070 --> 00:12:11.080 align:start position:0%
picked. Since not true is false, false
 

00:12:11.080 --> 00:12:13.070 align:start position:0%
picked. Since not true is false, false
should<00:12:11.280><c> be</c><00:12:11.360><c> the</c><00:12:11.480><c> thing</c><00:12:11.680><c> in</c><00:12:11.760><c> this</c><00:12:11.960><c> blank.</c>

00:12:13.070 --> 00:12:13.080 align:start position:0%
should be the thing in this blank.
 

00:12:13.080 --> 00:12:14.670 align:start position:0%
should be the thing in this blank.
If<00:12:13.280><c> the</c><00:12:13.400><c> input</c><00:12:13.680><c> is</c><00:12:13.800><c> false,</c><00:12:14.320><c> we</c><00:12:14.440><c> want</c><00:12:14.600><c> the</c>

00:12:14.670 --> 00:12:14.680 align:start position:0%
If the input is false, we want the
 

00:12:14.680 --> 00:12:17.070 align:start position:0%
If the input is false, we want the
selected<00:12:15.080><c> value</c><00:12:15.320><c> to</c><00:12:15.360><c> be</c><00:12:15.480><c> true.</c><00:12:16.400><c> So,</c><00:12:16.760><c> this</c><00:12:16.960><c> is</c>

00:12:17.070 --> 00:12:17.080 align:start position:0%
selected value to be true. So, this is
 

00:12:17.080 --> 00:12:18.750 align:start position:0%
selected value to be true. So, this is
not.

00:12:18.750 --> 00:12:18.760 align:start position:0%
not.
 

00:12:18.760 --> 00:12:20.470 align:start position:0%
not.
If<00:12:18.920><c> we</c><00:12:19.040><c> want</c><00:12:19.160><c> to</c><00:12:19.240><c> write</c><00:12:19.400><c> it</c><00:12:19.480><c> in</c><00:12:19.640><c> full,</c><00:12:20.200><c> we</c><00:12:20.320><c> can</c>

00:12:20.470 --> 00:12:20.480 align:start position:0%
If we want to write it in full, we can
 

00:12:20.480 --> 00:12:23.270 align:start position:0%
If we want to write it in full, we can
substitute<00:12:21.000><c> in</c><00:12:21.120><c> the</c><00:12:21.240><c> trues</c><00:12:21.560><c> and</c><00:12:21.680><c> falses.</c>

00:12:23.270 --> 00:12:23.280 align:start position:0%
substitute in the trues and falses.
 

00:12:23.280 --> 00:12:25.670 align:start position:0%
substitute in the trues and falses.
But<00:12:23.520><c> for</c><00:12:23.640><c> now,</c><00:12:24.080><c> let's</c><00:12:24.320><c> leave</c><00:12:24.440><c> it</c><00:12:24.560><c> like</c><00:12:24.720><c> this.</c>

00:12:25.670 --> 00:12:25.680 align:start position:0%
But for now, let's leave it like this.
 

00:12:25.680 --> 00:12:27.110 align:start position:0%
But for now, let's leave it like this.
Let's<00:12:25.880><c> see</c><00:12:25.960><c> what</c><00:12:26.120><c> happens</c><00:12:26.520><c> by</c><00:12:26.640><c> passing</c><00:12:26.960><c> in</c>

00:12:27.110 --> 00:12:27.120 align:start position:0%
Let's see what happens by passing in
 

00:12:27.120 --> 00:12:28.910 align:start position:0%
Let's see what happens by passing in
false.

00:12:28.910 --> 00:12:28.920 align:start position:0%
false.
 

00:12:28.920 --> 00:12:30.750 align:start position:0%
false.
We're<00:12:29.160><c> expecting</c><00:12:29.600><c> true</c><00:12:29.880><c> out,</c><00:12:30.240><c> since</c><00:12:30.480><c> not</c>

00:12:30.750 --> 00:12:30.760 align:start position:0%
We're expecting true out, since not
 

00:12:30.760 --> 00:12:32.390 align:start position:0%
We're expecting true out, since not
false<00:12:31.080><c> is</c><00:12:31.240><c> true.</c>

00:12:32.390 --> 00:12:32.400 align:start position:0%
false is true.
 

00:12:32.400 --> 00:12:34.150 align:start position:0%
false is true.
Beta<00:12:32.640><c> reduce</c><00:12:32.960><c> once.</c>

00:12:34.150 --> 00:12:34.160 align:start position:0%
Beta reduce once.
 

00:12:34.160 --> 00:12:37.470 align:start position:0%
Beta reduce once.
Substitute<00:12:34.760><c> in</c><00:12:34.880><c> the</c><00:12:34.960><c> known</c><00:12:35.160><c> value</c><00:12:35.440><c> of</c><00:12:35.560><c> false.</c>

00:12:37.470 --> 00:12:37.480 align:start position:0%
Substitute in the known value of false.
 

00:12:37.480 --> 00:12:40.710 align:start position:0%
Substitute in the known value of false.
Beta<00:12:37.720><c> reduce</c><00:12:38.000><c> twice</c><00:12:38.280><c> more.</c>

00:12:40.710 --> 00:12:40.720 align:start position:0%
Beta reduce twice more.
 

00:12:40.720 --> 00:12:43.110 align:start position:0%
Beta reduce twice more.
And<00:12:41.000><c> sure</c><00:12:41.160><c> enough,</c><00:12:41.560><c> it's</c><00:12:41.760><c> true.</c>

00:12:43.110 --> 00:12:43.120 align:start position:0%
And sure enough, it's true.
 

00:12:43.120 --> 00:12:45.510 align:start position:0%
And sure enough, it's true.
Here's<00:12:43.360><c> what</c><00:12:43.520><c> not</c><00:12:43.680><c> looks</c><00:12:43.880><c> like</c><00:12:44.080><c> as</c><00:12:44.200><c> a</c><00:12:44.240><c> diagram.</c>

00:12:45.510 --> 00:12:45.520 align:start position:0%
Here's what not looks like as a diagram.
 

00:12:45.520 --> 00:12:47.230 align:start position:0%
Here's what not looks like as a diagram.
I'll<00:12:45.760><c> highlight</c><00:12:46.080><c> the</c><00:12:46.200><c> true</c><00:12:46.480><c> subcomponent</c><00:12:47.120><c> as</c>

00:12:47.230 --> 00:12:47.240 align:start position:0%
I'll highlight the true subcomponent as
 

00:12:47.240 --> 00:12:49.910 align:start position:0%
I'll highlight the true subcomponent as
a<00:12:47.280><c> green,</c><00:12:47.960><c> and</c><00:12:48.120><c> false</c><00:12:48.520><c> as</c><00:12:48.680><c> red.</c>

00:12:49.910 --> 00:12:49.920 align:start position:0%
a green, and false as red.
 

00:12:49.920 --> 00:12:51.630 align:start position:0%
a green, and false as red.
Let's<00:12:50.200><c> plug</c><00:12:50.360><c> in</c><00:12:50.480><c> true</c><00:12:50.640><c> this</c><00:12:50.839><c> time,</c><00:12:51.320><c> and</c><00:12:51.440><c> check</c>

00:12:51.630 --> 00:12:51.640 align:start position:0%
Let's plug in true this time, and check
 

00:12:51.640 --> 00:12:58.190 align:start position:0%
Let's plug in true this time, and check
what<00:12:51.760><c> we</c><00:12:51.880><c> get.</c>

00:12:58.190 --> 00:12:58.200 align:start position:0%
 
 

00:12:58.200 --> 00:13:00.670 align:start position:0%
 
It's<00:12:58.480><c> false,</c><00:12:58.920><c> as</c><00:12:59.080><c> desired.</c>

00:13:00.670 --> 00:13:00.680 align:start position:0%
It's false, as desired.
 

00:13:00.680 --> 00:13:02.110 align:start position:0%
It's false, as desired.
How<00:13:00.839><c> about</c><00:13:01.160><c> and?</c>

00:13:02.110 --> 00:13:02.120 align:start position:0%
How about and?
 

00:13:02.120 --> 00:13:04.190 align:start position:0%
How about and?
And<00:13:02.520><c> takes</c><00:13:02.800><c> two</c><00:13:02.960><c> variables</c><00:13:03.440><c> in,</c><00:13:03.920><c> so</c><00:13:04.080><c> our</c>

00:13:04.190 --> 00:13:04.200 align:start position:0%
And takes two variables in, so our
 

00:13:04.200 --> 00:13:05.950 align:start position:0%
And takes two variables in, so our
function<00:13:04.600><c> should,</c><00:13:04.839><c> too.</c>

00:13:05.950 --> 00:13:05.960 align:start position:0%
function should, too.
 

00:13:05.960 --> 00:13:07.110 align:start position:0%
function should, too.
We're<00:13:06.120><c> going</c><00:13:06.240><c> to</c><00:13:06.320><c> use</c><00:13:06.480><c> the</c><00:13:06.560><c> same</c><00:13:06.800><c> trick</c><00:13:07.000><c> as</c>

00:13:07.110 --> 00:13:07.120 align:start position:0%
We're going to use the same trick as
 

00:13:07.120 --> 00:13:09.630 align:start position:0%
We're going to use the same trick as
with<00:13:07.280><c> not,</c><00:13:07.800><c> using</c><00:13:08.080><c> X</c><00:13:08.320><c> as</c><00:13:08.440><c> a</c><00:13:08.480><c> selector.</c>

00:13:09.630 --> 00:13:09.640 align:start position:0%
with not, using X as a selector.
 

00:13:09.640 --> 00:13:11.710 align:start position:0%
with not, using X as a selector.
If<00:13:09.800><c> X</c><00:13:10.000><c> is</c><00:13:10.160><c> false,</c><00:13:10.760><c> then</c><00:13:10.880><c> the</c><00:13:11.000><c> answer</c><00:13:11.240><c> is</c><00:13:11.400><c> false,</c>

00:13:11.710 --> 00:13:11.720 align:start position:0%
If X is false, then the answer is false,
 

00:13:11.720 --> 00:13:12.670 align:start position:0%
If X is false, then the answer is false,
too.

00:13:12.670 --> 00:13:12.680 align:start position:0%
too.
 

00:13:12.680 --> 00:13:14.950 align:start position:0%
too.
Remember<00:13:13.040><c> that</c><00:13:13.240><c> true</c><00:13:13.600><c> and</c><00:13:13.920><c> something</c><00:13:14.560><c> is</c><00:13:14.720><c> just</c>

00:13:14.950 --> 00:13:14.960 align:start position:0%
Remember that true and something is just
 

00:13:14.960 --> 00:13:17.950 align:start position:0%
Remember that true and something is just
that<00:13:15.200><c> something.</c><00:13:16.280><c> So,</c><00:13:16.640><c> if</c><00:13:16.839><c> X</c><00:13:17.040><c> is</c><00:13:17.200><c> true,</c><00:13:17.800><c> then</c>

00:13:17.950 --> 00:13:17.960 align:start position:0%
that something. So, if X is true, then
 

00:13:17.960 --> 00:13:20.270 align:start position:0%
that something. So, if X is true, then
the<00:13:18.040><c> answer</c><00:13:18.280><c> is</c><00:13:18.400><c> whatever</c><00:13:18.720><c> Y</c><00:13:18.920><c> is.</c><00:13:19.760><c> So,</c><00:13:19.960><c> this</c><00:13:20.160><c> is</c>

00:13:20.270 --> 00:13:20.280 align:start position:0%
the answer is whatever Y is. So, this is
 

00:13:20.280 --> 00:13:21.430 align:start position:0%
the answer is whatever Y is. So, this is
and.

00:13:21.430 --> 00:13:21.440 align:start position:0%
and.
 

00:13:21.440 --> 00:13:22.910 align:start position:0%
and.
I'll<00:13:21.640><c> leave</c><00:13:21.800><c> it</c><00:13:21.880><c> as</c><00:13:22.000><c> a</c><00:13:22.040><c> challenge</c><00:13:22.440><c> to</c><00:13:22.560><c> you</c><00:13:22.839><c> to</c>

00:13:22.910 --> 00:13:22.920 align:start position:0%
I'll leave it as a challenge to you to
 

00:13:22.920 --> 00:13:27.150 align:start position:0%
I'll leave it as a challenge to you to
find<00:13:23.240><c> or.</c>

00:13:27.150 --> 00:13:27.160 align:start position:0%
 
 

00:13:27.160 --> 00:13:29.470 align:start position:0%
 
Okay,<00:13:27.720><c> now</c><00:13:27.839><c> how</c><00:13:28.000><c> about</c><00:13:28.200><c> numbers?</c>

00:13:29.470 --> 00:13:29.480 align:start position:0%
Okay, now how about numbers?
 

00:13:29.480 --> 00:13:30.950 align:start position:0%
Okay, now how about numbers?
The<00:13:29.560><c> underlying</c><00:13:29.960><c> inspiration</c><00:13:30.520><c> here</c><00:13:30.760><c> is</c><00:13:30.880><c> to</c>

00:13:30.950 --> 00:13:30.960 align:start position:0%
The underlying inspiration here is to
 

00:13:30.960 --> 00:13:34.270 align:start position:0%
The underlying inspiration here is to
represent<00:13:31.440><c> one</c><00:13:31.880><c> as</c><00:13:32.080><c> f</c><00:13:32.320><c> of</c><00:13:32.480><c> x,</c><00:13:33.200><c> two</c><00:13:33.560><c> as</c><00:13:33.760><c> f</c><00:13:33.960><c> of</c><00:13:34.080><c> f</c>

00:13:34.270 --> 00:13:34.280 align:start position:0%
represent one as f of x, two as f of f
 

00:13:34.280 --> 00:13:36.310 align:start position:0%
represent one as f of x, two as f of f
of<00:13:34.440><c> x,</c><00:13:35.000><c> and</c><00:13:35.160><c> so</c><00:13:35.360><c> on.</c>

00:13:36.310 --> 00:13:36.320 align:start position:0%
of x, and so on.
 

00:13:36.320 --> 00:13:37.870 align:start position:0%
of x, and so on.
In<00:13:36.400><c> other</c><00:13:36.600><c> words,</c><00:13:37.080><c> the</c><00:13:37.160><c> number</c><00:13:37.520><c> n</c><00:13:37.760><c> is</c>

00:13:37.870 --> 00:13:37.880 align:start position:0%
In other words, the number n is
 

00:13:37.880 --> 00:13:39.870 align:start position:0%
In other words, the number n is
represented<00:13:38.480><c> by</c><00:13:38.600><c> applying</c><00:13:39.040><c> some</c><00:13:39.320><c> function</c><00:13:39.760><c> to</c>

00:13:39.870 --> 00:13:39.880 align:start position:0%
represented by applying some function to
 

00:13:39.880 --> 00:13:43.110 align:start position:0%
represented by applying some function to
some<00:13:40.120><c> value</c><00:13:40.520><c> x</c><00:13:41.360><c> n</c><00:13:41.560><c> times</c><00:13:41.880><c> over.</c>

00:13:43.110 --> 00:13:43.120 align:start position:0%
some value x n times over.
 

00:13:43.120 --> 00:13:44.670 align:start position:0%
some value x n times over.
Well,<00:13:43.480><c> almost.</c>

00:13:44.670 --> 00:13:44.680 align:start position:0%
Well, almost.
 

00:13:44.680 --> 00:13:46.110 align:start position:0%
Well, almost.
The<00:13:44.720><c> numbers</c><00:13:45.080><c> are</c><00:13:45.200><c> really</c><00:13:45.480><c> two-argument</c>

00:13:46.110 --> 00:13:46.120 align:start position:0%
The numbers are really two-argument
 

00:13:46.120 --> 00:13:48.630 align:start position:0%
The numbers are really two-argument
functions<00:13:46.680><c> which</c><00:13:46.880><c> take</c><00:13:47.160><c> in</c><00:13:47.360><c> f</c><00:13:47.520><c> and</c><00:13:47.720><c> x,</c><00:13:48.440><c> and</c>

00:13:48.630 --> 00:13:48.640 align:start position:0%
functions which take in f and x, and
 

00:13:48.640 --> 00:13:52.270 align:start position:0%
functions which take in f and x, and
then<00:13:48.800><c> apply</c><00:13:49.120><c> f</c><00:13:49.320><c> to</c><00:13:49.480><c> x</c><00:13:49.880><c> n</c><00:13:50.040><c> times.</c>

00:13:52.270 --> 00:13:52.280 align:start position:0%
then apply f to x n times.
 

00:13:52.280 --> 00:13:53.310 align:start position:0%
then apply f to x n times.
It's<00:13:52.400><c> important</c><00:13:52.800><c> to</c><00:13:52.840><c> understand</c><00:13:53.280><c> the</c>

00:13:53.310 --> 00:13:53.320 align:start position:0%
It's important to understand the
 

00:13:53.320 --> 00:13:54.670 align:start position:0%
It's important to understand the
difference<00:13:53.680><c> there.</c>

00:13:54.670 --> 00:13:54.680 align:start position:0%
difference there.
 

00:13:54.680 --> 00:13:56.790 align:start position:0%
difference there.
These<00:13:54.840><c> numbers</c><00:13:55.240><c> are</c><00:13:55.480><c> functions</c><00:13:56.200><c> that</c><00:13:56.440><c> take</c><00:13:56.680><c> in</c>

00:13:56.790 --> 00:13:56.800 align:start position:0%
These numbers are functions that take in
 

00:13:56.800 --> 00:13:58.630 align:start position:0%
These numbers are functions that take in
a<00:13:56.840><c> function</c><00:13:57.200><c> and</c><00:13:57.280><c> a</c><00:13:57.320><c> variable,</c><00:13:58.200><c> and</c><00:13:58.360><c> then</c>

00:13:58.630 --> 00:13:58.640 align:start position:0%
a function and a variable, and then
 

00:13:58.640 --> 00:14:01.470 align:start position:0%
a function and a variable, and then
iterate<00:13:59.040><c> that</c><00:13:59.240><c> function</c><00:13:59.840><c> on</c><00:14:00.000><c> that</c><00:14:00.200><c> variable.</c>

00:14:01.470 --> 00:14:01.480 align:start position:0%
iterate that function on that variable.
 

00:14:01.480 --> 00:14:04.030 align:start position:0%
iterate that function on that variable.
So,<00:14:01.720><c> we</c><00:14:01.880><c> can</c><00:14:02.080><c> give</c><00:14:02.360><c> two</c><00:14:02.800><c> the</c><00:14:02.960><c> function</c><00:14:03.440><c> sign</c>

00:14:04.030 --> 00:14:04.040 align:start position:0%
So, we can give two the function sign
 

00:14:04.040 --> 00:14:05.950 align:start position:0%
So, we can give two the function sign
and<00:14:04.160><c> the</c><00:14:04.240><c> value</c><00:14:04.640><c> five,</c>

00:14:05.950 --> 00:14:05.960 align:start position:0%
and the value five,
 

00:14:05.960 --> 00:14:09.910 align:start position:0%
and the value five,
and<00:14:06.160><c> two</c><00:14:06.440><c> will</c><00:14:06.600><c> apply</c><00:14:07.000><c> sign</c><00:14:07.440><c> to</c><00:14:07.600><c> five</c><00:14:07.920><c> twice.</c>

00:14:09.910 --> 00:14:09.920 align:start position:0%
and two will apply sign to five twice.
 

00:14:09.920 --> 00:14:12.790 align:start position:0%
and two will apply sign to five twice.
So,<00:14:10.120><c> how</c><00:14:10.240><c> do</c><00:14:10.360><c> we</c><00:14:10.440><c> do</c><00:14:10.560><c> math</c><00:14:10.880><c> on</c><00:14:11.000><c> these?</c>

00:14:12.790 --> 00:14:12.800 align:start position:0%
So, how do we do math on these?
 

00:14:12.800 --> 00:14:14.790 align:start position:0%
So, how do we do math on these?
Let's<00:14:13.000><c> start</c><00:14:13.240><c> with</c><00:14:13.440><c> succession.</c>

00:14:14.790 --> 00:14:14.800 align:start position:0%
Let's start with succession.
 

00:14:14.800 --> 00:14:17.230 align:start position:0%
Let's start with succession.
This<00:14:15.000><c> is</c><00:14:15.120><c> the</c><00:14:15.240><c> function</c><00:14:15.640><c> that,</c><00:14:16.120><c> when</c><00:14:16.320><c> given</c><00:14:16.680><c> n,</c>

00:14:17.230 --> 00:14:17.240 align:start position:0%
This is the function that, when given n,
 

00:14:17.240 --> 00:14:19.750 align:start position:0%
This is the function that, when given n,
returns<00:14:17.760><c> n</c><00:14:17.920><c> plus</c><00:14:18.200><c> one.</c>

00:14:19.750 --> 00:14:19.760 align:start position:0%
returns n plus one.
 

00:14:19.760 --> 00:14:22.270 align:start position:0%
returns n plus one.
It<00:14:19.920><c> takes</c><00:14:20.240><c> one</c><00:14:20.480><c> number</c><00:14:20.800><c> as</c><00:14:20.920><c> an</c><00:14:21.040><c> input.</c>

00:14:22.270 --> 00:14:22.280 align:start position:0%
It takes one number as an input.
 

00:14:22.280 --> 00:14:23.910 align:start position:0%
It takes one number as an input.
The<00:14:22.360><c> thing</c><00:14:22.520><c> that</c><00:14:22.640><c> it</c><00:14:22.760><c> spits</c><00:14:23.080><c> out</c><00:14:23.360><c> is</c><00:14:23.560><c> also</c><00:14:23.880><c> a</c>

00:14:23.910 --> 00:14:23.920 align:start position:0%
The thing that it spits out is also a
 

00:14:23.920 --> 00:14:25.710 align:start position:0%
The thing that it spits out is also a
number.<00:14:24.640><c> So,</c><00:14:24.840><c> we're</c><00:14:24.960><c> going</c><00:14:25.080><c> to</c><00:14:25.160><c> make</c><00:14:25.280><c> the</c><00:14:25.400><c> body</c>

00:14:25.710 --> 00:14:25.720 align:start position:0%
number. So, we're going to make the body
 

00:14:25.720 --> 00:14:27.630 align:start position:0%
number. So, we're going to make the body
look<00:14:25.960><c> like</c><00:14:26.120><c> a</c><00:14:26.160><c> number.</c>

00:14:27.630 --> 00:14:27.640 align:start position:0%
look like a number.
 

00:14:27.640 --> 00:14:29.829 align:start position:0%
look like a number.
We<00:14:27.800><c> want</c><00:14:28.000><c> to</c><00:14:28.080><c> apply</c><00:14:28.400><c> f</c><00:14:28.640><c> to</c><00:14:28.800><c> x</c><00:14:29.280><c> n</c><00:14:29.400><c> plus</c><00:14:29.640><c> one</c>

00:14:29.829 --> 00:14:29.839 align:start position:0%
We want to apply f to x n plus one
 

00:14:29.839 --> 00:14:31.630 align:start position:0%
We want to apply f to x n plus one
times.

00:14:31.630 --> 00:14:31.640 align:start position:0%
times.
 

00:14:31.640 --> 00:14:34.950 align:start position:0%
times.
We<00:14:31.680><c> can</c><00:14:31.839><c> start</c><00:14:32.120><c> by</c><00:14:32.240><c> applying</c><00:14:32.600><c> f</c><00:14:32.720><c> to</c><00:14:32.880><c> x</c><00:14:33.160><c> n</c><00:14:33.400><c> times.</c>

00:14:34.950 --> 00:14:34.960 align:start position:0%
We can start by applying f to x n times.
 

00:14:34.960 --> 00:14:36.950 align:start position:0%
We can start by applying f to x n times.
We<00:14:35.040><c> do</c><00:14:35.240><c> this</c><00:14:35.520><c> by</c><00:14:35.720><c> using</c><00:14:36.040><c> the</c><00:14:36.160><c> numeral</c><00:14:36.720><c> as</c><00:14:36.880><c> a</c>

00:14:36.950 --> 00:14:36.960 align:start position:0%
We do this by using the numeral as a
 

00:14:36.960 --> 00:14:40.110 align:start position:0%
We do this by using the numeral as a
function<00:14:37.560><c> and</c><00:14:37.720><c> passing</c><00:14:38.080><c> f</c><00:14:38.280><c> and</c><00:14:38.400><c> x</c><00:14:38.600><c> into</c><00:14:38.839><c> it.</c>

00:14:40.110 --> 00:14:40.120 align:start position:0%
function and passing f and x into it.
 

00:14:40.120 --> 00:14:42.190 align:start position:0%
function and passing f and x into it.
All<00:14:40.240><c> that's</c><00:14:40.480><c> left</c><00:14:40.920><c> is</c><00:14:41.040><c> to</c><00:14:41.120><c> apply</c><00:14:41.400><c> f</c><00:14:41.760><c> just</c><00:14:42.040><c> one</c>

00:14:42.190 --> 00:14:42.200 align:start position:0%
All that's left is to apply f just one
 

00:14:42.200 --> 00:14:43.990 align:start position:0%
All that's left is to apply f just one
more<00:14:42.360><c> time.</c>

00:14:43.990 --> 00:14:44.000 align:start position:0%
more time.
 

00:14:44.000 --> 00:14:46.310 align:start position:0%
more time.
Let's<00:14:44.200><c> evaluate</c><00:14:44.600><c> the</c><00:14:44.680><c> successor</c><00:14:45.160><c> of</c><00:14:45.280><c> five.</c>

00:14:46.310 --> 00:14:46.320 align:start position:0%
Let's evaluate the successor of five.
 

00:14:46.320 --> 00:14:48.550 align:start position:0%
Let's evaluate the successor of five.
I've<00:14:46.480><c> colored</c><00:14:46.760><c> the</c><00:14:46.920><c> extra</c><00:14:47.280><c> f</c><00:14:47.560><c> red.</c><00:14:48.200><c> Keep</c><00:14:48.440><c> an</c>

00:14:48.550 --> 00:14:48.560 align:start position:0%
I've colored the extra f red. Keep an
 

00:14:48.560 --> 00:14:53.030 align:start position:0%
I've colored the extra f red. Keep an
eye<00:14:48.640><c> on</c><00:14:48.800><c> it</c><00:14:48.880><c> during</c><00:14:49.120><c> reduction.</c>

00:14:53.030 --> 00:14:53.040 align:start position:0%
 
 

00:14:53.040 --> 00:14:55.870 align:start position:0%
 
Check<00:14:53.200><c> it</c><00:14:53.320><c> out.</c><00:14:53.640><c> That's</c><00:14:53.920><c> six.</c>

00:14:55.870 --> 00:14:55.880 align:start position:0%
Check it out. That's six.
 

00:14:55.880 --> 00:14:57.590 align:start position:0%
Check it out. That's six.
How<00:14:55.960><c> about</c><00:14:56.120><c> addition,</c><00:14:56.480><c> then?</c>

00:14:57.590 --> 00:14:57.600 align:start position:0%
How about addition, then?
 

00:14:57.600 --> 00:14:59.390 align:start position:0%
How about addition, then?
Addition<00:14:58.080><c> is</c><00:14:58.240><c> a</c><00:14:58.280><c> function</c><00:14:58.640><c> that</c><00:14:58.760><c> takes</c><00:14:59.040><c> in</c><00:14:59.160><c> two</c>

00:14:59.390 --> 00:14:59.400 align:start position:0%
Addition is a function that takes in two
 

00:14:59.400 --> 00:15:01.550 align:start position:0%
Addition is a function that takes in two
numbers.

00:15:01.550 --> 00:15:01.560 align:start position:0%
numbers.
 

00:15:01.560 --> 00:15:02.990 align:start position:0%
numbers.
Since<00:15:01.760><c> we</c><00:15:01.880><c> already</c><00:15:02.080><c> defined</c><00:15:02.440><c> the</c><00:15:02.520><c> successor</c>

00:15:02.990 --> 00:15:03.000 align:start position:0%
Since we already defined the successor
 

00:15:03.000 --> 00:15:06.150 align:start position:0%
Since we already defined the successor
function,<00:15:03.720><c> we</c><00:15:03.839><c> can</c><00:15:04.000><c> use</c><00:15:04.160><c> it</c><00:15:04.280><c> here.</c>

00:15:06.150 --> 00:15:06.160 align:start position:0%
function, we can use it here.
 

00:15:06.160 --> 00:15:08.990 align:start position:0%
function, we can use it here.
Calling<00:15:06.440><c> successor</c><00:15:07.120><c> adds</c><00:15:07.400><c> one</c><00:15:07.680><c> to</c><00:15:07.839><c> a</c><00:15:07.880><c> number.</c>

00:15:08.990 --> 00:15:09.000 align:start position:0%
Calling successor adds one to a number.
 

00:15:09.000 --> 00:15:11.470 align:start position:0%
Calling successor adds one to a number.
To<00:15:09.040><c> get</c><00:15:09.320><c> n</c><00:15:09.520><c> plus</c><00:15:09.880><c> m,</c><00:15:10.640><c> we</c><00:15:10.760><c> just</c><00:15:10.960><c> have</c><00:15:11.120><c> to</c><00:15:11.240><c> call</c>

00:15:11.470 --> 00:15:11.480 align:start position:0%
To get n plus m, we just have to call
 

00:15:11.480 --> 00:15:14.870 align:start position:0%
To get n plus m, we just have to call
successor<00:15:12.040><c> on</c><00:15:12.240><c> n</c><00:15:13.040><c> m</c><00:15:13.240><c> times</c><00:15:13.600><c> over.</c>

00:15:14.870 --> 00:15:14.880 align:start position:0%
successor on n m times over.
 

00:15:14.880 --> 00:15:16.710 align:start position:0%
successor on n m times over.
Remember,<00:15:15.280><c> the</c><00:15:15.400><c> number</c><00:15:15.720><c> m</c><00:15:15.880><c> itself</c><00:15:16.440><c> is</c><00:15:16.640><c> a</c>

00:15:16.710 --> 00:15:16.720 align:start position:0%
Remember, the number m itself is a
 

00:15:16.720 --> 00:15:18.310 align:start position:0%
Remember, the number m itself is a
function,

00:15:18.310 --> 00:15:18.320 align:start position:0%
function,
 

00:15:18.320 --> 00:15:20.030 align:start position:0%
function,
which,<00:15:18.760><c> when</c><00:15:18.920><c> applied</c><00:15:19.320><c> to</c><00:15:19.440><c> the</c><00:15:19.520><c> successor</c>

00:15:20.030 --> 00:15:20.040 align:start position:0%
which, when applied to the successor
 

00:15:20.040 --> 00:15:22.470 align:start position:0%
which, when applied to the successor
function,<00:15:20.800><c> will</c><00:15:21.080><c> iterate</c><00:15:21.520><c> that</c><00:15:21.720><c> function</c><00:15:22.200><c> m</c>

00:15:22.470 --> 00:15:22.480 align:start position:0%
function, will iterate that function m
 

00:15:22.480 --> 00:15:23.710 align:start position:0%
function, will iterate that function m
times.

00:15:23.710 --> 00:15:23.720 align:start position:0%
times.
 

00:15:23.720 --> 00:15:26.950 align:start position:0%
times.
So,<00:15:24.480><c> m</c><00:15:24.760><c> suck</c><00:15:25.200><c> n</c><00:15:25.760><c> is</c><00:15:25.880><c> the</c><00:15:26.000><c> same</c><00:15:26.240><c> as</c><00:15:26.400><c> adding</c><00:15:26.720><c> one</c>

00:15:26.950 --> 00:15:26.960 align:start position:0%
So, m suck n is the same as adding one
 

00:15:26.960 --> 00:15:29.750 align:start position:0%
So, m suck n is the same as adding one
to<00:15:27.160><c> n</c><00:15:27.840><c> m</c><00:15:28.040><c> times</c><00:15:28.360><c> over.</c>

00:15:29.750 --> 00:15:29.760 align:start position:0%
to n m times over.
 

00:15:29.760 --> 00:15:31.430 align:start position:0%
to n m times over.
Plug<00:15:29.960><c> in</c><00:15:30.040><c> this</c><00:15:30.200><c> into</c><00:15:30.440><c> our</c><00:15:30.560><c> function</c><00:15:30.920><c> body,</c><00:15:31.280><c> we</c>

00:15:31.430 --> 00:15:31.440 align:start position:0%
Plug in this into our function body, we
 

00:15:31.440 --> 00:15:32.910 align:start position:0%
Plug in this into our function body, we
get<00:15:31.640><c> this.</c>

00:15:32.910 --> 00:15:32.920 align:start position:0%
get this.
 

00:15:32.920 --> 00:15:34.870 align:start position:0%
get this.
That's<00:15:33.120><c> an</c><00:15:33.200><c> addition</c><00:15:33.560><c> function.</c>

00:15:34.870 --> 00:15:34.880 align:start position:0%
That's an addition function.
 

00:15:34.880 --> 00:15:43.230 align:start position:0%
That's an addition function.
Let's<00:15:35.080><c> add</c><00:15:35.240><c> five</c><00:15:35.480><c> and</c><00:15:35.560><c> three</c><00:15:35.720><c> together.</c>

00:15:43.230 --> 00:15:43.240 align:start position:0%
 
 

00:15:43.240 --> 00:15:44.590 align:start position:0%
 
It's<00:15:43.440><c> eight.</c>

00:15:44.590 --> 00:15:44.600 align:start position:0%
It's eight.
 

00:15:44.600 --> 00:15:46.110 align:start position:0%
It's eight.
This<00:15:44.760><c> addition</c><00:15:45.160><c> function</c><00:15:45.520><c> takes</c><00:15:45.760><c> a</c><00:15:45.800><c> lot</c><00:15:46.000><c> of</c>

00:15:46.110 --> 00:15:46.120 align:start position:0%
This addition function takes a lot of
 

00:15:46.120 --> 00:15:48.030 align:start position:0%
This addition function takes a lot of
beta<00:15:46.280><c> reductions</c><00:15:46.800><c> to</c><00:15:46.880><c> complete.</c>

00:15:48.030 --> 00:15:48.040 align:start position:0%
beta reductions to complete.
 

00:15:48.040 --> 00:15:51.270 align:start position:0%
beta reductions to complete.
I'll<00:15:48.240><c> spoil</c><00:15:48.560><c> a</c><00:15:48.600><c> faster</c><00:15:48.960><c> one</c><00:15:49.120><c> here.</c>

00:15:51.270 --> 00:15:51.280 align:start position:0%
I'll spoil a faster one here.
 

00:15:51.280 --> 00:15:52.990 align:start position:0%
I'll spoil a faster one here.
Multiplication<00:15:52.080><c> can</c><00:15:52.240><c> be</c><00:15:52.360><c> defined</c><00:15:52.680><c> in</c><00:15:52.760><c> terms</c>

00:15:52.990 --> 00:15:53.000 align:start position:0%
Multiplication can be defined in terms
 

00:15:53.000 --> 00:15:55.390 align:start position:0%
Multiplication can be defined in terms
of<00:15:53.120><c> repeated</c><00:15:53.520><c> addition.</c>

00:15:55.390 --> 00:15:55.400 align:start position:0%
of repeated addition.
 

00:15:55.400 --> 00:15:59.150 align:start position:0%
of repeated addition.
But<00:15:55.520><c> there's</c><00:15:55.680><c> also</c><00:15:55.960><c> a</c><00:15:56.000><c> quicker</c><00:15:56.320><c> way.</c>

00:15:59.150 --> 00:15:59.160 align:start position:0%
 
 

00:15:59.160 --> 00:16:02.390 align:start position:0%
 
Here's<00:15:59.320><c> exponentiation,</c><00:16:00.200><c> too.</c>

00:16:02.390 --> 00:16:02.400 align:start position:0%
Here's exponentiation, too.
 

00:16:02.400 --> 00:16:03.830 align:start position:0%
Here's exponentiation, too.
Now,<00:16:02.720><c> I</c><00:16:02.800><c> promised</c><00:16:03.160><c> you</c><00:16:03.240><c> in</c><00:16:03.320><c> the</c><00:16:03.400><c> thumbnail</c>

00:16:03.830 --> 00:16:03.840 align:start position:0%
Now, I promised you in the thumbnail
 

00:16:03.840 --> 00:16:05.350 align:start position:0%
Now, I promised you in the thumbnail
that<00:16:04.000><c> we'd</c><00:16:04.120><c> find</c><00:16:04.360><c> the</c><00:16:04.480><c> answer</c><00:16:04.680><c> to</c><00:16:04.800><c> plus</c><00:16:05.080><c> times</c>

00:16:05.350 --> 00:16:05.360 align:start position:0%
that we'd find the answer to plus times
 

00:16:05.360 --> 00:16:06.990 align:start position:0%
that we'd find the answer to plus times
plus.

00:16:06.990 --> 00:16:07.000 align:start position:0%
plus.
 

00:16:07.000 --> 00:16:08.550 align:start position:0%
plus.
So,<00:16:07.200><c> here</c><00:16:07.400><c> goes.</c>

00:16:08.550 --> 00:16:08.560 align:start position:0%
So, here goes.
 

00:16:08.560 --> 00:16:11.430 align:start position:0%
So, here goes.
Let's<00:16:08.760><c> plug</c><00:16:08.960><c> in</c><00:16:09.040><c> the</c><00:16:09.120><c> function</c><00:16:09.480><c> for</c><00:16:09.600><c> times.</c>

00:16:11.430 --> 00:16:11.440 align:start position:0%
Let's plug in the function for times.
 

00:16:11.440 --> 00:16:14.030 align:start position:0%
Let's plug in the function for times.
Reducing,<00:16:12.120><c> we</c><00:16:12.240><c> get</c><00:16:12.440><c> this.</c>

00:16:14.030 --> 00:16:14.040 align:start position:0%
Reducing, we get this.
 

00:16:14.040 --> 00:16:16.550 align:start position:0%
Reducing, we get this.
Okay,<00:16:14.520><c> that's</c><00:16:14.720><c> kind</c><00:16:14.920><c> of</c><00:16:15.000><c> weird.</c>

00:16:16.550 --> 00:16:16.560 align:start position:0%
Okay, that's kind of weird.
 

00:16:16.560 --> 00:16:18.710 align:start position:0%
Okay, that's kind of weird.
We<00:16:16.640><c> get</c><00:16:16.800><c> another</c><00:16:17.120><c> function.</c>

00:16:18.710 --> 00:16:18.720 align:start position:0%
We get another function.
 

00:16:18.720 --> 00:16:21.070 align:start position:0%
We get another function.
But<00:16:19.000><c> let's</c><00:16:19.160><c> just</c><00:16:19.400><c> roll</c><00:16:19.560><c> with</c><00:16:19.720><c> it.</c>

00:16:21.070 --> 00:16:21.080 align:start position:0%
But let's just roll with it.
 

00:16:21.080 --> 00:16:23.390 align:start position:0%
But let's just roll with it.
What<00:16:21.240><c> happens</c><00:16:21.480><c> when</c><00:16:21.600><c> we</c><00:16:21.680><c> stick</c><00:16:21.880><c> a</c><00:16:21.920><c> number</c><00:16:22.200><c> in?</c>

00:16:23.390 --> 00:16:23.400 align:start position:0%
What happens when we stick a number in?
 

00:16:23.400 --> 00:16:25.590 align:start position:0%
What happens when we stick a number in?
Let's<00:16:23.560><c> call</c><00:16:23.720><c> it</c><00:16:23.920><c> a.</c>

00:16:25.590 --> 00:16:25.600 align:start position:0%
Let's call it a.
 

00:16:25.600 --> 00:16:27.150 align:start position:0%
Let's call it a.
Reduce.

00:16:27.150 --> 00:16:27.160 align:start position:0%
Reduce.
 

00:16:27.160 --> 00:16:31.829 align:start position:0%
Reduce.
Substitute<00:16:27.680><c> the</c><00:16:27.760><c> definition</c><00:16:28.240><c> of</c><00:16:28.360><c> plus.</c>

00:16:31.829 --> 00:16:31.839 align:start position:0%
 
 

00:16:31.839 --> 00:16:34.190 align:start position:0%
 
This<00:16:32.120><c> is</c><00:16:32.320><c> still</c><00:16:32.680><c> a</c><00:16:32.760><c> function.</c><00:16:33.839><c> Let's</c><00:16:34.040><c> keep</c>

00:16:34.190 --> 00:16:34.200 align:start position:0%
This is still a function. Let's keep
 

00:16:34.200 --> 00:16:35.630 align:start position:0%
This is still a function. Let's keep
sticking<00:16:34.520><c> numbers</c><00:16:34.800><c> in</c><00:16:35.080><c> until</c><00:16:35.360><c> we</c><00:16:35.480><c> get</c><00:16:35.600><c> a</c>

00:16:35.630 --> 00:16:35.640 align:start position:0%
sticking numbers in until we get a
 

00:16:35.640 --> 00:16:41.030 align:start position:0%
sticking numbers in until we get a
number<00:16:35.960><c> out.</c>

00:16:41.030 --> 00:16:41.040 align:start position:0%
 
 

00:16:41.040 --> 00:16:43.190 align:start position:0%
 
Okay,<00:16:41.520><c> after</c><00:16:41.760><c> inserting</c><00:16:42.160><c> four</c><00:16:42.480><c> arguments,</c><00:16:43.080><c> we</c>

00:16:43.190 --> 00:16:43.200 align:start position:0%
Okay, after inserting four arguments, we
 

00:16:43.200 --> 00:16:44.829 align:start position:0%
Okay, after inserting four arguments, we
got<00:16:43.360><c> a</c><00:16:43.400><c> number</c><00:16:43.720><c> out.</c>

00:16:44.829 --> 00:16:44.839 align:start position:0%
got a number out.
 

00:16:44.839 --> 00:16:46.190 align:start position:0%
got a number out.
Let's<00:16:45.080><c> write</c><00:16:45.240><c> it</c><00:16:45.360><c> in</c><00:16:45.480><c> a</c><00:16:45.520><c> more</c><00:16:45.760><c> familiar</c>

00:16:46.190 --> 00:16:46.200 align:start position:0%
Let's write it in a more familiar
 

00:16:46.200 --> 00:16:47.870 align:start position:0%
Let's write it in a more familiar
notation.

00:16:47.870 --> 00:16:47.880 align:start position:0%
notation.
 

00:16:47.880 --> 00:16:50.070 align:start position:0%
notation.
This<00:16:48.080><c> term</c><00:16:48.360><c> is</c><00:16:48.480><c> just</c><00:16:48.720><c> a</c><00:16:48.800><c> plus</c><00:16:49.040><c> c.</c>

00:16:50.070 --> 00:16:50.080 align:start position:0%
This term is just a plus c.
 

00:16:50.080 --> 00:16:51.270 align:start position:0%
This term is just a plus c.
And<00:16:50.320><c> there's</c><00:16:50.480><c> a</c><00:16:50.560><c> few</c><00:16:50.760><c> examples</c><00:16:51.200><c> of</c>

00:16:51.270 --> 00:16:51.280 align:start position:0%
And there's a few examples of
 

00:16:51.280 --> 00:16:55.470 align:start position:0%
And there's a few examples of
exponentiation<00:16:52.080><c> going</c><00:16:52.360><c> on</c><00:16:52.520><c> here.</c>

00:16:55.470 --> 00:16:55.480 align:start position:0%
 
 

00:16:55.480 --> 00:16:57.510 align:start position:0%
 
Okay,<00:16:55.960><c> so</c><00:16:56.280><c> what</c><00:16:56.440><c> we</c><00:16:56.560><c> learned</c><00:16:56.880><c> here</c><00:16:57.200><c> is</c><00:16:57.320><c> that</c>

00:16:57.510 --> 00:16:57.520 align:start position:0%
Okay, so what we learned here is that
 

00:16:57.520 --> 00:16:59.750 align:start position:0%
Okay, so what we learned here is that
plus<00:16:57.760><c> times</c><00:16:58.040><c> plus</c><00:16:58.720><c> is</c><00:16:58.839><c> a</c><00:16:58.920><c> function</c><00:16:59.280><c> of</c><00:16:59.440><c> four</c>

00:16:59.750 --> 00:16:59.760 align:start position:0%
plus times plus is a function of four
 

00:16:59.760 --> 00:17:01.790 align:start position:0%
plus times plus is a function of four
arguments,<00:17:00.560><c> which</c><00:17:00.760><c> spits</c><00:17:01.040><c> out</c><00:17:01.240><c> this</c><00:17:01.480><c> power</c>

00:17:01.790 --> 00:17:01.800 align:start position:0%
arguments, which spits out this power
 

00:17:01.800 --> 00:17:02.870 align:start position:0%
arguments, which spits out this power
tower.

00:17:02.870 --> 00:17:02.880 align:start position:0%
tower.
 

00:17:02.880 --> 00:17:04.630 align:start position:0%
tower.
Obviously,<00:17:03.680><c> this</c><00:17:03.880><c> is</c><00:17:04.000><c> completely</c>

00:17:04.630 --> 00:17:04.640 align:start position:0%
Obviously, this is completely
 

00:17:04.640 --> 00:17:06.270 align:start position:0%
Obviously, this is completely
ridiculous.

00:17:06.270 --> 00:17:06.280 align:start position:0%
ridiculous.
 

00:17:06.280 --> 00:17:08.429 align:start position:0%
ridiculous.
But<00:17:06.560><c> it</c><00:17:06.680><c> serves</c><00:17:06.920><c> to</c><00:17:07.040><c> prove</c><00:17:07.240><c> a</c><00:17:07.319><c> point.</c>

00:17:08.429 --> 00:17:08.439 align:start position:0%
But it serves to prove a point.
 

00:17:08.439 --> 00:17:09.670 align:start position:0%
But it serves to prove a point.
In<00:17:08.560><c> a</c><00:17:08.640><c> world</c><00:17:08.920><c> where</c><00:17:09.160><c> everything</c><00:17:09.520><c> is</c><00:17:09.640><c> a</c>

00:17:09.670 --> 00:17:09.680 align:start position:0%
In a world where everything is a
 

00:17:09.680 --> 00:17:11.390 align:start position:0%
In a world where everything is a
function,

00:17:11.390 --> 00:17:11.400 align:start position:0%
function,
 

00:17:11.400 --> 00:17:13.150 align:start position:0%
function,
you<00:17:11.520><c> can</c><00:17:11.680><c> do</c><00:17:11.880><c> things</c><00:17:12.160><c> that</c><00:17:12.319><c> normal</c><00:17:12.640><c> math</c><00:17:12.920><c> just</c>

00:17:13.150 --> 00:17:13.160 align:start position:0%
you can do things that normal math just
 

00:17:13.160 --> 00:17:14.829 align:start position:0%
you can do things that normal math just
doesn't<00:17:13.480><c> permit.</c>

00:17:14.829 --> 00:17:14.839 align:start position:0%
doesn't permit.
 

00:17:14.839 --> 00:17:16.550 align:start position:0%
doesn't permit.
And<00:17:14.959><c> strange</c><00:17:15.439><c> emergent</c><00:17:15.839><c> behavior</c><00:17:16.280><c> is</c><00:17:16.439><c> the</c>

00:17:16.550 --> 00:17:16.560 align:start position:0%
And strange emergent behavior is the
 

00:17:16.560 --> 00:17:18.470 align:start position:0%
And strange emergent behavior is the
norm.

00:17:18.470 --> 00:17:18.480 align:start position:0%
norm.
 

00:17:18.480 --> 00:17:19.710 align:start position:0%
norm.
But<00:17:18.680><c> it's</c><00:17:18.800><c> going</c><00:17:18.920><c> to</c><00:17:19.000><c> get</c><00:17:19.160><c> plenty</c><00:17:19.439><c> weirder</c>

00:17:19.710 --> 00:17:19.720 align:start position:0%
But it's going to get plenty weirder
 

00:17:19.720 --> 00:17:23.150 align:start position:0%
But it's going to get plenty weirder
yet.

00:17:23.150 --> 00:17:23.160 align:start position:0%
 
 

00:17:23.160 --> 00:17:24.670 align:start position:0%
 
We're<00:17:23.280><c> going</c><00:17:23.400><c> to</c><00:17:23.480><c> need</c><00:17:23.680><c> some</c><00:17:23.880><c> voodoo</c><00:17:24.160><c> magic</c><00:17:24.560><c> to</c>

00:17:24.670 --> 00:17:24.680 align:start position:0%
We're going to need some voodoo magic to
 

00:17:24.680 --> 00:17:26.949 align:start position:0%
We're going to need some voodoo magic to
make<00:17:24.839><c> the</c><00:17:24.959><c> factorial</c><00:17:25.520><c> function.</c>

00:17:26.949 --> 00:17:26.959 align:start position:0%
make the factorial function.
 

00:17:26.959 --> 00:17:28.309 align:start position:0%
make the factorial function.
Here's<00:17:27.160><c> a</c><00:17:27.199><c> typical</c><00:17:27.600><c> implementation</c><00:17:28.199><c> in</c>

00:17:28.309 --> 00:17:28.319 align:start position:0%
Here's a typical implementation in
 

00:17:28.319 --> 00:17:29.950 align:start position:0%
Here's a typical implementation in
Python.

00:17:29.950 --> 00:17:29.960 align:start position:0%
Python.
 

00:17:29.960 --> 00:17:32.310 align:start position:0%
Python.
The<00:17:30.080><c> core</c><00:17:30.320><c> idea</c><00:17:30.800><c> is</c><00:17:31.000><c> to</c><00:17:31.120><c> return</c><00:17:31.520><c> n</c><00:17:31.880><c> times</c><00:17:32.240><c> the</c>

00:17:32.310 --> 00:17:32.320 align:start position:0%
The core idea is to return n times the
 

00:17:32.320 --> 00:17:34.830 align:start position:0%
The core idea is to return n times the
factorial<00:17:33.000><c> of</c><00:17:33.120><c> the</c><00:17:33.240><c> previous</c><00:17:33.680><c> number.</c>

00:17:34.830 --> 00:17:34.840 align:start position:0%
factorial of the previous number.
 

00:17:34.840 --> 00:17:36.390 align:start position:0%
factorial of the previous number.
However,<00:17:35.440><c> we</c><00:17:35.560><c> don't</c><00:17:35.800><c> want</c><00:17:35.920><c> to</c><00:17:36.000><c> go</c><00:17:36.120><c> into</c><00:17:36.320><c> the</c>

00:17:36.390 --> 00:17:36.400 align:start position:0%
However, we don't want to go into the
 

00:17:36.400 --> 00:17:39.630 align:start position:0%
However, we don't want to go into the
negatives,<00:17:37.200><c> so</c><00:17:37.480><c> we</c><00:17:37.680><c> add</c><00:17:37.840><c> a</c><00:17:37.920><c> base</c><00:17:38.200><c> case.</c>

00:17:39.630 --> 00:17:39.640 align:start position:0%
negatives, so we add a base case.
 

00:17:39.640 --> 00:17:41.150 align:start position:0%
negatives, so we add a base case.
All<00:17:39.720><c> right,</c><00:17:40.240><c> let's</c><00:17:40.440><c> try</c><00:17:40.600><c> it</c><00:17:40.720><c> in</c><00:17:40.800><c> the</c><00:17:40.880><c> lambda</c>

00:17:41.150 --> 00:17:41.160 align:start position:0%
All right, let's try it in the lambda
 

00:17:41.160 --> 00:17:42.590 align:start position:0%
All right, let's try it in the lambda
calculus.

00:17:42.590 --> 00:17:42.600 align:start position:0%
calculus.
 

00:17:42.600 --> 00:17:45.470 align:start position:0%
calculus.
Factorial<00:17:43.280><c> just</c><00:17:43.560><c> takes</c><00:17:43.800><c> in</c><00:17:43.960><c> one</c><00:17:44.160><c> variable.</c>

00:17:45.470 --> 00:17:45.480 align:start position:0%
Factorial just takes in one variable.
 

00:17:45.480 --> 00:17:46.950 align:start position:0%
Factorial just takes in one variable.
Let's<00:17:45.680><c> say</c><00:17:45.800><c> you</c><00:17:45.920><c> have</c><00:17:46.040><c> an</c><00:17:46.160><c> is</c><00:17:46.280><c> zero</c><00:17:46.600><c> function</c>

00:17:46.950 --> 00:17:46.960 align:start position:0%
Let's say you have an is zero function
 

00:17:46.960 --> 00:17:48.950 align:start position:0%
Let's say you have an is zero function
available,<00:17:47.720><c> which</c><00:17:47.920><c> checks</c><00:17:48.200><c> if</c><00:17:48.360><c> a</c><00:17:48.400><c> number</c><00:17:48.800><c> is</c>

00:17:48.950 --> 00:17:48.960 align:start position:0%
available, which checks if a number is
 

00:17:48.960 --> 00:17:51.990 align:start position:0%
available, which checks if a number is
zero<00:17:49.520><c> and</c><00:17:49.720><c> gives</c><00:17:49.960><c> back</c><00:17:50.200><c> true</c><00:17:50.600><c> or</c><00:17:50.760><c> false.</c>

00:17:51.990 --> 00:17:52.000 align:start position:0%
zero and gives back true or false.
 

00:17:52.000 --> 00:17:53.390 align:start position:0%
zero and gives back true or false.
We<00:17:52.080><c> could</c><00:17:52.280><c> make</c><00:17:52.520><c> it,</c><00:17:52.800><c> but</c><00:17:52.960><c> let's</c><00:17:53.120><c> not</c><00:17:53.280><c> get</c>

00:17:53.390 --> 00:17:53.400 align:start position:0%
We could make it, but let's not get
 

00:17:53.400 --> 00:17:55.870 align:start position:0%
We could make it, but let's not get
distracted.<00:17:54.680><c> Is</c><00:17:54.880><c> zero</c><00:17:55.160><c> of</c><00:17:55.320><c> n</c><00:17:55.560><c> yields</c><00:17:55.840><c> a</c>

00:17:55.870 --> 00:17:55.880 align:start position:0%
distracted. Is zero of n yields a
 

00:17:55.880 --> 00:17:58.550 align:start position:0%
distracted. Is zero of n yields a
boolean,<00:17:56.840><c> and</c><00:17:57.160><c> as</c><00:17:57.320><c> we</c><00:17:57.440><c> know,</c><00:17:57.960><c> booleans</c><00:17:58.400><c> work</c>

00:17:58.550 --> 00:17:58.560 align:start position:0%
boolean, and as we know, booleans work
 

00:17:58.560 --> 00:18:00.190 align:start position:0%
boolean, and as we know, booleans work
as<00:17:58.680><c> selectors.</c>

00:18:00.190 --> 00:18:00.200 align:start position:0%
as selectors.
 

00:18:00.200 --> 00:18:01.590 align:start position:0%
as selectors.
Thus,<00:18:00.480><c> we</c><00:18:00.640><c> already</c><00:18:00.880><c> know</c><00:18:01.040><c> how</c><00:18:01.120><c> to</c><00:18:01.240><c> make</c><00:18:01.400><c> this</c>

00:18:01.590 --> 00:18:01.600 align:start position:0%
Thus, we already know how to make this
 

00:18:01.600 --> 00:18:03.310 align:start position:0%
Thus, we already know how to make this
if-then-else<00:18:02.160><c> block.</c>

00:18:03.310 --> 00:18:03.320 align:start position:0%
if-then-else block.
 

00:18:03.320 --> 00:18:06.710 align:start position:0%
if-then-else block.
Therefore,<00:18:04.000><c> factorial</c><00:18:04.560><c> takes</c><00:18:04.800><c> this</c><00:18:05.000><c> form.</c>

00:18:06.710 --> 00:18:06.720 align:start position:0%
Therefore, factorial takes this form.
 

00:18:06.720 --> 00:18:08.750 align:start position:0%
Therefore, factorial takes this form.
The<00:18:06.800><c> boolean,</c><00:18:07.840><c> what</c><00:18:08.000><c> we</c><00:18:08.160><c> want</c><00:18:08.320><c> to</c><00:18:08.360><c> return</c><00:18:08.680><c> if</c>

00:18:08.750 --> 00:18:08.760 align:start position:0%
The boolean, what we want to return if
 

00:18:08.760 --> 00:18:10.710 align:start position:0%
The boolean, what we want to return if
it's<00:18:08.920><c> true,</c>

00:18:10.710 --> 00:18:10.720 align:start position:0%
it's true,
 

00:18:10.720 --> 00:18:11.830 align:start position:0%
it's true,
and<00:18:10.840><c> what</c><00:18:10.960><c> we</c><00:18:11.080><c> want</c><00:18:11.240><c> to</c><00:18:11.280><c> return</c><00:18:11.560><c> if</c><00:18:11.680><c> it's</c>

00:18:11.830 --> 00:18:11.840 align:start position:0%
and what we want to return if it's
 

00:18:11.840 --> 00:18:12.990 align:start position:0%
and what we want to return if it's
false.

00:18:12.990 --> 00:18:13.000 align:start position:0%
false.
 

00:18:13.000 --> 00:18:14.630 align:start position:0%
false.
If<00:18:13.120><c> it's</c><00:18:13.280><c> true,</c><00:18:13.760><c> just</c><00:18:14.000><c> like</c><00:18:14.160><c> our</c><00:18:14.280><c> Python</c>

00:18:14.630 --> 00:18:14.640 align:start position:0%
If it's true, just like our Python
 

00:18:14.640 --> 00:18:16.110 align:start position:0%
If it's true, just like our Python
function,

00:18:16.110 --> 00:18:16.120 align:start position:0%
function,
 

00:18:16.120 --> 00:18:18.190 align:start position:0%
function,
we<00:18:16.200><c> simply</c><00:18:16.520><c> return</c><00:18:16.960><c> one.</c>

00:18:18.190 --> 00:18:18.200 align:start position:0%
we simply return one.
 

00:18:18.200 --> 00:18:20.310 align:start position:0%
we simply return one.
If<00:18:18.320><c> it's</c><00:18:18.520><c> false,</c><00:18:19.320><c> we</c><00:18:19.440><c> return</c><00:18:19.760><c> the</c><00:18:19.840><c> recursive</c>

00:18:20.310 --> 00:18:20.320 align:start position:0%
If it's false, we return the recursive
 

00:18:20.320 --> 00:18:21.870 align:start position:0%
If it's false, we return the recursive
call.

00:18:21.870 --> 00:18:21.880 align:start position:0%
call.
 

00:18:21.880 --> 00:18:23.670 align:start position:0%
call.
We<00:18:21.960><c> multiply</c><00:18:22.480><c> n</c>

00:18:23.670 --> 00:18:23.680 align:start position:0%
We multiply n
 

00:18:23.680 --> 00:18:26.270 align:start position:0%
We multiply n
by<00:18:23.760><c> the</c><00:18:23.880><c> factorial</c><00:18:24.520><c> of</c><00:18:24.680><c> n</c><00:18:24.800><c> minus</c><00:18:25.120><c> one.</c>

00:18:26.270 --> 00:18:26.280 align:start position:0%
by the factorial of n minus one.
 

00:18:26.280 --> 00:18:28.110 align:start position:0%
by the factorial of n minus one.
Now,<00:18:26.600><c> wait</c><00:18:26.840><c> a</c><00:18:26.880><c> minute.</c>

00:18:28.110 --> 00:18:28.120 align:start position:0%
Now, wait a minute.
 

00:18:28.120 --> 00:18:29.790 align:start position:0%
Now, wait a minute.
Our<00:18:28.280><c> definition</c><00:18:28.760><c> of</c><00:18:28.840><c> the</c><00:18:28.920><c> factorial</c><00:18:29.440><c> function</c>

00:18:29.790 --> 00:18:29.800 align:start position:0%
Our definition of the factorial function
 

00:18:29.800 --> 00:18:31.870 align:start position:0%
Our definition of the factorial function
contains<00:18:30.240><c> itself</c><00:18:30.600><c> inside.</c>

00:18:31.870 --> 00:18:31.880 align:start position:0%
contains itself inside.
 

00:18:31.880 --> 00:18:33.750 align:start position:0%
contains itself inside.
In<00:18:32.000><c> Python,</c><00:18:32.400><c> this</c><00:18:32.560><c> is</c><00:18:32.720><c> fine.</c><00:18:33.480><c> We</c><00:18:33.600><c> can</c>

00:18:33.750 --> 00:18:33.760 align:start position:0%
In Python, this is fine. We can
 

00:18:33.760 --> 00:18:35.470 align:start position:0%
In Python, this is fine. We can
instantiate<00:18:34.280><c> the</c><00:18:34.360><c> function</c><00:18:34.680><c> anywhere,</c><00:18:35.240><c> even</c>

00:18:35.470 --> 00:18:35.480 align:start position:0%
instantiate the function anywhere, even
 

00:18:35.480 --> 00:18:36.950 align:start position:0%
instantiate the function anywhere, even
within<00:18:35.760><c> itself.</c>

00:18:36.950 --> 00:18:36.960 align:start position:0%
within itself.
 

00:18:36.960 --> 00:18:38.190 align:start position:0%
within itself.
But<00:18:37.080><c> a</c><00:18:37.120><c> lambda</c><00:18:37.440><c> calculus</c><00:18:37.880><c> term</c><00:18:38.080><c> is</c>

00:18:38.190 --> 00:18:38.200 align:start position:0%
But a lambda calculus term is
 

00:18:38.200 --> 00:18:40.070 align:start position:0%
But a lambda calculus term is
self-contained.

00:18:40.070 --> 00:18:40.080 align:start position:0%
self-contained.
 

00:18:40.080 --> 00:18:41.790 align:start position:0%
self-contained.
How<00:18:40.200><c> would</c><00:18:40.360><c> I</c><00:18:40.400><c> draw</c><00:18:40.640><c> a</c><00:18:40.680><c> diagram</c><00:18:41.240><c> of</c><00:18:41.320><c> this</c><00:18:41.480><c> term</c>

00:18:41.790 --> 00:18:41.800 align:start position:0%
How would I draw a diagram of this term
 

00:18:41.800 --> 00:18:45.030 align:start position:0%
How would I draw a diagram of this term
if<00:18:41.960><c> I</c><00:18:42.040><c> don't</c><00:18:42.320><c> know</c><00:18:42.480><c> what</c><00:18:42.600><c> this</c><00:18:42.760><c> component</c><00:18:43.360><c> is?</c>

00:18:45.030 --> 00:18:45.040 align:start position:0%
if I don't know what this component is?
 

00:18:45.040 --> 00:18:46.710 align:start position:0%
if I don't know what this component is?
You<00:18:45.160><c> could</c><00:18:45.360><c> argue,</c><00:18:45.880><c> as</c><00:18:46.120><c> is,</c><00:18:46.520><c> this</c>

00:18:46.710 --> 00:18:46.720 align:start position:0%
You could argue, as is, this
 

00:18:46.720 --> 00:18:49.070 align:start position:0%
You could argue, as is, this
definition's<00:18:47.360><c> infinitely</c><00:18:47.880><c> long.</c><00:18:48.760><c> How</c><00:18:48.960><c> on</c>

00:18:49.070 --> 00:18:49.080 align:start position:0%
definition's infinitely long. How on
 

00:18:49.080 --> 00:18:51.430 align:start position:0%
definition's infinitely long. How on
earth<00:18:49.240><c> are</c><00:18:49.320><c> we</c><00:18:49.400><c> going</c><00:18:49.520><c> to</c><00:18:49.600><c> define</c><00:18:49.880><c> recursion?</c>

00:18:51.430 --> 00:18:51.440 align:start position:0%
earth are we going to define recursion?
 

00:18:51.440 --> 00:18:53.470 align:start position:0%
earth are we going to define recursion?
Time<00:18:51.680><c> for</c><00:18:51.800><c> a</c><00:18:51.840><c> mind-blowing</c><00:18:52.320><c> detour.</c><00:18:53.280><c> Let's</c>

00:18:53.470 --> 00:18:53.480 align:start position:0%
Time for a mind-blowing detour. Let's
 

00:18:53.480 --> 00:18:54.870 align:start position:0%
Time for a mind-blowing detour. Let's
talk<00:18:53.640><c> about</c><00:18:53.840><c> normal</c><00:18:54.160><c> functions</c><00:18:54.520><c> on</c><00:18:54.640><c> the</c><00:18:54.720><c> real</c>

00:18:54.870 --> 00:18:54.880 align:start position:0%
talk about normal functions on the real
 

00:18:54.880 --> 00:18:56.510 align:start position:0%
talk about normal functions on the real
numbers.

00:18:56.510 --> 00:18:56.520 align:start position:0%
numbers.
 

00:18:56.520 --> 00:18:58.190 align:start position:0%
numbers.
A<00:18:56.560><c> fixed</c><00:18:56.920><c> point</c><00:18:57.280><c> is</c><00:18:57.480><c> some</c><00:18:57.680><c> number</c><00:18:57.960><c> that</c><00:18:58.120><c> you</c>

00:18:58.190 --> 00:18:58.200 align:start position:0%
A fixed point is some number that you
 

00:18:58.200 --> 00:19:00.190 align:start position:0%
A fixed point is some number that you
can<00:18:58.360><c> plug</c><00:18:58.600><c> into</c><00:18:58.840><c> a</c><00:18:58.920><c> function</c><00:18:59.760><c> and</c><00:18:59.880><c> you</c><00:18:59.960><c> get</c><00:19:00.080><c> the</c>

00:19:00.190 --> 00:19:00.200 align:start position:0%
can plug into a function and you get the
 

00:19:00.200 --> 00:19:02.070 align:start position:0%
can plug into a function and you get the
same<00:19:00.480><c> number</c><00:19:00.760><c> back.</c>

00:19:02.070 --> 00:19:02.080 align:start position:0%
same number back.
 

00:19:02.080 --> 00:19:04.510 align:start position:0%
same number back.
In<00:19:02.160><c> other</c><00:19:02.360><c> words,</c><00:19:02.920><c> x</c><00:19:03.200><c> is</c><00:19:03.320><c> a</c><00:19:03.400><c> fixed</c><00:19:03.680><c> point</c><00:19:04.080><c> if</c><00:19:04.320><c> f</c>

00:19:04.510 --> 00:19:04.520 align:start position:0%
In other words, x is a fixed point if f
 

00:19:04.520 --> 00:19:06.590 align:start position:0%
In other words, x is a fixed point if f
of<00:19:04.640><c> x</c><00:19:05.040><c> matches</c><00:19:05.560><c> x.</c>

00:19:06.590 --> 00:19:06.600 align:start position:0%
of x matches x.
 

00:19:06.600 --> 00:19:08.230 align:start position:0%
of x matches x.
Graphing<00:19:06.920><c> this,</c><00:19:07.280><c> it's</c><00:19:07.480><c> where</c><00:19:07.600><c> the</c><00:19:07.720><c> line</c><00:19:08.040><c> y</c>

00:19:08.230 --> 00:19:08.240 align:start position:0%
Graphing this, it's where the line y
 

00:19:08.240 --> 00:19:10.950 align:start position:0%
Graphing this, it's where the line y
equals<00:19:08.600><c> x</c><00:19:08.920><c> intersects</c><00:19:09.520><c> with</c><00:19:09.640><c> your</c><00:19:09.760><c> function.</c>

00:19:10.950 --> 00:19:10.960 align:start position:0%
equals x intersects with your function.
 

00:19:10.960 --> 00:19:13.470 align:start position:0%
equals x intersects with your function.
Sine<00:19:11.560><c> evidently</c><00:19:12.240><c> has</c><00:19:12.480><c> exactly</c><00:19:12.880><c> one</c><00:19:13.160><c> fixed</c>

00:19:13.470 --> 00:19:13.480 align:start position:0%
Sine evidently has exactly one fixed
 

00:19:13.480 --> 00:19:14.990 align:start position:0%
Sine evidently has exactly one fixed
point.

00:19:14.990 --> 00:19:15.000 align:start position:0%
point.
 

00:19:15.000 --> 00:19:16.710 align:start position:0%
point.
Exactly<00:19:15.440><c> at</c><00:19:15.560><c> zero.</c>

00:19:16.710 --> 00:19:16.720 align:start position:0%
Exactly at zero.
 

00:19:16.720 --> 00:19:19.590 align:start position:0%
Exactly at zero.
Y<00:19:16.880><c> =</c><00:19:17.200><c> X</c><00:19:17.400><c> squared</c><00:19:17.800><c> has</c><00:19:18.000><c> two</c><00:19:18.160><c> fixed</c><00:19:18.440><c> points,</c><00:19:19.200><c> zero</c>

00:19:19.590 --> 00:19:19.600 align:start position:0%
Y = X squared has two fixed points, zero
 

00:19:19.600 --> 00:19:20.710 align:start position:0%
Y = X squared has two fixed points, zero
and<00:19:19.800><c> one.</c>

00:19:20.710 --> 00:19:20.720 align:start position:0%
and one.
 

00:19:20.720 --> 00:19:22.430 align:start position:0%
and one.
Those<00:19:20.920><c> are</c><00:19:21.000><c> the</c><00:19:21.200><c> only</c><00:19:21.480><c> reals</c><00:19:21.960><c> which</c><00:19:22.160><c> are</c><00:19:22.280><c> their</c>

00:19:22.430 --> 00:19:22.440 align:start position:0%
Those are the only reals which are their
 

00:19:22.440 --> 00:19:24.030 align:start position:0%
Those are the only reals which are their
own<00:19:22.640><c> squares.</c>

00:19:24.030 --> 00:19:24.040 align:start position:0%
own squares.
 

00:19:24.040 --> 00:19:26.870 align:start position:0%
own squares.
But,<00:19:24.200><c> what</c><00:19:24.320><c> about</c><00:19:24.600><c> Y</c><00:19:24.760><c> =</c><00:19:25.120><c> X</c><00:19:25.320><c> squared</c><00:19:25.640><c> +</c><00:19:25.880><c> 2?</c>

00:19:26.870 --> 00:19:26.880 align:start position:0%
But, what about Y = X squared + 2?
 

00:19:26.880 --> 00:19:29.470 align:start position:0%
But, what about Y = X squared + 2?
It<00:19:27.000><c> doesn't</c><00:19:27.240><c> even</c><00:19:27.440><c> have</c><00:19:27.680><c> a</c><00:19:27.720><c> fixed</c><00:19:28.040><c> point.</c>

00:19:29.470 --> 00:19:29.480 align:start position:0%
It doesn't even have a fixed point.
 

00:19:29.480 --> 00:19:32.590 align:start position:0%
It doesn't even have a fixed point.
What<00:19:29.560><c> about</c><00:19:29.840><c> arbitrary</c><00:19:30.400><c> functions?</c>

00:19:32.590 --> 00:19:32.600 align:start position:0%
What about arbitrary functions?
 

00:19:32.600 --> 00:19:34.110 align:start position:0%
What about arbitrary functions?
If<00:19:32.720><c> you</c><00:19:32.840><c> can</c><00:19:33.000><c> find</c><00:19:33.320><c> all</c><00:19:33.440><c> fixed</c><00:19:33.720><c> points</c><00:19:33.920><c> of</c><00:19:34.000><c> the</c>

00:19:34.110 --> 00:19:34.120 align:start position:0%
If you can find all fixed points of the
 

00:19:34.120 --> 00:19:36.270 align:start position:0%
If you can find all fixed points of the
Riemann<00:19:34.440><c> zeta</c><00:19:34.680><c> function</c><00:19:35.040><c> plus</c><00:19:35.320><c> its</c><00:19:35.520><c> input,</c>

00:19:36.270 --> 00:19:36.280 align:start position:0%
Riemann zeta function plus its input,
 

00:19:36.280 --> 00:19:37.910 align:start position:0%
Riemann zeta function plus its input,
you<00:19:36.400><c> would</c><00:19:36.600><c> solve</c><00:19:36.880><c> the</c><00:19:37.000><c> Riemann</c><00:19:37.240><c> hypothesis</c>

00:19:37.910 --> 00:19:37.920 align:start position:0%
you would solve the Riemann hypothesis
 

00:19:37.920 --> 00:19:39.990 align:start position:0%
you would solve the Riemann hypothesis
and<00:19:38.080><c> win</c><00:19:38.200><c> a</c><00:19:38.240><c> million</c><00:19:38.560><c> dollars.</c>

00:19:39.990 --> 00:19:40.000 align:start position:0%
and win a million dollars.
 

00:19:40.000 --> 00:19:42.750 align:start position:0%
and win a million dollars.
Okay,<00:19:40.440><c> now</c><00:19:40.800><c> hold</c><00:19:41.000><c> that</c><00:19:41.160><c> thought.</c>

00:19:42.750 --> 00:19:42.760 align:start position:0%
Okay, now hold that thought.
 

00:19:42.760 --> 00:19:44.870 align:start position:0%
Okay, now hold that thought.
Check<00:19:43.000><c> out</c><00:19:43.120><c> this</c><00:19:43.240><c> lambda</c><00:19:43.520><c> term.</c><00:19:44.360><c> If</c><00:19:44.480><c> we</c><00:19:44.600><c> apply</c>

00:19:44.870 --> 00:19:44.880 align:start position:0%
Check out this lambda term. If we apply
 

00:19:44.880 --> 00:19:47.430 align:start position:0%
Check out this lambda term. If we apply
it<00:19:45.000><c> to</c><00:19:45.120><c> itself,</c><00:19:45.840><c> we</c><00:19:45.960><c> get</c><00:19:46.160><c> this</c><00:19:46.360><c> term,</c><00:19:47.240><c> called</c>

00:19:47.430 --> 00:19:47.440 align:start position:0%
it to itself, we get this term, called
 

00:19:47.440 --> 00:19:50.630 align:start position:0%
it to itself, we get this term, called
the<00:19:47.560><c> Turing</c><00:19:47.880><c> fixed</c><00:19:48.200><c> point</c><00:19:48.480><c> combinator.</c>

00:19:50.630 --> 00:19:50.640 align:start position:0%
the Turing fixed point combinator.
 

00:19:50.640 --> 00:19:53.870 align:start position:0%
the Turing fixed point combinator.
It<00:19:50.800><c> does</c><00:19:50.960><c> something</c><00:19:51.240><c> so</c><00:19:51.480><c> cool,</c><00:19:51.800><c> it's</c><00:19:51.960><c> unreal.</c>

00:19:53.870 --> 00:19:53.880 align:start position:0%
It does something so cool, it's unreal.
 

00:19:53.880 --> 00:19:55.070 align:start position:0%
It does something so cool, it's unreal.
Let's<00:19:54.080><c> just</c><00:19:54.280><c> imagine</c><00:19:54.640><c> you</c><00:19:54.720><c> have</c><00:19:54.880><c> some</c>

00:19:55.070 --> 00:19:55.080 align:start position:0%
Let's just imagine you have some
 

00:19:55.080 --> 00:19:57.150 align:start position:0%
Let's just imagine you have some
function<00:19:55.440><c> F.</c>

00:19:57.150 --> 00:19:57.160 align:start position:0%
function F.
 

00:19:57.160 --> 00:19:59.150 align:start position:0%
function F.
Apply<00:19:57.520><c> the</c><00:19:57.640><c> fixed</c><00:19:57.880><c> point</c><00:19:58.080><c> combinator</c><00:19:58.520><c> to</c><00:19:58.640><c> F</c>

00:19:59.150 --> 00:19:59.160 align:start position:0%
Apply the fixed point combinator to F
 

00:19:59.160 --> 00:20:01.270 align:start position:0%
Apply the fixed point combinator to F
and<00:19:59.280><c> see</c><00:19:59.440><c> what</c><00:19:59.560><c> happens.</c>

00:20:01.270 --> 00:20:01.280 align:start position:0%
and see what happens.
 

00:20:01.280 --> 00:20:03.830 align:start position:0%
and see what happens.
We<00:20:01.360><c> know</c><00:20:01.560><c> theta</c><00:20:01.920><c> is</c><00:20:02.120><c> UU,</c><00:20:02.920><c> so</c><00:20:03.160><c> let's</c><00:20:03.360><c> apply</c><00:20:03.600><c> that</c>

00:20:03.830 --> 00:20:03.840 align:start position:0%
We know theta is UU, so let's apply that
 

00:20:03.840 --> 00:20:04.910 align:start position:0%
We know theta is UU, so let's apply that
identity.

00:20:04.910 --> 00:20:04.920 align:start position:0%
identity.
 

00:20:04.920 --> 00:20:07.950 align:start position:0%
identity.
Expand<00:20:05.360><c> the</c><00:20:05.440><c> first</c><00:20:05.760><c> U</c><00:20:05.880><c> to</c><00:20:06.000><c> its</c><00:20:06.120><c> definition.</c>

00:20:07.950 --> 00:20:07.960 align:start position:0%
Expand the first U to its definition.
 

00:20:07.960 --> 00:20:10.310 align:start position:0%
Expand the first U to its definition.
Beta<00:20:08.200><c> reduce</c><00:20:08.480><c> the</c><00:20:08.560><c> first</c><00:20:08.800><c> argument,</c><00:20:09.320><c> U.</c><00:20:10.160><c> Beta</c>

00:20:10.310 --> 00:20:10.320 align:start position:0%
Beta reduce the first argument, U. Beta
 

00:20:10.320 --> 00:20:13.150 align:start position:0%
Beta reduce the first argument, U. Beta
reduce<00:20:10.560><c> the</c><00:20:10.680><c> second</c><00:20:10.920><c> argument,</c><00:20:11.480><c> F.</c>

00:20:13.150 --> 00:20:13.160 align:start position:0%
reduce the second argument, F.
 

00:20:13.160 --> 00:20:16.230 align:start position:0%
reduce the second argument, F.
And<00:20:13.320><c> substitute</c><00:20:13.880><c> theta</c><00:20:14.120><c> for</c><00:20:14.320><c> UU.</c>

00:20:16.230 --> 00:20:16.240 align:start position:0%
And substitute theta for UU.
 

00:20:16.240 --> 00:20:17.390 align:start position:0%
And substitute theta for UU.
Do<00:20:16.320><c> you</c><00:20:16.400><c> see</c><00:20:16.560><c> it?</c>

00:20:17.390 --> 00:20:17.400 align:start position:0%
Do you see it?
 

00:20:17.400 --> 00:20:20.750 align:start position:0%
Do you see it?
We<00:20:17.520><c> reduced</c><00:20:18.000><c> theta</c><00:20:18.360><c> F</c><00:20:18.840><c> to</c><00:20:19.080><c> F</c><00:20:19.280><c> of</c><00:20:19.400><c> theta</c><00:20:19.720><c> F.</c>

00:20:20.750 --> 00:20:20.760 align:start position:0%
We reduced theta F to F of theta F.
 

00:20:20.760 --> 00:20:22.750 align:start position:0%
We reduced theta F to F of theta F.
In<00:20:20.880><c> other</c><00:20:21.080><c> words,</c><00:20:21.440><c> up</c><00:20:21.600><c> to</c><00:20:21.720><c> beta</c><00:20:21.960><c> reduction,</c>

00:20:22.750 --> 00:20:22.760 align:start position:0%
In other words, up to beta reduction,
 

00:20:22.760 --> 00:20:25.990 align:start position:0%
In other words, up to beta reduction,
theta<00:20:23.080><c> F</c><00:20:23.400><c> equals</c><00:20:23.920><c> F</c><00:20:24.120><c> of</c><00:20:24.240><c> theta</c><00:20:24.600><c> F.</c>

00:20:25.990 --> 00:20:26.000 align:start position:0%
theta F equals F of theta F.
 

00:20:26.000 --> 00:20:29.030 align:start position:0%
theta F equals F of theta F.
So,<00:20:26.160><c> theta</c><00:20:26.480><c> F</c><00:20:26.840><c> is</c><00:20:26.960><c> a</c><00:20:27.040><c> fixed</c><00:20:27.440><c> point</c><00:20:27.720><c> of</c><00:20:27.880><c> F.</c>

00:20:29.030 --> 00:20:29.040 align:start position:0%
So, theta F is a fixed point of F.
 

00:20:29.040 --> 00:20:31.110 align:start position:0%
So, theta F is a fixed point of F.
Just<00:20:29.240><c> think</c><00:20:29.440><c> about</c><00:20:29.640><c> that</c><00:20:29.800><c> for</c><00:20:29.920><c> a</c><00:20:29.960><c> second.</c>

00:20:31.110 --> 00:20:31.120 align:start position:0%
Just think about that for a second.
 

00:20:31.120 --> 00:20:33.150 align:start position:0%
Just think about that for a second.
Unlike<00:20:31.520><c> real-valued</c><00:20:32.000><c> functions,</c><00:20:32.720><c> not</c><00:20:32.960><c> only</c>

00:20:33.150 --> 00:20:33.160 align:start position:0%
Unlike real-valued functions, not only
 

00:20:33.160 --> 00:20:34.630 align:start position:0%
Unlike real-valued functions, not only
does<00:20:33.440><c> every</c><00:20:33.760><c> function</c><00:20:34.120><c> in</c><00:20:34.240><c> the</c><00:20:34.320><c> lambda</c>

00:20:34.630 --> 00:20:34.640 align:start position:0%
does every function in the lambda
 

00:20:34.640 --> 00:20:36.950 align:start position:0%
does every function in the lambda
calculus<00:20:35.080><c> have</c><00:20:35.280><c> a</c><00:20:35.360><c> fixed</c><00:20:35.720><c> point,</c><00:20:36.640><c> but</c><00:20:36.760><c> there's</c>

00:20:36.950 --> 00:20:36.960 align:start position:0%
calculus have a fixed point, but there's
 

00:20:36.960 --> 00:20:40.590 align:start position:0%
calculus have a fixed point, but there's
a<00:20:37.040><c> trivial</c><00:20:37.560><c> way</c><00:20:37.680><c> to</c><00:20:37.840><c> find</c><00:20:38.200><c> them,</c><00:20:38.440><c> too.</c>

00:20:40.590 --> 00:20:40.600 align:start position:0%
a trivial way to find them, too.
 

00:20:40.600 --> 00:20:43.550 align:start position:0%
a trivial way to find them, too.
But,<00:20:40.960><c> wait.</c><00:20:41.560><c> If</c><00:20:41.720><c> that's</c><00:20:41.960><c> the</c><00:20:42.080><c> case,</c>

00:20:43.550 --> 00:20:43.560 align:start position:0%
But, wait. If that's the case,
 

00:20:43.560 --> 00:20:45.150 align:start position:0%
But, wait. If that's the case,
why<00:20:43.720><c> am</c><00:20:43.880><c> I</c><00:20:43.920><c> making</c><00:20:44.240><c> this</c><00:20:44.400><c> video</c><00:20:44.720><c> instead</c><00:20:45.080><c> of</c>

00:20:45.150 --> 00:20:45.160 align:start position:0%
why am I making this video instead of
 

00:20:45.160 --> 00:20:47.870 align:start position:0%
why am I making this video instead of
solving<00:20:45.440><c> the</c><00:20:45.560><c> Riemann</c><00:20:45.800><c> hypothesis?</c>

00:20:47.870 --> 00:20:47.880 align:start position:0%
solving the Riemann hypothesis?
 

00:20:47.880 --> 00:20:49.630 align:start position:0%
solving the Riemann hypothesis?
It's<00:20:48.160><c> kind</c><00:20:48.600><c> of</c><00:20:48.680><c> like</c><00:20:48.880><c> trying</c><00:20:49.160><c> to</c><00:20:49.240><c> solve</c><00:20:49.520><c> for</c>

00:20:49.630 --> 00:20:49.640 align:start position:0%
It's kind of like trying to solve for
 

00:20:49.640 --> 00:20:51.550 align:start position:0%
It's kind of like trying to solve for
the<00:20:49.720><c> square</c><00:20:50.000><c> root</c><00:20:50.160><c> of</c><00:20:50.240><c> -1.</c>

00:20:51.550 --> 00:20:51.560 align:start position:0%
the square root of -1.
 

00:20:51.560 --> 00:20:53.390 align:start position:0%
the square root of -1.
There's<00:20:51.760><c> always</c><00:20:52.000><c> a</c><00:20:52.080><c> fixed</c><00:20:52.320><c> point</c><00:20:52.560><c> out</c><00:20:52.720><c> there,</c>

00:20:53.390 --> 00:20:53.400 align:start position:0%
There's always a fixed point out there,
 

00:20:53.400 --> 00:20:55.550 align:start position:0%
There's always a fixed point out there,
but<00:20:53.720><c> it's</c><00:20:53.920><c> not</c><00:20:54.240><c> necessarily</c><00:20:54.960><c> among</c><00:20:55.200><c> the</c><00:20:55.320><c> real</c>

00:20:55.550 --> 00:20:55.560 align:start position:0%
but it's not necessarily among the real
 

00:20:55.560 --> 00:20:57.030 align:start position:0%
but it's not necessarily among the real
numbers.

00:20:57.030 --> 00:20:57.040 align:start position:0%
numbers.
 

00:20:57.040 --> 00:20:59.430 align:start position:0%
numbers.
In<00:20:57.120><c> our</c><00:20:57.280><c> case,</c><00:20:57.840><c> theta</c><00:20:58.120><c> F</c><00:20:58.440><c> isn't</c><00:20:58.720><c> necessarily</c><00:20:59.360><c> a</c>

00:20:59.430 --> 00:20:59.440 align:start position:0%
In our case, theta F isn't necessarily a
 

00:20:59.440 --> 00:21:00.790 align:start position:0%
In our case, theta F isn't necessarily a
real<00:20:59.640><c> number.</c>

00:21:00.790 --> 00:21:00.800 align:start position:0%
real number.
 

00:21:00.800 --> 00:21:03.030 align:start position:0%
real number.
It<00:21:00.880><c> can</c><00:21:01.040><c> be</c><00:21:01.120><c> an</c><00:21:01.320><c> arbitrary</c><00:21:02.000><c> non-numerical</c>

00:21:03.030 --> 00:21:03.040 align:start position:0%
It can be an arbitrary non-numerical
 

00:21:03.040 --> 00:21:05.350 align:start position:0%
It can be an arbitrary non-numerical
lambda<00:21:03.360><c> expression.</c>

00:21:05.350 --> 00:21:05.360 align:start position:0%
lambda expression.
 

00:21:05.360 --> 00:21:07.270 align:start position:0%
lambda expression.
So,<00:21:05.680><c> we</c><00:21:05.800><c> can</c><00:21:05.960><c> go</c><00:21:06.120><c> ahead</c><00:21:06.400><c> and</c><00:21:06.520><c> define</c><00:21:06.840><c> x</c><00:21:06.960><c> squared</c>

00:21:07.270 --> 00:21:07.280 align:start position:0%
So, we can go ahead and define x squared
 

00:21:07.280 --> 00:21:09.110 align:start position:0%
So, we can go ahead and define x squared
plus<00:21:07.560><c> two.</c>

00:21:09.110 --> 00:21:09.120 align:start position:0%
plus two.
 

00:21:09.120 --> 00:21:11.230 align:start position:0%
plus two.
Slap<00:21:09.440><c> theta</c><00:21:09.680><c> in</c><00:21:09.760><c> front</c><00:21:09.960><c> of</c><00:21:10.040><c> it.</c>

00:21:11.230 --> 00:21:11.240 align:start position:0%
Slap theta in front of it.
 

00:21:11.240 --> 00:21:13.670 align:start position:0%
Slap theta in front of it.
And<00:21:11.480><c> sure</c><00:21:11.680><c> enough,</c><00:21:12.040><c> we</c><00:21:12.160><c> find</c><00:21:12.480><c> a</c><00:21:12.520><c> fixed</c><00:21:12.880><c> point.</c>

00:21:13.670 --> 00:21:13.680 align:start position:0%
And sure enough, we find a fixed point.
 

00:21:13.680 --> 00:21:15.030 align:start position:0%
And sure enough, we find a fixed point.
But,<00:21:13.840><c> this</c><00:21:14.040><c> fixed</c><00:21:14.280><c> point</c><00:21:14.520><c> isn't</c><00:21:14.760><c> even</c><00:21:14.960><c> a</c>

00:21:15.030 --> 00:21:15.040 align:start position:0%
But, this fixed point isn't even a
 

00:21:15.040 --> 00:21:17.030 align:start position:0%
But, this fixed point isn't even a
number.

00:21:17.030 --> 00:21:17.040 align:start position:0%
number.
 

00:21:17.040 --> 00:21:18.830 align:start position:0%
number.
It's<00:21:17.200><c> a</c><00:21:17.280><c> fixed</c><00:21:17.600><c> point</c><00:21:17.880><c> of</c><00:21:18.000><c> a</c><00:21:18.080><c> lambda</c><00:21:18.400><c> calculus</c>

00:21:18.830 --> 00:21:18.840 align:start position:0%
It's a fixed point of a lambda calculus
 

00:21:18.840 --> 00:21:21.030 align:start position:0%
It's a fixed point of a lambda calculus
construct,<00:21:19.720><c> which</c><00:21:19.960><c> emulates</c><00:21:20.480><c> the</c><00:21:20.560><c> function</c><00:21:20.880><c> x</c>

00:21:21.030 --> 00:21:21.040 align:start position:0%
construct, which emulates the function x
 

00:21:21.040 --> 00:21:23.110 align:start position:0%
construct, which emulates the function x
squared<00:21:21.320><c> plus</c><00:21:21.560><c> two.</c>

00:21:23.110 --> 00:21:23.120 align:start position:0%
squared plus two.
 

00:21:23.120 --> 00:21:25.030 align:start position:0%
squared plus two.
Okay,<00:21:23.480><c> so</c><00:21:23.800><c> maybe</c><00:21:24.200><c> Turing's</c><00:21:24.560><c> fixed</c><00:21:24.800><c> point</c>

00:21:25.030 --> 00:21:25.040 align:start position:0%
Okay, so maybe Turing's fixed point
 

00:21:25.040 --> 00:21:27.430 align:start position:0%
Okay, so maybe Turing's fixed point
combinator<00:21:25.560><c> can't</c><00:21:25.880><c> do</c><00:21:26.000><c> the</c><00:21:26.120><c> impossible.</c><00:21:27.320><c> But,</c>

00:21:27.430 --> 00:21:27.440 align:start position:0%
combinator can't do the impossible. But,
 

00:21:27.440 --> 00:21:29.390 align:start position:0%
combinator can't do the impossible. But,
it<00:21:27.640><c> is</c><00:21:27.880><c> the</c><00:21:27.960><c> magic</c><00:21:28.280><c> bullet</c><00:21:28.680><c> to</c><00:21:28.800><c> help</c><00:21:29.040><c> us</c><00:21:29.160><c> make</c>

00:21:29.390 --> 00:21:29.400 align:start position:0%
it is the magic bullet to help us make
 

00:21:29.400 --> 00:21:31.550 align:start position:0%
it is the magic bullet to help us make
our<00:21:29.520><c> factorial.</c>

00:21:31.550 --> 00:21:31.560 align:start position:0%
our factorial.
 

00:21:31.560 --> 00:21:33.430 align:start position:0%
our factorial.
This<00:21:31.760><c> is</c><00:21:31.880><c> where</c><00:21:32.000><c> the</c><00:21:32.120><c> voodoo</c><00:21:32.320><c> magic</c><00:21:32.640><c> comes</c><00:21:32.880><c> in.</c>

00:21:33.430 --> 00:21:33.440 align:start position:0%
This is where the voodoo magic comes in.
 

00:21:33.440 --> 00:21:35.270 align:start position:0%
This is where the voodoo magic comes in.
Hang<00:21:33.640><c> with</c><00:21:33.800><c> me.</c>

00:21:35.270 --> 00:21:35.280 align:start position:0%
Hang with me.
 

00:21:35.280 --> 00:21:36.630 align:start position:0%
Hang with me.
I'm<00:21:35.440><c> going</c><00:21:35.560><c> to</c><00:21:35.640><c> remove</c><00:21:35.960><c> the</c><00:21:36.080><c> problematic</c>

00:21:36.630 --> 00:21:36.640 align:start position:0%
I'm going to remove the problematic
 

00:21:36.640 --> 00:21:38.750 align:start position:0%
I'm going to remove the problematic
recursive<00:21:37.080><c> call</c><00:21:37.800><c> and</c><00:21:37.920><c> replace</c><00:21:38.240><c> it</c><00:21:38.360><c> with</c><00:21:38.520><c> some</c>

00:21:38.750 --> 00:21:38.760 align:start position:0%
recursive call and replace it with some
 

00:21:38.760 --> 00:21:40.270 align:start position:0%
recursive call and replace it with some
F,

00:21:40.270 --> 00:21:40.280 align:start position:0%
F,
 

00:21:40.280 --> 00:21:41.990 align:start position:0%
F,
which<00:21:40.520><c> we'll</c><00:21:40.760><c> add</c><00:21:40.960><c> as</c><00:21:41.080><c> an</c><00:21:41.240><c> argument</c><00:21:41.720><c> for</c><00:21:41.840><c> this</c>

00:21:41.990 --> 00:21:42.000 align:start position:0%
which we'll add as an argument for this
 

00:21:42.000 --> 00:21:43.710 align:start position:0%
which we'll add as an argument for this
function.

00:21:43.710 --> 00:21:43.720 align:start position:0%
function.
 

00:21:43.720 --> 00:21:45.230 align:start position:0%
function.
I'm<00:21:43.880><c> going</c><00:21:44.000><c> to</c><00:21:44.080><c> call</c><00:21:44.240><c> this</c><00:21:44.440><c> new</c><00:21:44.600><c> function</c><00:21:45.000><c> big</c>

00:21:45.230 --> 00:21:45.240 align:start position:0%
I'm going to call this new function big
 

00:21:45.240 --> 00:21:46.430 align:start position:0%
I'm going to call this new function big
F.

00:21:46.430 --> 00:21:46.440 align:start position:0%
F.
 

00:21:46.440 --> 00:21:48.070 align:start position:0%
F.
Now,<00:21:46.720><c> let's</c><00:21:46.960><c> consider</c><00:21:47.400><c> what</c><00:21:47.520><c> a</c><00:21:47.560><c> fixed</c><00:21:47.880><c> point</c>

00:21:48.070 --> 00:21:48.080 align:start position:0%
Now, let's consider what a fixed point
 

00:21:48.080 --> 00:21:49.990 align:start position:0%
Now, let's consider what a fixed point
of<00:21:48.200><c> big</c><00:21:48.440><c> F</c><00:21:48.680><c> would</c><00:21:48.800><c> be</c><00:21:48.960><c> like.</c>

00:21:49.990 --> 00:21:50.000 align:start position:0%
of big F would be like.
 

00:21:50.000 --> 00:21:51.470 align:start position:0%
of big F would be like.
We<00:21:50.160><c> already</c><00:21:50.400><c> know</c><00:21:50.520><c> that</c><00:21:50.680><c> this</c><00:21:50.880><c> equation</c><00:21:51.320><c> is</c>

00:21:51.470 --> 00:21:51.480 align:start position:0%
We already know that this equation is
 

00:21:51.480 --> 00:21:53.590 align:start position:0%
We already know that this equation is
true<00:21:51.640><c> of</c><00:21:51.800><c> any</c><00:21:52.040><c> fixed</c><00:21:52.280><c> point</c><00:21:52.480><c> by</c><00:21:52.600><c> definition,</c>

00:21:53.590 --> 00:21:53.600 align:start position:0%
true of any fixed point by definition,
 

00:21:53.600 --> 00:21:54.910 align:start position:0%
true of any fixed point by definition,
using<00:21:53.840><c> the</c><00:21:53.920><c> magic</c><00:21:54.160><c> of</c><00:21:54.280><c> Turing's</c><00:21:54.560><c> fixed</c><00:21:54.760><c> point</c>

00:21:54.910 --> 00:21:54.920 align:start position:0%
using the magic of Turing's fixed point
 

00:21:54.920 --> 00:21:56.070 align:start position:0%
using the magic of Turing's fixed point
combinator.

00:21:56.070 --> 00:21:56.080 align:start position:0%
combinator.
 

00:21:56.080 --> 00:21:58.190 align:start position:0%
combinator.
Plugging<00:21:56.400><c> in</c><00:21:56.520><c> the</c><00:21:56.600><c> first</c><00:21:56.920><c> F</c>

00:21:58.190 --> 00:21:58.200 align:start position:0%
Plugging in the first F
 

00:21:58.200 --> 00:22:00.310 align:start position:0%
Plugging in the first F
and<00:21:58.360><c> beta</c><00:21:58.560><c> reducing</c><00:21:58.960><c> once,</c>

00:22:00.310 --> 00:22:00.320 align:start position:0%
and beta reducing once,
 

00:22:00.320 --> 00:22:02.310 align:start position:0%
and beta reducing once,
we<00:22:00.480><c> get</c><00:22:00.680><c> this</c><00:22:00.880><c> expression.</c>

00:22:02.310 --> 00:22:02.320 align:start position:0%
we get this expression.
 

00:22:02.320 --> 00:22:03.870 align:start position:0%
we get this expression.
Now,<00:22:02.600><c> remember</c><00:22:02.920><c> that</c><00:22:03.040><c> there's</c><00:22:03.240><c> no</c><00:22:03.440><c> recursive</c>

00:22:03.870 --> 00:22:03.880 align:start position:0%
Now, remember that there's no recursive
 

00:22:03.880 --> 00:22:05.470 align:start position:0%
Now, remember that there's no recursive
nesting<00:22:04.240><c> this</c><00:22:04.400><c> time.</c>

00:22:05.470 --> 00:22:05.480 align:start position:0%
nesting this time.
 

00:22:05.480 --> 00:22:07.510 align:start position:0%
nesting this time.
This<00:22:05.720><c> component</c><00:22:06.320><c> is</c><00:22:06.520><c> finite</c><00:22:07.000><c> and</c><00:22:07.160><c> closed</c>

00:22:07.510 --> 00:22:07.520 align:start position:0%
This component is finite and closed
 

00:22:07.520 --> 00:22:09.190 align:start position:0%
This component is finite and closed
form.

00:22:09.190 --> 00:22:09.200 align:start position:0%
form.
 

00:22:09.200 --> 00:22:12.110 align:start position:0%
form.
But,<00:22:09.360><c> this</c><00:22:09.560><c> time,</c><00:22:10.200><c> through</c><00:22:10.440><c> beta</c><00:22:10.680><c> reduction,</c>

00:22:12.110 --> 00:22:12.120 align:start position:0%
But, this time, through beta reduction,
 

00:22:12.120 --> 00:22:13.910 align:start position:0%
But, this time, through beta reduction,
we<00:22:12.320><c> derived</c><00:22:12.960><c> the</c><00:22:13.040><c> recursive</c><00:22:13.480><c> equivalence</c>

00:22:13.910 --> 00:22:13.920 align:start position:0%
we derived the recursive equivalence
 

00:22:13.920 --> 00:22:16.870 align:start position:0%
we derived the recursive equivalence
relation<00:22:14.240><c> that</c><00:22:14.400><c> we</c><00:22:14.520><c> wanted</c><00:22:14.880><c> to</c><00:22:14.960><c> begin</c><00:22:15.360><c> with.</c>

00:22:16.870 --> 00:22:16.880 align:start position:0%
relation that we wanted to begin with.
 

00:22:16.880 --> 00:22:19.230 align:start position:0%
relation that we wanted to begin with.
This<00:22:17.120><c> term,</c><00:22:17.600><c> beta</c><00:22:17.880><c> F,</c><00:22:18.480><c> satisfies</c><00:22:19.160><c> the</c>

00:22:19.230 --> 00:22:19.240 align:start position:0%
This term, beta F, satisfies the
 

00:22:19.240 --> 00:22:20.990 align:start position:0%
This term, beta F, satisfies the
recursive<00:22:19.680><c> equivalence</c><00:22:20.200><c> characteristic</c><00:22:20.920><c> of</c>

00:22:20.990 --> 00:22:21.000 align:start position:0%
recursive equivalence characteristic of
 

00:22:21.000 --> 00:22:23.070 align:start position:0%
recursive equivalence characteristic of
the<00:22:21.120><c> factorial</c><00:22:21.640><c> function.</c><00:22:22.640><c> And</c><00:22:22.720><c> that</c><00:22:22.840><c> means</c>

00:22:23.070 --> 00:22:23.080 align:start position:0%
the factorial function. And that means
 

00:22:23.080 --> 00:22:26.350 align:start position:0%
the factorial function. And that means
that<00:22:23.200><c> beta</c><00:22:23.480><c> F</c><00:22:23.800><c> is</c><00:22:24.080><c> the</c><00:22:24.200><c> factorial</c><00:22:24.760><c> function.</c>

00:22:26.350 --> 00:22:26.360 align:start position:0%
that beta F is the factorial function.
 

00:22:26.360 --> 00:22:27.510 align:start position:0%
that beta F is the factorial function.
Let<00:22:26.440><c> me</c><00:22:26.520><c> color</c><00:22:26.760><c> it</c><00:22:26.840><c> in</c><00:22:26.960><c> so</c><00:22:27.080><c> it</c><00:22:27.160><c> makes</c><00:22:27.360><c> more</c>

00:22:27.510 --> 00:22:27.520 align:start position:0%
Let me color it in so it makes more
 

00:22:27.520 --> 00:22:29.070 align:start position:0%
Let me color it in so it makes more
sense.

00:22:29.070 --> 00:22:29.080 align:start position:0%
sense.
 

00:22:29.080 --> 00:22:30.430 align:start position:0%
sense.
This<00:22:29.280><c> is</c><00:22:29.400><c> the</c><00:22:29.480><c> fixed</c><00:22:29.720><c> point</c><00:22:29.920><c> operator</c><00:22:30.280><c> in</c>

00:22:30.430 --> 00:22:30.440 align:start position:0%
This is the fixed point operator in
 

00:22:30.440 --> 00:22:31.710 align:start position:0%
This is the fixed point operator in
blue.

00:22:31.710 --> 00:22:31.720 align:start position:0%
blue.
 

00:22:31.720 --> 00:22:33.590 align:start position:0%
blue.
Here's<00:22:32.040><c> F.</c>

00:22:33.590 --> 00:22:33.600 align:start position:0%
Here's F.
 

00:22:33.600 --> 00:22:35.870 align:start position:0%
Here's F.
Inside<00:22:33.920><c> of</c><00:22:34.000><c> it,</c><00:22:34.200><c> here's</c><00:22:34.480><c> a</c><00:22:34.560><c> zero,</c>

00:22:35.870 --> 00:22:35.880 align:start position:0%
Inside of it, here's a zero,
 

00:22:35.880 --> 00:22:37.830 align:start position:0%
Inside of it, here's a zero,
the<00:22:35.960><c> number</c><00:22:36.200><c> one</c><00:22:36.360><c> in</c><00:22:36.440><c> the</c><00:22:36.520><c> base</c><00:22:36.760><c> case,</c>

00:22:37.830 --> 00:22:37.840 align:start position:0%
the number one in the base case,
 

00:22:37.840 --> 00:22:39.710 align:start position:0%
the number one in the base case,
the<00:22:37.880><c> multiplication</c><00:22:38.520><c> function,</c>

00:22:39.710 --> 00:22:39.720 align:start position:0%
the multiplication function,
 

00:22:39.720 --> 00:22:42.190 align:start position:0%
the multiplication function,
the<00:22:39.800><c> function</c><00:22:40.120><c> which</c><00:22:40.280><c> subtracts</c><00:22:40.800><c> one,</c>

00:22:42.190 --> 00:22:42.200 align:start position:0%
the function which subtracts one,
 

00:22:42.200 --> 00:22:44.830 align:start position:0%
the function which subtracts one,
and<00:22:42.360><c> the</c><00:22:42.440><c> recursive</c><00:22:42.880><c> function</c><00:22:43.240><c> call.</c>

00:22:44.830 --> 00:22:44.840 align:start position:0%
and the recursive function call.
 

00:22:44.840 --> 00:22:46.590 align:start position:0%
and the recursive function call.
Now,<00:22:45.160><c> let's</c><00:22:45.400><c> apply</c><00:22:45.560><c> this</c><00:22:45.720><c> factorial</c><00:22:46.200><c> function</c>

00:22:46.590 --> 00:22:46.600 align:start position:0%
Now, let's apply this factorial function
 

00:22:46.600 --> 00:22:48.390 align:start position:0%
Now, let's apply this factorial function
to<00:22:46.680><c> the</c><00:22:46.760><c> number</c><00:22:47.000><c> three.</c>

00:22:48.390 --> 00:22:48.400 align:start position:0%
to the number three.
 

00:22:48.400 --> 00:23:10.110 align:start position:0%
to the number three.
Hold<00:22:48.640><c> on</c><00:22:48.760><c> tight.</c>

00:23:10.110 --> 00:23:10.120 align:start position:0%
 
 

00:23:10.120 --> 00:23:16.190 align:start position:0%
 
It's<00:23:10.320><c> six.</c>

00:23:16.190 --> 00:23:16.200 align:start position:0%
 
 

00:23:16.200 --> 00:23:17.870 align:start position:0%
 
Now,<00:23:16.520><c> I</c><00:23:16.600><c> knowingly</c><00:23:17.040><c> hid</c><00:23:17.200><c> some</c><00:23:17.360><c> complexity</c>

00:23:17.870 --> 00:23:17.880 align:start position:0%
Now, I knowingly hid some complexity
 

00:23:17.880 --> 00:23:19.870 align:start position:0%
Now, I knowingly hid some complexity
about<00:23:18.120><c> beta</c><00:23:18.360><c> reduction</c><00:23:18.760><c> from</c><00:23:18.960><c> you,</c><00:23:19.560><c> but</c><00:23:19.680><c> now</c><00:23:19.840><c> I</c>

00:23:19.870 --> 00:23:19.880 align:start position:0%
about beta reduction from you, but now I
 

00:23:19.880 --> 00:23:21.310 align:start position:0%
about beta reduction from you, but now I
think<00:23:20.080><c> you're</c><00:23:20.200><c> ready.</c>

00:23:21.310 --> 00:23:21.320 align:start position:0%
think you're ready.
 

00:23:21.320 --> 00:23:23.470 align:start position:0%
think you're ready.
Consider<00:23:21.640><c> this</c><00:23:21.800><c> term</c><00:23:22.000><c> for</c><00:23:22.120><c> 1</c><00:23:22.320><c> +</c><00:23:22.520><c> 1.</c>

00:23:23.470 --> 00:23:23.480 align:start position:0%
Consider this term for 1 + 1.
 

00:23:23.480 --> 00:23:25.030 align:start position:0%
Consider this term for 1 + 1.
As<00:23:23.600><c> we've</c><00:23:23.720><c> done</c><00:23:23.880><c> a</c><00:23:23.920><c> million</c><00:23:24.200><c> times,</c><00:23:24.760><c> we</c><00:23:24.880><c> can</c>

00:23:25.030 --> 00:23:25.040 align:start position:0%
As we've done a million times, we can
 

00:23:25.040 --> 00:23:26.990 align:start position:0%
As we've done a million times, we can
beta<00:23:25.240><c> reduce</c><00:23:25.520><c> it</c><00:23:25.680><c> to</c><00:23:25.800><c> two.</c>

00:23:26.990 --> 00:23:27.000 align:start position:0%
beta reduce it to two.
 

00:23:27.000 --> 00:23:28.630 align:start position:0%
beta reduce it to two.
But<00:23:27.120><c> this</c><00:23:27.320><c> time,</c><00:23:27.840><c> let's</c><00:23:28.000><c> keep</c><00:23:28.200><c> track</c><00:23:28.440><c> of</c><00:23:28.520><c> the</c>

00:23:28.630 --> 00:23:28.640 align:start position:0%
But this time, let's keep track of the
 

00:23:28.640 --> 00:23:30.990 align:start position:0%
But this time, let's keep track of the
intermediate<00:23:29.120><c> steps.</c>

00:23:30.990 --> 00:23:31.000 align:start position:0%
intermediate steps.
 

00:23:31.000 --> 00:23:33.350 align:start position:0%
intermediate steps.
Okay,<00:23:31.520><c> we've</c><00:23:31.680><c> arrived</c><00:23:31.960><c> at</c><00:23:32.080><c> two.</c><00:23:32.920><c> I've</c><00:23:33.080><c> colored</c>

00:23:33.350 --> 00:23:33.360 align:start position:0%
Okay, we've arrived at two. I've colored
 

00:23:33.360 --> 00:23:35.150 align:start position:0%
Okay, we've arrived at two. I've colored
it<00:23:33.440><c> blue</c><00:23:33.680><c> because</c><00:23:33.960><c> it's</c><00:23:34.080><c> special.</c>

00:23:35.150 --> 00:23:35.160 align:start position:0%
it blue because it's special.
 

00:23:35.160 --> 00:23:36.910 align:start position:0%
it blue because it's special.
It<00:23:35.240><c> can't</c><00:23:35.440><c> be</c><00:23:35.520><c> reduced</c><00:23:35.920><c> further.</c>

00:23:36.910 --> 00:23:36.920 align:start position:0%
It can't be reduced further.
 

00:23:36.920 --> 00:23:38.670 align:start position:0%
It can't be reduced further.
The<00:23:37.000><c> fancy</c><00:23:37.320><c> word</c><00:23:37.520><c> for</c><00:23:37.600><c> this</c><00:23:37.880><c> is</c><00:23:38.080><c> beta</c><00:23:38.360><c> normal</c>

00:23:38.670 --> 00:23:38.680 align:start position:0%
The fancy word for this is beta normal
 

00:23:38.680 --> 00:23:40.110 align:start position:0%
The fancy word for this is beta normal
form.

00:23:40.110 --> 00:23:40.120 align:start position:0%
form.
 

00:23:40.120 --> 00:23:41.510 align:start position:0%
form.
But<00:23:40.240><c> I</c><00:23:40.320><c> want</c><00:23:40.480><c> to</c><00:23:40.520><c> take</c><00:23:40.680><c> a</c><00:23:40.760><c> closer</c><00:23:41.080><c> look</c><00:23:41.280><c> at</c><00:23:41.400><c> the</c>

00:23:41.510 --> 00:23:41.520 align:start position:0%
But I want to take a closer look at the
 

00:23:41.520 --> 00:23:44.710 align:start position:0%
But I want to take a closer look at the
second<00:23:41.920><c> node.</c><00:23:42.840><c> If</c><00:23:43.000><c> I</c><00:23:43.080><c> beta</c><00:23:43.320><c> reduce</c><00:23:43.680><c> it,</c>

00:23:44.710 --> 00:23:44.720 align:start position:0%
second node. If I beta reduce it,
 

00:23:44.720 --> 00:23:47.910 align:start position:0%
second node. If I beta reduce it,
it<00:23:44.800><c> looks</c><00:23:45.000><c> like</c><00:23:45.200><c> this.</c><00:23:46.000><c> But</c><00:23:46.320><c> stepping</c><00:23:46.720><c> back,</c>

00:23:47.910 --> 00:23:47.920 align:start position:0%
it looks like this. But stepping back,
 

00:23:47.920 --> 00:23:49.190 align:start position:0%
it looks like this. But stepping back,
let<00:23:48.000><c> me</c><00:23:48.120><c> highlight</c><00:23:48.400><c> the</c><00:23:48.480><c> function</c><00:23:48.760><c> value</c><00:23:49.040><c> pair</c>

00:23:49.190 --> 00:23:49.200 align:start position:0%
let me highlight the function value pair
 

00:23:49.200 --> 00:23:51.270 align:start position:0%
let me highlight the function value pair
which<00:23:49.360><c> just</c><00:23:49.560><c> got</c><00:23:49.720><c> reduced.</c>

00:23:51.270 --> 00:23:51.280 align:start position:0%
which just got reduced.
 

00:23:51.280 --> 00:23:52.830 align:start position:0%
which just got reduced.
Here's<00:23:51.440><c> the</c><00:23:51.560><c> function,</c><00:23:52.400><c> and</c><00:23:52.520><c> here's</c><00:23:52.760><c> the</c>

00:23:52.830 --> 00:23:52.840 align:start position:0%
Here's the function, and here's the
 

00:23:52.840 --> 00:23:54.630 align:start position:0%
Here's the function, and here's the
value.

00:23:54.630 --> 00:23:54.640 align:start position:0%
value.
 

00:23:54.640 --> 00:23:57.150 align:start position:0%
value.
And<00:23:54.760><c> here</c><00:23:54.880><c> it</c><00:23:55.000><c> is</c><00:23:55.120><c> getting</c><00:23:55.320><c> reduced</c><00:23:55.640><c> again.</c>

00:23:57.150 --> 00:23:57.160 align:start position:0%
And here it is getting reduced again.
 

00:23:57.160 --> 00:23:58.470 align:start position:0%
And here it is getting reduced again.
But

00:23:58.470 --> 00:23:58.480 align:start position:0%
But
 

00:23:58.480 --> 00:24:00.190 align:start position:0%
But
there's<00:23:58.720><c> actually</c><00:23:59.120><c> a</c><00:23:59.200><c> different</c><00:23:59.720><c> reduction</c>

00:24:00.190 --> 00:24:00.200 align:start position:0%
there's actually a different reduction
 

00:24:00.200 --> 00:24:03.470 align:start position:0%
there's actually a different reduction
available<00:24:00.680><c> here.</c><00:24:01.400><c> Here</c><00:24:01.560><c> it</c><00:24:01.680><c> is.</c>

00:24:03.470 --> 00:24:03.480 align:start position:0%
available here. Here it is.
 

00:24:03.480 --> 00:24:06.070 align:start position:0%
available here. Here it is.
And<00:24:03.560><c> here</c><00:24:03.720><c> it</c><00:24:03.840><c> is</c><00:24:04.080><c> actually</c><00:24:04.440><c> taking</c><00:24:04.800><c> place.</c>

00:24:06.070 --> 00:24:06.080 align:start position:0%
And here it is actually taking place.
 

00:24:06.080 --> 00:24:08.750 align:start position:0%
And here it is actually taking place.
Going<00:24:06.320><c> back</c><00:24:06.520><c> to</c><00:24:06.600><c> our</c><00:24:06.720><c> tree</c><00:24:06.920><c> of</c><00:24:07.040><c> reductions,</c>

00:24:08.750 --> 00:24:08.760 align:start position:0%
Going back to our tree of reductions,
 

00:24:08.760 --> 00:24:11.990 align:start position:0%
Going back to our tree of reductions,
since<00:24:09.000><c> there's</c><00:24:09.240><c> two</c><00:24:09.480><c> options</c><00:24:09.960><c> at</c><00:24:10.080><c> this</c><00:24:10.280><c> node,</c>

00:24:11.990 --> 00:24:12.000 align:start position:0%
since there's two options at this node,
 

00:24:12.000 --> 00:24:13.550 align:start position:0%
since there's two options at this node,
let's<00:24:12.200><c> follow</c><00:24:12.480><c> both</c><00:24:12.760><c> paths</c><00:24:13.120><c> at</c><00:24:13.200><c> the</c><00:24:13.280><c> same</c>

00:24:13.550 --> 00:24:13.560 align:start position:0%
let's follow both paths at the same
 

00:24:13.560 --> 00:24:18.510 align:start position:0%
let's follow both paths at the same
time.

00:24:18.510 --> 00:24:18.520 align:start position:0%
 
 

00:24:18.520 --> 00:24:20.510 align:start position:0%
 
Looks<00:24:18.720><c> like</c><00:24:18.880><c> all</c><00:24:19.000><c> paths</c><00:24:19.320><c> lead</c><00:24:19.480><c> to</c><00:24:19.560><c> two.</c>

00:24:20.510 --> 00:24:20.520 align:start position:0%
Looks like all paths lead to two.
 

00:24:20.520 --> 00:24:22.150 align:start position:0%
Looks like all paths lead to two.
Of<00:24:20.760><c> course,</c><00:24:21.320><c> I</c><00:24:21.360><c> mean,</c><00:24:21.600><c> that's</c><00:24:21.800><c> what</c><00:24:21.920><c> we</c><00:24:22.000><c> should</c>

00:24:22.150 --> 00:24:22.160 align:start position:0%
Of course, I mean, that's what we should
 

00:24:22.160 --> 00:24:23.910 align:start position:0%
Of course, I mean, that's what we should
expect.

00:24:23.910 --> 00:24:23.920 align:start position:0%
expect.
 

00:24:23.920 --> 00:24:25.190 align:start position:0%
expect.
The<00:24:24.040><c> answer</c><00:24:24.240><c> to</c><00:24:24.320><c> the</c><00:24:24.400><c> problem</c><00:24:24.880><c> shouldn't</c>

00:24:25.190 --> 00:24:25.200 align:start position:0%
The answer to the problem shouldn't
 

00:24:25.200 --> 00:24:26.510 align:start position:0%
The answer to the problem shouldn't
depend<00:24:25.640><c> on</c><00:24:25.720><c> the</c><00:24:25.840><c> order</c><00:24:26.040><c> that</c><00:24:26.200><c> you</c><00:24:26.280><c> do</c><00:24:26.440><c> the</c>

00:24:26.510 --> 00:24:26.520 align:start position:0%
depend on the order that you do the
 

00:24:26.520 --> 00:24:28.950 align:start position:0%
depend on the order that you do the
steps,<00:24:27.320><c> right?</c>

00:24:28.950 --> 00:24:28.960 align:start position:0%
steps, right?
 

00:24:28.960 --> 00:24:38.390 align:start position:0%
steps, right?
Let's<00:24:29.120><c> try</c><00:24:29.280><c> 2</c><00:24:29.440><c> *</c><00:24:29.760><c> 2.</c>

00:24:38.390 --> 00:24:38.400 align:start position:0%
 
 

00:24:38.400 --> 00:24:40.630 align:start position:0%
 
Here's<00:24:38.560><c> the</c><00:24:38.640><c> reduction</c><00:24:39.000><c> graph.</c>

00:24:40.630 --> 00:24:40.640 align:start position:0%
Here's the reduction graph.
 

00:24:40.640 --> 00:24:42.630 align:start position:0%
Here's the reduction graph.
Looks<00:24:40.880><c> like</c><00:24:41.200><c> in</c><00:24:41.320><c> this</c><00:24:41.480><c> case,</c><00:24:42.080><c> we</c><00:24:42.200><c> can</c><00:24:42.320><c> only</c><00:24:42.520><c> get</c>

00:24:42.630 --> 00:24:42.640 align:start position:0%
Looks like in this case, we can only get
 

00:24:42.640 --> 00:24:44.710 align:start position:0%
Looks like in this case, we can only get
to<00:24:42.760><c> four</c><00:24:43.000><c> also.</c>

00:24:44.710 --> 00:24:44.720 align:start position:0%
to four also.
 

00:24:44.720 --> 00:24:46.390 align:start position:0%
to four also.
All<00:24:44.760><c> right,</c><00:24:45.080><c> I'll</c><00:24:45.200><c> stop</c><00:24:45.440><c> leading</c><00:24:45.680><c> you</c><00:24:45.800><c> on.</c>

00:24:46.390 --> 00:24:46.400 align:start position:0%
All right, I'll stop leading you on.
 

00:24:46.400 --> 00:24:47.670 align:start position:0%
All right, I'll stop leading you on.
This<00:24:46.560><c> is</c><00:24:46.680><c> a</c><00:24:46.720><c> lambda</c><00:24:47.000><c> term</c><00:24:47.240><c> called</c><00:24:47.440><c> omega</c>

00:24:47.670 --> 00:24:47.680 align:start position:0%
This is a lambda term called omega
 

00:24:47.680 --> 00:24:58.750 align:start position:0%
This is a lambda term called omega
three.

00:24:58.750 --> 00:24:58.760 align:start position:0%
 
 

00:24:58.760 --> 00:25:00.790 align:start position:0%
 
See<00:24:58.920><c> where</c><00:24:59.080><c> this</c><00:24:59.240><c> is</c><00:24:59.360><c> going?</c>

00:25:00.790 --> 00:25:00.800 align:start position:0%
See where this is going?
 

00:25:00.800 --> 00:25:02.550 align:start position:0%
See where this is going?
When<00:25:00.960><c> we</c><00:25:01.120><c> beta</c><00:25:01.400><c> reduce</c><00:25:01.720><c> this</c><00:25:01.880><c> term,</c><00:25:02.400><c> it</c>

00:25:02.550 --> 00:25:02.560 align:start position:0%
When we beta reduce this term, it
 

00:25:02.560 --> 00:25:04.310 align:start position:0%
When we beta reduce this term, it
actually<00:25:02.880><c> just</c><00:25:03.080><c> gets</c><00:25:03.280><c> bigger.</c>

00:25:04.310 --> 00:25:04.320 align:start position:0%
actually just gets bigger.
 

00:25:04.320 --> 00:25:05.790 align:start position:0%
actually just gets bigger.
There's<00:25:04.480><c> no</c><00:25:04.600><c> branching,</c><00:25:05.120><c> but</c><00:25:05.280><c> this</c><00:25:05.440><c> is</c><00:25:05.560><c> never</c>

00:25:05.790 --> 00:25:05.800 align:start position:0%
There's no branching, but this is never
 

00:25:05.800 --> 00:25:07.670 align:start position:0%
There's no branching, but this is never
going<00:25:05.920><c> to</c><00:25:06.000><c> get</c><00:25:06.160><c> to</c><00:25:06.240><c> beta</c><00:25:06.440><c> normal</c><00:25:06.720><c> form.</c>

00:25:07.670 --> 00:25:07.680 align:start position:0%
going to get to beta normal form.
 

00:25:07.680 --> 00:25:09.430 align:start position:0%
going to get to beta normal form.
Here's<00:25:07.880><c> an</c><00:25:07.960><c> even</c><00:25:08.200><c> weirder</c><00:25:08.480><c> term.</c>

00:25:09.430 --> 00:25:09.440 align:start position:0%
Here's an even weirder term.
 

00:25:09.440 --> 00:25:11.510 align:start position:0%
Here's an even weirder term.
It<00:25:09.640><c> is</c><00:25:09.840><c> reducible,</c><00:25:10.720><c> but</c><00:25:10.880><c> it</c><00:25:10.960><c> doesn't</c><00:25:11.240><c> reduce</c>

00:25:11.510 --> 00:25:11.520 align:start position:0%
It is reducible, but it doesn't reduce
 

00:25:11.520 --> 00:25:14.030 align:start position:0%
It is reducible, but it doesn't reduce
to<00:25:11.640><c> a</c><00:25:11.720><c> different</c><00:25:12.200><c> lambda</c><00:25:12.480><c> term.</c>

00:25:14.030 --> 00:25:14.040 align:start position:0%
to a different lambda term.
 

00:25:14.040 --> 00:25:15.270 align:start position:0%
to a different lambda term.
There's<00:25:14.240><c> not</c><00:25:14.400><c> much</c><00:25:14.560><c> of</c><00:25:14.640><c> a</c><00:25:14.680><c> graph</c><00:25:14.960><c> to</c><00:25:15.080><c> draw</c>

00:25:15.270 --> 00:25:15.280 align:start position:0%
There's not much of a graph to draw
 

00:25:15.280 --> 00:25:18.510 align:start position:0%
There's not much of a graph to draw
because<00:25:15.520><c> it</c><00:25:15.600><c> reduces</c><00:25:16.080><c> to</c><00:25:16.200><c> itself.</c>

00:25:18.510 --> 00:25:18.520 align:start position:0%
because it reduces to itself.
 

00:25:18.520 --> 00:25:19.910 align:start position:0%
because it reduces to itself.
Here's<00:25:18.680><c> our</c><00:25:18.800><c> old</c><00:25:18.960><c> friend</c><00:25:19.280><c> factorial</c><00:25:19.800><c> of</c>

00:25:19.910 --> 00:25:19.920 align:start position:0%
Here's our old friend factorial of
 

00:25:19.920 --> 00:25:20.870 align:start position:0%
Here's our old friend factorial of
three.

00:25:20.870 --> 00:25:20.880 align:start position:0%
three.
 

00:25:20.880 --> 00:25:22.950 align:start position:0%
three.
The<00:25:21.000><c> search</c><00:25:21.280><c> tree</c><00:25:21.440><c> on</c><00:25:21.560><c> this</c><00:25:21.720><c> is</c><00:25:21.920><c> super</c><00:25:22.360><c> deep,</c>

00:25:22.950 --> 00:25:22.960 align:start position:0%
The search tree on this is super deep,
 

00:25:22.960 --> 00:25:24.470 align:start position:0%
The search tree on this is super deep,
so<00:25:23.320><c> I'll</c><00:25:23.480><c> just</c><00:25:23.720><c> show</c><00:25:23.880><c> you</c><00:25:24.000><c> the</c><00:25:24.080><c> tip</c><00:25:24.280><c> of</c><00:25:24.360><c> the</c>

00:25:24.470 --> 00:25:24.480 align:start position:0%
so I'll just show you the tip of the
 

00:25:24.480 --> 00:25:25.590 align:start position:0%
so I'll just show you the tip of the
iceberg.

00:25:25.590 --> 00:25:25.600 align:start position:0%
iceberg.
 

00:25:25.600 --> 00:25:28.350 align:start position:0%
iceberg.
That's<00:25:25.840><c> the</c><00:25:25.960><c> first</c><00:25:26.200><c> thousand</c><00:25:26.520><c> nodes.</c>

00:25:28.350 --> 00:25:28.360 align:start position:0%
That's the first thousand nodes.
 

00:25:28.360 --> 00:25:29.750 align:start position:0%
That's the first thousand nodes.
Here's<00:25:28.520><c> the</c><00:25:28.640><c> path</c><00:25:28.960><c> straight</c><00:25:29.280><c> to</c><00:25:29.360><c> the</c><00:25:29.480><c> answer</c>

00:25:29.750 --> 00:25:29.760 align:start position:0%
Here's the path straight to the answer
 

00:25:29.760 --> 00:25:31.870 align:start position:0%
Here's the path straight to the answer
of<00:25:29.920><c> six.</c>

00:25:31.870 --> 00:25:31.880 align:start position:0%
of six.
 

00:25:31.880 --> 00:25:34.390 align:start position:0%
of six.
But,<00:25:32.240><c> let</c><00:25:32.360><c> me</c><00:25:32.440><c> show</c><00:25:32.600><c> you</c><00:25:32.720><c> something</c><00:25:33.040><c> else.</c>

00:25:34.390 --> 00:25:34.400 align:start position:0%
But, let me show you something else.
 

00:25:34.400 --> 00:25:36.550 align:start position:0%
But, let me show you something else.
This<00:25:34.600><c> is</c><00:25:34.760><c> another</c><00:25:35.160><c> path</c><00:25:35.720><c> that</c><00:25:35.920><c> seemingly</c><00:25:36.320><c> goes</c>

00:25:36.550 --> 00:25:36.560 align:start position:0%
This is another path that seemingly goes
 

00:25:36.560 --> 00:25:38.670 align:start position:0%
This is another path that seemingly goes
in<00:25:36.640><c> a</c><00:25:36.720><c> totally</c><00:25:37.160><c> different</c><00:25:37.480><c> direction.</c>

00:25:38.670 --> 00:25:38.680 align:start position:0%
in a totally different direction.
 

00:25:38.680 --> 00:25:40.630 align:start position:0%
in a totally different direction.
In<00:25:38.800><c> fact,</c><00:25:39.200><c> this</c><00:25:39.440><c> alternate</c><00:25:39.840><c> reduction</c><00:25:40.240><c> path</c>

00:25:40.630 --> 00:25:40.640 align:start position:0%
In fact, this alternate reduction path
 

00:25:40.640 --> 00:25:42.790 align:start position:0%
In fact, this alternate reduction path
goes<00:25:40.880><c> on</c><00:25:41.000><c> indefinitely,</c><00:25:42.000><c> sort</c><00:25:42.200><c> of</c><00:25:42.320><c> like</c><00:25:42.480><c> omega</c>

00:25:42.790 --> 00:25:42.800 align:start position:0%
goes on indefinitely, sort of like omega
 

00:25:42.800 --> 00:25:43.910 align:start position:0%
goes on indefinitely, sort of like omega
three.

00:25:43.910 --> 00:25:43.920 align:start position:0%
three.
 

00:25:43.920 --> 00:25:45.310 align:start position:0%
three.
Up<00:25:44.080><c> to</c><00:25:44.200><c> the</c><00:25:44.320><c> order</c><00:25:44.560><c> that</c><00:25:44.720><c> you</c><00:25:44.800><c> perform</c><00:25:45.200><c> your</c>

00:25:45.310 --> 00:25:45.320 align:start position:0%
Up to the order that you perform your
 

00:25:45.320 --> 00:25:47.430 align:start position:0%
Up to the order that you perform your
reductions,<00:25:46.240><c> you</c><00:25:46.400><c> may</c><00:25:46.600><c> or</c><00:25:46.720><c> may</c><00:25:46.840><c> not</c><00:25:47.200><c> ever</c>

00:25:47.430 --> 00:25:47.440 align:start position:0%
reductions, you may or may not ever
 

00:25:47.440 --> 00:25:49.070 align:start position:0%
reductions, you may or may not ever
reach<00:25:47.720><c> the</c><00:25:47.880><c> answer.</c>

00:25:49.070 --> 00:25:49.080 align:start position:0%
reach the answer.
 

00:25:49.080 --> 00:25:50.670 align:start position:0%
reach the answer.
It<00:25:49.200><c> turns</c><00:25:49.480><c> out</c><00:25:49.760><c> in</c><00:25:49.880><c> this</c><00:25:50.080><c> path,</c><00:25:50.440><c> it's</c>

00:25:50.670 --> 00:25:50.680 align:start position:0%
It turns out in this path, it's
 

00:25:50.680 --> 00:25:52.390 align:start position:0%
It turns out in this path, it's
unrolling<00:25:51.280><c> the</c><00:25:51.360><c> recursive</c><00:25:51.800><c> definition</c><00:25:52.320><c> of</c>

00:25:52.390 --> 00:25:52.400 align:start position:0%
unrolling the recursive definition of
 

00:25:52.400 --> 00:25:54.990 align:start position:0%
unrolling the recursive definition of
factorial,<00:25:53.120><c> so</c><00:25:53.280><c> to</c><00:25:53.400><c> speak,</c><00:25:54.240><c> before</c><00:25:54.600><c> the</c><00:25:54.720><c> base</c>

00:25:54.990 --> 00:25:55.000 align:start position:0%
factorial, so to speak, before the base
 

00:25:55.000 --> 00:25:57.870 align:start position:0%
factorial, so to speak, before the base
case<00:25:55.440><c> is</c><00:25:55.640><c> ever</c><00:25:55.840><c> taken</c><00:25:56.120><c> advantage</c><00:25:56.520><c> of.</c>

00:25:57.870 --> 00:25:57.880 align:start position:0%
case is ever taken advantage of.
 

00:25:57.880 --> 00:25:59.670 align:start position:0%
case is ever taken advantage of.
The<00:25:58.000><c> proof</c><00:25:58.400><c> is</c><00:25:58.560><c> unfortunately</c><00:25:59.200><c> too</c><00:25:59.360><c> long</c><00:25:59.600><c> for</c>

00:25:59.670 --> 00:25:59.680 align:start position:0%
The proof is unfortunately too long for
 

00:25:59.680 --> 00:26:01.230 align:start position:0%
The proof is unfortunately too long for
this<00:25:59.880><c> video.</c>

00:26:01.230 --> 00:26:01.240 align:start position:0%
this video.
 

00:26:01.240 --> 00:26:02.870 align:start position:0%
this video.
But,<00:26:01.360><c> the</c><00:26:01.480><c> Church-Rosser</c><00:26:02.080><c> theorem</c><00:26:02.600><c> shows</c>

00:26:02.870 --> 00:26:02.880 align:start position:0%
But, the Church-Rosser theorem shows
 

00:26:02.880 --> 00:26:04.150 align:start position:0%
But, the Church-Rosser theorem shows
that<00:26:03.000><c> if</c><00:26:03.120><c> there's</c><00:26:03.320><c> one</c><00:26:03.560><c> of</c><00:26:03.640><c> these</c><00:26:03.880><c> blue</c>

00:26:04.150 --> 00:26:04.160 align:start position:0%
that if there's one of these blue
 

00:26:04.160 --> 00:26:06.110 align:start position:0%
that if there's one of these blue
irreducible<00:26:04.760><c> answers</c><00:26:05.080><c> in</c><00:26:05.160><c> our</c><00:26:05.280><c> tree,</c><00:26:05.920><c> there</c>

00:26:06.110 --> 00:26:06.120 align:start position:0%
irreducible answers in our tree, there
 

00:26:06.120 --> 00:26:08.470 align:start position:0%
irreducible answers in our tree, there
isn't<00:26:06.400><c> another.</c>

00:26:08.470 --> 00:26:08.480 align:start position:0%
isn't another.
 

00:26:08.480 --> 00:26:10.510 align:start position:0%
isn't another.
Sometimes<00:26:08.920><c> there</c><00:26:09.080><c> isn't</c><00:26:09.320><c> one</c><00:26:09.440><c> at</c><00:26:09.560><c> all,</c><00:26:10.320><c> and</c>

00:26:10.510 --> 00:26:10.520 align:start position:0%
Sometimes there isn't one at all, and
 

00:26:10.520 --> 00:26:11.790 align:start position:0%
Sometimes there isn't one at all, and
sometimes<00:26:10.920><c> you</c><00:26:11.000><c> can</c><00:26:11.120><c> go</c><00:26:11.280><c> down</c><00:26:11.480><c> a</c><00:26:11.560><c> beta</c>

00:26:11.790 --> 00:26:11.800 align:start position:0%
sometimes you can go down a beta
 

00:26:11.800 --> 00:26:14.510 align:start position:0%
sometimes you can go down a beta
reduction<00:26:12.200><c> path</c><00:26:12.440><c> in</c><00:26:12.520><c> the</c><00:26:12.600><c> wrong</c><00:26:12.800><c> direction.</c>

00:26:14.510 --> 00:26:14.520 align:start position:0%
reduction path in the wrong direction.
 

00:26:14.520 --> 00:26:15.990 align:start position:0%
reduction path in the wrong direction.
But,<00:26:14.680><c> there's</c><00:26:14.840><c> never</c><00:26:15.080><c> more</c><00:26:15.280><c> than</c><00:26:15.480><c> one</c><00:26:15.640><c> node</c><00:26:15.920><c> in</c>

00:26:15.990 --> 00:26:16.000 align:start position:0%
But, there's never more than one node in
 

00:26:16.000 --> 00:26:21.190 align:start position:0%
But, there's never more than one node in
this<00:26:16.160><c> special</c><00:26:16.520><c> beta</c><00:26:16.760><c> normal</c><00:26:17.080><c> form.</c>

00:26:21.190 --> 00:26:21.200 align:start position:0%
 
 

00:26:21.200 --> 00:26:23.310 align:start position:0%
 
Lambda<00:26:21.440><c> calculus</c><00:26:21.880><c> is</c><00:26:22.040><c> a</c><00:26:22.080><c> deep</c><00:26:22.320><c> subject,</c><00:26:23.200><c> and</c>

00:26:23.310 --> 00:26:23.320 align:start position:0%
Lambda calculus is a deep subject, and
 

00:26:23.320 --> 00:26:25.510 align:start position:0%
Lambda calculus is a deep subject, and
we've<00:26:23.480><c> only</c><00:26:23.680><c> scratched</c><00:26:24.040><c> the</c><00:26:24.120><c> surface.</c>

00:26:25.510 --> 00:26:25.520 align:start position:0%
we've only scratched the surface.
 

00:26:25.520 --> 00:26:26.950 align:start position:0%
we've only scratched the surface.
Just<00:26:25.760><c> to</c><00:26:25.840><c> give</c><00:26:26.000><c> you</c><00:26:26.120><c> a</c><00:26:26.160><c> taste</c><00:26:26.440><c> of</c><00:26:26.520><c> what</c><00:26:26.640><c> else</c><00:26:26.800><c> is</c>

00:26:26.950 --> 00:26:26.960 align:start position:0%
Just to give you a taste of what else is
 

00:26:26.960 --> 00:26:28.470 align:start position:0%
Just to give you a taste of what else is
out<00:26:27.080><c> there.</c>

00:26:28.470 --> 00:26:28.480 align:start position:0%
out there.
 

00:26:28.480 --> 00:26:30.150 align:start position:0%
out there.
The<00:26:28.600><c> Church-Turing</c><00:26:29.160><c> thesis</c><00:26:29.680><c> showed</c><00:26:29.920><c> that</c><00:26:30.040><c> the</c>

00:26:30.150 --> 00:26:30.160 align:start position:0%
The Church-Turing thesis showed that the
 

00:26:30.160 --> 00:26:31.870 align:start position:0%
The Church-Turing thesis showed that the
lambda<00:26:30.400><c> calculus</c><00:26:30.840><c> can</c><00:26:30.960><c> do</c><00:26:31.200><c> everything</c><00:26:31.680><c> that</c>

00:26:31.870 --> 00:26:31.880 align:start position:0%
lambda calculus can do everything that
 

00:26:31.880 --> 00:26:34.110 align:start position:0%
lambda calculus can do everything that
any<00:26:32.040><c> traditional</c><00:26:32.520><c> computer</c><00:26:32.920><c> can.</c>

00:26:34.110 --> 00:26:34.120 align:start position:0%
any traditional computer can.
 

00:26:34.120 --> 00:26:35.790 align:start position:0%
any traditional computer can.
There's<00:26:34.320><c> also</c><00:26:34.560><c> the</c><00:26:34.680><c> entire</c><00:26:35.080><c> field</c><00:26:35.360><c> of</c><00:26:35.480><c> typed</c>

00:26:35.790 --> 00:26:35.800 align:start position:0%
There's also the entire field of typed
 

00:26:35.800 --> 00:26:37.470 align:start position:0%
There's also the entire field of typed
lambda<00:26:36.040><c> calculus,</c><00:26:36.760><c> where</c><00:26:36.880><c> we</c><00:26:36.960><c> assign</c><00:26:37.280><c> data</c>

00:26:37.470 --> 00:26:37.480 align:start position:0%
lambda calculus, where we assign data
 

00:26:37.480 --> 00:26:39.190 align:start position:0%
lambda calculus, where we assign data
types<00:26:37.720><c> to</c><00:26:37.800><c> variables.</c>

00:26:39.190 --> 00:26:39.200 align:start position:0%
types to variables.
 

00:26:39.200 --> 00:26:40.910 align:start position:0%
types to variables.
It<00:26:39.320><c> even</c><00:26:39.520><c> turns</c><00:26:39.760><c> out</c><00:26:39.920><c> that</c><00:26:40.120><c> any</c><00:26:40.320><c> given</c><00:26:40.600><c> typed</c>

00:26:40.910 --> 00:26:40.920 align:start position:0%
It even turns out that any given typed
 

00:26:40.920 --> 00:26:42.150 align:start position:0%
It even turns out that any given typed
program<00:26:41.280><c> in</c><00:26:41.360><c> the</c><00:26:41.440><c> lambda</c><00:26:41.680><c> calculus</c>

00:26:42.150 --> 00:26:42.160 align:start position:0%
program in the lambda calculus
 

00:26:42.160 --> 00:26:44.190 align:start position:0%
program in the lambda calculus
corresponds<00:26:42.720><c> to</c><00:26:42.840><c> some</c><00:26:43.080><c> proof.</c>

00:26:44.190 --> 00:26:44.200 align:start position:0%
corresponds to some proof.
 

00:26:44.200 --> 00:26:46.190 align:start position:0%
corresponds to some proof.
Merely<00:26:44.640><c> writing</c><00:26:45.080><c> a</c><00:26:45.160><c> program</c><00:26:45.720><c> in</c><00:26:45.840><c> the</c><00:26:45.920><c> typed</c>

00:26:46.190 --> 00:26:46.200 align:start position:0%
Merely writing a program in the typed
 

00:26:46.200 --> 00:26:48.790 align:start position:0%
Merely writing a program in the typed
lambda<00:26:46.440><c> calculus</c><00:26:47.120><c> proves</c><00:26:47.600><c> something.</c>

00:26:48.790 --> 00:26:48.800 align:start position:0%
lambda calculus proves something.
 

00:26:48.800 --> 00:26:50.030 align:start position:0%
lambda calculus proves something.
People<00:26:49.000><c> have</c><00:26:49.120><c> even</c><00:26:49.360><c> made</c><00:26:49.600><c> programming</c>

00:26:50.030 --> 00:26:50.040 align:start position:0%
People have even made programming
 

00:26:50.040 --> 00:26:51.870 align:start position:0%
People have even made programming
languages<00:26:50.520><c> which</c><00:26:50.720><c> convert</c><00:26:51.200><c> a</c><00:26:51.240><c> mathematical</c>

00:26:51.870 --> 00:26:51.880 align:start position:0%
languages which convert a mathematical
 

00:26:51.880 --> 00:26:54.630 align:start position:0%
languages which convert a mathematical
proof<00:26:52.360><c> into</c><00:26:52.720><c> a</c><00:26:52.800><c> runnable</c><00:26:53.200><c> program,</c>

00:26:54.630 --> 00:26:54.640 align:start position:0%
proof into a runnable program,
 

00:26:54.640 --> 00:26:56.190 align:start position:0%
proof into a runnable program,
which<00:26:54.800><c> brings</c><00:26:55.040><c> us</c><00:26:55.160><c> to</c><00:26:55.280><c> the</c><00:26:55.360><c> whole</c><00:26:55.560><c> topic</c><00:26:56.080><c> of</c>

00:26:56.190 --> 00:26:56.200 align:start position:0%
which brings us to the whole topic of
 

00:26:56.200 --> 00:26:57.390 align:start position:0%
which brings us to the whole topic of
how<00:26:56.320><c> this</c><00:26:56.480><c> is</c><00:26:56.600><c> actually</c><00:26:57.000><c> used</c><00:26:57.280><c> in</c>

00:26:57.390 --> 00:26:57.400 align:start position:0%
how this is actually used in
 

00:26:57.400 --> 00:26:59.590 align:start position:0%
how this is actually used in
programming.

00:26:59.590 --> 00:26:59.600 align:start position:0%
programming.
 

00:26:59.600 --> 00:27:01.430 align:start position:0%
programming.
Lisp,<00:27:00.200><c> Haskell,</c><00:27:00.760><c> and</c><00:27:00.880><c> other</c><00:27:01.040><c> programming</c>

00:27:01.430 --> 00:27:01.440 align:start position:0%
Lisp, Haskell, and other programming
 

00:27:01.440 --> 00:27:03.030 align:start position:0%
Lisp, Haskell, and other programming
languages<00:27:01.880><c> are</c><00:27:02.040><c> intrinsically</c><00:27:02.600><c> based</c><00:27:02.880><c> in</c><00:27:02.960><c> the</c>

00:27:03.030 --> 00:27:03.040 align:start position:0%
languages are intrinsically based in the
 

00:27:03.040 --> 00:27:07.110 align:start position:0%
languages are intrinsically based in the
lambda<00:27:03.280><c> calculus,</c><00:27:03.880><c> unlike</c><00:27:04.320><c> say</c><00:27:04.640><c> C</c><00:27:05.120><c> or</c><00:27:05.320><c> Rust.</c>

00:27:07.110 --> 00:27:07.120 align:start position:0%
lambda calculus, unlike say C or Rust.
 

00:27:07.120 --> 00:27:08.790 align:start position:0%
lambda calculus, unlike say C or Rust.
Even<00:27:07.360><c> Python</c><00:27:07.760><c> has</c><00:27:07.920><c> adopted</c><00:27:08.280><c> the</c><00:27:08.360><c> ability</c><00:27:08.720><c> to</c>

00:27:08.790 --> 00:27:08.800 align:start position:0%
Even Python has adopted the ability to
 

00:27:08.800 --> 00:27:10.910 align:start position:0%
Even Python has adopted the ability to
make<00:27:09.000><c> small</c><00:27:09.280><c> anonymous</c><00:27:09.680><c> functions,</c>

00:27:10.910 --> 00:27:10.920 align:start position:0%
make small anonymous functions,
 

00:27:10.920 --> 00:27:12.670 align:start position:0%
make small anonymous functions,
called<00:27:11.120><c> lambdas,</c><00:27:12.040><c> which</c><00:27:12.240><c> emulate</c><00:27:12.600><c> the</c>

00:27:12.670 --> 00:27:12.680 align:start position:0%
called lambdas, which emulate the
 

00:27:12.680 --> 00:27:15.270 align:start position:0%
called lambdas, which emulate the
properties<00:27:13.240><c> of</c><00:27:13.360><c> the</c><00:27:13.440><c> lambda</c><00:27:13.680><c> calculus.</c>

00:27:15.270 --> 00:27:15.280 align:start position:0%
properties of the lambda calculus.
 

00:27:15.280 --> 00:27:16.670 align:start position:0%
properties of the lambda calculus.
But,<00:27:15.520><c> I</c><00:27:15.560><c> don't</c><00:27:15.760><c> like</c><00:27:15.920><c> the</c><00:27:16.000><c> lambda</c><00:27:16.240><c> calculus</c>

00:27:16.670 --> 00:27:16.680 align:start position:0%
But, I don't like the lambda calculus
 

00:27:16.680 --> 00:27:18.230 align:start position:0%
But, I don't like the lambda calculus
for<00:27:16.800><c> its</c><00:27:16.960><c> utility.</c>

00:27:18.230 --> 00:27:18.240 align:start position:0%
for its utility.
 

00:27:18.240 --> 00:27:19.790 align:start position:0%
for its utility.
The<00:27:18.320><c> philosophical</c><00:27:18.920><c> implications</c><00:27:19.560><c> of</c><00:27:19.640><c> these</c>

00:27:19.790 --> 00:27:19.800 align:start position:0%
The philosophical implications of these
 

00:27:19.800 --> 00:27:21.430 align:start position:0%
The philosophical implications of these
alternative<00:27:20.280><c> models</c><00:27:20.600><c> of</c><00:27:20.720><c> computing</c><00:27:21.200><c> run</c>

00:27:21.430 --> 00:27:21.440 align:start position:0%
alternative models of computing run
 

00:27:21.440 --> 00:27:22.550 align:start position:0%
alternative models of computing run
deep.

00:27:22.550 --> 00:27:22.560 align:start position:0%
deep.
 

00:27:22.560 --> 00:27:24.390 align:start position:0%
deep.
They<00:27:22.680><c> give</c><00:27:22.840><c> us</c><00:27:22.960><c> a</c><00:27:23.040><c> fresh</c><00:27:23.320><c> perspective</c><00:27:24.200><c> on</c><00:27:24.320><c> the</c>

00:27:24.390 --> 00:27:24.400 align:start position:0%
They give us a fresh perspective on the
 

00:27:24.400 --> 00:27:26.430 align:start position:0%
They give us a fresh perspective on the
structure<00:27:24.840><c> of</c><00:27:24.960><c> information</c><00:27:25.920><c> and</c><00:27:26.040><c> the</c><00:27:26.080><c> nature</c>

00:27:26.430 --> 00:27:26.440 align:start position:0%
structure of information and the nature
 

00:27:26.440 --> 00:27:29.190 align:start position:0%
structure of information and the nature
of<00:27:26.560><c> computation</c><00:27:27.120><c> itself.</c>

00:27:29.190 --> 00:27:29.200 align:start position:0%
of computation itself.
 

00:27:29.200 --> 00:27:30.390 align:start position:0%
of computation itself.
I<00:27:29.240><c> want</c><00:27:29.400><c> to</c><00:27:29.440><c> give</c><00:27:29.560><c> an</c><00:27:29.680><c> enormous</c><00:27:30.000><c> thank</c><00:27:30.200><c> you</c><00:27:30.280><c> to</c>

00:27:30.390 --> 00:27:30.400 align:start position:0%
I want to give an enormous thank you to
 

00:27:30.400 --> 00:27:32.670 align:start position:0%
I want to give an enormous thank you to
6884,<00:27:31.520><c> who</c><00:27:31.600><c> made</c><00:27:31.800><c> all</c><00:27:31.880><c> the</c><00:27:32.000><c> music</c><00:27:32.360><c> which</c><00:27:32.520><c> made</c>

00:27:32.670 --> 00:27:32.680 align:start position:0%
6884, who made all the music which made
 

00:27:32.680 --> 00:27:34.430 align:start position:0%
6884, who made all the music which made
this<00:27:32.840><c> video</c><00:27:33.080><c> come</c><00:27:33.280><c> to</c><00:27:33.360><c> life.</c>

00:27:34.430 --> 00:27:34.440 align:start position:0%
this video come to life.
 

00:27:34.440 --> 00:27:35.870 align:start position:0%
this video come to life.
This<00:27:34.600><c> also</c><00:27:34.800><c> couldn't</c><00:27:35.000><c> have</c><00:27:35.120><c> been</c><00:27:35.240><c> possible</c><00:27:35.760><c> if</c>

00:27:35.870 --> 00:27:35.880 align:start position:0%
This also couldn't have been possible if
 

00:27:35.880 --> 00:27:37.550 align:start position:0%
This also couldn't have been possible if
not<00:27:36.040><c> for</c><00:27:36.160><c> John</c><00:27:36.400><c> Trump,</c><00:27:36.920><c> the</c><00:27:37.000><c> inventor</c><00:27:37.320><c> of</c><00:27:37.400><c> this</c>

00:27:37.550 --> 00:27:37.560 align:start position:0%
not for John Trump, the inventor of this
 

00:27:37.560 --> 00:27:38.910 align:start position:0%
not for John Trump, the inventor of this
sick<00:27:37.760><c> diagrammatic</c><00:27:38.280><c> notation</c><00:27:38.760><c> for</c><00:27:38.840><c> the</c>

00:27:38.910 --> 00:27:38.920 align:start position:0%
sick diagrammatic notation for the
 

00:27:38.920 --> 00:27:40.550 align:start position:0%
sick diagrammatic notation for the
lambda<00:27:39.200><c> expressions,</c>

00:27:40.550 --> 00:27:40.560 align:start position:0%
lambda expressions,
 

00:27:40.560 --> 00:27:42.590 align:start position:0%
lambda expressions,
or<00:27:40.680><c> Peter</c><00:27:40.920><c> Selinger,</c><00:27:41.800><c> who</c><00:27:41.920><c> wrote</c><00:27:42.080><c> this</c><00:27:42.280><c> book,</c>

00:27:42.590 --> 00:27:42.600 align:start position:0%
or Peter Selinger, who wrote this book,
 

00:27:42.600 --> 00:27:45.190 align:start position:0%
or Peter Selinger, who wrote this book,
Lecture<00:27:42.880><c> Notes</c><00:27:43.080><c> on</c><00:27:43.160><c> the</c><00:27:43.200><c> Lambda</c><00:27:43.480><c> Calculus.</c>

00:27:45.190 --> 00:27:45.200 align:start position:0%
Lecture Notes on the Lambda Calculus.
 

00:27:45.200 --> 00:27:46.950 align:start position:0%
Lecture Notes on the Lambda Calculus.
His<00:27:45.360><c> clear</c><00:27:45.560><c> formalizations</c><00:27:46.440><c> of</c><00:27:46.560><c> a</c><00:27:46.600><c> lot</c><00:27:46.800><c> of</c><00:27:46.880><c> the</c>

00:27:46.950 --> 00:27:46.960 align:start position:0%
His clear formalizations of a lot of the
 

00:27:46.960 --> 00:27:48.790 align:start position:0%
His clear formalizations of a lot of the
things<00:27:47.200><c> I</c><00:27:47.280><c> thought</c><00:27:47.640><c> I</c><00:27:47.680><c> understood</c><00:27:48.480><c> helped</c><00:27:48.680><c> me</c>

00:27:48.790 --> 00:27:48.800 align:start position:0%
things I thought I understood helped me
 

00:27:48.800 --> 00:27:50.390 align:start position:0%
things I thought I understood helped me
get<00:27:48.960><c> through</c><00:27:49.120><c> plenty</c><00:27:49.400><c> of</c><00:27:49.480><c> snags</c><00:27:49.880><c> in</c><00:27:50.000><c> rendering</c>

00:27:50.390 --> 00:27:50.400 align:start position:0%
get through plenty of snags in rendering
 

00:27:50.400 --> 00:27:52.310 align:start position:0%
get through plenty of snags in rendering
these<00:27:50.560><c> diagrams.</c>

00:27:52.310 --> 00:27:52.320 align:start position:0%
these diagrams.
 

00:27:52.320 --> 00:27:53.950 align:start position:0%
these diagrams.
This<00:27:52.520><c> video,</c><00:27:52.920><c> to</c><00:27:53.040><c> the</c><00:27:53.120><c> best</c><00:27:53.320><c> of</c><00:27:53.360><c> my</c><00:27:53.480><c> knowledge,</c>

00:27:53.950 --> 00:27:53.960 align:start position:0%
This video, to the best of my knowledge,
 

00:27:53.960 --> 00:27:55.510 align:start position:0%
This video, to the best of my knowledge,
is<00:27:54.080><c> the</c><00:27:54.160><c> first</c><00:27:54.480><c> which</c><00:27:54.640><c> shows</c><00:27:54.880><c> beta</c><00:27:55.120><c> reduction</c>

00:27:55.510 --> 00:27:55.520 align:start position:0%
is the first which shows beta reduction
 

00:27:55.520 --> 00:27:57.430 align:start position:0%
is the first which shows beta reduction
animations<00:27:56.000><c> of</c><00:27:56.240><c> any</c><00:27:56.480><c> visualization</c><00:27:57.160><c> method</c>

00:27:57.430 --> 00:27:57.440 align:start position:0%
animations of any visualization method
 

00:27:57.440 --> 00:27:59.670 align:start position:0%
animations of any visualization method
for<00:27:57.560><c> the</c><00:27:57.640><c> lambda</c><00:27:57.880><c> calculus.</c><00:27:59.000><c> And</c><00:27:59.200><c> jeez,</c><00:27:59.520><c> did</c>

00:27:59.670 --> 00:27:59.680 align:start position:0%
for the lambda calculus. And jeez, did
 

00:27:59.680 --> 00:28:01.430 align:start position:0%
for the lambda calculus. And jeez, did
it<00:27:59.800><c> take</c><00:27:59.960><c> a</c><00:28:00.000><c> while</c><00:28:00.200><c> to</c><00:28:00.320><c> make.</c>

00:28:01.430 --> 00:28:01.440 align:start position:0%
it take a while to make.
 

00:28:01.440 --> 00:28:02.790 align:start position:0%
it take a while to make.
If<00:28:01.560><c> you</c><00:28:01.640><c> like</c><00:28:01.800><c> this</c><00:28:01.960><c> content,</c><00:28:02.560><c> then</c><00:28:02.680><c> there's</c>

00:28:02.790 --> 00:28:02.800 align:start position:0%
If you like this content, then there's
 

00:28:02.800 --> 00:28:04.070 align:start position:0%
If you like this content, then there's
nothing<00:28:03.080><c> I</c><00:28:03.120><c> would</c><00:28:03.240><c> appreciate</c><00:28:03.680><c> more</c><00:28:03.840><c> than</c><00:28:04.000><c> you</c>

00:28:04.070 --> 00:28:04.080 align:start position:0%
nothing I would appreciate more than you
 

00:28:04.080 --> 00:28:05.910 align:start position:0%
nothing I would appreciate more than you
joining<00:28:04.360><c> our</c><00:28:04.440><c> Discord</c><00:28:04.840><c> server.</c>

00:28:05.910 --> 00:28:05.920 align:start position:0%
joining our Discord server.
 

00:28:05.920 --> 00:28:07.510 align:start position:0%
joining our Discord server.
We<00:28:05.960><c> talk</c><00:28:06.160><c> about</c><00:28:06.360><c> math,</c><00:28:06.840><c> puzzles,</c><00:28:07.320><c> game</c>

00:28:07.510 --> 00:28:07.520 align:start position:0%
We talk about math, puzzles, game
 

00:28:07.520 --> 00:28:09.030 align:start position:0%
We talk about math, puzzles, game
theory,<00:28:07.840><c> and</c><00:28:08.000><c> so</c><00:28:08.200><c> on.</c>

00:28:09.030 --> 00:28:09.040 align:start position:0%
theory, and so on.
 

00:28:09.040 --> 00:28:11.470 align:start position:0%
theory, and so on.
I<00:28:09.080><c> can't</c><00:28:09.280><c> wait</c><00:28:09.400><c> to</c><00:28:09.520><c> see</c><00:28:09.640><c> you</c><00:28:09.720><c> there.</c>

00:28:11.470 --> 00:28:11.480 align:start position:0%
I can't wait to see you there.
 

00:28:11.480 --> 00:28:15.600 align:start position:0%
I can't wait to see you there.
But,<00:28:11.800><c> until</c><00:28:12.080><c> then,</c><00:28:12.640><c> this</c><00:28:12.800><c> has</c><00:28:12.920><c> been</c><00:28:13.040><c> Two</c><00:28:13.200><c> Swap.</c>

