The LUMS Math Circle session held on January 16, 2026, explored the mathematical foundations of digital technology through the theme “Boolean Algebra: The Mathematics of Logic Gates.” The session was jointly conducted by Dr. Imran Anwar and Dr. Hafsa Qamar, who guided students from everyday language and reasoning to formal logical structures used in computers and electronic systems.
Dr. Imran Anwar opened the session by introducing the speakers and the student volunteers. Dr. Hafsa Qamar then initiated the discussion with a fundamental question: What is a logic gate? Students were encouraged to think of situations where one or more inputs always lead to a single output.
From Everyday Language to Logical Thinking
To build intuition, Dr. Hafsa used familiar statements such as:
“Grass is green AND the sky is blue.”
“Grass is blue AND the sky is blue.”
Through these examples, students observed that when statements are combined using AND, the result is true only if both parts are true. When combined using OR, the result is true if at least one part is true.
This discussion highlighted that such combined statements always lead to outcomes that are either true or false, or equivalently, yes or no.
Binary Numbers and Boolean Algebra
The speakers then connected logical outcomes to binary numbers, where true/yes = 1 and false/no = 0. Students learned that computers fundamentally operate using only these two values.
From binary representation, the session transitioned to Boolean algebra, named after George Boole, who developed a mathematical system in which variables take only two values (0 and 1) and are combined using logical operations to make decisions. It was emphasized that while binary numbers deal with representation, Boolean algebra focuses on decision-making.
I Can Read Your Mind”: Binary in Action
One of the most engaging moments of the session was Dr. Imran’s “I can read your mind” activity. Students were asked to secretly choose a number between 1 and 63 and respond only with “yes” or “no” when asked whether their number appeared on specific sets of cards.
These yes–no responses were converted into a sequence of 0s and 1s, which were then multiplied by powers of two (2⁰, 2¹, 2², 2³, 2⁴, 2⁵). Remarkably, this process revealed the exact number chosen by the student.
This activity vividly demonstrated how binary representation and Boolean logic work together and showed that the apparent “mind-reading” effect was actually the result of mathematical structure rather than magic.
Logic Gates as Physical Devices
Dr. Hafsa then explained that logic gates are the hardware implementation of Boolean algebra. She showed an image of the iPhone 15 motherboard and informed students that it contains billions of transistors, each functioning as a logic gate. This helped students see how abstract mathematical rules are physically realized in electronic devices.
Fundamental Logic Gates
After giving the fundamental concepts of the AND, OR, and NOT logic gates. Dr. Hafsa moved to the practical applications of these logic gates.
Combining Logic Gates: Smart Classroom Light
To demonstrate how multiple conditions work together, Dr. Hafsa presented the example of a Smart Classroom Light system.
Conditions:
A = Main switch is ON
B = Movement detected
C = Daytime
Rule:
The light turns ON if:
(Switch ON AND Movement detected) OR (it is NOT daytime).
This rule was illustrated using logic gate diagrams with toggle switches and a bulb symbol. By changing the inputs, students observed how the output changed, making the abstract logic visually and conceptually clear.
Applied Problem: Smart Building Emergency Alarm
A second real-world example involved a Smart Building Emergency Alarm System.
Conditions:
A = Smoke detected
B = Temperature exceeds safe limit
C = Main power supply is NOT available
Rule:
The fire alarm should turn ON if:
(Smoke OR high temperature is detected) AND (main power supply is available).
Students were asked to:
Construct the truth table,
Draw the logic gate diagram,
Determine whether the alarm is ON or OFF for different input combinations, and
Verify their results using an online logic-gate simulation tool.
This activity strengthened their understanding of how Boolean expressions translate into functional control systems.
Historical Perspective and Moral Insight
The session concluded with the story of George Boole, his academic journey, and his foundational contributions to logic and computing. The discussion also reflected on the tragic circumstances of his death, often associated with the causation theory attributed to his wife’s reasoning.
This left students with a powerful moral lesson:
Logical reasoning must be paired with wisdom and context, as blind logic can sometimes lead to unintended consequences.
Conclusion
The room was filled with enthusiasm, curiosity, and joy, making the session a truly memorable Math Circle experience. Through logical reasoning, interactive games, hands-on circuit design, and historical reflection, students gained a deeper appreciation of how Boolean algebra underpins modern computing. The session concluded with the distribution of participation certificates, recognizing the students’ active engagement and encouraging them to continue exploring mathematics and its applications in technology.
Acknowledgments
A heartfelt thanks and sincere gratitude to Dr. Hafsa Qamar and Dr. Imran Anwar for their insightful guidance and engaging delivery of the session. Special appreciation is also extended to Ms. Noreen Sohail, Ms. Shazia Zafar, Mr. Qamar Abbas, and Mr. Javaid Qayyum for their invaluable organizational support and coordination, which ensured the smooth and successful execution of the event.
Here are some highlights from the event:
For more pictures visit our Facebook page.