In a previous lecture we gave meaning to a formal language by mapping it to a structure we were familiar with, in our case the natural numbers or a computing machine.
Is there way of capturing the meaning that resides in the mapping
Obviously impossible?
Yes, when we think eg about sending DNA into outer space. Even if a superintelligence would discover our DNA, they would not be able to learn much about us from it. The meaning of DNA relies on a sophisticated environment surrounding it.
But maths could be different. I believe we have some evidence that the maths is the same throughout the universe. So there is some hope to represent maths in some objective way โฆ I am speculating here and we can come back to the question later โฆ
But the speculations of the previous paragraph are relevant to our endeavour of making machines perform meaningful tasks: How do we make machines perform meaningful tasks, if the machines cannot understand the meaning of what they should do? The basic idea is that we make the machines follow rules that are clearly specified. But then the question is: How do we make sure that the rules capture what we mean? One big idea tackling this question is our topic here.
To simplify the big question, let us concentrate on one example:
Can we capture the maths of numbers by pure syntax? [1]
Let us recall the formal language [2]
โโโโ exp ::= num | exp + 1 | exp + exp | exp * exp
and its semantics
which maps an expression to the corresponding number. For example,
We will now revisit our discussion of syntax, semantics, soundness, complete in the light of what we learned about equivalence relations. The crux of the matter is the following
Exercise:
Let
defines an equivalence relation, the equivalence relation induced by
Show that if
Why is it important to know that we get a bijection? Because this says that there is a perfect correspondence (one-to-one and onto) between
We now apply this to the meaning-function
and we see that the set
In other words, if we are able to describe
So can we describe
Yes, we can!
Because โฆ the equivalence relation induced by
Question: Are all equations above needed? Is there one missing?
Remark: In the discrete maths lecture we not only learned about equivalence relations but emphasised equivalence relations that are the equivalence closure
Of course, everybody who has ever used a calculator knows that the answer is yes. But let us forget for a moment that we know the answer in this example. Let us start thinking from scratch and discover a big idea that also applies to much more difficult examples. โฉ๏ธ
I slightly simplified the grammar by putting everything in one line. It is safe to ignore this difference for the current discussion. โฉ๏ธ