Turning set notation into formal logic

934 Views Asked by At

I am new to the topic of formal logic and my lecturer presented us with the following scenario.

Consider the set $(A\cap B')\cup (B\cap A')$.

First, he asked us to draw a Venn diagram of the above, which is trivial.

I have issues, however, with the following part.

If $A$ and $B$ are two different statements, using formal logic, he then asked us what is the logical meaning behind the set.

I am not sure how to go about this. Please do provide explanations to your answers (intuitive ones, hopefully), so that I may understand the reasoning behind it!

2

There are 2 best solutions below

0
On BEST ANSWER

As already pointed out in the comments, $A$ and $B$ are sets, not statements.

Still, there are obvious connections between sets and logical statements. For example, the set $A \cap B$ is the set of all objects that are elements of $A$ and of $B$. Or, to make the connection between $\cap$ and $\land$ even more clear:

$A \cap B = \{x \mid x \in A \land x \in B \}$

Using this format, we can also say:

$(A \cap B') \cup (B \cap A') = \{ x \mid (x \in A \land \neg (x \in B)) \lor (\neg (x \in A) \land x \in B) \}$

If we can use the logical biconditional, you can simplify this to:

$(A \cap B') \cup (B \cap A') = \{ x | (x \in A \leftrightarrow \neg (x \in B) \}$

1
On

For any set $S$, there is a predicate $P_S$ such that $x\in S\iff P_S(x)$ (in other words, $S=\{x:P_S(x)\}$). For instance, if we are working in the domain of integers we can assign the set of even numbers to the predicate $E(n):=2\mid n$. If $S_E$ is the set of even numbers, then $n\in S_E$ has exactly the same meaning as $E(n)$. In some theories, this is actually the definition of a predicate/set.$^1$

Using this correspondence, it is possible to convert set-theoretic statements into logical ones and vice-versa. In this sense sets can be interpreted as [equivalence classes of] statements, provided that certain rules are observed.

There are many different ways to do this depending on the particular set-theory and logic you choose, the choice of logical connectives, and the presence or absence of quantifiers.

For propositional logic,$^2$ I would use the following:

Logical negation $\neg$ corresponds to the complement of a set $'$.

Logical disjunction $\lor$ corresponds to the union of sets $\cup$.

Logical conjunction $\land$ corresponds to the intersection of sets $\cap$.

Predicate application $P_X(x)$ corresponds to set membership $x \in X$.

For the example provided, Let $P_A$ and $P_B$ be predicates such that $a\in A\iff P_A(a)$ and $b\in B\iff P_B(b)$. Then...

$$x\in(A\cap B')\cup (B\cap A')\iff((P_A\land\neg P_B)\lor(P_B\land\neg P_A))(x)$$

You can simplify the logical statement using exclusive disjunction to $P_A\oplus P_B$. The corresponding set is the symmetric difference $A\triangle B=(A\cup B)\setminus(A\cap B)$.

In general, if two statements are logically equivalent (for example $P\land Q\equiv\neg (\neg P\lor\neg Q)$, then the corresponding sets will be equivalent as well ($S_P\cap S_Q=(S_P'\cup S_Q')'$). The connection between sets and logical statement in general is an important topic in the study of Boolean algebras.

Hugely helpful Hasse diagram: https://commons.wikimedia.org/wiki/File:Logical_connectives_Hasse_diagram.svg


Notes for nit-pickers:

$^1$ Actually, it is more common to refer to predicates [up to logical equivalence] as classes rather than sets - particularly in axiomatic set theory where the identification of predicates with sets is the same as unrestricted comprehension, which leads to paradoxes like Russel's Paradox.

$^2$ Technically, this is predicate logic. However, it is much closer to propositional logic than true first-order logic in its application. In an alternative formulation, you could assign a proposition $\varphi_S$ to each set $S$ using a formula $\varphi_S:=\forall x.P_S(x)$ for the appropriate predicate $P_S$. In this case, I would say that the set $S$ is the domain/universe in which $\varphi_S$ is true.