Example. The powerset boolean algebra [01GY]
For a set A, the powerset \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} is endowed the structure of a boolean algebra by the total subset, empty subset, intersection, union, and complement:
\begin {aligned} \top _{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}} &\coloneqq A \\ \bot _{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}} &\coloneqq \varnothing \\ U\land _{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}} V &\coloneqq U\cap V \\ U\lor _{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}} V &\coloneqq U\cup V \\ \lnot _{\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}}U &\coloneqq A\setminus U \end {aligned}Indeed, all the following identities can be seen to hold:
\begin {gathered} U\cap V = V\cap U \quad U\cap (V\cap W) = (U\cap V)\cap W \\ U\cup V = V\cup U \quad U\cup (V\cup W) = (U\cup V)\cup W \\ A\cap U = U\qquad \varnothing \cup U = \varnothing \\ U\cap {\mathopen {}\left (V\cup W\right )\mathclose {}} = {\mathopen {}\left (U\cap V\right )\mathclose {}}\cup {\mathopen {}\left (U\cap W\right )\mathclose {}} \quad U\cup {\mathopen {}\left (V\cap W\right )\mathclose {}} = {\mathopen {}\left (U\cup V\right )\mathclose {}}\cap {\mathopen {}\left (U\cup W\right )\mathclose {}} \\ U\cap {\mathopen {}\left (U\cup V\right )\mathclose {}} = U \quad U\cup {\mathopen {}\left (U\cap V\right )\mathclose {}} = U \\ U\cap U = U = U\cup U \\ A\setminus \varnothing = A \quad A\setminus A = \varnothing \\ A\setminus {\mathopen {}\left (U\cup V\right )\mathclose {}} = {\mathopen {}\left (A\setminus U\right )\mathclose {}}\cap {\mathopen {}\left (A\setminus V\right )\mathclose {}} \quad A\setminus {\mathopen {}\left (U\cap V\right )\mathclose {}} = {\mathopen {}\left (A\setminus U\right )\mathclose {}}\cup {\mathopen {}\left (A\setminus V\right )\mathclose {}} \\ A\setminus {\mathopen {}\left (A\setminus U\right )\mathclose {}} = U \\ U\cap A\setminus U = \varnothing \quad U\cup A\setminus U = A \end {gathered}