Discussion of Homotopy Type Theory and Univalent Foundations
 help / color / mirror / Atom feed
* computing K
@ 2017-04-25  9:46 Michael Shulman
  2017-04-25 13:17 ` [HoTT] " Thomas Streicher
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Michael Shulman @ 2017-04-25  9:46 UTC (permalink / raw)
  To: HomotopyT...@googlegroups.com

Here is a little observation that may be of interest (thanks to
Favonia for bringing this question to my attention).

The Axiom K that is provable using unrestricted Agda-style
pattern-matching has an extra property: it computes to refl on refl.
That is, if we define

K: (A : Type) (x : A) (p : x == x) -> p == refl
K A x refl = refl

then the equation "K A x refl = refl" holds definitionally.  As was
pointed out on the Agda mailing list a while ago, this might be
considered a problem if one wants to extend Agda's --without-K to
allow unrestricted pattern-matching when the types are automatically
provable to be hsets, since a general hset apparently need not admit a
K satisfying this *definitional* behavior.

However (this is the perhaps-new observation), in good
model-categorical semantics, such a "computing K" *can* be constructed
for any hset.  Suppose we are in a model category whose cofibrations
are exactly the monomorphisms, like simplicial sets or any Cisinski
model category.  If A is an hset, then the map A -> Delta^*(PA) (which
type theoretically is A -> Sigma(x:A) (x=x)) is a weak equivalence.
But it is also a split monomorphism, hence a cofibration; and thus an
acyclic cofibration.  Therefore, we can define functions by induction
on loops in A that have definitionally computing behavior on refl,
which is exactly what unrestricted pattern-matching allows.

Mike

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-04-28  4:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-25  9:46 computing K Michael Shulman
2017-04-25 13:17 ` [HoTT] " Thomas Streicher
2017-04-25 14:10   ` Favonia
2017-04-25 22:05 ` Martin Escardo
     [not found] ` <f9cd4d85-a186-f228-cdc2-75ea4e434e0e@cs.bham.ac.uk>
2017-04-25 23:08   ` Michael Shulman
2017-04-26 20:40     ` Floris van Doorn
2017-04-26 21:33       ` Floris van Doorn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).