coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Steven Schäfer <s.schaefer89 AT googlemail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] coq + higher inductive types + proof irrelevance?
- Date: Fri, 27 Jul 2018 11:39:37 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=s.schaefer89 AT googlemail.com; spf=Pass smtp.mailfrom=s.schaefer89 AT googlemail.com; spf=None smtp.helo=postmaster AT mail-it0-f46.google.com
- Ironport-phdr: 9a23:WSlCdhzSgYlqTCjXCy+O+j09IxM/srCxBDY+r6Qd1OMeIJqq85mqBkHD//Il1AaPAd2Fraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HSbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRDqhicJNzA3/mLKhMJukK1VrwmspwBmw4POfI2ZKOZyc6HbcNgHRWRBRMFRVylZD42hc4sAEfQBMvher4blulUBsRu+AgyiBOzx0D9Dm3j73bYg3+Q6DQ7G3BYvEMwAsHvKttX4N6MfXPu6zKnPyjXDYPdW1in46IfScxAhpeuAUq53ccrU0EQiER7OgFuXqYzgJTyV1+INvnCH4OpnT+KvjXAoqwV1ojS12Mgjl5TJipoIxV/e+iV525o1JcC4SE5/e9KrDYVfuieHPIV1WsMvW39ktDo+x7EcupO2fDIGxIo6yxPQcfCKfImF7xT+X+iLOzh4nmhqeLenihay70egzur8W9Gx0FlQrypFlsDAtnER1xDP88SHRPRw80a71TaA0ADT7e5EIUQqmqbBN5EhxbswmoISsUTFACD2hF37gLGKekgg4OSl6OTqbq/4qpOBOIJ4kA7zP6U2lsy6G+s4MwwOX2aB+eS70b3u5Vb5TK9RjvIqkqnWqo7VJcoFqa6jAAJY1p0u6xm4Dzeh39QYmWcILFdfdxKGi4jlIU3BIPf9DfunmVSjjC9rx+zaPr3mGpjCMn/DkK74cblh705c1RE8wMtE55NUD7EBOOj8VlXwtNzeFB85Mha7z/zpCNVnhcsiXjeEBbbcO6fPu3eJ4PguKq+Cftw7ojH4fsM56uDji0gCkl+Rc6Szlc8MLmuzHv1rLUiDMSvEjdAGHmMHuwM/SKrhj1jUAm0bXGq7Q69pvmJzM4mhF4qWHtn80ozE5z+yG9htXk4DD1mNFXnycIDdBaUDbyWdJsJkmz0AE7OmTt14jE38hErB07Nia9Hs1GgAr5u6iop64OrckRw3/D1wSc+a1jPVFjwmriYzXzYzmZtHjwl9x1OEi/UqhvVZEZlS+6sMXFtkc5HbyON+Bpb5XQeTJto=
The propositional truncation of a type "A" is a type "trunc A" with a
constructor "tr : A -> trunc A" and an elimination principle into all
h-propositions (singleton types) "trec : forall B, (forall x y : B, x
= y) -> (A -> B) -> trunc A -> B" with the appropriate beta reduction
rule "trec B H f (tr x) = f x".
From this, together with functional and propositional extensionality,
you can build quotients in the same way as you usually do it in set
theory, as the type of inhabited equivalence classes of an equivalence
relation. The trick is that that the existential quantifier is built
from the propositional truncation of a dependent sum, instead of using
the existential quantifier in Prop.
For example, let "R : A -> A -> Prop" be an equivalence relation. Then
the quotient of A by R can be defined as
Definition quot := { P : A -> Prop & trunc { x : A | P = R x } }.
I think I've seen this in the unimath library, but I'm not sure.
- Steven
2018-07-27 9:57 GMT+02:00 Siddharth Bhat
<siddu.druid AT gmail.com>:
> Could you please expand on "propositional truncation" and what that means?
>
> I googled, and what I gather is that it is some existential witness of
> inhabitation of a type that does not provide an explicit witness?
>
> If so, I don't see how this gives rise to quotients -- could you please give
> me a sketch of the construction?
>
> Thanks,
> siddharth
>
>
> On Fri 27 Jul, 2018, 13:20 Bas Spitters,
> <b.a.w.spitters AT gmail.com>
> wrote:
>>
>> Matthieu and Amin recently went through such questions in the set model of
>> CIC:
>> drops.dagstuhl.de/opus/volltexte/2018/9199/pdf/LIPIcs-FSCD-2018-29.pdf
>>
>> On Fri, Jul 27, 2018 at 9:32 AM, Steven Schäfer
>> <s.schaefer89 AT googlemail.com>
>> wrote:
>> > Hi Abhishek,
>> >
>> > Quotient types exist and proof irrelevance (along with propositional
>> > and functional extensionality) holds in the setoid model of type
>> > theory. The difference to higher-inductive types is that you cannot
>> > add computation rules on paths, since that would give you homotopy
>> > pushouts and thus also the circle and other non-hsets.
>> >
>> > If you are worried about consistency you could also just axiomatize
>> > the "propositional trunctation" (or rather, squash types as in NuPRL)
>> > and then derive quotient types from that together with funext/propext.
>> >
>> > - Steven
>> >
>> > 2018-07-26 23:27 GMT+02:00 Abhishek Anand
>> > <abhishek.anand.iitg AT gmail.com>:
>> >> I understand that UIP (implied by proof irrelevance) is inconsistent
>> >> with
>> >> univalence.
>> >>
>> >> Can higher inductive types (or just some kind of "level 1" quotients
>> >> where I
>> >> don't care about distinguishing equality proofs) be added to Coq
>> >> without
>> >> needing to blacklist the proof irrelevance axiom?
>> >>
>> >> --
>> >> -- Abhishek
>> >> http://www.cs.cornell.edu/~aa755/
>
> --
> Sending this from my phone, please excuse any typos!
- [Coq-Club] coq + higher inductive types + proof irrelevance?, Abhishek Anand, 07/26/2018
- Re: [Coq-Club] coq + higher inductive types + proof irrelevance?, Jason -Zhong Sheng- Hu, 07/27/2018
- Re: [Coq-Club] coq + higher inductive types + proof irrelevance?, Steven Schäfer, 07/27/2018
- Re: [Coq-Club] coq + higher inductive types + proof irrelevance?, Bas Spitters, 07/27/2018
- Re: [Coq-Club] coq + higher inductive types + proof irrelevance?, Siddharth Bhat, 07/27/2018
- Re: [Coq-Club] coq + higher inductive types + proof irrelevance?, Steven Schäfer, 07/27/2018
- Re: [Coq-Club] coq + higher inductive types + proof irrelevance?, Bas Spitters, 07/27/2018
- Re: [Coq-Club] coq + higher inductive types + proof irrelevance?, Steven Schäfer, 07/27/2018
- Re: [Coq-Club] coq + higher inductive types + proof irrelevance?, Siddharth Bhat, 07/27/2018
- Re: [Coq-Club] coq + higher inductive types + proof irrelevance?, Bas Spitters, 07/27/2018
Archive powered by MHonArc 2.6.18.