-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboolean.xml
More file actions
2561 lines (2304 loc) · 96.1 KB
/
Copy pathboolean.xml
File metadata and controls
2561 lines (2304 loc) · 96.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0"?>
<!-- This file is part of the book -->
<!-- -->
<!-- Abstract Algebra: Theory and Applications -->
<!-- -->
<!-- Text: Copyright (C) 1997-2025 Thomas W. Judson -->
<!-- Sage: Copyright (C) 2010-2025 Robert A. Beezer -->
<!-- See the file COPYING for copying conditions. -->
<!-- This file is part of the book -->
<!-- -->
<!-- See the file COPYING for copying conditions. -->
<chapter xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="boolean">
<title>Lattices and Boolean Algebras</title>
<introduction>
<p>
The axioms of a ring give structure to the operations of addition and multiplication on a set.
However, we can construct algebraic structures,
known as lattices and Boolean algebras,
that generalize other types of operations.
For example,
the important operations on sets are inclusion, union,
and intersection.
Lattices are generalizations of order relations on algebraic spaces,
such as set inclusion in set theory and inequality in the familiar number systems <m>{\mathbb N}</m>,
<m>{\mathbb Z}</m>, <m>{\mathbb Q}</m>, and <m>{\mathbb R}</m>.
Boolean algebras generalize the operations of intersection and union.
Lattices and Boolean algebras have found applications in logic,
circuit theory, and probability.
</p>
</introduction>
<section xml:id="boolean-section-lattices">
<title>Lattices</title>
<subsection xml:id="boolean-subsection-poset">
<title>Partially Ordered Sets</title>
<p>
We begin the study of lattices and Boolean algebras by generalizing the idea of inequality.
Recall that a <term>relation</term>
on a set <m>X</m> is a subset of <m>X \times X</m>.
A relation <m>P</m> on <m>X</m> is called a
<term>partial order</term><idx><h>Partial order</h></idx>
of <m>X</m> if it satisfies the following axioms.
<ol>
<li>
<p>
The relation is <term>reflexive</term>:
<m>(a, a) \in P</m> for all <m>a \in X</m>.
</p>
</li>
<li>
<p>
The relation is <term>antisymmetric</term>:
if <m>(a,b) \in P</m> and <m>(b,a) \in P</m>, then <m>a = b</m>.
</p>
</li>
<li>
<p>
The relation is <term>transitive</term>:
if <m>(a, b) \in P</m> and
<m>(b, c) \in P</m>, then <m>(a, c) \in P</m>.
</p>
</li>
</ol>
We will usually write <m>a \preceq b</m> to mean
<m>(a, b) \in P</m> unless some symbol is naturally associated with a particular partial order,
such as <m>a \leq b</m> with integers <m>a</m> and <m>b</m>,
or <m>A \subset B</m> with sets <m>A</m> and <m>B</m>.
A set <m>X</m> together with a partial order <m>\preceq</m> is called a
<idx><h>Partially ordered set</h></idx><term>partially ordered set</term>,
or <idx><h>Poset</h><h>definition of</h></idx><term>poset</term>.
<notation>
<usage><m>a \preceq b</m></usage>
<description><m>a</m> is less than <m>b</m></description>
</notation>
</p>
<example xml:id="boolean-example-z-less-equal">
<p>
The set of integers
(or rationals or reals)
is a poset where <m>a \leq b</m> has the usual meaning for two integers <m>a</m> and <m>b</m> in <m>{\mathbb Z}</m>.
</p>
</example>
<example xml:id="boolean-example-power-set-subset">
<p>
Let <m>X</m> be any set.
We will define the <term>power set</term><idx><h>Power set</h></idx>
of <m>X</m> to be the set of all subsets of <m>X</m>.
We denote the power set of <m>X</m> by <m>{\mathcal P}(X)</m>.
For example, let <m>X = \{ a, b, c \}</m>.
Then <m>{\mathcal P}(X)</m> is the set of all subsets of the set <m>\{ a, b, c \}</m>:
<md>
<mrow>& \emptyset & & \{ a \} & & \{ b \} & & \{ c \} &</mrow>
<mrow>& \{ a, b \} & & \{ a, c\} & &\{ b, c\} & & \{ a, b, c \}. &</mrow>
</md>
On any power set of a set <m>X</m>, set inclusion,
<m>\subset</m>, is a partial order.
We can represent the order on
<m>\{ a, b, c \}</m> schematically by a diagram such as the one in <xref ref="boolean-figure-partial-order"/>.
</p>
</example>
<figure xml:id="boolean-figure-partial-order">
<caption>Partial order on <m>\mathcal P( \{ a, b, c \})</m></caption>
<!-- Replaced figure with tikz figure and corrected figure - TWJ 8/17/2010 -->
<image width="40%" xml:id="boolean-order-abc">
<description>A graph with the set consisting of a, b, c at the top level; The sets (a, b), (a, c), and (b, c) at the second level; the threee sets consisting of a, b, and c at the third level; and the empty set at the fourth level.</description>
<latex-image>
<xi:include href="tikz/boolean-order-abc.tex" parse="text"/>
</latex-image>
</image>
</figure>
<example xml:id="boolean-example-subgroup-poset">
<p>
Let <m>G</m> be a group.
The set of subgroups of <m>G</m> is a poset,
where the partial order is set inclusion.
</p>
</example>
<example xml:id="boolean-example-p-order-not-unique">
<p>
There can be more than one partial order on a particular set.
We can form a partial order on
<m>{\mathbb N}</m> by <m>a \preceq b</m> if <m>a \mid b</m>.
The relation is certainly reflexive since
<m>a \mid a</m> for all <m>a \in {\mathbb N}</m>.
If <m>m \mid n</m> and <m>n \mid m</m>, then <m>m = n</m>;
hence, the relation is also antisymmetric.
The relation is transitive,
because if <m>m \mid n</m> and
<m>n \mid p</m>, then <m>m \mid p</m>.
</p>
</example>
<example xml:id="boolean-example-poset-divisors-24">
<p>
Let <m>X = \{ 1, 2, 3, 4, 6, 8, 12, 24 \}</m> be the set of divisors of <m>24</m> with the partial order defined in <xref ref="boolean-example-p-order-not-unique"/>.
<xref ref="boolean-figure-poset-divisors-24"/> shows the partial order on <m>X</m>.
</p>
</example>
<figure xml:id="boolean-figure-poset-divisors-24">
<caption>A partial order on the divisors of <m>24</m></caption>
<!-- Replaced figure with tikz figure - TWJ 8/17/2010 -->
<image width="25%" xml:id="boolean-order-24">
<description>A graph with 24 at the top level,, 8 and 12 at the second level, 4 (connected to 8 and 12) and 6 (connected to 12) at the third level, 2 (connected to 4 and 6) and 3 (connected to 6) at the fourth level, and 1 at the bottom level.</description>
<latex-image>
<xi:include href="tikz/boolean-order-24.tex" parse="text"/>
</latex-image>
</image>
</figure>
<p>
Let <m>Y</m> be a subset of a poset <m>X</m>.
An element <m>u</m> in <m>X</m> is an <term>upper bound</term><idx><h>Upper bound</h></idx>
of <m>Y</m> if <m>a \preceq u</m> for every element <m>a \in Y</m>.
If <m>u</m> is an upper bound of <m>Y</m> such that
<m>u \preceq v</m> for every other upper bound <m>v</m> of <m>Y</m>,
then <m>u</m> is called a <term>least upper bound</term><idx><h>Least upper bound</h></idx>
or <term>supremum</term><idx><h>Supremum</h></idx>
of <m>Y</m>.
An element <m>l</m> in <m>X</m> is said to be a <term>lower bound</term><idx><h>Lower bound</h></idx>
of <m>Y</m> if <m>l \preceq a</m> for all <m>a \in Y</m>.
If <m>l</m> is a lower bound of <m>Y</m> such that
<m>k \preceq l</m> for every other lower bound <m>k</m> of <m>Y</m>,
then <m>l</m> is called a <term>greatest lower bound</term><idx><h>Greatest lower bound</h></idx>
or <term>infimum</term><idx><h>Infimum</h></idx>
of <m>Y</m>.
</p>
<example xml:id="boolean-example-poset-gcd">
<p>
Let <m>Y = \{ 2, 3, 4, 6 \}</m> be contained in the set <m>X</m> of <xref ref="boolean-example-poset-divisors-24"/>.
Then <m>Y</m> has upper bounds <m>12</m> and <m>24</m>,
with <m>12</m> as a least upper bound.
The only lower bound is <m>1</m>;
hence, it must be a greatest lower bound.
</p>
</example>
<p>
As it turns out,
least upper bounds and greatest lower bounds are unique if they exist.
</p>
<theorem>
<statement>
<p>
Let <m>Y</m> be a nonempty subset of a poset <m>X</m>.
If <m>Y</m> has a least upper bound,
then <m>Y</m> has a unique least upper bound.
If <m>Y</m> has a greatest lower bound,
then <m>Y</m> has a unique greatest lower bound.
</p>
</statement>
<proof>
<p>
Let <m>u_1</m> and <m>u_2</m> be least upper bounds for <m>Y</m>.
By the definition of the least upper bound,
<m>u_1 \preceq u</m> for all upper bounds <m>u</m> of <m>Y</m>.
In particular, <m>u_1 \preceq u_2</m>.
Similarly, <m>u_2 \preceq u_1</m>.
Therefore, <m>u_1 = u_2</m> by antisymmetry.
A similar argument show that the greatest lower bound is unique.
</p>
</proof>
</theorem>
<p>
On many posets it is possible to define binary operations by using the greatest lower bound and the least upper bound of two elements.
A <term>lattice</term><idx><h>Lattice</h><h>definition of</h></idx> is a poset <m>L</m> such that every pair of elements in <m>L</m> has a least upper bound and a greatest lower bound.
The least upper bound of <m>a,
b \in L</m> is called the <term>join</term><idx><h>Join</h></idx>
of <m>a</m> and <m>b</m> and is denoted by <m>a \vee b</m>.
<notation>
<usage><m>a \vee b</m></usage>
<description>join of <m>a</m> and <m>b</m></description>
</notation>
The greatest lower bound of
<m>a,
b \in L</m> is called the <term>meet</term><idx><h>Meet</h></idx>
of <m>a</m> and <m>b</m> and is denoted by <m>a \wedge b</m>.
<notation>
<usage><m>a \wedge b</m></usage>
<description>meet of <m>a</m> and <m>b</m></description>
</notation>
</p>
<example xml:id="boolean-example-lub-glb">
<p>
Let <m>X</m> be a set.
Then the power set of <m>X</m>,
<m>{\mathcal P}(X)</m>, is a lattice.
For two sets <m>A</m> and <m>B</m> in <m>{\mathcal P}(X)</m>,
the least upper bound of <m>A</m> and <m>B</m> is <m>A \cup B</m>.
Certainly <m>A \cup B</m> is an upper bound of <m>A</m> and <m>B</m>,
since <m>A \subset A \cup B</m> and <m>B \subset A \cup B</m>.
If <m>C</m> is some other set containing both <m>A</m> and <m>B</m>,
then <m>C</m> must contain <m>A \cup B</m>;
hence, <m>A \cup B</m> is the least upper bound of <m>A</m> and <m>B</m>.
Similarly, the greatest lower bound of <m>A</m> and <m>B</m> is <m>A \cap B</m>.
</p>
</example>
<example xml:id="boolean-example-subgroup-lattice">
<p>
Let <m>G</m> be a group and suppose that <m>X</m> is the set of subgroups of <m>G</m>.
Then <m>X</m> is a poset ordered by set-theoretic inclusion,
<m>\subset</m>.
The set of subgroups of <m>G</m> is also a lattice.
If <m>H</m> and <m>K</m> are subgroups of <m>G</m>,
the greatest lower bound of <m>H</m> and <m>K</m> is <m>H \cap K</m>.
The set <m>H \cup K</m> may not be a subgroup of <m>G</m>.
We leave it as an exercise to show that the least upper bound of <m>H</m> and <m>K</m> is the subgroup generated by <m>H \cup K</m>.
</p>
</example>
<p>
In set theory we have certain duality conditions.
For example, by De Morgan's laws,
any statement about sets that is true about
<m>(A \cup B)'</m> must also be true about <m>A' \cap B'</m>.
We also have a duality principle for lattices.
</p>
<axiom>
<title>Principle of Duality</title>
<idx>
<h>Lattices, Principle of Duality for</h>
</idx>
<statement>
<p>
Any statement that is true for all lattices remains true when <m>\preceq</m> is replaced by <m>\succeq</m> and <m>\vee</m> and <m>\wedge</m> are interchanged throughout the statement.
</p>
</statement>
</axiom>
<p>
The following theorem tells us that a lattice is an algebraic structure with two binary operations that satisfy certain axioms.
</p>
<theorem>
<statement>
<p>
If <m>L</m> is a lattice,
then the binary operations <m>\vee</m> and <m>\wedge</m> satisfy the following properties for <m>a,
b, c \in L</m>.
<ol>
<li>
<p>
Commutative laws:
<m>a \vee b = b \vee a</m> and <m>a \wedge b = b \wedge a</m>.
</p>
</li>
<li>
<p>
Associative laws:
<m>a \vee ( b \vee c) = (a \vee b) \vee c</m> and <m>a \wedge (b \wedge c) = (a \wedge b) \wedge c</m>.
</p>
</li>
<li>
<p>
Idempotent laws: <m>a \vee a = a</m> and <m>a \wedge a = a</m>.
</p>
</li>
<li>
<p>
Absorption laws:
<m>a \vee (a \wedge b) = a</m> and <m>a \wedge ( a \vee b ) =a</m>.
</p>
</li>
</ol>
</p>
</statement>
<proof>
<p>
By the Principle of Duality,
we need only prove the first statement in each part.
</p>
<p>
(1) By definition <m>a \vee b</m> is the least upper bound of <m>\{ a, b\}</m>,
and <m>b \vee a</m> is the least upper bound of <m>\{ b, a \}</m>;
however, <m>\{ a, b\} = \{ b, a \}</m>.
</p>
<p>
(2) We will show that <m>a \vee ( b \vee c)</m> and
<m>(a \vee b) \vee c</m> are both least upper bounds of <m>\{ a, b, c \}</m>.
Let <m>d = a \vee b</m>.
Then <m>c \preceq d \vee c = (a \vee b) \vee c</m>.
We also know that
<me>
a \preceq a \vee b =d \preceq d \vee c = (a \vee b) \vee c
</me>.
A similar argument demonstrates that <m>b \preceq (a \vee b) \vee c</m>.
Therefore, <m>(a \vee b) \vee c</m> is an upper bound of <m>\{ a, b, c \}</m>.
We now need to show that <m>(a \vee b) \vee c</m> is the least upper bound of <m>\{ a, b, c\}</m>.
Let <m>u</m> be some other upper bound of <m>\{ a, b, c \}</m>.
Then <m>a \preceq u</m> and <m>b \preceq u</m>;
hence, <m>d = a \vee b \preceq u</m>.
Since <m>c \preceq u</m>,
it follows that <m>(a \vee b) \vee c = d \vee c \preceq u</m>.
Therefore, <m>(a \vee b) \vee c</m> must be the least upper bound of <m>\{ a, b, c\}</m>.
The argument that shows <m>a \vee ( b \vee c)</m> is the least upper bound of <m>\{ a, b, c \}</m> is the same.
Consequently, <m>a \vee ( b \vee c) = (a \vee b) \vee c</m>.
</p>
<p>
(3) The join of <m>a</m> and <m>a</m> is the least upper bound of <m>\{ a \}</m>;
hence, <m>a \vee a = a</m>.
</p>
<p>
(4) Let <m>d = a \wedge b</m>.
Then <m>a \preceq a \vee d</m>.
On the other hand, <m>d = a \wedge b \preceq a</m>,
and so <m>a \vee d \preceq a</m>.
Therefore, <m>a \vee ( a \wedge b) = a</m>.
</p>
</proof>
</theorem>
<p>
Given any arbitrary set <m>L</m> with operations <m>\vee</m> and <m>\wedge</m>,
satisfying the conditions of the previous theorem,
it is natural to ask whether or not this set comes from some lattice.
The following theorem says that this is always the case.
</p>
<theorem xml:id="boolean-theorem-partial-order">
<statement>
<p>
Let <m>L</m> be a nonempty set with two binary operations <m>\vee</m> and <m>\wedge</m> satisfying the commutative,
associative,
idempotent, and absorption laws.
We can define a partial order on <m>L</m> by
<m>a \preceq b</m> if <m>a \vee b = b</m>.
Furthermore,
<m>L</m> is a lattice with respect to <m>\preceq</m> if for all <m>a,
b \in L</m>,
we define the least upper bound and greatest lower bound of <m>a</m> and <m>b</m> by
<m>a \vee b</m> and <m>a \wedge b</m>, respectively.
</p>
</statement>
<proof>
<p>
We first show that <m>L</m> is a poset under <m>\preceq</m>.
Since <m>a \vee a = a</m>,
<m>a \preceq a</m> and <m>\preceq</m> is reflexive.
To show that <m>\preceq</m> is antisymmetric,
let <m>a \preceq b</m> and <m>b \preceq a</m>.
Then <m>a \vee b = b</m> and
<m>b \vee a = a</m>. By the commutative law,
<m>b = a \vee b = b \vee a = a</m>.
Finally, we must show that <m>\preceq</m> is transitive.
Let <m>a \preceq b</m> and <m>b \preceq c</m>.
Then <m>a \vee b = b</m> and <m>b \vee c = c</m>.
Thus,
<me>
a \vee c = a \vee (b \vee c ) = ( a \vee b) \vee c = b \vee c = c
</me>,
or <m>a \preceq c</m>.
</p>
<p>
To show that <m>L</m> is a lattice,
we must prove that <m>a \vee b</m> and <m>a \wedge b</m> are,
respectively,
the least upper and greatest lower bounds of <m>a</m> and <m>b</m>.
Since <m>a=(a \vee b) \wedge a = a \wedge (a \vee b)</m>,
it follows that <m>a \preceq a \vee b</m>.
Similarly, <m>b \preceq a \vee b</m>.
Therefore, <m>a \vee b</m> is an upper bound for <m>a</m> and <m>b</m>.
Let <m>u</m> be any other upper bound of both <m>a</m> and <m>b</m>.
Then <m>a \preceq u</m> and <m>b \preceq u</m>.
But <m>a \vee b \preceq u</m> since
<me>
(a \vee b) \vee u = a \vee (b \vee u) = a \vee u = u
</me>.
The proof that <m>a \wedge b</m> is the greatest lower bound of <m>a</m> and <m>b</m> is left as an exercise.
</p>
</proof>
</theorem>
</subsection>
</section>
<section xml:id="boolean-section-boolean-algebras">
<title>Boolean Algebras</title>
<introduction>
<p>
Let us investigate the example of the power set,
<m>{\mathcal P}(X)</m>, of a set <m>X</m> more closely.
The power set is a lattice that is ordered by inclusion.
By the definition of the power set,
the largest element in <m>{\mathcal P}(X)</m> is <m>X</m> itself and the smallest element is <m>\emptyset</m>,
the empty set.
For any set <m>A</m> in <m>{\mathcal P}(X)</m>,
we know that <m>A \cap X = A</m> and <m>A \cup \emptyset = A</m>.
This suggests the following definition for lattices.
An element <m>I</m> in a poset <m>X</m> is a
<term>largest element</term><idx><h>Poset</h><h>largest element in</h></idx> if
<m>a \preceq I</m> for all <m>a \in X</m>.
<notation>
<usage><m>I</m></usage>
<description>largest element in a lattice</description>
</notation>
An element <m>O</m> is a <term>smallest element</term><idx><h>Poset</h><h>smallest element in</h></idx> of <m>X</m> if
<m>O \preceq a</m> for all <m>a \in X</m>.
<notation>
<usage><m>O</m></usage>
<description>smallest element in a lattice</description>
</notation>
</p>
<p>
Let <m>A</m> be in <m>{\mathcal P}(X)</m>.
Recall that the complement of <m>A</m> is
<me>
A' = X \setminus A = \{ x : x \in X \text{ and } x \notin A \}
</me>.
We know that <m>A \cup A' = X</m> and <m>A \cap A' = \emptyset</m>.
We can generalize this example for lattices.
A lattice <m>L</m> with a largest element <m>I</m> and a smallest element <m>O</m> is <term>complemented</term><idx><h>Lattice</h><h>completed</h></idx>
if for each <m>a \in L</m>,
there exists an <m>a'</m> such that
<m>a \vee a' = I</m> and <m>a \wedge a' = O</m>.
<notation>
<usage><m>a'</m></usage>
<description>complement of <m>a</m> in a lattice</description>
</notation>
</p>
<p>
In a lattice <m>L</m>,
the binary operations <m>\vee</m> and <m>\wedge</m> satisfy commutative and associative laws;
however, they need not satisfy the distributive law
<me>
a \wedge ( b \vee c ) = (a \wedge b ) \vee ( a \wedge c );
</me>
however, in <m>{\mathcal P}(X)</m> the distributive law is satisfied since
<me>
A \cap ( B \cup C ) = (A \cap B ) \cup ( A \cap C )
</me>
for <m>A, B, C \in {\mathcal P}(X)</m>.
We will say that a lattice <m>L</m> is
<term>distributive</term><idx><h>Lattice</h><h>distributive</h></idx> if the following distributive law holds:
<me>
a \wedge ( b \vee c ) = (a \wedge b ) \vee ( a \wedge c )
</me>
for all <m>a, b, c \in L</m>.
</p>
<theorem xml:id="boolean-theorem-distributive-lattice">
<statement>
<p>
A lattice <m>L</m> is distributive if and only if
<me>
a \vee ( b \wedge c ) = ( a \vee b ) \wedge ( a \vee c )
</me>
for all <m>a, b, c \in L</m>.
</p>
</statement>
<proof>
<p>
Let us assume that <m>L</m> is a distributive lattice.
<md>
<mrow>a \vee ( b \wedge c ) & = [a \vee (a \wedge c) ] \vee ( b \wedge c )</mrow>
<mrow>& = a \vee [(a \wedge c) \vee ( b \wedge c )]</mrow>
<mrow>& = a \vee [(c \wedge a) \vee ( c \wedge b )]</mrow>
<mrow>& = a \vee [c \wedge ( a \vee b )]</mrow>
<mrow>& = a \vee [( a \vee b ) \wedge c ]</mrow>
<mrow>& = [( a \vee b ) \wedge a ] \vee [(a \vee b) \wedge c ]</mrow>
<mrow>& = ( a \vee b ) \wedge ( a \vee c )</mrow>
</md>.
The converse follows directly from the Duality Principle.
</p>
</proof>
</theorem>
<p>
A <term>Boolean algebra</term><idx><h>Boolean algebra</h><h>definition of</h></idx> is a lattice <m>B</m> with a greatest element <m>I</m> and a smallest element <m>O</m> such that <m>B</m> is both distributive and complemented.
The power set of <m>X</m>,
<m>{\mathcal P}(X)</m>, is our prototype for a Boolean algebra.
As it turns out,
it is also one of the most important Boolean algebras.
The following theorem allows us to characterize Boolean algebras in terms of the binary relations <m>\vee</m> and <m>\wedge</m> without mention of the fact that a Boolean algebra is a poset.
</p>
<theorem>
<statement>
<p>
A set <m>B</m> is a Boolean algebra if and only if there exist binary operations <m>\vee</m> and <m>\wedge</m> on <m>B</m> satisfying the following axioms.
<ol>
<li>
<p>
<m>a \vee b = b \vee a</m> and
<m>a \wedge b = b \wedge a</m> for <m>a, b \in B</m>.
</p>
</li>
<li>
<p>
<m>a \vee ( b \vee c) = (a \vee b) \vee c</m> and
<m>a \wedge ( b \wedge c) = (a \wedge b) \wedge c</m> for <m>a,
b, c \in B</m>.
</p>
</li>
<li>
<p>
<m>a \wedge ( b \vee c ) = (a \wedge b ) \vee ( a \wedge c )</m> and
<m>a \vee ( b \wedge c ) = (a \vee b ) \wedge ( a \vee c )</m> for <m>a,
b, c \in B</m>.
</p>
</li>
<li>
<p>
There exist elements <m>I</m> and <m>O</m> such that <m>a \vee O = a</m> and
<m>a \wedge I = a</m> for all <m>a \in B</m>.
</p>
</li>
<li>
<p>
For every <m>a \in B</m> there exists an <m>a' \in B</m> such that
<m>a \vee a' = I</m> and <m>a \wedge a' = O</m>.
</p>
</li>
</ol>
</p>
</statement>
<proof>
<p>
Let <m>B</m> be a set satisfying (1)<ndash/>(5) in the theorem.
One of the idempotent laws is satisfied since
<md>
<mrow>a & = a \vee O</mrow>
<mrow>& = a \vee (a \wedge a')</mrow>
<mrow>& = (a \vee a) \wedge (a \vee a')</mrow>
<mrow>& = (a \vee a ) \wedge I</mrow>
<mrow>& = a \vee a</mrow>
</md>.
Observe that
<me>
I \vee b = (b \vee b' ) \vee b = (b' \vee b ) \vee b = b' \vee (b \vee b) = b' \vee b = I
</me>.
Consequently, the first of the two absorption laws holds, since
<md>
<mrow>a \vee (a \wedge b) & = (a \wedge I) \vee (a \wedge b)</mrow>
<mrow>& = a \wedge (I \vee b)</mrow>
<mrow>& = a \wedge I</mrow>
<mrow>& = a</mrow>
</md>.
The other idempotent and absorption laws are proven similarly.
Since <m>B</m> also satisfies (1)<ndash/>(3),
the conditions of <xref ref="boolean-theorem-partial-order"/> are met;
therefore, <m>B</m> must be a lattice.
Condition (4) tells us that <m>B</m> is a distributive lattice.
</p>
<p>
For <m>a \in B</m>, <m>O \vee a = a</m>;
hence, <m>O \preceq a</m> and <m>O</m> is the smallest element in <m>B</m>.
To show that <m>I</m> is the largest element in <m>B</m>,
we will first show that <m>a \vee b = b</m> is equivalent to <m>a \wedge b = a</m>.
Since <m>a \vee I = a</m> for all <m>a \in B</m>,
using the absorption laws we can determine that
<me>
a \vee I =(a \wedge I) \vee I = I \vee ( I \wedge a) = I
</me>
or <m>a \preceq I</m> for all <m>a</m> in <m>B</m>.
Finally, since we know that <m>B</m> is complemented by (5),
<m>B</m> must be a Boolean algebra.
</p>
<p>
Conversely, suppose that <m>B</m> is a Boolean algebra.
Let <m>I</m> and <m>O</m> be the greatest and least elements in <m>B</m>,
respectively.
If we define <m>a \vee b</m> and
<m>a \wedge b</m> as least upper and greatest lower bounds of <m>\{ a, b\}</m>,
then <m>B</m> is a Boolean algebra by <xref ref="boolean-theorem-partial-order"/>, <xref ref="boolean-theorem-distributive-lattice"/>, and our hypothesis.
</p>
</proof>
</theorem>
<p>
Many other identities hold in Boolean algebras.
Some of these identities are listed in the following theorem.
</p>
<theorem>
<statement>
<p>
Let <m>B</m> be a Boolean algebra.
Then
<ol>
<li>
<p>
<m>a \vee I = I</m> and <m>a \wedge O = O</m> for all <m>a \in B</m>.
</p>
</li>
<li>
<p>
If <m>a \vee b = a \vee c</m> and <m>a \wedge b = a \wedge c</m> for <m>a,
b, c \in B</m>, then <m>b = c</m>.
</p>
</li>
<li>
<p>
If <m>a \vee b = I</m> and <m>a \wedge b = O</m>, then <m>b = a'</m>.
</p>
</li>
<li>
<p>
<m>(a')'=a</m> for all <m>a \in B</m>.
</p>
</li>
<li>
<p>
<m>I' = O</m> and <m>O' = I</m>.
</p>
</li>
<li>
<p>
<m>(a \vee b)' = a' \wedge b'</m> and <m>(a \wedge b)' = a' \vee b'</m> <idx><h>De Morgan's laws</h><h>for Boolean algebras</h></idx>(De Morgan's Laws).
</p>
</li>
</ol>
</p>
</statement>
<proof>
<p>
We will prove only (2).
The rest of the identities are left as exercises.
For <m>a \vee b = a \vee c</m> and <m>a \wedge b = a \wedge c</m>, we have
<md>
<mrow>b & = b \vee (b \wedge a)</mrow>
<mrow>& = b \vee (a \wedge b)</mrow>
<mrow>& = b \vee (a \wedge c)</mrow>
<mrow>& = ( b \vee a) \wedge ( b \vee c)</mrow>
<mrow>& = ( a \vee b) \wedge ( b \vee c)</mrow>
<mrow>& = ( a \vee c) \wedge ( b \vee c)</mrow>
<mrow>& = ( c \vee a ) \wedge ( c\vee b )</mrow>
<mrow>& = c \vee (a \wedge b)</mrow>
<mrow>& = c \vee ( a \wedge c )</mrow>
<mrow>& = c \vee ( c \wedge a )</mrow>
<mrow>& = c</mrow>
</md>.
</p>
</proof>
</theorem>
</introduction>
<subsection xml:id="boolean-subsection-finite-algebras">
<title>Finite Boolean Algebras</title>
<p>
A Boolean algebra is a <term>finite Boolean algebra</term><idx><h>Boolean algebra</h><h>finite</h></idx> if it contains a finite number of elements as a set.
Finite Boolean algebras are particularly nice since we can classify them up to isomorphism.
</p>
<p>
Let <m>B</m> and <m>C</m> be Boolean algebras.
A bijective map <m>\phi : B \rightarrow C</m> is an
<term>isomorphism</term><idx><h>Boolean algebra</h><h>isomorphism</h></idx><idx><h>Isomorphism</h><h>of Boolean algebras</h></idx> of Boolean algebras if
<md>
<mrow>\phi( a \vee b ) & = \phi(a) \vee \phi(b)</mrow>
<mrow>\phi( a \wedge b ) & = \phi(a) \wedge \phi(b)</mrow>
</md>
for all <m>a</m> and <m>b</m> in <m>B</m>.
</p>
<!-- 2010/05/18 R Beezer, added a "nonzero" to b in definition of an atom -->
<!-- Identified by Ricky Roy, U of Puget Sound -->
<p>
We will show that any finite Boolean algebra is isomorphic to the Boolean algebra obtained by taking the power set of some finite set <m>X</m>.
We will need a few lemmas and definitions before we prove this result.
Let <m>B</m> be a finite Boolean algebra.
An element <m>a \in B</m> is an <term>atom</term><idx><h>Atom</h></idx><idx><h>Boolean algebra</h><h>atom in a</h></idx>
of <m>B</m> if <m>a \neq O</m> and
<m>a \wedge b = a</m> for all <m>b \in B</m> with <m>b \neq O</m>.
Equivalently,
<m>a</m> is an atom of <m>B</m> if there is no <m>b \in B</m> with <m>b \neq O</m> distinct from <m>a</m> such that <m>O \preceq b \preceq a</m>.
</p>
<lemma>
<statement>
<p>
Let <m>B</m> be a finite Boolean algebra.
If <m>b</m> is a element of <m>B</m> with <m>b \neq O</m>,
then there is an atom <m>a</m> in <m>B</m> such that <m>a \preceq b</m>.
</p>
</statement>
<proof>
<p>
If <m>b</m> is an atom, let <m>a =b</m>.
Otherwise, choose an element <m>b_1</m>,
not equal to <m>O</m> or <m>b</m>,
such that <m>b_1 \preceq b</m>.
We are guaranteed that this is possible since <m>b</m> is not an atom.
If <m>b_1</m> is an atom, then we are done.
If not, choose <m>b_2</m>,
not equal to <m>O</m> or <m>b_1</m>,
such that <m>b_2 \preceq b_1</m>.
Again, if <m>b_2</m> is an atom, let <m>a = b_2</m>.
Continuing this process, we can obtain a chain
<me>
O \preceq \cdots \preceq b_3 \preceq b_2 \preceq b_1 \preceq b
</me>.
Since <m>B</m> is a finite Boolean algebra,
this chain must be finite.
That is, for some <m>k</m>, <m>b_k</m> is an atom.
Let <m>a = b_k</m>.
</p>
</proof>
</lemma>
<lemma xml:id="boolean-lemma-zero-vee">
<statement>
<p>
Let <m>a</m> and <m>b</m> be atoms in a finite Boolean algebra <m>B</m> such that <m>a \neq b</m>.
Then <m>a \wedge b = O</m>.
</p>
</statement>
<proof>
<p>
Since <m>a \wedge b</m> is the greatest lower bound of <m>a</m> and <m>b</m>,
we know that <m>a \wedge b \preceq a</m>.
Hence, either <m>a \wedge b = a</m> or <m>a \wedge b = O</m>.
However, if <m>a \wedge b = a</m>,
then either <m>a \preceq b</m> or <m>a = O</m>.
In either case we have a contradiction because <m>a</m> and <m>b</m> are both atoms;
therefore, <m>a \wedge b = O</m>.
</p>
</proof>
</lemma>
<lemma xml:id="boolean-lemma-partial-order-equivalence">
<statement>
<p>
Let <m>B</m> be a Boolean algebra and <m>a, b \in B</m>.
The following statements are equivalent.
<ol>
<li>
<p>
<m>a \preceq b</m>.
</p>
</li>
<li>
<p>
<m>a \wedge b' = O</m>.
</p>
</li>
<li>
<p>
<m>a' \vee b = I</m>.
</p>
</li>
</ol>
</p>
</statement>
<proof>
<p>
(1) <m>\Rightarrow</m> (2).
If <m>a \preceq b</m>, then <m>a \vee b = b</m>.
Therefore,
<md>
<mrow>a \wedge b' & = a \wedge (a \vee b)'</mrow>
<mrow>& = a \wedge ( a' \wedge b')</mrow>
<mrow>& = ( a \wedge a') \wedge b'</mrow>
<mrow>& = O \wedge b'</mrow>
<mrow>& = O</mrow>
</md>.
</p>
<p>
(2) <m>\Rightarrow</m> (3).
If <m>a \wedge b' = O</m>, then <m>a' \vee b = (a \wedge b')' = O' = I</m>.
</p>
<p>
(3) <m>\Rightarrow</m> (1).
If <m>a' \vee b = I</m>, then
<md>
<mrow>a & = a \wedge (a' \vee b)</mrow>
<mrow>& = (a \wedge a') \vee (a \wedge b)</mrow>
<mrow>& = O \vee (a \wedge b)</mrow>
<mrow>& = a \wedge b</mrow>
</md>.
Thus, <m>a \preceq b</m>.
</p>
</proof>
</lemma>
<lemma>
<statement>
<p>
Let <m>B</m> be a Boolean algebra and <m>b</m> and <m>c</m> be elements in <m>B</m> such that <m>b \not\preceq c</m>.
Then there exists an atom <m>a \in B</m> such that
<m>a \preceq b</m> and <m>a \not\preceq c</m>.
</p>
</statement>
<proof>
<p>
By <xref ref="boolean-lemma-partial-order-equivalence"/>, <m>b \wedge c' \neq O</m>.
Hence, there exists an atom <m>a</m> such that <m>a \preceq b \wedge c'</m>.
Consequently, <m>a \preceq b</m> and <m>a \not\preceq c</m>.
</p>
</proof>
</lemma>
<lemma xml:id="lemma-atoms">
<statement>
<p>
Let <m>b \in B</m> and <m>a_1, \ldots,
a_n</m> be the atoms of <m>B</m> such that <m>a_i \preceq b</m>.
Then <m>b = a_1 \vee \cdots \vee a_n</m>.
Furthermore, if <m>a, a_1, \ldots,
a_n</m> are atoms of <m>B</m> such that <m>a \preceq b</m>,
<m>a_i \preceq b</m>, and <m>b = a \vee a_1 \vee \cdots \vee a_n</m>,
then <m>a = a_i</m> for some <m>i = 1, \ldots, n</m>.
</p>
</statement>
<proof>
<p>
Let <m>b_1 = a_1 \vee \cdots \vee a_n</m>.
Since <m>a_i \preceq b</m> for each <m>i</m>,
we know that <m>b_1 \preceq b</m>.
If we can show that <m>b \preceq b_1</m>,
then the lemma is true by antisymmetry.
Assume <m>b \not\preceq b_1</m>.
Then there exists an atom <m>a</m> such that
<m>a \preceq b</m> and <m>a \not\preceq b_1</m>.
Since <m>a</m> is an atom and <m>a \preceq b</m>,
we can deduce that <m>a = a_i</m> for some <m>a_i</m>.
However, this is impossible since <m>a \preceq b_1</m>.
Therefore, <m>b \preceq b_1</m>.
</p>
<p>
Now suppose that <m>b = a_1 \vee \cdots \vee a_n</m>.
If <m>a</m> is an atom less than <m>b</m>,
<me>
a = a \wedge b = a \wedge( a_1 \vee \cdots \vee a_n ) = (a \wedge a_1) \vee \cdots \vee ( a \wedge a_n )
</me>.
But each term is <m>O</m> or <m>a</m> with
<m>a \wedge a_i</m> occurring for only one <m>a_i</m>.
Hence, by <xref ref="boolean-lemma-zero-vee"/>, <m>a = a_i</m> for some <m>i</m>.
</p>
</proof>
</lemma>
<theorem xml:id="boolean-theorem-classification-boolean-algebra">
<statement>
<p>
Let <m>B</m> be a finite Boolean algebra.
Then there exists a set <m>X</m> such that <m>B</m> is isomorphic to <m>{\mathcal P}(X)</m>.
</p>
</statement>
<proof>
<p>
We will show that <m>B</m> is isomorphic to <m>{\mathcal P}(X)</m>,
where <m>X</m> is the set of atoms of <m>B</m>.
Let <m>a \in B</m>.
By <xref ref="lemma-atoms"/>,
we can write <m>a</m> uniquely as
<m>a = a_1 \vee \cdots \vee a_n</m> for <m>a_1, \ldots,
a_n \in X</m>.
Consequently,
we can define a map <m>\phi : B \rightarrow {\mathcal P}(X)</m> by
<me>
\phi(a) = \phi( a_1 \vee \cdots \vee a_n ) = \{a_1, \ldots, a_n \}
</me>.
Clearly, <m>\phi</m> is onto.
</p>
<p>
Now let <m>a = a_1 \vee \cdots \vee a_n</m> and
<m>b = b_1 \vee \cdots \vee b_m</m> be elements in <m>B</m>,
where each <m>a_i</m> and each <m>b_i</m> is an atom.
If <m>\phi(a) = \phi(b)</m>,
then <m>\{a_1, \ldots, a_n \} = \{b_1, \ldots,
b_m \}</m> and <m>a = b</m>.
Consequently, <m>\phi</m> is injective.
</p>
<p>
The join of <m>a</m> and <m>b</m> is preserved by <m>\phi</m> since
<md>
<mrow>\phi(a \vee b) & = \phi( a_1 \vee \cdots \vee a_n \vee b_1 \vee \cdots \vee b_m )</mrow>
<mrow>& = \{ a_1, \ldots, a_n, b_1, \ldots, b_m \}</mrow>
<mrow>& = \{ a_1, \ldots, a_n \} \cup \{ b_1, \ldots, b_m \}</mrow>
<mrow>& = \phi( a_1 \vee \cdots \vee a_n ) \cup \phi( b_1 \wedge \cdots \vee b_m )</mrow>
<mrow>& = \phi(a) \cup \phi(b)</mrow>
</md>.
Similarly, <m>\phi( a \wedge b ) = \phi(a) \cap \phi(b)</m>.
</p>
</proof>
</theorem>
<p>
We leave the proof of the following corollary as an exercise.
</p>
<corollary>
<statement>
<p>
The order of any finite Boolean algebra must be <m>2^n</m> for some positive integer <m>n</m>.
</p>
</statement>
</corollary>
</subsection>
</section>