(A intersection B) union (A intersection C) = (A union B) intersection C

asked by rloth [edited]
on Jan 31, 2025 at 3:44 pm



You asked:

Prove or disprove that the equation (AB)(AC)=(AB)C\left(A \cap B\right) \cup \left(A \cap C\right) = \left(A \cup B\right) \cap C is an identity.

MathBot Answer:

The two expressions (AB)(AC)\left(A \cap B\right) \cup \left(A \cap C\right) and (AB)C\left(A \cup B\right) \cap C are not equivalent.

No known simplification equating the two expressions was found, and the truth tables of each expression are different.


Truth Table Procedure

Two set expressions are equivalent if their truth tables are equivalent.

To construct a truth table for a set expression:

  1. Imagine an arbitrary element xx.

  2. For any set SS, either xSx \in S or xSx \notin S. These correspond to true (T)(T) and false (F)(F) in our truth table.

  3. Enumerate every possible combination of set membership statuses for xx, for all component sets A,B,C,A, B, C, \ldots in the expression.

    • The universal set U\mathbb{U} contains every element, so xUx \in \mathbb{U} is always true.

    • The empty set \emptyset contains no elements, so xx \in \emptyset is always false.

  4. Then, for each combination, solve each sub-expression SsubS_{sub} for xSsubx \in S_{sub}, based on the set membership of the previous sub-expressions.

  5. The truth tables are equivalent if and only if the last row of the truth table, corresponding to the entire expression SS, is identical.

That is, given two set expressions S1S_1 and S2S_2, with component sets A,B,C,A, B, C, \ldots,
S1=S2S_1 = S_2 if and only if every combination of set memberships for an arbitrary element xx in the component sets produces xS1=xS2x \in S_1 = x \in S_2.


Reduce By Identities

We do not always need to solve each unmodified expression to get the answer.

We can reduce a complex expression to a simpler, equivalent one by substituting out sub-expressions using well-known set identities.

Note: Simplification is provided on a best-effort basis. There may exist better simplifications not discovered.

Left-Hand Side

(AB)(AC)=(BC)A\left(A \cap B\right) \cup \left(A \cap C\right) = \left(B \cup C\right) \cap A, shown by the following:

StepExpressionIdentity Used1(AB)(AC)2(BA)(AC)S1S2=S2S13(BA)(CA)S1S2=S2S14(BC)A(S1S3)(S2S3)=(S1S2)S3\begin{array}{c|l|l} \textbf{Step} & \textbf{Expression} & \textbf{Identity Used} \\\hline1 & \left(A \cap B\right) \cup \left(A \cap C\right) & \\\hline2 & \left(B \cap A\right) \cup \left(A \cap C\right) & S_{1} \cap S_{2} = S_{2} \cap S_{1} \\\hline3 & \left(B \cap A\right) \cup \left(C \cap A\right) & S_{1} \cap S_{2} = S_{2} \cap S_{1} \\\hline4 & \left(B \cup C\right) \cap A & \left(S_{1} \cap S_{3}\right) \cup \left(S_{2} \cap S_{3}\right) = \left(S_{1} \cup S_{2}\right) \cap S_{3} \\\end{array}

The simplification can be validated by comparing truth tables:

AFTFTFTFTBFFTTFFTTCFFFFTTTTABFFFTFFFTACFFFFFTFT(AB)(AC)FFFTFTFT\begin{array}{c|c:c:c:c:c:c:c:c}A & F & T & F & T & F & T & F & T \\ B & F & F & T & T & F & F & T & T \\ C & F & F & F & F & T & T & T & T \\ A \cap B & F & F & F & T & F & F & F & T \\ A \cap C & F & F & F & F & F & T & F & T \\ \hline \left(A \cap B\right) \cup \left(A \cap C\right) & \textcolor{#228B22}{F} & \textcolor{#228B22}{F} & \textcolor{#228B22}{F} & \textcolor{#228B22}{T} & \textcolor{#228B22}{F} & \textcolor{#228B22}{T} & \textcolor{#228B22}{F} & \textcolor{#228B22}{T} \\\end{array}
AFTFTFTFTBFFTTFFTTCFFFFTTTTBCFFTTTTTT(BC)AFFFTFTFT\begin{array}{c|c:c:c:c:c:c:c:c}A & F & T & F & T & F & T & F & T \\ B & F & F & T & T & F & F & T & T \\ C & F & F & F & F & T & T & T & T \\ B \cup C & F & F & T & T & T & T & T & T \\ \hline \left(B \cup C\right) \cap A & \textcolor{#228B22}{F} & \textcolor{#228B22}{F} & \textcolor{#228B22}{F} & \textcolor{#228B22}{T} & \textcolor{#228B22}{F} & \textcolor{#228B22}{T} & \textcolor{#228B22}{F} & \textcolor{#228B22}{T} \\\end{array}

Right-Hand Side

No simplifications were found for (AB)C\left(A \cup B\right) \cap C in the allotted time.


Truth Tables

The truth tables are not equivalent, so the expressions are not equivalent.

The combinations where x(BC)Ax(AB)Cx \in \left(B \cup C\right) \cap A \ne x \in \left(A \cup B\right) \cap C are colored in red.

AFTFTFTFTBFFTTFFTTCFFFFTTTTBCFFTTTTTT(BC)AFFFTFTFT\begin{array}{c|c:c:c:c:c:c:c:c}A & F & T & F & T & F & T & F & T \\ B & F & F & T & T & F & F & T & T \\ C & F & F & F & F & T & T & T & T \\ B \cup C & F & F & T & T & T & T & T & T \\ \hline \left(B \cup C\right) \cap A & \textcolor{#228B22}{F} & \textcolor{#228B22}{F} & \textcolor{#228B22}{F} & \textcolor{#BD2B16}{T} & \textcolor{#228B22}{F} & \textcolor{#228B22}{T} & \textcolor{#BD2B16}{F} & \textcolor{#228B22}{T} \\\end{array}
AFTFTFTFTBFFTTFFTTCFFFFTTTTABFTTTFTTT(AB)CFFFFFTTT\begin{array}{c|c:c:c:c:c:c:c:c}A & F & T & F & T & F & T & F & T \\ B & F & F & T & T & F & F & T & T \\ C & F & F & F & F & T & T & T & T \\ A \cup B & F & T & T & T & F & T & T & T \\ \hline \left(A \cup B\right) \cap C & \textcolor{#228B22}{F} & \textcolor{#228B22}{F} & \textcolor{#228B22}{F} & \textcolor{#BD2B16}{F} & \textcolor{#228B22}{F} & \textcolor{#228B22}{T} & \textcolor{#BD2B16}{T} & \textcolor{#228B22}{T} \\\end{array}

Venn Diagrams

For smaller numbers of component sets, the truth tables can also effectively be expressed as Venn diagrams.

Each section of the Venn diagram is analogous to one combination of set memberships for an arbitrary element xx.

A Venn Diagram of the set (B ∪ C) ∩ A A B C (B ∪ C) ∩ A
A Venn Diagram of the set (A ∪ B) ∩ C A B C (A ∪ B) ∩ C