Some days ago at the HoTT/UF workshop in Warsaw (which was a great event!), I have talked about functions out of truncations. I have focussed on the propositional truncation , and I want to write this blog post in case someone could not attend the talk but is interested nevertheless. There are also my slides and the arXiv paper.
The topic of my talk can be summarised as
Question: What is the type ?
This question is very easy if is propositional, because then we have
Partial answer (1): If is propositional, then
by the usual universal property, with the equivalence given by the canonical map. Without an assumption on , it is much harder.
The rest of this post contains a special case which already contains some of the important ideas. It is a bit lengthy, and in case you don’t have time to read everything, here is the
Main result (general universal property of the propositional truncation).
In a dependent type theory with at least , -, -, and identity types, which furthermore has Reedy -limits (“infinite -types”), we can define the type of coherently constant functions as the type of natural transformations between type-valued presheaves. If the type theory has propositional truncations, we can construct a canonical map from to . If the type theory further has function extensionality, then this canonical map is an equivalence.
If is known to be -truncated for some fixed , we can drop the assumption of Reedy -limits and perform the whole construction in “standard syntactical” HoTT. This describes how functions can be defined if is not known to be propositional, and it streamlines the usual approach of finding a propositional with and .
Here comes the long version of this blog post. So, what is a function ? If we think of elements of as anonymous inhabitants of , we could expect that such a is “the same” as a function which “cannot look at its input”. But then, how can we specify what it means to “not look at its input” internally? A first attempt could be requesting that is weakly constant, . Indeed, it has been shown:
Partial answer (2): If is a set (h-set, -truncated), then , where the function from left to right is the canonical one.
It is not surprising that we still need this strong condition on if we want weak constancy to be a sufficient answer: just throwing in a bunch of paths, which might or might not “fit together” (we just don’t know anything) seems wrong. Indeed, from Mike’s recent construction, we know that the statement does become false (contradicts univalence) without this requirement.
Given a function and a proof , we can try to fix the problem that the paths given by “do not fit together” by throwing in a coherence proof, i.e. an element of . We should already know that this will introduce its own problems and thus not fix everything, but at least, we get:
Partial answer (3): If is -truncated, then , again given by a canonical map from left to right.
In my talk, I have given a proof of “partial answer (3)” via “reasoning with equivalences” (slides p. 5 ff). I start by assuming a point . The type is then equivalent to the following (explanation below):
In the above long nested -type, the first line is just the that we start with. The second line adds two factors/-components which, by function extensionality, cancel each other out (they form a singleton). The same is true for the pair in the third line, and for the pair in the fourth line. Lines five and six look different, but they are not really; it’s just that their “partners” (which would complete them to singletons) are hard to write down and, at the same time, contractible; thus, they are omitted. As is assumed to be a -type, it is easy to see that the -components in lines five and six are both propositional, and it’s also easy to see that the other -components imply that they are both inhabited. Of course, the seventh line does nothing.
Simply by re-ordering the -components in the above type, and not doing anything else, we get:
By the same argument as before, the components in the pair in line two cancel each other out (i.e. the pair is contractible). The same is true for line three. Line four and five are propositional as is -truncated, but easily seen to be inhabited. Thus, the whole nested -type is equivalent to .
In summary, we have constructed an equivalence . By going through the construction step-by-step, we see that the function part of the equivalence (map from left to right) is the canonical one (let’s write ), mapping to the triple . Before we have started the construction, we have assumed a point . But, and this is the crucial observation, the function does not depend on ! So, if the assumption implies that is an equivalence, then is already enough. Thus, we have . We can move the -part to both sides of the equivalence, and on the right-hand side, we can apply the usual “distributivity of and (or )”, to move the into each -component; but in each -component, the gets eaten by an (we have that and are equivalent), which gives us the claimed result.
The strategy we have used is very minimalistic. It does not need any “technology”: we just add and remove contractible pairs. For this “expanding and contracting” strategy, we have really only used very basic components of type theory (, , identity types with function extensionality, propositional truncation, but even that only in the very end). If we want to weaken the requirement on by one more level (i.e. if we want to derive a “universal property” which characterises if is -truncated), we have to add one more coherence condition (which ensures that the -component is well-behaved). The core idea is that this expanding and contracting strategy can be done for any truncation level of , even if is not known to be -truncated at all, where the tower of conditions becomes infinite. I call an element of this “infinite -type” a coherently constant function from to .
The idea is that the -components and and we used in the special case can be seen as components of a natural transformation between -truncated semi-simplicial types. By semi-simplicial type, I mean a Reedy fibrant diagram . By -truncated semi-simplicial types, I mean the “initial segments” of semi-simplicial types, the first three components as described here.
The first diagram we need is what I call the “trivial semi-simplicial type” over , written , and its initial part is given by , , and . If we use the “fibred” notation (i.e. give the fibres over the matching objects), this would be , , . In the terminology of simplicial sets, this is the -coskeleton of [the diagram that is constantly] .
The second important diagram, I call it the equality semi-simplicial type over , is written . One potential definition for the lowest levels would be given by (I only give the fibres this time): , , . This is a fibrant replacement of . (We are lucky because is already fibrant; otherwise, we should have constructed a fibrant replacement as well.)
If we now check what a (strict) natural transformation between and (viewed as diagrams over the full subcategory of with objects ) is, it is easy to see that the -component is exactly a map , the -component is exactly a proof , and the -component is just a proof . (The type of such natural transformations is given by the limit of the exponential of and .)
However, even with this idea, and with the above proof for the case that is -truncated, generalising this proof to the infinite case with infinitely many coherence conditions requires some ideas and a couple of technical steps which, for me, have been quite difficult. Therefore, it has taken me a very long time to write this up cleanly in an article. I am very grateful to the reviewers (this work is going to appear in the post-proceedings of TYPES’14) and to Steve (my thesis examiner) for many suggestions and interesting connections they have pointed out. In particular, one reviewer has remarked that the main result (the equivalence of coherently constant functions and maps out of the truncation ) is a type-theoretic version of Proposition 126.96.36.199 in Lurie’s Higher Topos Theory; and Vladimir has pointed out the connection to the work of his former student Alexander Vishik. Unfortunately, both are among the many things that I have yet to understand, but there is certainly a lot to explore. If you can see further connections which I have not mentioned here or in the paper, then this is very likely because I am not aware of them, and I’d be happy to hear about it!