WEBVTT

1
00:00:00.180 --> 00:00:04.511
How can we store every answer to an if-then rule?

2
00:00:04.511 --> 00:00:11.720
Our rule says: if W and X differ, then Y must be false and Z must be true.

3
00:00:11.720 --> 00:00:17.572
The left condition is exclusive-or; the right is NOT Y AND Z.

4
00:00:17.572 --> 00:00:24.549
We will combine their matrices to construct all sixteen
answers, then check one cell against the original rule.

5
00:00:24.729 --> 00:00:27.771
Call the two conditions P and Q for a moment.

6
00:00:27.771 --> 00:00:33.762
P implies Q fails only when P is one and Q is zero.

7
00:00:33.762 --> 00:00:39.949
If the requirement is triggered and not met, the whole rule is false. Every other pair is accepted.

8
00:00:40.129 --> 00:00:46.247
After positive valuation, the first condition has the exclusive-or matrix, which we call A.

9
00:00:46.247 --> 00:00:51.518
The second has matrix B, with its one at Y false and Z true.

10
00:00:51.518 --> 00:00:55.628
These are separate two-by-two matrices for the two parts of the rule.

11
00:00:55.808 --> 00:00:59.419
The first accepted case has both conditions true.

12
00:00:59.419 --> 00:01:04.620
The tensor A with B marks exactly those four-variable assignments.

13
00:01:04.620 --> 00:01:10.285
Each one indicates a place where the left condition and the right condition both return one.

14
00:01:10.465 --> 00:01:15.469
The second case has the left condition false and the right condition true.

15
00:01:15.469 --> 00:01:20.310
Flip every bit of A, then tensor that complement with B.

16
00:01:20.310 --> 00:01:27.635
Complement here means entrywise Boolean NOT:
every zero becomes one, and every one becomes zero.

17
00:01:27.815 --> 00:01:33.713
The third accepted case has both conditions false.
Tensor the complement of A with the complement of B.

18
00:01:33.713 --> 00:01:40.388
The three accepted cases cannot overlap, because each
assignment gives only one pair of values for P and Q.

19
00:01:40.568 --> 00:01:47.290
Combine the three tensors entry by entry using exclusive-or. Since they do not overlap,

20
00:01:47.290 --> 00:01:54.094
each accepted assignment keeps one one. This produces the four-by-four matrix from the paper.

21
00:01:54.094 --> 00:02:01.300
Its displayed row components are W, Y, and its column components are X, Z.

22
00:02:01.480 --> 00:02:07.877
For W, X, Y, Z equal to zero, one, one, one, evaluate P and

23
00:02:07.877 --> 00:02:14.448
Q from their definitions. Then decide the implication
and locate the matching row and column in the matrix.

24
00:02:14.448 --> 00:02:29.022
Explain why the direct rule calculation and the addressed entry agree.

25
00:02:29.202 --> 00:02:34.833
W and X differ, so P is one. But Y is true, so not Y and Z is zero.

26
00:02:34.833 --> 00:02:40.011
A true condition implies a false requirement, which fails. The expected output is zero.

27
00:02:40.191 --> 00:02:46.054
The row uses W and Y, giving zero, one. The column uses X and Z,

28
00:02:46.054 --> 00:02:52.347
giving one, one. In our descending order this selects the third physical row and the first column.

29
00:02:52.347 --> 00:02:57.951
Their intersection is zero, agreeing with the direct calculation.

30
00:02:58.131 --> 00:03:05.039
The paper writes its row selector with the bra factors in reversed written order, Y then W.

31
00:03:05.039 --> 00:03:08.046
That notation needs its component expansion.

32
00:03:08.046 --> 00:03:14.837
Our explicit row labels keep W and Y visible in the physical order used by the displayed matrix.

33
00:03:15.017 --> 00:03:20.462
You have now constructed the matrix and checked an entry without trusting the picture alone.

34
00:03:20.462 --> 00:03:23.620
Next we will use the repository layout convention,

35
00:03:23.620 --> 00:03:29.633
where zero comes first and binary input groups become ordinary numeric addresses.
