Want to take part in these discussions? Sign in if you have an account, or apply for one below
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
I hate to ask a stupid question, but the statement of function extensionality is confusing to me. Does it have something to do with the potential discrepancy between the exponential of an identity type , and the identity type of an exponential ?
In other words, one can exhibit a map , so that a term gives rise to a map , i.e., a family of paths in continuously varying over . But there’s no obvious way (to me) of getting from to without some further assumption. Is that the idea? Is the idea even stronger: that these two objects should be equivalent?
Somewhat bothersome to me is the notation
happly f g p: forall x: X, f x == g x
because I think of “forall” as an operator applied to propositions or (-1)-truncated objects. That only adds to my confusion.
Mike will give the expert reply, but I’ll try to reply anyway.
I think of “forall” as an operator applied to propositions or (-1)-truncated objects.
The definition directly extends, though to all types. Didn’t you and me edit the diagram at universal quantifier that shows, conversely, how the general definition restricts to -types?
This is, anyway, what is meant here:
forall x : X, P x
is interpreted as the type of internal sections of the dependent type .
Oh, right, of course. So a term of that type would simply be a section of (in this case) , which in turn would amount to a map which projects down to the pair . Which gives a term which projects to the term that names the pair , as I was suggesting in #1. We are trying to lift that term through the map , if I’m not mistaken.
I think your understanding is right, Todd. Function extensionality is roughly “if the values of two functions are equal at every point, then the two functions are equal as functions”. There are several different versions of this. I call “naive” function extensionality the assertion that there is some (arbitrary) map over ; this implements the quoted statement and is sufficient in extensional type theory—but in homotopy type theory we want to say something stronger, that (as you said) those types should be equivalent. I call that “strong” function extensionality.
In fact, it turns out that from naive function extensionality (for dependent functions, i.e. spaces of sections) we can prove strong function extensionality! I think this observation is originally due to Voevodsky; Peter Lumsdaine’s HoTT blog post linked at function extensionality discusses the proof (though it may not be so readable for the non-initiate (-: ).
Thanks, Mike! I find this formulation much easier to follow. Can we arrange an algebra map , where the algebra structure on is the expected (in the slice over )?
Follow-up: if there is an interval object , according to your (and Peter’s?) higher inductive type definition, then can we say and are equivalent? I didn’t quite see that in your blog post, but it would explain function extensionality pretty naturally. :-)
I expect that the use of forall
here derives from its use in Coq, which I’ve never really liked. One can always read it as a dependent product.
I have tried to incorporate the above discussion into function extensionality. This should however be checked by an expert.
I have added to your addition some hyperlinks, and mentioned, with link, the dependent product explicitly.
Todd, what do you mean by “algebra map”? Algebra for what?
And yes, and are equivalent… but only because both of them are equivalent to . Unfortunately, we can’t in the type theory make into a fibration (dependent type), so we can’t show directly that it has the same universal property as . But that intuition is certainly what motivated the proof that an interval implies funext.
@Toby: I didn’t like Coq’s use of forall
for dependent products at first either. But it’s grown on me. After all, what is an element of the dependent product ? It consists, of for all , an element of . In everyday language, we do use “for all” and “for each” to refer to stuff and structure, not just properties.
Mike, I meant algebra in the sense that is an “initial algebra” (inductive type) for the endofunctor constant at . Have I made a mistake somewhere?
And yes, I did mean to ask whether and were equivalent as fibrations, but you’ve answered that; thanks.
I meant algebra in the sense that is an “initial algebra” (inductive type)
Ah, I see. In that case, I think it depends on what you mean by “arrange” — since function extensionality is, after all, something that we need to add to the type theory. We can assert that there exists such an algebra map; I think this is one of the variants of function extensionality considered in Richard Garner’s paper. The map that we get from naive or strong funext, however, is not a strict algebra map (though it is a weak algebra map, i.e. up to homotopy).
Mike, thanks very much for the information. “Arrange” meant starting from a weaker form of function extensionality (e.g., mere existence of a map in the slice over , as you were saying), is there (“can we arrange”) such a map with even nicer properties like being an algebra map? The idea I had in mind at the time of writing is that if the specified algebra map has a section which is an algebra map, then those two algebra maps form an equivalence between and .
Does the edit I made at function extensionality look alright to you?
Ah, I see.
I don’t quite understand the remark “(although this can be derived from the global element formulation by using the Yoneda lemma together with currying and uncurrying tricks)”. Can you elaborate?
Mike,
I have to admit that I didn’t check this super-carefully. Given a map in , I want to produce a map in the same category; with fingers crossed, you get back the first map (or at least something equivalent to the first map) when you post-compose with the algebra map .
Curry the first map to get a map or equivalently a map in the slice . By the global elements formulation of function extensionality (1), we can lift this to a map . (Remark that liftings in the underlying category are liftings in slices.) Now post-compose this with the canonical map to get a map , again in this slice. Finally, we can uncurry this to arrive at a map , this time in the slice over .
Now I think when you post-compose with , you get something equivalent to the map we started with. This ought to be deducible by considering as an initial algebra (2). Namely, there may be various algebra maps , e.g., the evident string of maps
or the evident string of maps
but any two such algebra maps are equivalent. Applied to the global element , the first string sends it to . The second string sends it to the value of the map applied to . When you put all this together in the uncurried picture, where uncurries to and to , you should get the first sentence of this paragraph, unless I’ve goofed somewhere.
Finally, in Yoneda fashion, apply all this to the case where is the identity map on .
Notes:
(1) “Global elements formulation of function extensionality”, that you can lift elements through , is the statement that I get when I take what was written on that page (in the Definition section, before my edit) literally, even though, as I suggested in my edit, I don’t think we want to constrain ourselves to global elements. The argument I have tried to give here purports to derive a stronger-looking statement from the global elements formulation.
(2) I have to say that a lot of this stuff only made sense to me after your first private email to me, explaining the initial algebra or inductive type meaning of identity types – that together with your Math Camp notes on induction for equality. For example, all the type-theoretic stuff about dependent elimination, , etc., were things I didn’t grok at all before placing it in the simple and clean framework of initial algebras, which is something I can really sink my teeth into! Your reaction in #9 suggests that I am expressing myself in ways that might be considered idiosyncratic to the HoTT experts, but anyway “initial algebras” have become for me a vital key of entry into this area, and I’m not sure why others aren’t expressing themselves more in this kind of way.
Induction over equality is really mind-blowing, and much more wonderful than the invention of sliced bread! You grow up thinking that equality is this simple and obvious thing, but it sometimes seems there is nothing in mathematics so simple that you can’t make something of it on a much deeper level. :-)
Okay, I think I believe that. Thanks!
Global elements formulation of function extensionality”… is the statement that I get when I take what was written on that page (in the Definition section, before my edit) literally
Ah, I see. Actually, anything which is “said in type theory” is automatically “internalized”. So even though the statement in type theory of function extensionality looks as though it is referring only to global elements, actually it is referring to arbitrary elements, Yonedified, just as in any other sort of internal categorical logic. I see that this is not very clear from the current state of the page, however!
Your reaction in #9 suggests that I am expressing myself in ways that might be considered idiosyncratic to the HoTT experts
I wouldn’t read that much into it; I just didn’t draw the connection between the words. Perhaps I was having an off day. (-: Maybe type theorists don’t talk so much about initial algebras explicitly when doing pure type theory (as opposed to its categorical semantics), but initial algebras are also a big part of the way I think about inductive types, and almost always the way that I try to explain them to homotopy theorists and category theorists. I think this may have even become more true for me over the past year or so.
This might be a good time to mention that I’ve posted the slides from my talk about higher inductive types at the joint meetings homotopy theory session. Since this was a 20min talk for homotopy theorists without any knowledge of type theory, it necessarily skims quite lightly over the surface. But note the frequent use of initial algebras. (-:
Induction over equality is really mind-blowing, and much more wonderful than the invention of sliced bread!
I agree entirely!
1 to 15 of 15