1
00:00:00,000 --> 00:00:07,897
So, let's go through the basics of logic.
We can think about logic as being

2
00:00:07,897 --> 00:00:13,942
statements about propositions such as
Obama is the president of the USA,

3
00:00:13,942 --> 00:00:20,478
Or Obama is the leader of the ISA,
Or Tony is the cricket captain of India,

4
00:00:20,478 --> 00:00:25,543
and things like that.
So, propositions are statements which are

5
00:00:25,543 --> 00:00:30,200
either true or false. So, if A and B are
true propositions.

6
00:00:31,660 --> 00:00:39,888
The combination A and B is true.
It means that A is true and B is true,

7
00:00:39,888 --> 00:00:46,122
And that's written in this way as A and B.
This is very basic stuff and most of you

8
00:00:46,122 --> 00:00:52,256
must have studied it.
But, this is just to get everybody back on

9
00:00:52,256 --> 00:00:57,754
the same page.
Similarly, A or B is true if either A is

10
00:00:57,754 --> 00:01:03,863
true or B is true.
So, only one of them have to be true for A

11
00:01:03,863 --> 00:01:09,463
or B to be true.
So, this is written as A or B with this

12
00:01:09,463 --> 00:01:15,031
notation.
Now comes the interesting part.

13
00:01:15,031 --> 00:01:23,042
Suppose we have a rule that says,
If A then B,

14
00:01:23,042 --> 00:01:30,520
Which is the same as saying if A is true,
then B is true.

15
00:01:31,160 --> 00:01:38,826
The kind of things that we've seen before.
If X is the president of C, then X is a

16
00:01:38,826 --> 00:01:43,700
leader of C, or the leader of C.
Well,

17
00:01:44,680 --> 00:00:16,038
The really important part about logical
reasoning or classical logic is that,

18
00:01:52,605 --> 00:02:01,243
saying that if A then B is exactly the
same thing as saying that either A is

19
00:02:01,243 --> 00:02:08,787
false or B is true.
Now, this requires a little bit of thought

20
00:02:08,787 --> 00:02:18,679
which can also be written as A implies B
is equivalent to not A or B, which is just

21
00:02:18,679 --> 00:02:28,820
the same as A is either false which is not
A being true or B is true which is just B.

22
00:02:29,560 --> 00:02:36,220
Let's go through it again.
A implies B is the same as not A or B.

23
00:02:37,060 --> 00:02:41,400
Very important critical aspect of
reasoning.

24
00:02:42,360 --> 00:02:47,830
Let's check it.
If A is true, then not A is false.

25
00:02:47,830 --> 00:02:54,056
So, the only way that not A or B can
become true is if B is true.

26
00:02:54,056 --> 00:03:01,935
In other words, by stating that not A or B
is true, we have arrived at a situation

27
00:03:01,935 --> 00:03:10,107
that whenever A is true, B has to be true
which is exactly what we meant by saying A

28
00:03:10,107 --> 00:03:14,000
implies B.
On the other hand,

29
00:03:14,520 --> 00:03:24,338
If A is false, then not A is true.
So, the statement not A or B is always

30
00:03:24,338 --> 00:03:32,822
true regardless of B being true or false.
So, the statement, rather the rule that A

31
00:03:32,822 --> 00:03:38,239
implies B remains true.
Whatever be the value of B, in the

32
00:03:38,239 --> 00:03:44,417
situation that A is false.
Which is also fine because a rule must

33
00:03:44,417 --> 00:03:52,020
remain a rule regardless of the values
that variables take, or propositions take.

34
00:03:53,020 --> 00:03:59,944
So, please go through this argument a
couple of times to convince yourselves

35
00:03:59,944 --> 00:04:07,688
that A implies B is exactly the same thing
as saying that the compound statement, not

36
00:04:07,688 --> 00:04:12,243
A or B is true.
We were dealing with statements or

37
00:04:12,243 --> 00:04:19,109
propositions which were wssential
statements of fact, and nothing more or

38
00:04:19,109 --> 00:04:23,120
less than that.
But, as we have seen before,

39
00:04:23,120 --> 00:04:29,032
We are dealing with statements which are a
little bit more complicated.

40
00:04:29,032 --> 00:04:35,944
Obama is the president of USA, is actually
stating a relationship between an entity,

41
00:04:35,944 --> 00:04:41,773
Obama, and another entity, USA.
And that relationship is that one is the

42
00:04:41,773 --> 00:04:47,102
president of the other.
Which could be written in this form, that

43
00:04:47,102 --> 00:04:53,416
Obama is the president of USA.
Now, this is rather tricky notation. But,

44
00:04:53,416 --> 00:05:01,981
all we're saying is that we have variables
which are entities like Obama and USA, and

45
00:05:01,981 --> 00:05:10,100
we have predicates which are relationships
between these variables or entities.

46
00:05:10,460 --> 00:05:15,960
Similarly, we might have a rule which says
that,

47
00:05:16,260 --> 00:05:24,600
If X is the President of C then X is the
leader of C. Which could be stated as,

48
00:05:25,740 --> 00:05:33,197
If X is president of C, then X is leader
of C.

49
00:05:33,197 --> 00:05:38,534
Now,
Unlike this particular statement on top,

50
00:05:38,534 --> 00:05:45,315
the statement about X and C applies for
all values of X and C.

51
00:05:45,315 --> 00:05:53,955
So, this rule is not a simple rule such as
Obama is the President of USA, it's a

52
00:05:53,955 --> 00:06:02,204
statement about all possible X's and C's
that says, if X and C are related by the

53
00:06:02,204 --> 00:06:09,305
predicate as president of, then they're
also related by the president, predicate

54
00:06:09,305 --> 00:06:13,982
is leader of.
So, this particular feature of predicates

55
00:06:13,982 --> 00:06:21,150
and variables is called quantification,
And that makes it significantly different

56
00:06:21,150 --> 00:06:27,468
from basic propositional logic.
Still, the process of reasoning remains

57
00:06:27,468 --> 00:06:34,057
quite similar with a few modifications.
So, let's go through that a little

58
00:06:34,057 --> 00:06:38,900
carefully.
Starting with a fact such as Obama is

59
00:06:38,900 --> 00:06:47,067
President of USA which is expressed as a
predicate, is President of Obama comma

60
00:06:47,067 --> 00:06:51,583
USA.
Together with this rule, which states that

61
00:06:51,583 --> 00:06:57,965
for all X and C, if X is the president of
C then X is leader of C.

62
00:06:57,965 --> 00:07:04,597
Using R and F,
We come to the conclusion that Obama is

63
00:07:04,597 --> 00:07:11,739
leader of USA.
In other words, this new fact, is leader

64
00:07:11,739 --> 00:07:19,720
of Obama comma USA is entailed by the rule
R applied on the fact F.

65
00:07:20,120 --> 00:07:27,904
Notice a few things have taken place here
that the variable X has been bound to a

66
00:07:27,904 --> 00:07:33,125
value Obama,
The variable C has been bound to the value

67
00:07:33,125 --> 00:07:37,302
USA.
So, the rule which applies to all values

68
00:07:37,302 --> 00:07:44,517
of X and C is combined with a fact by
binding the variables to the specific

69
00:07:44,517 --> 00:07:54,526
values that they take in a fact, like F.
Now, in response to a query which could be

70
00:07:54,526 --> 00:08:02,360
expressed as, he is leader of X comma USA
where USA has been fixed or bound, but X

71
00:08:02,360 --> 00:08:08,417
remains variable.
One could look at the bunch of rules and

72
00:08:08,417 --> 00:08:17,191
facts that one has in one's collection of
knowledge and try to answer this query by

73
00:08:17,191 --> 00:08:25,442
reasoning, which is essentially answering
by deriving new facts which match the

74
00:08:25,442 --> 00:08:29,723
query.
And we do this by a process of

75
00:08:29,723 --> 00:08:37,497
unification, which is bind, binding
different possible values of the variables

76
00:08:37,497 --> 00:08:45,272
to X, and inference, which is essentially
applying rules using the if A then B

77
00:08:45,272 --> 00:08:51,532
format to derive new facts.
The combination of unification and

78
00:08:51,532 --> 00:08:59,610
inference is called resolution, and we'll
return to resolution in a little while.

79
00:08:59,610 --> 00:09:06,125
But, notice that the process of reasoning
and predicate logic is fairly similar to

80
00:09:06,125 --> 00:09:12,481
that if you just had propositions with the
additional complication that we have

81
00:09:12,481 --> 00:09:16,692
variables which need to be bound to
different values.

82
00:09:16,692 --> 00:09:23,286
And, if you have lots of facts and lots of
rules, you have lots of different choices

83
00:09:23,286 --> 00:09:30,591
for how we bind different variables to
different specific values, and that leads

84
00:09:30,591 --> 00:09:38,025
to a degree of complexity which makes
predicate logic resolution much more

85
00:09:38,025 --> 00:09:44,920
difficult than simple logical inference
using a bunch of propositions.

86
00:09:45,560 --> 00:09:51,878
Both are quite difficult, as we shall see
during our discussions later in this

87
00:09:51,878 --> 00:09:56,819
lecture, but Y is significantly more
difficult than the other.
