You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.
Where are universe essentially used in Martin-Lof type theory? I understand you need a Universe type to state the univalence axiom in HoTT but it seems to me one can do much of non-homotopic type theory without universes.
Alexander Gietelink Oldenziel said:
Where are universe essentially used in Martin-Lof type theory? I understand you need a Universe type to state the univalence axiom in HoTT but it seems to me one can do much of non-homotopic type theory without universes.
You can't even prove without them :smile:
e.g. a verbose version of the proof in coq:
Definition one_ne_zero : 1 ≠ 0 :=
λ (p : 1 = 0),
match p as _ in _ = zero return match zero return Type with
| 0 => False
| S _ => IDProp
end with
| eq_refl => idProp
end.
The match in the return
requires a universe (here, Type
)
I've thought about a scheme without a closed universe type term, but with a more direct notion of polymorphism, and you'd have a type code interpretation operator that takes a term in a context with the universe code primitives as variables of some polymorphically bound T. Not sure it actually gains anything but it's always annoyed me that type codes don't compute and yet we pretend they're values :tongue:
Alexander Gietelink Oldenziel said:
Where are universe essentially used in Martin-Lof type theory? I understand you need a Universe type to state the univalence axiom in HoTT but it seems to me one can do much of non-homotopic type theory without universes.
Besides the use in characterizing identity types mentioned above by Shea Levy, universes are used to define structures and constructions on them, and hence they're crucial for category theory.
As a simple example, the type of pointed sets (relative to a universe) can be defined as , where is a universe of sets. (In HoTT, this would itself be a sigma-type over the universe; in MLTT with UIP, it would just be the universe.)
The type of groups would be defined as , etc.
Shea Levy said:
Alexander Gietelink Oldenziel said:
Where are universe essentially used in Martin-Lof type theory? I understand you need a Universe type to state the univalence axiom in HoTT but it seems to me one can do much of non-homotopic type theory without universes.
You can't even prove without them :smile:
it's possible to give a large elimination rule w/o a universe!
e.g., image.png
Shea Levy said:
Alexander Gietelink Oldenziel said:
Where are universe essentially used in Martin-Lof type theory? I understand you need a Universe type to state the univalence axiom in HoTT but it seems to me one can do much of non-homotopic type theory without universes.
You can't even prove without them :smile:
Okay... this confuses me a little.
My understanding is that dependent type theories are modelled by fibrations (with extra structure), but most of these fibrations do not have universes I believe. E.g., I don't think the codomain fibration of a topos has a universe.
How does this work?
@Alexander Gietelink Oldenziel If you don't have any universes (and no large eliminations), then you can have a model where, intuitively, non-empty types are modeled by a singleton, while empty types are modeled by the empty type. The reference is this 1988 JSL article by Jan Smith.
And I think universes are often taken as part of the "extra stuff" you mention, as are -types, dependent sums, ...
Ulrik Buchholtz said:
Alexander Gietelink Oldenziel If you don't have any universes (and no large eliminations), then you can have a model where, intuitively, non-empty types are modeled by a singleton, while empty types are modeled by the empty type. The reference is this 1988 JSL article by Jan Smith.
So I think I understand this. What I don't understand: the categorical semantics of Martin-Lof type theory in a topos should be (more or less?) the codomain fibration of the topos. However, I don't think that this fibration has a universe?
just because a system has a semantics and something is true in that semantics, it doesnt mean the thing is derivable in the system
or, wait, are you asking how to model universes in that semantics?
@Alexander Gietelink Oldenziel I think that in order to interpret MLTT with universes in a topos (or rather in the codomain fibration of the topos) you need to ask for (suitable) object classifiers on your topos. In the case of I think it correspond to the assumption that you have Grothendieck universes
Kenji Maillard said:
Alexander Gietelink Oldenziel I think that in order to interpret MLTT with universes in a topos (or rather in the codomain fibration of the topos) you need to ask for (suitable) object classifiers on your topos. In the case of I think it correspond to the assumption that you have Grothendieck universes
Wait, you are saying we need inaccesible cardinal (which I believe is equivalent to Grothendieck universes?) to have a categorical semantics in topoi for ML-type theory? That sounds quite worrisome. =D
sarahzrf said:
or, wait, are you asking how to model universes in that semantics?
Yes. My understanding is that the 'correct/natural/canonical' semantics of ML-type theory is some variant of a topos.
(and an $\infty$-topos for HoTT). So how do we interpret the apparently essential Universe of ML-type theory in a given topos (or more precisely, some variant of its codomain fibration)?
well, it's not essential, just quite useful
but yes, i believe you generally aren't going to be able to interpret MLTT with a universe in an arbitrary elementary topos
(actually, MLTT should morally be interpretable in any locally cartesian closed category; elementary topoi just give an abundant supply of those)
iirc, the semantics of a universe is indeed going to be some kind of, well, semantical universe—something that behaves akin to an inaccessible cardinal
Why would that be worrisome ? MLTT already has good enough syntactic properties (strong-normalization, decidability of conversion and type checking) to stand on its own independently of a not-so-well suited set-theoretic model
but note that you should certainly be able to give semantics in topoi other than Set, where such universes may be easier to come by
i'm not terribly knowledgable on this topic, but im pretty sure that there are methods based on realizability that let you construct nice categories, particularly topoi, that model useful and unusual universe-y stuff
i seem to recall that the effective topos believes itself to contain a non-posetal complete small category
(note that the theorem which states that such a thing can't exist hinges on LEM—it doesn't go through in the effective topos!)
sarahzrf said:
i seem to recall that the effective topos believes itself to contain a non-posetal complete small category
Indeed, there are two papers discussing this: "A Small Complete Category" by Hyland and "The Discrete Objects in the Effective Topos" by Hyland, Robinson and Rosolini.
ah, i had this one open :-) image.png
i shd probably read it at some point...
Kenji Maillard said:
Why would that be worrisome ? MLTT already has good enough syntactic properties (strong-normalization, decidability of conversion and type checking) to stand on its own independently of a not-so-well suited set-theoretic model
I wasn't sure whether ' worrisome' is the right choice of words. Certainly for MLTT as a syntactic formal system there is no problem whatsoever.
But for the claim that the internal language of a topos is MLTT, I do find this peculiar...
more like MLTT w/ a universe of propositions
but not a universe of types
i guess there's some "stack semantics" which might be relevant to that though... but i never got very far into that one before getting distracted >_<
er, i suppose stack semantics is relevant to quantification over types, less so to internalizing that as an instance of ordinary quantification
(...or maybe it is; i wouldnt know since i havent, yknow, read about it :sweat_smile:)
Alexander Gietelink Oldenziel said:
But for the claim that the internal language of a topos is MLTT, I do find this peculiar...
Yes that claim is inadequate: on the one hand you need to add the structure of a universe to your topos to interpret the "usual" MLTT with a universe, on the other hand a topos is proof-irrelevant and satisfy function extensionality that you should then add to your type theory (it agrees with the original extensional variant of MLTT with equality reflection though)
@Alexander Gietelink Oldenziel MLTT doesn't have a subobject classifier, so universes get used for some things that could be done with one of those instead, because they are the smallest classifier of and , basically.
A subobject classifier actually is a sort of universe, arguably. So topoi do have universes in that sense. Just a different universe than MLTT.
Also, a subobject classifier seems to be a much stronger assumption than the universe in MLTT.