Dear Milly,
I thought of replying to you privately so as not to polute this list
too much, but I think this, although tangential to this thread, is
important so that people don't have the impression that MLTT is not
compatible with classical mathematics - it definitely is, and so I
will indent it:
----------------------------------------------------------------
MLTT *is* compatible with classical mathematics, including
excluded middle and choice (in the classical meaning of choice).
----------------------------------------------------------------
On 16/05/14 22:59, Maria Emilia Maietti wrote:
>> I am surprised to hear that MLTT is not compatible with classical
>> mathematics.
> I do not know a proof that MLTT is compatible with ZFC classical set
> theory.
>
>> You mean because you can't formulate choice?
>
> yes,
> I do not know how to interpret Martin-Lof's Exists=Sigma in ZFC by
> interpreting Martin-Loef's
> propositions into ZFC-propositions, so that Martin-Loef's axiom of choice
> gets interpreted in a choice axiom for example
Ok, here is how this can be done, as explained in the HoTT book. The
book is about HoTT, of course, but this applies to (its sublanguage)
MLTT.
First, you need to define excluded middle carefully. Let's do it not
carefully first:
Pi X:Type. X + ¬X,
where ¬X = (X -> 0) and 0 is the empty type.
When MLTT is interpreted in ZFC (Pi = cartesian product, Sigma =
disjoint sum, etc.), this *does not* give excluded middle: it gives
*global choice*: it says that there is a (class) function that given
any set X, finds a point of X, or tells you that X is empty. While you
can consider this axiom in classical mathematics (Bourbaki does), it
is not part of ZFC.
The careful formulation is
Pi X:Type. proposition X -> X + ¬X,
where, as in the previous message, 'proposition X' means that the set
X has at most one point (it is a truth value).
This corresponds precisely to ZFC-excluded middle under the standard
interpretation of MLTT in ZFC, as you can easily check.
Now, once you postulate this, rendering yourself classical, you can
show
||X|| = ¬¬X,
where again ||X|| was defined in the previous message (positively, but
under excluded middle the negative formulation works).
Now, it is a fact that in MLTT that the following is (provably) true:
(Pi x:X. Sigma y:Y. A(x,y)) -> (Sigma f:X->Y. Pi x:X. A(x,f(x))).
This is also true in ZF minus excluded middle (in fact, this function
is an isomorphism of sets, with an easily defined inverse).
Now, the axiom of choice is
(Pi x:X. ||Sigma y:Y. A(x,y)||)->||Sigma f:X->Y. Pi x:X. A(x,f(x))||.
While ||-|| cannot be formulated in MLTT (it is a HoTT extension),
under excluded middle as above you can show that ¬¬(-) has the
defining property of ||-||, as discussed above. In any case, even
without this observation, what corresponds to the axiom of choice ZFC
is the existence of a function
(Pi x:X. ¬¬(Sigma y:Y. A(x,y)))->¬¬Sigma f:X->Y. Pi x:X. A(x,f(x)).
So, MLTT *is* compatible with ZFC, and moreover with ZFC+global
choice. As also discussed in the HoTT book, HoTT is compatible with
ZFC too, but *not* with global choice (it violates the univalence
axiom).
>> I realize that many people in this list won't be interested in
>> foundations. But people who write constructive proofs that computers
>> can diggest need them (or, rather, let's say that at least the
>> computers definitely need them).
>
> This point you make is very important to Giovanni Sambin and myself.
>
> Our notion of two-level system as explained in
>
>
http://www.math.unipd.it/~maietti/papers/MaiettiSambin-rev2.pdf
>
> was born exactly to **formalize constructive proofs**
> developed in a language **compatible with that of common mathematical
> practice**
> (at the extensional level)
> **in a trustable intensional type theory*** (at the intensional level)
> which can serve as a base for a proof-assistant and from which we can
> extract
> the desired computational contents (By the way also for us category
> theory has been very useful to study the abstract link between the two
> levels in joint work with Pino Rosolini).
The HoTT people have the same aims, and I can see that there are lots
of common ideas and techniques with what you say, as Thorsten already
hinted.
Martin