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.
Mike Shulman said:
That isn't the case for any other type constructors that I know of, because they all have a universal property
that isn't the case for positive types though! I don't have anything formal here, but you could probably add some exception in the model that bubbles up to positive types
Um, yes it is? is a coproduct?
the syntactic rules don't force uniqueness: it's a weak colimit
In dependent type theory you can prove that it's a strong colimit, propositionally.
yes, but the propositional here is the key: definitionally, the type doesn't have to behave as a strong colimit
But that's irrelevant to my point. The propositional universal property characterizes the type up to equivalence, so you don't have any freedom in choosing what it should be semantically.
I still disagree about positive types being forced to be colimits in the model: in MLTT with a universe, negative dependent pairs, dependent function types and ⊥, you can surely add an extra inhabitant in the model to the interpretation of ⊥, and propagate it to other type formers by just bubbling it up
Do you mean that for an interpretation of MLTT in Set, for instance, you can choose to be interpreted by a 1-element set rather than a 0-element set? In that case it won't satisfy the elimination rule, since there won't be a map out of it into an empty set.
but what if you can't access any empty set in the model using the syntax? all my types are inhabited, so you won't be able to test for that
the eliminator in the syntax won't let you talk about the empty set of the semantics
A "model" has to satisfy all the rules of the theory. In a model of the theory of groups, you have to be able to multiply any two elements, not just any two elements that are "describable using syntax".
that depends on your interpretation of the universe!
You can try to define a model in some category other than Set that contains only nonempty sets. Maybe that's what you mean by "the intepretation of the universe". But if your definition satisfies the rules of the theory, then your interpretation of will be initial in that category.
you're saying that the eliminator has to be able to talk about "all types", but no, it only talks about things that are in the interpretation of the universe. This in turn is something that you have control over
what's your notion of model for a type theory? CwF?
I don't know if you wrote that before my last comment or afterwards, but my reply to it is what I just said: defining the interpretation of the universe means specifying what category you're working in, and whatever that category is, the interpretation of must be initial in it, even if from an "outside" point of view it has an element.
I think we're talking past each other: when you say it must be initial, you mean that it's initial when "viewed from the inside". But when defining a model, you're defining the interpretation of everyone externally
Being initial is a statement from the outside about some category.
In case this is the confusion, it's true that even semantically there can be a distinction between strict equality (which interprets definitional equality) and homotopy equality (which interprets propositional equality). That usually only starts to matter when you're doing homotopy type theory, but some unusual models could have different equalities even if you don't have homotopy theory in mind. However, in that case the universal property I'm talking about is relative to the homotopy equality, that is relative to the (perhaps -)category that the model describes.
sure, but it's only initial in a category that has "syntactical" flavor: its objects are closed types, morphisms are functions quotiented by propositional proofs of equality
No!
Mike Shulman said:
A "model" has to satisfy all the rules of the theory. In a model of the theory of groups, you have to be able to multiply any two elements, not just any two elements that are "describable using syntax".
So what's your notion of model? CwFs?
Sure, say a CwF.
Of course, the underlying category of contexts involves "strict equality", so the relevant notion of "initial" is in the category "presented" by this category and the identity types.
then the trivial CwF if i'm not mistaken gives you a model where the interpretation of the empty type in the empty context is semantically inhabited
you just interpret the base category as 1, the Ty family as 1 and the Tm family as ... also 1. You should be able to interpret the eliminator of ⊥ in there without any issues
The unique object of the trivial category is initial.
(as well as terminal)
right, but that doesn't constrain its semantic inhabitants, right?
Mike Shulman said:
whatever that category is, the interpretation of must be initial in it, even if from an "outside" point of view it has an element.
Mike Shulman said:
It's interesting that there are multiple ways to construct a universe semantically. That isn't the case for any other type constructors that I know of, because they all have a universal property and hence are uniquely determined up to isomorphism.
Here, you say that to construct semantics for a type theory, all other type formers are completely constrained by their universal properties. I'm arguing that there is freedom when choosing semantic inhabitants of positive types, as opposed to negative types
There are lots of "trivial categories". There's a trivial category where the unique object is the empty set. There's a trivial category where the unique object is a 923-element set. There's a trivial category where the unique object is the real numbers. But what matters categorically is the structure of the category, and saying that an object is initial is a statement only about the structure of the category. It has nothing to do with what the "elements" of that object are in some set-theoretic sense, only about how it is related to other objects of the category by morphisms.
type theories aren't completely reducible to their category of contexts, there is extra structure on top
What do you mean by "semantic inhabitants"?
In CwF-language, do you mean elements of ?
it's getting late here but I'll be happy to continue this conversation tomorrow
Mike Shulman said:
In CwF-language, do you mean elements of ?
yes
Okay. I was not making any claim about that.
What I was claiming is that the interpretation of is an initial object of the category of types, which determines it up to isomorphism in that category.
Josselin Poiret said:
it's getting late here but I'll be happy to continue this conversation tomorrow
Okay, good night!
this is the only meaning I can assign to "semantics" in our case, up to any other equivalent notion of model like natural models
It might be the case in some model that is nonempty even if is initial. But in that case, would also be nonempty for any other initial object since we would have . I was not making any claim about being determined in any "absolute" sense, only that once you fix a model, the interpretation of any given type, including a positive type, is fixed up to isomorphism by its universal property, including the value of in that model (which might, of course, be different from its value in some other model).
36 messages were moved here from #learning: questions > Continuations, parametricity, and polymorphism by Mike Shulman.
but the notion of isomorphism here is internal as well, i.e. you care about having an inhabitant of , for , no?
we agree with each other i think, just not with how to intuitively interpret
Mike Shulman said:
It's interesting that there are multiple ways to construct a universe semantically. That isn't the case for any other type constructors that I know of, because they all have a universal property and hence are uniquely determined up to isomorphism.
my intuition was more from an "implementer" side, where when making normalization models, you have some choice in how you implement positives (even though from the internal pov all the choices are equivalent (but that fact hinges on precisely what kind of semantic equality you choose))
Josselin Poiret said:
but the notion of isomorphism here is internal as well, i.e. you care about having an inhabitant of , for , no?
You could say that, sure, but by that's equivalent to having a context iso .
Josselin Poiret said:
you have some choice in how you implement positives (even though from the internal pov all the choices are equivalent (but that fact hinges on precisely what kind of semantic equality you choose))
So is this the point then?
Mike Shulman said:
In case this is the confusion, it's true that even semantically there can be a distinction between strict equality (which interprets definitional equality) and homotopy equality (which interprets propositional equality). That usually only starts to matter when you're doing homotopy type theory, but some unusual models could have different equalities even if you don't have homotopy theory in mind. However, in that case the universal property I'm talking about is relative to the homotopy equality, that is relative to the (perhaps -)category that the model describes.
Anyway, whether or not you agree with that phrasing of it, I think your statement that "from the internal pov all the choices are equivalent" is sufficient for my point. All I was saying is that universes are different from other type formers, because for universes there are multiple choices that are not equivalent even from the internal pov.