Introduction to Boolean Logic
Written by Mike James   
Tuesday, 11 March 2025
Article Index
Introduction to Boolean Logic
Truth Tables
Binary arithmetic and flip-flops
Binary arithmetic
Flip Flops - Time Enters the Logic
De Morgan's Laws
Logic, Finite State Machines and Computers

It may sound like a daunting topic, but Boolean logic is very easy to explain and to understand. It represents the simplest of all the logics and the very basis of computing.

A Programmers Guide To Theory

Now available as a paperback and ebook from Amazon.

cover600

Contents

  1. What Is Computer Science?
    Part I What Is Computable?
  2. What Is Computation?
  3. The Halting Problem
  4. Finite State Machines
    Extract 1: Finite State Machines
  5. Practical Grammar
  6. Numbers, Infinity and Computation
    Extract 1: Numbers 
    Extract 2: Aleph Zero The First Transfinite
    Extract 3: In Search Of Aleph-One
    Extract 4: Transcendental Numbers
  7. Kolmogorov Complexity and Randomness
    Extract 1:Kolmogorov Complexity 
  8. The Algorithm of Choice
  9. Gödel’s Incompleteness Theorem 
  10. Lambda Calculus
    Part II Bits, Codes and Logic
  11. Information Theory 
  12. Splitting the Bit 
  13. Error Correction 
  14. Boolean Logic  ***NEW!
    Part III Computational Complexity
  15. How Hard Can It Be?
    Extract 1: Where Do The Big Os Come From
  16. Recursion
    Extract 1: What Is Recursion
    Extract 2: Why Recursion
  17. NP Versus P Algorithms
    Extract 1: NP & Co-NP
    Extract 2: NP Complete

<ASIN:1871962439>

<ASIN:1871962587>

You might be thinking that this is a little late to be introducing ideas about logic. Computers are created using logic gates so why wait so long to discuss them. The truth of the matter is that historically logic and computers did not really fit together. Early computers were thought of as calculating machines and it still is difficult to see where logic fits into rotating gear wheels counting off integers. When Turing was involved in building an early computers, a real Turing machine, he tended to think in terms of artificial neurons rather than logic gates.

Even today we tend to be over simplistic about logic and its role in computation and understanding the world and even George Boole, the man who started it all, was a bit over the top with the titles of his books on the subject - Mathematical Analysis of Thought and An Investigation of the Laws of Thought.

Boole’s work certainly set modern logic off on the right road, but it certainly wasn’t anything to do with something as general as the “laws of thought”. Even today we have no clear idea what laws govern thought and if we did the whole subject of artificial intelligence would be a closed one. What Boole did to be recognized as the father of modern information technology was to come up with an idea that was at the same time revolutionary and simple. 

This video, a trailer for a documentary celebrating the bicentenary of his birth on November 2, 1815 hints at how his radical discovery underpins the digital age:

Who was George Boole?

A contemporary of Charles Babbage, whom he briefly met, Boole is these days credited as being the "forefather of the information age". An Englishman by birth, in 1849 he became the first professor of mathematics in Ireland’s new Queen’s College (now University College) Cork. 

 

georgeboole

George Boole
November 2, 1815 - December 8, 1864

 

He died at the age of 49 in 1864 and his work might never have had an impact on computer science without Claude Shannon, who 70 years later recognised the relevance for engineering of Boole’s symbolic logic. As a result, Boole’s thinking has become the practical foundation of digital circuit design and the theoretical grounding of the the digital age. 

Boolean Logic 

Boolean logic is very easy to explain and to understand.

  • You start off with the idea that some statement P is either true or false, it can’t be anything in between (this called the law of the excluded middle).

  • Then you can form other statements, which are true or false, by combining these initial statements together using the fundamental operators And, Or and Not.

Exactly what a "fundamental" operator is forms an interesting question in its own right - something we will return to later when we ask how few logical operators do we actually need?

The way that all this works more or less fits in with the way that we use these terms in English. For example, if P is true then NOT(P) is false. So, if “today is Monday” is true then “NOT(today is Monday)” is false. We often translate the logical expression into English as “today is not Monday” and this makes it easier to see that it is false if today is indeed Monday. The problem with this sort of discussion is that it very quickly becomes convoluted and difficult to follow and this is part of the power of Boolean logic. You can write down arguments clearly in symbolic form.



Last Updated ( Tuesday, 11 March 2025 )