WEBVTT

1
00:00:00.180 --> 00:00:03.024
When should the door open?

2
00:00:03.024 --> 00:00:07.738
Suppose X means your pass is valid and Y means access is enabled.

3
00:00:07.738 --> 00:00:13.322
One means yes, and zero means no. The door opens only when both are true:

4
00:00:13.322 --> 00:00:20.183
X AND Y. We will turn that rule into a labelled matrix
and learn how to read an answer from the right cell.

5
00:00:20.363 --> 00:00:27.631
Two yes-or-no inputs give four situations. Both are yes; only X is yes; only Y is yes;

6
00:00:27.631 --> 00:00:33.912
or neither is yes. A truth table records the answer in every situation, so no case is left out.

7
00:00:34.092 --> 00:00:38.980
For this door, only the first situation opens it. The other three give zero.

8
00:00:38.980 --> 00:00:46.015
These four output bits describe the entire rule. A single bit, by itself, describes just one situation.

9
00:00:46.195 --> 00:00:51.048
Now arrange the same answers in a square. X chooses the row. Y chooses the column.

10
00:00:51.048 --> 00:00:58.303
Here we use the paper convention: one comes before zero on
both axes. Watch the both-yes answer move to their intersection.

11
00:00:58.483 --> 00:01:04.741
Suppose your pass is valid, but access is disabled. That means X is one and Y is zero.

12
00:01:04.741 --> 00:01:10.034
Follow the top row to the right-hand column. The zero there says the door stays closed.

13
00:01:10.214 --> 00:01:15.241
We put an operator symbol in square brackets to name its correspondence matrix.

14
00:01:15.241 --> 00:01:18.248
Bracket AND equals the array shown.

15
00:01:18.248 --> 00:01:23.565
If the operator is not chosen yet, bracket theta stands for its C M.

16
00:01:23.565 --> 00:01:28.918
Once it is chosen, the symbol and numeric array describe the same ordered object.

17
00:01:29.098 --> 00:01:33.545
For a different door, either condition might be enough. That is OR.

18
00:01:33.545 --> 00:01:37.805
The axes stay where they are, but two more answers become one.

19
00:01:37.805 --> 00:01:43.342
The matrix represents the rule only when we also know what its axes mean.

20
00:01:43.522 --> 00:01:50.209
How many two-input rules could we make? Each
of the four cells can independently contain zero or one.

21
00:01:50.209 --> 00:01:52.683
Two choices, four times, gives

22
00:01:52.683 --> 00:01:56.630
Two choices, four times, gives sixteen complete Boolean functions.

23
00:01:56.630 --> 00:02:00.089
AND and OR are two members of that family.

24
00:02:00.269 --> 00:02:05.888
The all-ones matrix is tautological: every input pair produces one.

25
00:02:05.888 --> 00:02:13.040
Its operator is called Impax. The symbol places the
exclusive-or arrow directly over the equivalence arrow,

26
00:02:13.040 --> 00:02:19.808
sharing the same center. Agreement and disagreement together cover every possible input pair.

27
00:02:19.988 --> 00:02:25.027
Try this matrix. Its ones are in the two off-diagonal positions.

28
00:02:25.027 --> 00:02:31.621
Read the axis labels and decide: does the rule accept inputs that agree, or inputs that differ?

29
00:02:31.621 --> 00:02:42.558
Take a few seconds to trace both ones.

30
00:02:42.738 --> 00:02:49.158
It accepts inputs that differ. This is exclusive-or. One and zero gives one;

31
00:02:49.158 --> 00:02:54.371
zero and one also gives one. Equal inputs give zero.

32
00:02:54.371 --> 00:03:00.048
Throughout these lessons, the double vertical arrow is our written symbol for exclusive-or.

33
00:03:00.228 --> 00:03:04.512
Sometimes we need a name for an operator before choosing which one.

34
00:03:04.512 --> 00:03:09.980
We use theta in brackets for its C M. If we choose exclusive-or,

35
00:03:09.980 --> 00:03:17.457
bracket theta equals bracket exclusive-or, which equals the off-diagonal numeric matrix.

36
00:03:17.457 --> 00:03:22.275
Theta is a placeholder, not an additional Boolean rule.

37
00:03:22.455 --> 00:03:27.227
The project website places zero before one in its introductory example.

38
00:03:27.227 --> 00:03:32.556
With that ordering, the AND entry is at the bottom right. Nothing about the door has changed.

39
00:03:32.556 --> 00:03:37.396
Both axes were reordered. Always check the labels before comparing matrices.

40
00:03:37.576 --> 00:03:41.872
You can now turn a truth table into a matrix and retrieve an answer from it.

41
00:03:41.872 --> 00:03:48.895
Next we will build whole matrices from four simple pieces.
Keep the row and column labels attached as we do.
