Loading slide

The Logic

  1. 01The Logic
  2. 02The connection
  3. 03Try it yourself
  4. 04What did you notice?
  5. 05Both must agree
  6. 06Either will do
  7. 07Here's an analogy to hammer home the point
  8. 08The inverter
  9. 09Gates talk to each other
  10. 10Three gates, one circuit
  11. 11Three rules
  12. 12Building logic
  13. 13A simple comparison
  14. 14Turn the rule into gates
  15. 15Flip before you compare
  16. 16Small rules stack up
  17. 17Take a breath
  18. 18What is 1+1?
  19. 19Addition, from scratch
  20. 20Two gates, that's it
  21. 21Memory
  22. 22Reinforce your understanding
  23. 23Question: AND gate
  24. 24Question: NOT gate
  25. 25Question: Binary addition
  26. 26Quiz: answer
  27. 27One switch
  28. 28Want to go deeper?
1 / 27
BackNext

Module I

The Machine

Chapter II

The Logic

In this chapter

  • AND, OR, NOTthe only three gates there are
  • Chaininghow gates answer bigger questions
  • Comparisonbuilding logic from scratch
  • Additionarithmetic in binary
  • Memoryhow a circuit holds its state

Rules are more powerful than they look.

The English language has twenty-six letters. Every novel, every poem, every scientific paper ever written in English is a different arrangement of those same twenty-six shapes. The rules for combining them are simple. What you can say with them is not.

This is how complexity tends to work. Not through infinite variety at the bottom, but through a small number of simple rules, applied again and again in different combinations. The richness comes from the arrangement, not from the pieces.

Computers work the same way. Underneath everything a machine has ever done, there are just a handful of basic logical operations. Not dozens. A handful. And from those few operations, combined in the right ways, everything else follows.

The question this chapter asks is: how? How do a few simple rules, repeated at scale, produce something that looks like reasoning? How does a machine go from answering tiny questions to holding a thought long enough to act on it?

The answer is less mysterious than it sounds. Once you see it, the word "logic" stops feeling abstract. It starts feeling like something you could almost build yourself.

Citations