(draft)
We take the view that logic deals with "propositions", that is, things that can be true
or false
. [1]
Take Venn diagrams: Given a "domain" true
. (Think eg of
More precisely, given a fixed set
(I should proably insert some pictures of Venn diagrams here.)
This definition of what a proposition is blurs the distinction of a proposition as a linguistic construct (the letter
because, under our identification of propositions and sets,
(For example: When I say that "Leon is a cat" I equally say that "Leon is an element of the set of cats".)
I said that these notes will be written in the spirit of category theory (but no category theory is needed to do the exercises). We can see this right from the start. Instead of starting to build a theory of propositional logic for a fixed set
And this is our starting point. The first proposition/exercise below asks you to show that every function
But before we go there, it will be useful to have a notation for the set of all propositions on a given set
for the set of subsets of
In the following, the propositions are exercises. Write out a proof for each the following propositions.
Proposition: Given a function
The next aim is to show that the converse also holds, that is, if a function
In the notation introduced below,
This requires some work and there are different ways to do this. I will guide you through the way I do this, which has been chosen with future generalizations in mind.
As an aside, adjoints (or adjunctions) play a major role in category theory and many areas of mathematics. In the next proposition/exercise, we encounter a special case for the first time.
Proposition: If
Remark: Category theoretic generalisations of this are known as adjoint functor theorems.
Recall that given
With an eye on later generalisations, we will use an abstract characterisation of singletons, not in terms of elements, but in terms of subsets.
Definition:
If you see this definition for the first time it will probably look strange. So let me give three reasons for setting things up like this.
Proposition:
For the proof of the lemma, recall that
Lemma: Let
The next proposition now is obtained from putting everything together. You may have to go back to the beginning and retrace your steps to see the whole picture.
Proposition: Every function
We have done now the hard work. But we can "milk our cow" and deduce some stronger results.
Theorem: There is a bijection between functions
This theorem is the beginning of duality theory. It has ramifications in many areas of mathematics.
To understand this better, we need to describe the collections
Logic is sometimes divided into model theory and proof theory. Proof theory studies mathematical proofs and views a proposition as true if it has a proof. Model theory studies mathematical models that assign to each proposition a truth value (typically true
or false
). A proposition is valid if it evaluates to true
in all models. These notes are written from the model-theoretic rather than the proof-theoretic point of view. Venn diagrams are pictures of mathematical models for what is known as "classical propositional logic". ↩︎
if and only if ↩︎
(I apologise for the length of this explanation, but this notation is ubiquitous in math and quite slick once one got used to it.)
true
with false
with To summarize, we write
The last bullet point, under which we identify a proposition with a subset with a function into truth-values is very important, both from a conceptual point of view and from a technical point of view. So if you are not sure about this, maybe try to prove the propositions/exercises below and then come back to contemplate this point. ↩︎
Given
By definition,
The following statements may help with proving the propositions.
(Footnote: A function
Conversely, if
Given
(You may take these statements for granted or as further exercises.) ↩︎
A singleton is a set that contains exactly one element. ↩︎
The definition that
iff