Boolean Algebras

(ブール代数)

Discrete Mathematics I

12th lecture, December 12, 2025

https://www.sw.it.aoyama.ac.jp/2025/Math1/lecture12.html

Martin J. Dürst

AGU

© 2005-25 Martin J. Dürst Aoyama Gakuin University

 

Today's Schedule

 

Remaining Schedule

 

Final Exam・期末試験

Coverage:
Complete contents of lecture and handouts
Past exams:
2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, (2020 online) 2021, 2022, 2023, 2024
How to view example solutions

 

How to use Past Exams

Important: Do not browse the problems and solutions!

  1. Print out one exam
  2. Take time for a full exam (85 minutes, ideally starting at 11:10)
  3. Solve this exam, with time limit
  4. Compare your solutions with the example solutions
  5. Find your weak points
  6. Learn more in the areas you have identified as your weak points
  7. Repeat starting at 1.

 

Important Points about Final Exam

 

Questions about Final Exam

(for additional questions, use the Q&A Forum)

 

Summary of Last Lecture

 

Homework Due November 6, Problem 1

Prove/check the following laws using truth tables (important: always add a sentence stating the conclusion):

  1. Reductio ad absurdum: A→¬A = ¬A
    A ¬A A→¬A
    F T T
    T F F

    Because the columns for ¬A and A→¬A are the same, this law is correct.

  2. The associative law for conjunction: (AB) ∧ C = A ∧ (BC)
    A B C AB (AB) ∧ C BC A ∧ (BC)
    F F F F F F F
    F F T F T T T
    F T F T T T T
    F T T T T T T
    T F F T T F T
    T F T T T T T
    T T F T T T T
    T T T T T T T

    Because the columns for (AB) ∧ C and A ∧ (BC) are the same, this law is correct.

  3. Contraposition: AB = ¬B→¬A
    A B AB ¬B ¬A ¬B→¬A (AB) ↔(¬B→¬A)
    F F T T T T T
    F T T F T T T
    T F F T F F T
    T T T F F T T

    Because the column for (AB) ↔ (¬B→¬A) is all Ts, this law is correct.

  4. One of De Morgan's laws: ¬(AB) = ¬A ∨ ¬B
    A B AB ¬(AB) ¬A ¬B
    ¬A ∨ ¬B
    F F F T T T T
    F T F T T F T
    T F F T F T T
    T T T F F F F

    Because the columns for ¬(AB) and ¬A ∨ ¬B are the same, this law is correct.

 

Homework Due November 6, Problem 2

Prove transitivity of implication (((AB) ∧ (BC)) ⇒ (AC)) by formula manipulation.

For each simplification step, give the name of the law you used.

Hint: Show that ((AB) ∧ (BC)) → (AC) is a tautology by simplifying it to T.

Details: Multiple parallel applications of the same law can be done in one step. Multiple sequential applications of the same law must be separated into different steps. Application of commutativity and associativity laws can be combined in one step.

((AB) ∧ (BC)) → (AC) [removing implication]
= ¬((AB) ∧ (BC))∨ (AC) [removing implication, 3 times]
= ¬((¬AB) ∧ (¬BC)) ∨ (¬AC) [DeMorgan]
= (¬(¬AB) ∨ ¬(¬BC)) ∨ (¬AC) [DeMorgan, twice]
= ((¬¬A∧¬B) ∨ (¬¬B∧¬C)) ∨ (¬AC) [double negation, twice]
= ((A∧¬B) ∨ (B∧¬C)) ∨ (¬AC) [associative/commutative laws]
= (A∧¬B) ∨ ¬A ∨ (B∧¬C) ∨ C [distributive law, twice]
= (A∨¬A)∧(¬B∨¬A) ∨ (BC) ∧ (¬CC) [law of excluded middle, twice]
= T ∧ (¬B∨¬A) ∨ (BC) ∧ T [property of true, twice]
= (¬B∨¬A) ∨ (BC) [associative/commutative laws]
= ¬AB∨¬BC [law of excluded middle]
= ¬A ∨ T ∨ C [property of true, twice]
= T ∴

By reducing it to a tautology, we showed that implication is transitive.

 

Homework Comment

This homework is a good example of a general strategy to simplify formulæ:

 

Last Lecture's Homework 1:
Symmetric Group S3

Create a Cayley table of the symmetric group S3 (3!=6 elements). Use the notation introduced in this lecture. Use lexical order for the permutations. Do not use any abbreviations.

  (1, 2, 3) (1, 3, 2) (2, 1, 3) (2, 3, 1) (3, 1, 2) (3, 2, 1)
(1, 2, 3) (1, 2, 3) (1, 3, 2) (2, 1, 3) (2, 3, 1) (3, 1, 2) (3, 2, 1)
(1, 3, 2) (1, 3, 2) (1, 2, 3) (3, 1, 2) (3, 2, 1) (2, 1, 3) (2, 3, 1)
(2, 1, 3) (2, 1, 3) (2, 3, 1) (1, 2, 3) (1, 3, 2) (3, 2, 1) (3, 1, 2)
(2, 3, 1) (2, 3, 1) (2, 1, 3) (3, 2, 1) (3, 1, 2) (1, 2, 3) (1, 3, 2)
(3, 1, 2) (3, 1, 2) (3, 2, 1) (1, 3, 2) (1, 2, 3) (2, 3, 1) (2, 1, 3)
(3, 2, 1) (3, 2, 1) (3, 1, 2) (2, 3, 1) (2, 1, 3) (1, 3, 2) (1, 2, 3)

 

Last Lecture's Homerwork 2:
Non-Isomorphic Groups of Size 4

If we define isomorphic groups as being "the same", there are two different groups of size 4. Give an example of each group as a Cayley table. Hint: Check all the conditions (axioms) for a group. There will be a deduction if you use the same elements of the group as another student.

Solution 1 (cyclic group of order 4)

Interesting examples: Addition modulo 4 (below), 10/20/30/40 and addition modulo 10,..., rotation by multiples of 90°, {1, 2, 3, 4} and multiplication modulo 5 (see next lecture)

0 1 2 3
0 0 1 2 3
1 1 2 3 0
2 2 3 0 1
3 3 0 1 2

Solution 2 (Klein four-group):

Interesting examples: bitstrings of length 2 with XOR (below), reflections and rotations by 180°

00 01 10 11
00 00 01 10 11
01 01 00 11 10
10 10 11 00 01
11 11 10 01 00

 

Algebraic Structures Related to Groups

 

More Algebraic Structures

 

Boolean Algebra

 

Boolean Algebra Example 1:
Basic Logic

 

Comments on Boolean Algebra

 

Boolean Algebra Example 2:
A Powerset with Set Operations

 

Bitwise Operations

*) and many other programming languages

 

Boolean Algebra Example 3:
Bitstrings and Bitwise Operations

 

Boolean Algebra Example 4:
Integers and Divisibility

*) This restriction can be slightly relaxed.

 

The Structure of Boolean Algebras

The following can be proven from the axioms of Boolean algebras:

 

Isomorphisms for Examples

 

Axioms for Boolean Algebras

The axioms for Boolean algebras are the same as the axioms for basic logic (standard/Huntington/Robbins/Sheffer/Wolfram).

There is a choice between compactness and obviousness.

We obtained the axioms by starting with basic logic and trying to find axiomatizations.

We obtain Boolean algebras by trying to find combinations of sets and operations that conform to these axioms.

Basic logic ⇒ Axioms of basic logic/boolean algebras ⇒ Boolean algebras

 

The Magic Garden of George B.

(The Magic Garden of George B. And Other Logic Puzzles, Raymond Smullyan, Polimetrica, 2007)

 

How to Solve the Magic Garden Puzzle

 

The Magic Garden Boolean Algebra

 

Answers to the Magic Garden Quiz

 

Summary

  

Homework

Deadline: December 18, 2025 (Thursday), 18:30.

Format: A4 single page (NO cover page), easily readable handwriting (NO printouts), name (kanji and kana) and student number at the top right

Where to submit: Box in front of room O-529 (building O, 5th floor)

Draw the Hasse diagram of a Boolean algebra of dimension 4 (16 elements). There will be a deduction if you use the same elements as another student.

Additional Homework (no need to submit): Which Boolean function(s) make(s) a group out of any Boolean algebra?

 

Glossary

coverage
(試験) 範囲
cyclic group
巡回群
Klein four-group
クラインの四元群
Abelian group
アベル群、可換群
semigroup
半群
ring
環 (かん)
polynomial
多項式
field
体 (たい)
lattice
束 (そく)
Boolean algebra
ブール代数
zero element
零元
unary operation
単項演算
binary operation
二項演算
bitwise operation
ビット毎演算
bitwise not
ビット毎否定
bitwise and
ビット毎論理積
bitwise or
ビット毎論理和
bitwise xor (exclusive or)
ビット毎排他的又は
coprime
互いに素
greatest common divisor
最大公約数
least common multiple
最小公倍数
coprime
互いに素
pairwise coprime
対ごとに素、どの二つも互いに素
n-dimensional
n 次元 (の)
cube
立方体
supremum (least upper bound)
上限、最小上界
infimum (greatest lower bound)
下限、最大下界