Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,280 --> 00:00:09,120
hello everybody so we can continue on the theme
of the week which is uh we're going to look at
2
00:00:09,120 --> 00:00:16,560
compactness theorem so as i mentioned earlier
compactness theorem is a really important result
3
00:00:17,120 --> 00:00:22,640
not only for propositional logic but also
for first sort of logic it's also one of the
4
00:00:23,360 --> 00:00:31,120
i would say the more challenging parts
of the course so i encourage you to um
5
00:00:31,120 --> 00:00:37,600
yeah i mean take a look at this video a couple
of times and also take a look at the materials um
6
00:00:37,600 --> 00:00:44,400
at the at the handout the notes yeah um a couple
of times and yeah try to in order to get in order
7
00:00:44,400 --> 00:00:50,000
for you to get a good sense of how to apply the
result you might need to yeah you might need to
8
00:00:50,000 --> 00:00:56,400
look at a few examples and just try to think about
them a little bit and to try to apply yeah to a
9
00:00:56,400 --> 00:01:01,680
number of different examples so that you can
get a good feel all right so let's continue
10
00:01:07,760 --> 00:01:17,760
so so firstly what is compactness theorem
so this is a kind of a general theorem um
11
00:01:18,880 --> 00:01:21,280
that allows you to analyze an infinite
12
00:01:22,160 --> 00:01:27,840
an infinite object so this so to speak yeah
in particular an infinite set of formulas
13
00:01:29,120 --> 00:01:34,560
and yeah you want to do it you want to do so
by some kind of finite means okay so this is uh
14
00:01:34,560 --> 00:01:41,520
yeah just the general description of what
the compactness theorem is about and this is
15
00:01:41,520 --> 00:01:49,200
actually a feature of proposition logic
and also predicate logic yeah and it's not
16
00:01:50,960 --> 00:01:57,760
always satisfied by any logic that one can come up
with yeah so this is uh really important to note
17
00:01:59,280 --> 00:02:06,800
um also what is interesting about compactness
theorem is that it has a lot of really interesting
18
00:02:06,800 --> 00:02:13,840
applications for example in graph coloring
i mean surprise surprise you can apply this
19
00:02:13,840 --> 00:02:21,360
to something that is might seemingly be really
different and far away from proposition logic
20
00:02:21,360 --> 00:02:27,360
you can also apply this for example to ramsey
theorem and finally you can use this to also show
21
00:02:28,080 --> 00:02:36,880
um to also understand the limitation of the
expressive power of for example proposition logic
22
00:02:36,880 --> 00:02:42,400
and also of predicate logic and yeah i mean this
uh the very last point is especially relevant
23
00:02:42,400 --> 00:02:48,720
when we talk about private logic because um as
i mentioned um i think in week one yeah private
24
00:02:48,720 --> 00:02:55,280
logic is the basis for for example database query
languages when you look at relational databases
25
00:02:56,000 --> 00:03:02,160
and in that kind of setting you might you it's
important to understand what you can express what
26
00:03:02,160 --> 00:03:07,760
kind of queries you can ask to your database yeah
i mean if you you have this uh you have this logic
27
00:03:07,760 --> 00:03:12,960
what is the limitation of this query language uh
do we need to extend or do we need to add certain
28
00:03:12,960 --> 00:03:19,520
extra feature that does not actually um that is
not that is not present in the original logic
29
00:03:20,800 --> 00:03:24,880
so yeah that's uh for example one important
question as you can see later on yeah it's
30
00:03:24,880 --> 00:03:32,000
a question of for example um yeah if you have a
graph can you express whether or not uh there's
31
00:03:32,000 --> 00:03:37,920
a path in the graph yeah can you express this in
first sort of logic or practical logic so this is
32
00:03:37,920 --> 00:03:45,840
uh you will see this in about i think um in
around five in around five weeks from now i guess
33
00:03:47,840 --> 00:03:50,480
okay so that's compactness theorem
34
00:03:52,800 --> 00:03:57,360
so here's an outline of what we're going to
talk about so firstly we're going to look at
35
00:03:57,360 --> 00:04:02,000
formal statement of compactness theorem and
then we're going to move on to the proof of
36
00:04:02,000 --> 00:04:06,320
the compactness theorem after that we're going
to look at applications of compactness there
37
00:04:09,920 --> 00:04:14,240
so here is the setting of the compactness theorem
38
00:04:15,760 --> 00:04:22,800
so i'm going to fix some notation and also
some preliminary definitions before we move
39
00:04:22,800 --> 00:04:32,400
on to the statement of the theorem yeah so so
far we've only analyzed we've only looked at uh
40
00:04:34,000 --> 00:04:40,960
a single formula and to see whether or not it
decides uh it it is satisfiable valid etc but the
41
00:04:40,960 --> 00:04:46,640
main object is always a single formula
but when we look at compactness theorem
42
00:04:47,680 --> 00:04:54,320
the main object is actually a set of a set
of propositional formulas in particular
43
00:04:54,320 --> 00:04:59,360
we usually care about an infinite
set of propositional formula okay
44
00:05:04,480 --> 00:05:09,840
so we use usually this notation here
45
00:05:11,920 --> 00:05:20,560
sigma capital sigma sometimes you'll use capital
gamma in order to refer to sets of propositional
46
00:05:20,560 --> 00:05:28,160
formulas so there are two definitions here that
are important the first one is satisfiability here
47
00:05:29,680 --> 00:05:36,240
and the second one is of finite satisfiability
so we know already what it means for a single
48
00:05:36,240 --> 00:05:42,800
formula to be satisfiable so what does it mean
now for a set of formulas to be satisfiable the
49
00:05:42,800 --> 00:05:48,400
interpretation here is supposed to be as follows
so if you have a set of formulas remember when we
50
00:05:48,400 --> 00:05:54,640
looked at constraint programming yeah so if you
have um if you want to put extra constraints yeah
51
00:05:54,640 --> 00:05:59,360
so if you have uh if you have a set of constraints
it is typically interpreted as a conjunction of
52
00:05:59,360 --> 00:06:05,680
these constraints and in our case here this is
very consistent yeah with what we want to do
53
00:06:05,680 --> 00:06:12,880
here no and in particular a set of formulas is
satisfiable if there exists an interpretation
54
00:06:12,880 --> 00:06:25,440
i that makes all of the formulas in sigma true
okay so it's important to note here that it is uh
55
00:06:26,640 --> 00:06:33,840
here is a single interpretation yeah that's a
single interpretation that makes everybody true
56
00:06:34,720 --> 00:06:41,040
so it is a very as you can see here um it's
a very strong condition yeah so this is uh
57
00:06:41,600 --> 00:06:48,000
so there's one uniform solution for everybody yeah
um so this you can check that this is actually
58
00:06:48,000 --> 00:06:52,880
a generalization of the satisfiability uh the
notion of satisfiability for a single formula
59
00:06:53,760 --> 00:06:58,640
um for example you can put uh sigma to be as a
singleton yeah and you can see here that this
60
00:06:58,640 --> 00:07:04,800
would mean that uh yeah a singleton set consisting
of your formula and you can say like okay so the
61
00:07:04,800 --> 00:07:10,480
uh this would be uh consistent with the original
uh notion of satisfiability for a formula
62
00:07:11,840 --> 00:07:14,560
uh some of you might ask okay so why don't we just
63
00:07:15,200 --> 00:07:20,160
why do we need a set of formulas why don't we
just take a conjunction of them yeah well that's
64
00:07:20,160 --> 00:07:24,560
not going to work right if you take a conjunction
of the formulas in sigma you're going to you're
65
00:07:24,560 --> 00:07:31,680
not going to get a propositional formula because
propositional formulas are always finite yeah okay
66
00:07:31,680 --> 00:07:38,160
so this is why here we cannot just reduce this to
a single uh to a single uh propositional formula
67
00:07:39,680 --> 00:07:45,520
right so that's uh satisfiability um and before
i gonna uh before we go through an example here
68
00:07:46,320 --> 00:07:52,400
let's just take a look quickly at what it means
uh for a formula to be fondly satisfiable so uh so
69
00:07:52,400 --> 00:07:58,000
four set of formulas so a set of formula sigma is
finally satisfiable and we're going to abbreviate
70
00:07:58,000 --> 00:08:08,080
it like this f dot s yeah if every finite subset
of sigma sigma prime if we find a subset of sigma
71
00:08:08,080 --> 00:08:17,360
is satisfiable so this one is a seemingly
weaker condition than satisfiability right
72
00:08:18,480 --> 00:08:25,520
because here we just ask that yeah i mean if you
take any finite subset of sigma then there has to
73
00:08:25,520 --> 00:08:33,680
be a um an interpretation i that makes this sigma
prime every formula in sigma prime true so this is
74
00:08:33,680 --> 00:08:39,840
kind of uh yeah so the i here in this case might
actually depend on sigma prime yeah the uh the
75
00:08:40,800 --> 00:08:46,480
the uh the solution i here the interpretation i
might depend on sigma prime okay so just before
76
00:08:46,480 --> 00:08:51,760
we continue again to the example i'm gonna just
uh fix a couple of uh i'm gonna go to this uh
77
00:08:51,760 --> 00:08:58,000
the speed here um we're going to look at um just
some i'm just going to we're going to fix some
78
00:08:58,000 --> 00:09:05,680
lingo here some terminologies in particular we say
here that if you have uh so here you have there
79
00:09:05,680 --> 00:09:13,040
this interpretation i such that blah blah blah
yeah this we can just say that i satisfies sigma
80
00:09:13,840 --> 00:09:21,200
okay alternatively you can also say i is a model
for sigma right so yeah this is uh all of these
81
00:09:21,200 --> 00:09:31,520
things are very common um common terminologies
used in logic yeah so the um the term model
82
00:09:31,520 --> 00:09:36,160
always means a satisfying interpretation
there is interpretation that satisfies
83
00:09:36,160 --> 00:09:43,040
everybody yeah um sometimes you also call this um
a solution yeah so there's really quite a lot of
84
00:09:43,040 --> 00:09:47,120
uh terminologies for this um we've
talked about satisfiability we've
85
00:09:47,120 --> 00:09:52,240
talked about finite satisfiability let's
just take a look at a little example here
86
00:09:57,520 --> 00:10:08,080
so here we have an infinite set of formulas
consisting of p0 p0 implies p1 p1 implies p2 p2
87
00:10:08,080 --> 00:10:15,360
implies p3 etc etc yeah this is an infinite set as
you can see now this is both satisfiable as well
88
00:10:15,360 --> 00:10:21,200
as find it satisfiable so how do we know this well
i mean this is satisfiable because i can just set
89
00:10:21,200 --> 00:10:28,640
p0 p1 all of the guys to be one here so this
would give us um interpretation that satisfies
90
00:10:28,640 --> 00:10:33,360
all of the formulas yeah so you can check that
yeah this is not not not that difficult to check
91
00:10:35,360 --> 00:10:41,440
now this is also finally satisfiable um so well
92
00:10:42,480 --> 00:10:48,320
rather than giving you proving that let's just
prove something more general that every set of
93
00:10:48,320 --> 00:10:52,720
formulas that is satisfiable yeah so that is
here and this is here this proposition here
94
00:10:54,480 --> 00:11:01,280
every set of formulas that is satisfiable is
also finally satisfiable yeah so let's try to
95
00:11:01,280 --> 00:11:08,080
give a proof for that and this would also
in particular implies that this oops sorry
96
00:11:11,200 --> 00:11:13,840
here yeah
97
00:11:17,680 --> 00:11:24,000
okay so let's try to prove this so sigma is
satisfiable it means that sigma is finitely
98
00:11:24,000 --> 00:11:33,200
satisfiable well this is uh this is actually not a
difficult proof yeah so um the proof is uh firstly
99
00:11:34,400 --> 00:11:38,000
if sigma is satisfiable then
100
00:11:38,000 --> 00:11:45,920
you will get a model for sigma yeah that
is that satisfies every formula in sigma so
101
00:11:53,600 --> 00:11:55,840
oops sorry typo here
102
00:11:59,840 --> 00:12:09,840
every
103
00:12:14,640 --> 00:12:24,960
as a model i so it satisfies
104
00:12:31,680 --> 00:12:32,240
for each
105
00:12:35,120 --> 00:12:38,560
so this will satisfy every formula in sigma
106
00:12:45,040 --> 00:12:51,840
so in order to show that this
is finally satisfiable take
107
00:12:52,560 --> 00:12:56,640
well actually you don't need this to be
a finite set just take any sigma prime
108
00:13:00,000 --> 00:13:00,500
then
109
00:13:03,120 --> 00:13:07,360
i it's a model for i satisfies
110
00:13:10,800 --> 00:13:12,960
sorry this is gonna get a little bit small yeah
111
00:13:15,600 --> 00:13:21,040
um this satisfies sigma prime so what it's what
it's saying here is that i satisfy sigma prime
112
00:13:21,040 --> 00:13:25,520
because i satisfies every formula in sigma
prime yeah that's because sigma prime is a
113
00:13:25,520 --> 00:13:31,200
subset of sigma so this is actually a
pretty obvious proposition here right
114
00:13:31,200 --> 00:13:39,040
so um all right okay so just to conclude so what
we've talked about here is uh satisfiability
115
00:13:39,040 --> 00:13:45,280
finally satisfy a finite satisfiability
and we've talked about also the um
116
00:13:46,320 --> 00:13:53,840
the notion of model solution that
um interpretation satisfies a set
117
00:13:53,840 --> 00:13:58,800
of formulas okay so basically what we're doing
here is we're really generalizing the notion
118
00:13:58,800 --> 00:14:06,240
that we've looked at to well to infinite set
of formulas or just set formulas in general
119
00:14:07,600 --> 00:14:13,520
and we've also seen that satisfiabilities
implies finance satisfiability now the
120
00:14:13,520 --> 00:14:22,480
next obvious question is whether or not the
converse holds yeah that is whether or not um
121
00:14:23,920 --> 00:14:30,640
final satisfiability implies satisfiability so
as you can see here final a satisfiability seems
122
00:14:30,640 --> 00:14:36,560
much weaker than satisfiability you
might feel so but it turns out that
123
00:14:38,240 --> 00:14:44,960
they are actually really the same notion yeah
so sigma is satisfiable if and only if sigma
124
00:14:44,960 --> 00:14:51,360
is fantastic satisfiability so this is very
surprising that uh seemingly weaker notion is
125
00:14:51,360 --> 00:14:59,440
actually equivalent to the original the original
notion yeah so um there's a couple of uh so that's
126
00:14:59,440 --> 00:15:04,880
the statement of compactness theorem and there's
a couple of corollaries that are uh really useful
127
00:15:06,560 --> 00:15:14,800
uh to mention the first one is the um the converse
to the converse of the um of the theorem here
128
00:15:17,600 --> 00:15:24,560
so in particular if sigma is unsatisfiable okay
so if basically you take the the converse of this
129
00:15:24,560 --> 00:15:32,800
if sigma is unsatisfiable then it means sigma
is not finitely satisfiable from the theorem
130
00:15:32,800 --> 00:15:43,040
yeah in other words there exists an unsatisfiable
finite set sigma sigma sigma prime yeah
131
00:15:44,480 --> 00:15:49,920
so this is uh in some sense really interesting
because what's going on here is as follows yeah so
132
00:15:50,480 --> 00:15:57,520
um it means that if you want to show
that sigma is unsatisfiable this is uh
133
00:15:57,520 --> 00:16:03,520
infinite set is unsatisfiable apparently
there is a witness okay a finite witness
134
00:16:03,520 --> 00:16:08,800
there's always a finite witness for that for
this for this unsatisfiability of an infinite set
135
00:16:08,800 --> 00:16:14,080
okay so you can find among this infinite set of
guys i find it a finite set that is already in
136
00:16:14,080 --> 00:16:20,480
conflict all right so this is uh yeah i mean this
is uh i would say this is a pretty interesting
137
00:16:21,280 --> 00:16:29,840
pretty interesting statement with that as you can
see soon has a lot of has a lot of implications
138
00:16:32,080 --> 00:16:42,480
so before we proof this theorem we're gonna go
through a couple of um um we're just gonna go
139
00:16:42,480 --> 00:16:49,760
through some preliminaries particularly we're
gonna look at the um we're gonna look at uh the
140
00:16:49,760 --> 00:16:57,200
so-called deduction theorem and contradiction
uh uh proposition yeah so both of these are
141
00:16:57,200 --> 00:17:03,920
um are called the semantics versions because
we will also see uh later on um i think in a
142
00:17:03,920 --> 00:17:13,360
couple of weeks yeah the syntactic version of this
right so um let's go through this preliminaries
143
00:17:14,720 --> 00:17:20,480
so in order to talk about this uh results a
reduction theorem and contradiction we're gonna
144
00:17:20,480 --> 00:17:25,920
first generalize the notion of entailment okay
so this is uh very similar to what we just did
145
00:17:25,920 --> 00:17:31,840
when we generalized the notion of unsatisfiably
satisfiability um so how do we do that
146
00:17:34,240 --> 00:17:42,160
uh so this is the definition i've written uh
it down here so given a set of propositions
147
00:17:42,160 --> 00:17:45,920
so this is uh can be infinite or finite sigma yeah
148
00:17:45,920 --> 00:17:50,080
and a formula phi a propositional
formula sorry prop here means
149
00:17:52,480 --> 00:17:56,640
propositional formulas yeah so sigma here
of course is a set of propositional formulas
150
00:17:56,640 --> 00:18:09,920
not propositions so we say that uh so a little
typo we say we say that sigma entails phi written
151
00:18:12,640 --> 00:18:18,880
see written like this yeah if every
model i for sigma satisfies phi
152
00:18:20,400 --> 00:18:31,920
in particular this would this
would mean that uh yeah i
153
00:18:37,280 --> 00:18:44,080
so every model i for sigma satisfies
phi so if you remember every model of i
154
00:18:44,080 --> 00:18:50,960
said every model for sigma here it simply
means i satisfies so this bit here yeah
155
00:18:53,120 --> 00:19:00,240
this means i satisfies psi for each psi
156
00:19:03,600 --> 00:19:04,100
in
157
00:19:07,040 --> 00:19:11,680
yeah so this implies
158
00:19:19,680 --> 00:19:26,560
yeah this is basically just a reformulation
of the of the um of the definition here
159
00:19:28,960 --> 00:19:39,680
okay so let's take a look at uh one possible uh
yeah uh statement of entailment here and just
160
00:19:39,680 --> 00:19:44,960
an example of an intelligence so for example
if we take this uh formula here this is the
161
00:19:44,960 --> 00:19:58,880
example that we had from earlier this one yeah so
this entails p100 yeah so it's like okay this uh
162
00:19:59,520 --> 00:20:05,040
yp by yp100 and how do we prove that okay so we'll
we'll talk about this later on yeah so actually
163
00:20:05,040 --> 00:20:12,400
yeah so we'll um we'll we'll actually just use
contradiction uh in a bit uh this statement here
164
00:20:13,440 --> 00:20:19,840
to show that uh this example is uh the
statement in the example is true but yeah just
165
00:20:20,800 --> 00:20:29,120
bear with me for a bit so let's move on to
this reduction theorem and contradiction
166
00:20:29,920 --> 00:20:37,040
so what does this statement say i mean so some
of these statements it might just seem like
167
00:20:37,040 --> 00:20:44,000
really abstract so when um in proof theory and
also in logic in general so this is some kind
168
00:20:44,000 --> 00:20:50,880
of uh these are in some sense just like little
results that you um that you need in order to
169
00:20:51,760 --> 00:20:57,600
smoothen the proof for the big theorem yeah so
because they they they establish some kind of
170
00:20:57,600 --> 00:21:03,680
a connection between um two seemingly well i mean
the the both of these results are not really that
171
00:21:03,680 --> 00:21:09,200
difficult to prove but they are very convenient
when we want to um use them in the proof for
172
00:21:09,200 --> 00:21:14,720
example for this compactness theorem yeah so let's
just say a little bit what's going on here so
173
00:21:14,720 --> 00:21:18,400
the first thing is deduction theorem
uh let's talk about this one here
174
00:21:19,520 --> 00:21:26,960
so here it says that if you want to prove that phi
implies size uh if you want to provide plus psi
175
00:21:27,760 --> 00:21:34,480
from uh using sigma as the
assumptions yeah then you can
176
00:21:38,720 --> 00:21:43,040
then it is equivalent to proving
that is equivalent to proving sigma
177
00:21:43,040 --> 00:21:49,120
using sorry it is equivalent to
proving psi using sigma union phi
178
00:21:50,560 --> 00:21:55,520
as the assumption all right this is pretty much
this is pretty much what it's uh pretty much what
179
00:21:55,520 --> 00:22:02,720
it says and um yeah you might think like well okay
this is uh this is this this is supposed to be
180
00:22:02,720 --> 00:22:06,880
this is supposed to be obvious yeah i mean it
is in fact not really that difficult to prove
181
00:22:06,880 --> 00:22:10,880
um this particular statement but
this is pretty much what it says but
182
00:22:10,880 --> 00:22:17,040
what is really i guess what is really interesting
is that this allows you to kind of uh um
183
00:22:19,680 --> 00:22:28,720
to push the implication so to speak yeah from
the syntax of the um of the uh from the syntax of
184
00:22:28,720 --> 00:22:33,440
proposition logic you can you sort of push this
into the semantics of propositional logic yeah
185
00:22:33,440 --> 00:22:38,560
so you sort of push this here into the
semantics of the of proposition logic
186
00:22:38,560 --> 00:22:44,560
right so you can see here this in in here this
implication does not appear anymore but instead
187
00:22:44,560 --> 00:22:50,880
it is kind of replaced or it is kind of implied
by this uh uh by this entailment symbols yeah
188
00:22:50,880 --> 00:22:55,360
right so this is pretty much what i mean if you
want to get an intuition of the deduction theorem
189
00:22:55,360 --> 00:22:59,920
this is pretty much what it's what it really means
intuitively all right so we'll take a look at um
190
00:23:00,640 --> 00:23:07,840
part of the proof of this on the next slide but
before that we just got to mention contradiction
191
00:23:08,720 --> 00:23:17,680
this proposition here is says as follows so in
order to prove phi okay so sigma entails phi
192
00:23:18,560 --> 00:23:27,920
is really equivalent to saying that sigma union
not phi is unsatisfied yeah so in some sense it's
193
00:23:27,920 --> 00:23:36,800
kind of like okay so if i want to prove that
phi is um so sigma uh entails phi it is just
194
00:23:36,800 --> 00:23:42,960
sufficient to uh it is already equivalent or it
already um it is equivalent to just uh to just
195
00:23:42,960 --> 00:23:52,240
say that yeah i mean so sigma and uh not phi here
cannot be um you cannot have uh interpretation
196
00:23:52,240 --> 00:24:01,040
that satisfies all of the all of the um all of the
formulas in this in the set here yeah all right so
197
00:24:03,280 --> 00:24:09,760
so that's the uh statements of this
little propositions we're just gonna
198
00:24:11,040 --> 00:24:17,840
take a look at this example again here
199
00:24:21,440 --> 00:24:24,480
okay so so if we
200
00:24:25,280 --> 00:24:31,840
use for example the uh proposition the second
proposition that is contradiction yeah then
201
00:24:33,280 --> 00:24:38,800
if you want to prove this thing here
this would be equivalent to proving that
202
00:24:43,040 --> 00:24:55,920
p0 p100 p0 p1 v1 p2 p2 p3 oops p3
203
00:24:58,000 --> 00:25:00,160
is unsatisfiable okay
204
00:25:02,480 --> 00:25:06,640
so this is equivalent to proving that
is unsatisfiable and as you can see here
205
00:25:06,640 --> 00:25:14,960
this is this is really unsatisfiable because you
can just take um the first p0 up to sorry p0 p1
206
00:25:14,960 --> 00:25:29,520
implies p2 p2 implies p3 up to p um 99 implies
p100 yeah you can take in this union with um
207
00:25:32,240 --> 00:25:32,960
p100
208
00:25:35,360 --> 00:25:42,080
yeah so this is not this is this cannot
be satisfiable the reason is of course um
209
00:25:45,680 --> 00:25:49,520
uh why is this not uh sorry
ah okay i think i made a
210
00:25:49,520 --> 00:25:52,720
little mistake here that this has
to be a negation here yeah of course
211
00:25:54,400 --> 00:26:01,040
yeah so this cannot be satisfiable
and why is this not satisfiable
212
00:26:02,960 --> 00:26:05,520
so can you give a reason why it is not
213
00:26:05,520 --> 00:26:14,960
satisfiable so um well so in order to show
that this is not satisfiable of course
214
00:26:14,960 --> 00:26:20,160
the first thing to do here is that okay so this
thing should uh the first thing let me just use
215
00:26:20,160 --> 00:26:27,440
different color this means that a so let's say
satisfiable let's prove this by contradiction
216
00:26:28,320 --> 00:26:33,840
if this were satisfiable a formula
an interpretation i would set p1 to
217
00:26:36,000 --> 00:26:42,080
1 and p 100 to zero but then of
course by this implications here
218
00:26:46,880 --> 00:26:48,160
you would simply get
219
00:26:50,240 --> 00:26:51,840
oops different color here
220
00:26:54,000 --> 00:26:57,200
you would simply set you would have to set p2
221
00:26:57,920 --> 00:27:04,560
p3 etc to be all b1 yeah up to even 100 but then
see you you get a contradiction because on the
222
00:27:04,560 --> 00:27:19,840
one hand here 100 has to be one but also b100 is
actually it's actually the value the value zero
223
00:27:26,320 --> 00:27:38,720
all right so let's proceed now with the proof of
deduction theorem as well as contradictions uh
224
00:27:38,720 --> 00:27:44,960
the proposition for contradictions yeah that
we mentioned just now i'm only gonna do one
225
00:27:45,520 --> 00:27:51,600
side namely from left to right okay so for
the other side i leave this as an exercise
226
00:27:51,600 --> 00:27:58,160
and please take a look at the notes for the proof
right so let's take a look at the proof here um
227
00:28:01,440 --> 00:28:07,120
so you want to prove from left to
right so we assume here that um
228
00:28:08,000 --> 00:28:18,560
sigma entails phi implies psi yeah so in
particular uh so you make two assumptions here
229
00:28:18,560 --> 00:28:24,960
the first one is uh sigma implies uh intel's
phi uh implies psi and the other one is that
230
00:28:26,640 --> 00:28:35,360
um you have an interpretation for sigma
union phi okay and you want to show that
231
00:28:35,920 --> 00:28:43,840
this interpretation satisfies psi right
so let's take a look here so we assume
232
00:28:50,320 --> 00:28:57,840
you have a model for sigma union
233
00:28:59,920 --> 00:29:06,240
psi okay so you have a model
for sigma union f5 sorry
234
00:29:10,160 --> 00:29:13,680
now by i will put
235
00:29:18,560 --> 00:29:25,840
let's put here
236
00:29:29,520 --> 00:29:30,160
by star
237
00:29:33,760 --> 00:29:46,880
we have i satisfies 5 plus psi that's because i
also i also satisfy sigma so i has to satisfy 5
238
00:29:46,880 --> 00:29:53,840
and plus sigma as well sorry phi in plus
psi as well right because of this star
239
00:29:55,200 --> 00:30:02,640
okay so now what do we have here so we
have uh we have two cases so we have
240
00:30:02,640 --> 00:30:12,000
i implies psi so i satisfies psi phi and i
satisfies phi implies psi okay um so because
241
00:30:14,960 --> 00:30:25,360
i satisfies phi and i satisfies phi phi
242
00:30:28,240 --> 00:30:44,960
it must mean that i satisfies psi okay
so this is uh just by the semantics of um
243
00:30:45,840 --> 00:30:55,280
of of implication yeah all right so okay so that's
basically pretty much the proof of this side and
244
00:30:55,280 --> 00:31:01,120
yeah for the other side as i mentioned to you
this is going to be left as uh as an exercise so
245
00:31:01,120 --> 00:31:07,920
i'm just gonna i'm just gonna say qed here next
we're going to take a look at um contradiction
246
00:31:09,840 --> 00:31:13,760
and for this we're also just going to
take a look at one side of the proof
247
00:31:13,760 --> 00:31:23,360
namely from left to right so for the other side
let's for you for you to do as an exercise oops
248
00:31:26,480 --> 00:31:29,680
let's try this okay so we want to prove that sigma
249
00:31:29,680 --> 00:31:37,120
union not phi is unsatisfiable assuming that
sigma entails phi okay so how do we do that
250
00:31:38,160 --> 00:31:45,840
um so let's do it by contradiction
we assume that by contradiction
251
00:31:49,600 --> 00:31:52,160
assume that
252
00:31:54,480 --> 00:31:56,800
this is uh
253
00:31:57,920 --> 00:32:07,600
so that you have a model i for sigma union not phi
254
00:32:09,680 --> 00:32:15,520
yeah assuming the left hand side
so what can we derive here well um
255
00:32:16,640 --> 00:32:21,600
from the left hand side we should we so
because uh i satisfies i as a model for
256
00:32:21,600 --> 00:32:29,840
this so this has to it also has to be the
case that so just put star here by star
257
00:32:35,840 --> 00:32:44,000
we also have that i satisfies phi
258
00:32:45,200 --> 00:32:50,800
yeah but then we get a contradiction
here so on the one hand i satisfies pi
259
00:32:53,040 --> 00:32:55,840
but on the other hand
260
00:33:00,320 --> 00:33:00,820
oops
261
00:33:06,160 --> 00:33:09,840
but by assumption
262
00:33:16,480 --> 00:33:17,680
but we have also
263
00:33:22,960 --> 00:33:23,840
from the
264
00:33:26,240 --> 00:33:26,960
the assumption
265
00:33:31,120 --> 00:33:41,200
of contradiction yeah so or thus yeah
266
00:33:45,600 --> 00:33:52,320
see here this assumption here the assumption that
we start with here that is this one cannot be the
267
00:33:52,320 --> 00:33:56,480
case so we have to have the negation of that
which is that this is actually unsatisfiable
268
00:34:00,000 --> 00:34:03,280
okay so that's pretty much
the proof for left to right
269
00:34:05,040 --> 00:34:10,080
and the other side as i mentioned left as an
exercise so i'm just going to put qed here
270
00:34:13,680 --> 00:34:14,180
okay
271
00:34:18,800 --> 00:34:26,480
so we've looked at uh uh the preliminaries we've
gone through the preliminaries now we've looked at
272
00:34:26,480 --> 00:34:34,000
uh reduction theorem contradictions and one
another useful corollary of compactness here
273
00:34:34,000 --> 00:34:39,520
we get we're going to state here because
this is expressed in terms of intelligent and
274
00:34:40,240 --> 00:34:45,360
i think you can get a really good intuition for
this in fact so let's take a look of the statement
275
00:34:45,360 --> 00:34:53,520
so it says that if sigma entails phi then there
exists a finite sigma prime find a subset sigma
276
00:34:53,520 --> 00:35:01,280
prime of sigma such that uh that intel's phi yeah
so sigma prime tells phi so one way to get a good
277
00:35:01,280 --> 00:35:08,560
intuition for this is um as follows so uh it's
written here so to proof phi from sigma it is
278
00:35:08,560 --> 00:35:14,240
sufficient to use finitely many assumptions from
it is sufficient to use finitely many assumptions
279
00:35:14,240 --> 00:35:21,760
from sigma so this is uh um yeah i mean this is
very surprising yeah because um if you look at
280
00:35:23,200 --> 00:35:28,400
for example if you want to if you want to sort
of think of this entitlement here some kind of
281
00:35:28,400 --> 00:35:32,880
a proof yeah so you want to prove something from
something else so the proof is actually always
282
00:35:32,880 --> 00:35:38,800
finite it's a finite object even though you
have an infinite set so um this is uh um yeah
283
00:35:38,800 --> 00:35:46,560
i mean i found it sometimes from time to time
i still find it really surprising okay so um
284
00:35:47,600 --> 00:35:53,040
to let's take a look at the same example that
we saw before here yeah so if you want to for
285
00:35:53,040 --> 00:36:01,600
example um proof uh if you want to show that
p100 is entailed by the set here on the left
286
00:36:02,240 --> 00:36:08,640
as we saw this there's already um yeah there's
a finite sigma prime yeah such that this is the
287
00:36:08,640 --> 00:36:14,080
case i mean we saw that already and this final
sigma prime is in fact in this case for example
288
00:36:14,080 --> 00:36:28,160
it could be sigma prime here could be p0 p0 m plus
p1 p1 implies p2 so on and so forth up to p 99
289
00:36:28,160 --> 00:36:35,120
implies p 100 so this should be enough to
um yeah this should be enough to entail
290
00:36:35,120 --> 00:36:44,880
uh to intel phi all right so yeah that's the um uh
the not the other useful corollary of compactness
291
00:36:44,880 --> 00:36:52,400
uh so we will use this interchangeably but just
just to recap the statement the original statement
292
00:36:52,400 --> 00:36:57,280
of compactness relates satisfiability with fondant
satisfiability and it doesn't have entailment the
293
00:36:57,280 --> 00:37:03,680
second one talks about um the second one talks
about basically just the conversion which is
294
00:37:03,680 --> 00:37:12,640
that sigma is um um if sigma is uh if sigma is
unsatisfiable you can find a witness you can
295
00:37:12,640 --> 00:37:19,680
find an inconsistent set uh inconsistent subset
of sigma right so this is expressed in terms of
296
00:37:19,680 --> 00:37:24,240
consistency and third one here is another
variant is expressed in terms of entailment
297
00:37:30,960 --> 00:37:34,400
okay so we're going to continue now
to the proof of compactness theorem
298
00:37:35,760 --> 00:37:39,840
and we've proven one side
of the compactness theorem
299
00:37:39,840 --> 00:37:45,120
the easy side so we're now going to prove the
difficult side of the compactness theorem which
300
00:37:45,120 --> 00:37:51,040
is that if sigma is finally satisfiable
this implies that sigma is satisfiable
301
00:37:55,280 --> 00:38:00,400
in order to do this proof
we're going to have to make
302
00:38:01,680 --> 00:38:07,040
use of the following lemma technical
lemma so the lemma stays as follows
303
00:38:09,520 --> 00:38:17,600
suppose you're given sigma here a
set of affinitely satisfy a finite
304
00:38:17,600 --> 00:38:24,080
finally satisfiable set of formulas
and you're given phi a formula then
305
00:38:25,600 --> 00:38:36,720
it is possible to add either phi or not phi to
sigma while preserving finite satisfiability
306
00:38:38,960 --> 00:38:46,240
in other words either sigma union
phi is finally satisfiable or
307
00:38:46,240 --> 00:38:49,680
that sigma union not phi is finally satisfiable
308
00:38:52,880 --> 00:38:59,120
so this is the technical lemma we're
going to prove this technical emma
309
00:38:59,120 --> 00:39:05,440
later on firstly we're gonna have a look at
how to use this to prove compactness theorem
310
00:39:06,800 --> 00:39:11,280
so in order to prove compactness theorem
let's just firstly spell out the assumptions
311
00:39:11,280 --> 00:39:19,120
that we've made first one we are given we
are assuming that we are given sigma here
312
00:39:19,120 --> 00:39:26,560
a finally satisfiable set of formulas and
we want to prove that sigma is satisfiable
313
00:39:27,680 --> 00:39:33,360
the second assumption we're going to make um yeah
there are only countably many variables in sigma
314
00:39:33,360 --> 00:39:40,880
and this is an assumption that is that we've
made in the first week when we define the set v
315
00:39:40,880 --> 00:39:51,520
of variables yeah and yeah this is a reasonable
assumption in computer science but in mathematics
316
00:39:51,520 --> 00:39:56,960
for example you might be interested in
uncountably many variables in which case
317
00:39:56,960 --> 00:40:02,240
it is still interestingly it is still possible
to prove compactness theorem but you need to
318
00:40:02,240 --> 00:40:07,440
use zorn's lemma which is beyond the scope of
the course and i'm gonna leave it for you to
319
00:40:08,400 --> 00:40:15,760
uh uh if you're interested to take a
look and yeah as a challenging exercise
320
00:40:15,760 --> 00:40:20,160
but that's beyond the scope of the course
so we got to make these two assumptions
321
00:40:20,160 --> 00:40:27,920
and we gonna now try to show that sigma is
satisfiable okay so how do we use this lemma
322
00:40:28,800 --> 00:40:38,320
so in order to use this lemma the first
thing that we're gonna and here is a little
323
00:40:38,320 --> 00:40:46,160
yeah so what we want to do here is we want to
define an increasing chain of sets of formulas
324
00:40:46,960 --> 00:40:53,040
all of which are finitely satisfiable and it's
also going to be finitely satisfiable in the limit
325
00:40:53,920 --> 00:41:00,480
quote-unquote here so let me write it down
here so we want to or instead of define
326
00:41:01,200 --> 00:41:10,480
this is the goal here we want is to define
an increasing chain of sets of formulas
327
00:41:17,200 --> 00:41:20,560
and all of which going to be fondly satisfiable
328
00:41:22,000 --> 00:41:26,640
so we're going to do this by
induction sorry actually just before i
329
00:41:29,120 --> 00:41:33,600
write down what this definition is
so what do i mean by in the limit
330
00:41:33,600 --> 00:41:40,720
the limit here so i'll just put it here
the limit of this is going to be gamma
331
00:41:41,680 --> 00:41:47,840
which is going to be defined as
the union of all of the sigmas
332
00:41:53,520 --> 00:41:56,640
okay so we want to define sigma
333
00:41:58,080 --> 00:42:05,280
0 sigma 1 etc and also the limit gamma and we want
to show that all of these guys are going to be
334
00:42:08,960 --> 00:42:15,840
finely satisfiable
335
00:42:24,720 --> 00:42:29,840
okay so that's the very very first step
336
00:42:33,200 --> 00:42:39,840
right so how are we gonna how are we gonna define
the sigmas we're gonna define this by induction
337
00:42:41,760 --> 00:42:43,840
so
338
00:42:49,040 --> 00:42:56,400
the base case is sigma zero we're
gonna define this to be sigma yeah
339
00:42:57,440 --> 00:43:02,640
and of course by assumption we we made
the assumption that sigma is finally
340
00:43:02,640 --> 00:43:08,080
satisfiable so sigma zero at the beginning is
already we know that it's finally satisfiable
341
00:43:08,080 --> 00:43:14,560
so that's finally satisfiable okay so now
we're gonna do the inductive step here
342
00:43:18,000 --> 00:43:20,720
so we assume that we have sigma i
343
00:43:23,440 --> 00:43:28,000
a finitely satisfiable set of formulas
344
00:43:34,000 --> 00:43:38,960
and we're going to define sigma
i plus 1 okay so we're going to
345
00:43:38,960 --> 00:43:43,520
define the sigma i plus 1 as follows so
sigma i plus 1 is going to be defined as
346
00:43:45,680 --> 00:43:47,840
sigma i union
347
00:43:51,600 --> 00:43:53,840
x i
348
00:44:00,880 --> 00:44:04,720
in fact x i plus one in this case
349
00:44:07,440 --> 00:44:08,720
if it is
350
00:44:10,880 --> 00:44:21,840
apparently satisfiable otherwise we're going to
define it to be sigma i union not x sub a plus 1.
351
00:44:26,720 --> 00:44:31,600
yeah so we're gonna define this um otherwise
we can define it to be sigma i plus one
352
00:44:32,400 --> 00:44:43,440
so okay so what do we know now well what we know
now is that um well so firstly we know that sigma
353
00:44:43,440 --> 00:44:49,840
zero um so sigma i is um finally satisfiable
set of formulas and using the lemma here
354
00:44:53,920 --> 00:44:59,040
we know that at least one of this guys here yeah
355
00:45:01,120 --> 00:45:10,400
has to be finitely satisfiable right it's because
uh you adding either here um phi or not phi the
356
00:45:10,400 --> 00:45:19,200
phi here is just x i plus one right so um it
just means that um you're you keep building now
357
00:45:19,200 --> 00:45:29,040
um you keep adding uh something to x as to sigma
in such a way that it it says stays uh being
358
00:45:29,040 --> 00:45:39,360
finally satisfied right so now we we have built
now this chain of in increasing chain of finally
359
00:45:39,360 --> 00:45:49,200
satisfiable set of formulas and we've defined
the sigma right so what we're gonna show next is
360
00:45:53,600 --> 00:46:01,280
oops not sigma here it's gone sigma i is
361
00:46:03,120 --> 00:46:11,520
finitely satisfiable for each i so we saw that
from the previous slide and here's another one
362
00:46:13,680 --> 00:46:22,080
that sigma that is the limit
is also finally satisfiable
363
00:46:23,600 --> 00:46:29,440
okay so the first one that is this one here
we've already seen this to be true from
364
00:46:29,440 --> 00:46:36,800
the previous slide how do we prove the second
lemma so this is um not that difficult to prove
365
00:46:38,080 --> 00:46:44,800
so if you in order to prove that it's
finitely satisfiable take a finite
366
00:46:51,040 --> 00:46:55,840
subset of gamma we just put here um
367
00:47:00,560 --> 00:47:05,040
take a final subset of gamma then
368
00:47:08,320 --> 00:47:16,800
this gamma prime has to be a subset
of at least one of the sigma i
369
00:47:17,760 --> 00:47:23,840
because it's finite so it has to be a subset
of at least one of the sigma i for some i yeah
370
00:47:24,640 --> 00:47:31,280
and we've already assumed uh we've already shown
that sigma i is gonna be uh is finally satisfiable
371
00:47:32,400 --> 00:47:45,680
so i'm gonna put here by this yeah
so by this sigma prime is finally
372
00:47:46,240 --> 00:47:59,280
sorry sorry sigma prime is satisfiable so sigma
is finally satisfiable right so that's basically
373
00:48:00,720 --> 00:48:08,000
the proof of this step yeah okay so
um all right so we've now established
374
00:48:08,640 --> 00:48:19,840
we've constructed this infinite chain of an
increasing infinite chain of sets of formulas
375
00:48:20,480 --> 00:48:26,000
all of them are finally satisfiable it's also
kind of satisfiable in the limit now what do
376
00:48:26,000 --> 00:48:30,400
we do next what we are interested in next is
actually we're going to make the following claim
377
00:48:32,000 --> 00:48:41,360
that um sigma is actually satisfiable okay so this
is the what we want to prove sigma is uh not sorry
378
00:48:41,360 --> 00:48:50,560
it's not sigma gamma is um gamma is um satisfiable
and this would directly imply that sigma is
379
00:48:50,560 --> 00:48:57,360
satisfiable because remember sigma is a subset
of gamma yeah so if the bigger one is satisfiable
380
00:48:57,360 --> 00:49:02,720
bigger the bigger set is satisfiable
then the subset the smaller set so
381
00:49:02,720 --> 00:49:08,000
a smaller subset which is gamma is also
satisfied okay so we're going to claim that
382
00:49:09,840 --> 00:49:22,560
this would be a claim this is what we want
to prove here so we'll just put this slim
383
00:49:24,880 --> 00:49:31,920
okay so let's prove this in order
to prove this we're gonna build a um
384
00:49:35,440 --> 00:49:41,520
we're gonna we're gonna build
a model for for gamma yeah
385
00:49:43,120 --> 00:49:49,360
so the model actually is uh pretty much
determined because remember what we've done
386
00:49:49,360 --> 00:50:00,400
so far we've added for each eye we've added
either x i or not x i into into sigma right
387
00:50:00,400 --> 00:50:06,560
so this gamma here that is in the limit
it will have um either x i or not x i
388
00:50:07,840 --> 00:50:13,840
yeah so and it can only have one of them
because yeah because we assume that sigma is
389
00:50:16,080 --> 00:50:19,920
because we've shown that
gamma is finitely satisfiable
390
00:50:19,920 --> 00:50:26,240
so let's try to spell this out in detail so
391
00:50:30,160 --> 00:50:31,520
we want to define here
392
00:50:37,040 --> 00:50:39,840
an interpretation
393
00:50:48,080 --> 00:50:55,600
okay mapping set variables to either zero and
one yeah and we got to define it as follows
394
00:51:02,320 --> 00:51:10,320
so i of x i so remember the v here is
just going to be x1 x2 x3 and etc yeah
395
00:51:12,400 --> 00:51:25,040
so x i here is going to be defined to be 1 0.
so this is going to be 1 if x i is in gamma
396
00:51:27,920 --> 00:51:41,520
if not x i see and um so this is
well defined so i'm just gonna put a
397
00:51:44,960 --> 00:51:51,200
little lemma again here is well defined
398
00:51:56,160 --> 00:51:58,960
so what it means here is
the following that this is a
399
00:51:59,760 --> 00:52:07,040
um so in order to show that this is well defined
you need to show that i of x i the value of i
400
00:52:07,040 --> 00:52:12,640
of x i here is this firstly this is i mean you
need to show that this is a total function yeah
401
00:52:12,640 --> 00:52:18,560
so in order to show that this is a total function
you would well firstly you would either have
402
00:52:18,560 --> 00:52:24,800
um for each xi yeah you would uh only one of
them you will only get one value all right so
403
00:52:24,800 --> 00:52:34,240
um so you uh there are a couple of things firstly
it's going to be defined yeah i of x is defined to
404
00:52:34,240 --> 00:52:39,760
be either one or zero yeah because we've already
added this thing when we constructed sigma i
405
00:52:39,760 --> 00:52:45,440
yeah the second point is that it's only going to
be defined to be one value that this is a function
406
00:52:46,480 --> 00:52:52,640
and in order to show that this is a function what
you need to make use of here is the fact that
407
00:52:52,640 --> 00:53:02,720
it is so gamma is finally satisfiable in in
particular if x i and not x i are both in gamma
408
00:53:03,600 --> 00:53:09,680
then it cannot be finally satisfiable yeah because
uh you get you get conflict that is you can take
409
00:53:10,240 --> 00:53:19,360
x one sorry x i and not x i together yeah
to be um to be a finite subset and this is
410
00:53:20,240 --> 00:53:26,640
uh not satisfiable yeah so this this is
uh that cannot be the case right so i will
411
00:53:26,640 --> 00:53:33,040
leave it to you to spell this out in detail that
this is uh is well defined but yeah the proof is
412
00:53:33,040 --> 00:53:39,920
i just pretty much spelled it out just now right
so we've defined something here and the claim here
413
00:53:39,920 --> 00:53:43,440
is we've defined an interpretation
the claim here is that this is a model
414
00:53:45,840 --> 00:53:58,560
that i satisfies gamma right so
that's the claim so what i'm gonna um
415
00:54:01,440 --> 00:54:10,560
and yeah if if this claim is true yeah then
of course uh yeah the the theorem is proven
416
00:54:10,560 --> 00:54:17,520
because this would show that sigma sorry
gamma is satisfiable let's try to prove this
417
00:54:22,960 --> 00:54:25,200
so to prove this we're gonna take
418
00:54:27,440 --> 00:54:28,400
an arbitrary
419
00:54:33,280 --> 00:54:37,840
formula in gamma
420
00:54:40,160 --> 00:54:41,120
and we will show
421
00:54:45,360 --> 00:54:56,160
that i is a model for phi okay
so that's what we got to do now
422
00:55:00,960 --> 00:55:08,560
let's say well so we have
phi here so let's say u is
423
00:55:10,720 --> 00:55:11,840
the set of variables
424
00:55:19,200 --> 00:55:21,840
appearing in phi
425
00:55:27,760 --> 00:55:33,840
so this has to be a finite set of course
because it's phi of course is a finite formula
426
00:55:47,760 --> 00:55:52,800
so we're going to define lu to be the
set of all formulas in gamma that uses
427
00:55:56,080 --> 00:56:01,840
only variables in u
428
00:56:04,720 --> 00:56:05,220
okay
429
00:56:08,160 --> 00:56:14,800
lu here is the finite set of formulas the
reason of course is because there are only
430
00:56:15,680 --> 00:56:23,360
so we fix the number of well so u here is the
finite set of variables yeah and if we look at
431
00:56:23,360 --> 00:56:29,200
um i mean there can only be finitely
many that can only be up to eq up to
432
00:56:29,200 --> 00:56:35,600
equivalence there can only be finitely many
formulas yeah that uses only variables in u
433
00:56:38,640 --> 00:56:41,120
okay since
434
00:56:43,760 --> 00:56:57,840
is finally satisfiable and i'll
use a subset of gamma then we have
435
00:57:02,240 --> 00:57:04,800
a inter a model yeah
436
00:57:08,000 --> 00:57:18,560
we have a model let's say this just we just
care about from x1 up to um oops let me just
437
00:57:20,720 --> 00:57:34,960
just take you here okay so we have a
model for uh we have a model um i prime
438
00:57:34,960 --> 00:57:49,920
for all formulas in lu okay so this uh so we have
such that i prime satisfies value okay so what
439
00:57:49,920 --> 00:57:59,120
we're going to do next is we want to show that
i prime is actually consistent with i right so
440
00:58:06,160 --> 00:58:09,440
so oh so this is a claim or a sub claim let's say
441
00:58:12,160 --> 00:58:27,200
i and i prime are consistent on u that is
442
00:58:29,920 --> 00:58:38,960
i of um oops x equals i prime x
443
00:58:43,840 --> 00:58:45,760
for x in u
444
00:58:48,080 --> 00:58:54,560
okay so this is the um what you want to show and
of course if this is the case we would show um
445
00:58:55,600 --> 00:59:02,400
this would actually implies that i also
satisfies um i i satisfies iso model for
446
00:59:02,400 --> 00:59:07,680
lu and therefore is also a model for phi
because phi of course is also in value
447
00:59:10,880 --> 00:59:18,560
so let's try to prove this so we have
enumerated x1 um we have enumerated
448
00:59:20,560 --> 00:59:30,640
all the variables in in u in in gamma so
that is for each formula sorry for each
449
00:59:31,680 --> 00:59:41,600
for each variable x in u either x or not x appears
450
00:59:44,240 --> 00:59:52,640
in in gamma yeah or actually and also in
fact it should also appear in you yeah
451
00:59:58,560 --> 01:00:03,360
so basically it says that if x is in u
452
01:00:05,760 --> 01:00:06,260
then
453
01:00:08,960 --> 01:00:14,640
both i x x prime it's going to be one yeah
454
01:00:17,440 --> 01:00:20,640
if x naught x is in u
455
01:00:22,800 --> 01:00:30,160
then i x will be zero and
456
01:00:32,800 --> 01:00:36,640
only one of them is possible yeah because
457
01:00:36,640 --> 01:00:42,160
of as we talked as we mentioned before
this is because of unsatisfiability gamma
458
01:00:50,240 --> 01:00:51,040
yeah so that's
459
01:00:54,640 --> 01:01:00,720
that concludes the proof again as i uh the
reason it concludes the proof is of course
460
01:01:00,720 --> 01:01:09,840
because we've taken an arbitrary so just to recap
again we've taken an arbitrary phi okay and we've
461
01:01:10,640 --> 01:01:22,480
shown that i um we've constructed a bigger set
value that contains phi and we have shown now
462
01:01:22,480 --> 01:01:32,000
from this claim here and with that i is also iso
model of lu and therefore is a model for phi as
463
01:01:32,000 --> 01:01:37,840
well
464
01:01:46,880 --> 01:01:52,080
okay so we're going to conclude now with
applications of compactness theorem we're going
465
01:01:52,080 --> 01:02:00,880
to only look at one application in this video in
particular we're going to look at graph coloring
466
01:02:04,480 --> 01:02:12,640
so we want to prove a statement above about graph
colorability of an infinite graph yeah and in the
467
01:02:12,640 --> 01:02:19,840
note i also provided another application which is
ramsey theorem so the infinite randomly theorem
468
01:02:20,800 --> 01:02:26,400
so yeah so i'm but i'm not going to go
through that in the video we also will
469
01:02:26,400 --> 01:02:31,440
see some other applications in the tutorials
as well one thing i want to explain to you
470
01:02:31,440 --> 01:02:37,680
is that most of the applications that we're going
to see in this course of compactness theorem
471
01:02:38,480 --> 01:02:41,920
the pattern yeah there's some kind
of a pattern the pattern is usually
472
01:02:43,120 --> 01:02:49,920
i would say quite similar so once you get a hang
of one of them you'd be able to generalize it to
473
01:02:49,920 --> 01:02:58,000
proof uh to apply compactness theorem to proof
other kinds of applications as well so typically
474
01:02:58,000 --> 01:03:04,800
what i want to say is that what you so the
application is typically typically goes as follows
475
01:03:04,800 --> 01:03:10,640
you want to prove a statement about an infinite
object let's say an infinite graph here in the
476
01:03:10,640 --> 01:03:19,600
sense of graph theory of course and in order to
prove this statement you want to map this graph
477
01:03:19,600 --> 01:03:27,040
somehow to an infinite set of formulas
okay so you want to do you want to do a
478
01:03:27,040 --> 01:03:34,640
mapping that is similar to what we did in the
constraint programming video from last week
479
01:03:36,880 --> 01:03:46,240
so once you do that you have a correspondence
between the statement for this infinite graph and
480
01:03:46,960 --> 01:03:52,640
satisfiability of this infinite set of formulas
so once we have that we gotta map it uh we can
481
01:03:52,640 --> 01:04:00,720
map it down to um a statement about finite sets
of finite subsets of this infinite set of formulas
482
01:04:00,720 --> 01:04:07,120
and then we want to make use of some results that
we already have for example for this finite set
483
01:04:07,120 --> 01:04:14,000
of formulas either we make use of some results
or maybe that the statement is um vacuously or
484
01:04:14,000 --> 01:04:21,920
easily seen to be true yeah so and then once we do
that we want to map the results back from formulas
485
01:04:22,560 --> 01:04:28,000
statement above um satisfiability of formulas
we want to map the results back to this
486
01:04:29,360 --> 01:04:40,480
the the desired the the desired property okay so
um that's roughly how the structure of the proof
487
01:04:40,480 --> 01:04:47,440
would go and let's take a look at this specific
example here for the case of graph coloring
488
01:04:50,880 --> 01:04:58,160
okay so here is um i mean some of you might
have seen this uh definition before and
489
01:04:58,160 --> 01:05:04,960
in fact i also have this as well in the
constraint priming slides for the first week
490
01:05:05,920 --> 01:05:13,120
so here is a definition of k colorability so
a graph like graph g can be infinite finite
491
01:05:13,920 --> 01:05:17,120
it we say that it is k colorable if
492
01:05:19,520 --> 01:05:23,760
there exists a k coloring for g so
what is okay coloring it is simply
493
01:05:23,760 --> 01:05:33,200
a function mapping the vertices of g to one up to
k so this one up to k are colors yeah so to speak
494
01:05:34,160 --> 01:05:38,960
such that the following condition is
satisfied so what is this following
495
01:05:38,960 --> 01:05:45,120
condition well the following condition simply
says that two vertices that are adjacent
496
01:05:47,440 --> 01:05:56,480
cannot receive the same colors yeah so the fv
and fw must be mapped to different colors okay so
497
01:05:57,440 --> 01:06:07,040
let's take a look at an example here so we have so
here we have a little um graph with four vertices
498
01:06:08,160 --> 01:06:12,640
so you can for example this is of
course four colorable because i can just
499
01:06:15,040 --> 01:06:17,840
color all of them differently
500
01:06:30,640 --> 01:06:37,600
so that's of course for colorable
but of course this is also um
501
01:06:38,880 --> 01:06:43,040
three colorable because i can color this
502
01:06:45,440 --> 01:06:53,120
vertex to be the same as the um i can i
can color it with black yeah so i could
503
01:06:55,280 --> 01:06:56,240
color it with black
504
01:06:59,600 --> 01:07:05,680
the reason why this would work of course is that
you can see that every adjacent vertices are
505
01:07:06,560 --> 01:07:13,520
uh yeah they receive different colors so that's
good enough yeah so this is uh an example of a
506
01:07:13,520 --> 01:07:25,760
three colorable three colorable graph okay
right so um here is another notion that we
507
01:07:25,760 --> 01:07:32,320
will need here is the notion of sub graph well sub
graph is simply a sub graph of a graph is simply
508
01:07:35,040 --> 01:07:45,360
a graph yeah whose vertices and edges take uh
our subsets of the vertices and edges from the
509
01:07:46,080 --> 01:07:48,400
initial graph here so um the h here
510
01:07:50,880 --> 01:07:57,360
so the v prime here has to be has to take
only a subset of b and e prime here can we
511
01:07:57,360 --> 01:08:02,400
take subset of e so basically you take the
original graph a sub graph can be obtained
512
01:08:02,400 --> 01:08:08,160
by removing some of the vertices and also some
of the edges from the original graphs okay so
513
01:08:08,160 --> 01:08:19,120
for example if you take this guy here the example
here an example of sub graph could be for example
514
01:08:21,280 --> 01:08:34,800
that's an example of a sub graph here right okay
so let's uh now go to the main statement of the
515
01:08:34,800 --> 01:08:42,400
theorem so the theorem says the following so it's
about k colorability of infinite graph so it says
516
01:08:42,400 --> 01:08:50,240
that an infinite graph g is k colorable if and
only if every finite sub graph of g is k colorable
517
01:08:50,240 --> 01:08:58,320
okay so um this is a statement relating infinite
graph and it's finite sub graphs and one thing
518
01:08:58,320 --> 01:09:05,680
that is cool here is a cool corollary is that
every infinite planar graph don't worry if you
519
01:09:05,680 --> 01:09:12,320
don't really know what it means by planar graph
yeah but i'll give you an intuition in a bit but
520
01:09:12,320 --> 01:09:18,000
it says that every infinite planar graph is four
colorable so just to say a little bit about planar
521
01:09:18,000 --> 01:09:24,160
graphs the definition is actually a little bit
complex but intuition is pretty simple so planar
522
01:09:24,160 --> 01:09:33,840
graph is a graph that can be mapped into a map
yeah a map so to speak so for example you oops
523
01:09:36,640 --> 01:09:41,760
so if you just imagine well this is
this is a pretty horrible depiction of
524
01:09:42,960 --> 01:09:48,080
a country for example we have a bunch
of provinces in the country yeah
525
01:09:50,160 --> 01:09:56,720
and each of this guy here is imagined as
a each of the provinces imagine as a node
526
01:09:57,600 --> 01:10:04,720
so you would get oops something like that yeah
527
01:10:09,760 --> 01:10:16,560
and the vertices here um sorry the edges they
are connected by an edge if the provinces
528
01:10:18,080 --> 01:10:19,680
are neighboring provinces yeah
529
01:10:26,000 --> 01:10:29,840
okay so this is just a little example of
530
01:10:33,840 --> 01:10:38,800
of a planar graph the intuition the actual
definition is actually a bit more complex but
531
01:10:38,800 --> 01:10:44,000
the intuition is pretty simple but what it says
here is that every infinite planar graph is for
532
01:10:44,000 --> 01:10:50,080
colorable now um there's of course a famous
theorem that the four color theorem that every
533
01:10:50,080 --> 01:10:56,400
finite graph is for colorable um using this
theorem yeah this four color theorem and the
534
01:10:56,400 --> 01:11:04,160
theorem that we have here we could show that every
infinite planar graph that is four colorable uh
535
01:11:04,160 --> 01:11:10,960
how do we do that how do we show that well uh the
proof is pretty simple a simple corollary of this
536
01:11:10,960 --> 01:11:18,160
if you take a infinite planar graph so basically
think of an infinite map yeah in this case
537
01:11:21,680 --> 01:11:22,180
so
538
01:11:24,800 --> 01:11:26,480
so okay given
539
01:11:28,960 --> 01:11:30,400
an infinite planar graph
540
01:11:36,640 --> 01:11:44,640
g so take an infinite take
an infinite planar graph g
541
01:11:46,960 --> 01:11:53,840
um what can we say here
542
01:11:56,000 --> 01:12:07,200
so what we know is that every finite sub graph
of g is planar so every if you think of think of
543
01:12:07,200 --> 01:12:13,520
maps here so if you have a map so take a finite
finite sub map it's just still going to be a
544
01:12:13,520 --> 01:12:27,040
finite sub graph it's still going to be a map yeah
i found it every finite sub graph of g is planar
545
01:12:30,160 --> 01:12:30,880
and also
546
01:12:34,960 --> 01:12:38,560
uh four and therefore yeah
so i would say therefore
547
01:12:41,280 --> 01:12:42,000
and therefore
548
01:12:45,120 --> 01:12:53,520
by four color theorem four
fine graphs is four colorable
549
01:12:59,840 --> 01:13:04,800
so using the theorem here
550
01:13:10,160 --> 01:13:14,560
d is color for color
551
01:13:22,960 --> 01:13:27,360
yeah so every final sub graph of g is
planar and therefore is four colorable
552
01:13:27,920 --> 01:13:32,480
so it means every fourth um
that it the the original uh
553
01:13:32,480 --> 01:13:38,400
graph g would be for colorable by the theorem
star okay so that's pretty much the proof of this
554
01:13:40,720 --> 01:13:50,640
okay so um let's now um move on to the let's try
to let's attempt to prove this uh theorem here
555
01:13:53,600 --> 01:13:58,880
so we want to prove that every infinite graph g is
k colorable if and only if every finite sub graph
556
01:13:58,880 --> 01:14:06,240
of g is k colorable so just like in the proof of
compactness theorem one side is going to be easy
557
01:14:07,280 --> 01:14:12,640
that is um infinite graph of g sk color
rule then it would mean that every final
558
01:14:12,640 --> 01:14:16,880
sub graph of g is also k colorable
yeah this is the easy side because
559
01:14:17,440 --> 01:14:23,520
the coloring of uh of g would be applicable
to every final sub graph of g of course yeah
560
01:14:24,240 --> 01:14:27,840
so one side is easy let's prove the other side
561
01:14:30,480 --> 01:14:37,520
so the other side here what we're going to
do we're going to construct some kind of a
562
01:14:39,600 --> 01:14:47,760
mapping graphs to formulas so this is a little bit
like what we did in the first week as i mentioned
563
01:14:47,760 --> 01:14:55,040
before so given a graph h we want to have a
transformation to sigma sorry sigma gamma of h
564
01:14:55,760 --> 01:15:03,600
such that h is k colorable if only if gamma h is
satisfiable we're gonna fix some notation first
565
01:15:05,040 --> 01:15:09,840
so we're gonna assume and with that loss
of generality of course we can assume that
566
01:15:11,040 --> 01:15:17,040
so let's say g here is ve yeah
567
01:15:19,840 --> 01:15:25,840
we assume that p here is the set
of all natural numbers yeah so
568
01:15:26,560 --> 01:15:34,960
one thing i should say here is that we we need
to we can only prove this for countably for an
569
01:15:34,960 --> 01:15:41,920
infinite graph with countably many vertices if you
want to show this for uncountably many vertices
570
01:15:41,920 --> 01:15:51,840
you need to generalize this theorem of course
to the uncountable version of compactness so
571
01:15:53,680 --> 01:16:00,000
so we assume that v here is the set of all
natural numbers and let's define this gamma h
572
01:16:00,960 --> 01:16:07,600
so what do we need to do we need to as before
if you remember the key here is that we need
573
01:16:07,600 --> 01:16:13,920
to define the variables we need to determine
what the variables are for our set of formulas
574
01:16:13,920 --> 01:16:19,840
okay so the variables if you think about
it what is really important is to know um
575
01:16:21,200 --> 01:16:27,840
whether or not a node or which color is
assigned to which node yeah so we need to
576
01:16:30,720 --> 01:16:36,320
in particular have the following
variables so we need to have p oops
577
01:16:38,560 --> 01:16:41,680
so press something wrong here so p i c yeah
578
01:16:44,800 --> 01:16:54,800
note i or vertex i gets color
c so of course the i here is in
579
01:17:00,400 --> 01:17:07,760
v and of course the c here is in one
up to k yeah so the set of all colors
580
01:17:12,080 --> 01:17:20,720
okay so note i the interpretation is not i
gets color c so okay once we've defined the
581
01:17:21,360 --> 01:17:22,880
variables we need to
582
01:17:25,760 --> 01:17:33,520
define this set of formulas and in this is the
the process is called extrematization we want to
583
01:17:33,520 --> 01:17:40,720
define uh this encoding yeah of h how do we
do that well we need to say uh the property
584
01:17:40,720 --> 01:17:51,120
of what it means um by this um by this encoding
um by what it means by colors yeah so what what
585
01:17:51,120 --> 01:18:00,000
does it really mean here so this simply says
that if i gets color c it cannot get either
586
01:18:01,360 --> 01:18:07,920
it cannot get another different
color okay so if i gets color c
587
01:18:09,360 --> 01:18:20,640
then you cannot get a different color so it would
mean that um for every color d that is not c
588
01:18:23,040 --> 01:18:29,600
p not p i comma d yeah so
that's the first one okay
589
01:18:34,160 --> 01:18:42,640
um so okay i will not annotate that you
see the annotation in the note that you
590
01:18:42,640 --> 01:18:48,320
get um all right so that's the first one
and then you need to say as well that
591
01:18:51,040 --> 01:18:53,840
okay so
592
01:18:57,440 --> 01:19:05,040
okay so now you need to relate
so two notes that are adjacent
593
01:19:07,520 --> 01:19:14,240
cannot get the same color so we need to
define a set of a template for that i comma j
594
01:19:16,160 --> 01:19:23,680
so if i gets color c then j cannot get color c
595
01:19:26,960 --> 01:19:29,920
oh sorry j can i get color c all right
596
01:19:32,240 --> 01:19:38,000
um okay that's good now um okay
597
01:19:39,840 --> 01:19:45,680
so let's have a look here so we
have uh scic fi ic and we also need
598
01:19:49,520 --> 01:19:57,440
to say that we need to have a template
for um yeah that um every node must get
599
01:19:57,440 --> 01:20:17,840
at least one color yeah so you gonna define
this snow feed i so this is defined to be
600
01:20:22,240 --> 01:20:31,600
yeah so it means that every i gets at least one c
yeah is assigned at least one color so once we've
601
01:20:31,600 --> 01:20:39,520
defined this set of formulas what we need now is
to define the sigma sigma g we're gonna define
602
01:20:41,440 --> 01:20:59,840
gamma of g we're gonna define
this to be the following
603
01:21:01,920 --> 01:21:06,880
so every eye every note
must get at least one color
604
01:21:10,960 --> 01:21:13,840
yeah and
605
01:21:16,480 --> 01:21:27,840
so we have this phi i comma j for all
vertices that are so for all adjacent vertices
606
01:21:37,120 --> 01:21:42,880
so that they cannot get the
same color and finally we need
607
01:21:46,960 --> 01:21:49,840
psi i comma c
608
01:21:52,240 --> 01:21:55,840
for every i
609
01:22:01,360 --> 01:22:02,240
and every c
610
01:22:06,240 --> 01:22:11,600
okay i think i don't need um i don't need more
page so i'm gonna shrink it a little bit here
611
01:22:11,600 --> 01:22:23,440
but um so we've defined this gamma g so this is an
encoding of uh the graph g and this uh this is a
612
01:22:23,440 --> 01:22:33,120
faithful encoding of that therefore what we have
here is that um this is satisfiable even only if
613
01:22:35,360 --> 01:22:42,400
if only if um h sorry g is k colorable
614
01:22:44,960 --> 01:22:52,400
yeah okay that's good so what can we do now well
615
01:22:59,840 --> 01:23:06,000
so let's go back to the assumption here so
we the assumption here that we have is every
616
01:23:06,000 --> 01:23:12,560
final sub graph of g is k colorable yeah
so it would would mean that by assumption
617
01:23:18,800 --> 01:23:20,640
gamma of h
618
01:23:22,720 --> 01:23:27,200
is satisfiable yeah so this is because uh
619
01:23:30,160 --> 01:23:37,040
h so for every h for every sub graph for sub graph
620
01:23:39,280 --> 01:23:40,000
h of g
621
01:23:42,400 --> 01:23:48,960
yeah so for every sub graph h of g we say
that the assumption is that it is k colorable
622
01:23:48,960 --> 01:23:51,200
and therefore gamma h is satisfiable
623
01:23:53,840 --> 01:24:00,320
now um one thing that um so i'm gonna i'm
running out of space so i'm gonna sort of
624
01:24:00,320 --> 01:24:02,560
go up here and do a little bit of cheating
625
01:24:04,880 --> 01:24:09,360
uh just try to get a bit of space so
626
01:24:12,800 --> 01:24:21,840
one thing is so this okay so uh gamma of h is
satisfiable now gamma of h of course is a subset
627
01:24:21,840 --> 01:24:31,440
of um gamma of g yeah so one thing that i will ask
you to check here and this is actually easy to you
628
01:24:31,440 --> 01:24:39,040
can think about it a little bit but this is easy
to check that this would imply that every subset
629
01:24:39,040 --> 01:24:57,840
of every subset of gamma of g is satisfiable every
final subset of gamma of g is satisfiable yeah
630
01:25:06,240 --> 01:25:11,840
is finally satisfiable therefore by compactness
631
01:25:15,520 --> 01:25:16,960
gamma of g is satisfiable
632
01:25:22,160 --> 01:25:30,240
yeah gamma fg is satisfiable and
therefore so this would imply that
75296
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.