coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Vincent Semeria <vincent.semeria AT gmail.com>
- To: coq-club AT inria.fr
- Cc: Thorsten Altenkirch <t.altenkirch AT googlemail.com>
- Subject: Re:[Coq-Club]
- Date: Sun, 28 Feb 2021 11:31:57 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=vincent.semeria AT gmail.com; spf=Pass smtp.mailfrom=vincent.semeria AT gmail.com; spf=None smtp.helo=postmaster AT mail-ot1-f46.google.com
- Ironport-phdr: 9a23:PN8LPxPpI0/CzmaCWuIl6mtUPXoX/o7sNwtQ0KIMzox0I/74rarrMEGX3/hxlliBBdydt6sVzbuK+P29EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCe5bL9oKBi7ogrdu8kWjIB/Nqs/1xzFr2dSde9L321oP1WTnxj95se04pFu9jlbtuwi+cBdT6j0Zrw0QrNEAjsoNWA1/9DrugLYTQST/HscU34ZnQRODgPY8Rz1RJbxsi/9tupgxCmXOND9QL4oVTi+6apgVQTlgzkbOTEn7G7Xi9RwjKNFrxKnuxx/2JPfbIWMOPZjYq/RYdYWSGxcVchTSiNBGJuxYIQBD+UDPehWoYrzqUYQoxSiHgSjHv/jxyVSi3PqwaE30eIsGhzG0gw6GNIOtWzZo9r0NKcUTe+60q/IzSneZP1Lxzj97ZbHcgogof6WQLl9dtTRyUgpFwzZkFqQr5DlMymO1usTtmiU8fBgVeO1hGM8pAFxpyKgxsYoioXTmo0VzVXE+Dx/zY0oKtK2VFR1bsS4EJtMqS6aLY12T9stTW9mpSo31KMLtIK0cSUL1JkqxR3SZv+IfoWG/B/vSeKcLCt2iX97fL+yiBi//0igxOPyVse5zEhGojZGn9TPsH0GyhLd6s+CSvRn/0eh3y6C2BrJ6uBLIEA0i7DXK5k7wr4/jpYTvkXDHjP2mEXrl6CabFkr+u+t6+nhf77opYecOpdqhg3iNqkigM+yDOQiPgQQQmSX5f6w2bLi8ED/Xb5ElOc5krPDv5DfPckbprC2AwtS0os77hawFTam0NABkXkAMFJJZQuLj4bmNlzPOvz4AvC/g1OjkDdv2f/KJKHuApLILnTbkbfhe6hy61JExQYt0dxS44hYB7IBLf7pREP9qcDUAgU2PgG12+rnDc9y1oIaWWKBGK+ZN6bSvEeW5uIuJemDeJEauDDhK/Q//P7hk3o5lkEHfamox5Qac3+4HvF8LEWYZXrgmMsOEWAPvgYmVuzllEWCUSJPZ3a1R68z+jY7CJu/AYjfQoCtnaeO0TygHpxWY2BGEkqDHW3pd4WCQfcMaTidLtVvkjweBvCdTNoq0gjrvwvnwZJmKPDV82sWr8HNzt9wstPSkxo/8yA8NMmY3nuMRikggGIOTDIwwOZkrElw0FaK+ad9iv1cU9dU4qUaAU8BKZfAwrkiWJjJUQXbc4LMEQ7+G4n0MXQKVts0huQ2TQNlAdz710LM2iOrB/kekLnZXMVloJKZ5GD4IoNG81iD0aAgi1c8Rc4WbD+pg6d+807YAIubyhzExZbvTrwV2Wv2zEnGzWeKuxsFAgt5UKGAWmxGI0WK85L24UTNS7LoArMiYFNM
Copying section 6 in the readme would clarify things indeed. The readme is currently misleading, because Coq without Prop and without the standard library is not Coq.
Besides section 6 can be rephrased shortly, with something like "HoTT is not compatible with Coq's Prop sort, so equality was redefined in sort Type (compiler switch indices-matter) and the standard library is not usable".
On Sun, Feb 28, 2021 at 11:06 AM Bas Spitters <b.a.w.spitters AT gmail.com> wrote:
The README links to the article giving background of the design of the library.
These issues are documented in sec6 here:
https://arxiv.org/abs/1610.04591
I'm not sure copying them to the README would clarify things.
On Sun, Feb 28, 2021 at 10:40 AM Vincent Semeria
<vincent.semeria AT gmail.com> wrote:
>
> Hi Hugo.
>
> Is indices-matter the only compiler switch in HoTT that makes it different from standard Coq? It would be good to list all those switches in HoTT's readme page
> https://github.com/HoTT/HoTT
> which currently only says
> "The HoTT library is a development of homotopy-theoretic ideas in the Coq proof assistant."
>
> On Tue, Feb 23, 2021 at 4:03 PM Hugo Herbelin <Hugo.Herbelin AT inria.fr> wrote:
>>
>> [Coq-Club] Parametricity Axiom
>> Reply-To:
>> In-Reply-To: <DB7PR06MB59609EB3EBDF565194064FDCA4809 AT DB7PR06MB5960.eurprd06.prod.outlook.com">DB7PR06MB59609EB3EBDF565194064FDCA4809 AT DB7PR06MB5960.eurprd06.prod.outlook.com>
>>
>> Hi,
>>
>> Indeed that would be the case in HoTT but the thing here is that Coq
>> is unfortunately not "fully compatible" with HoTT, even with Prop =
>> HProp in mind, since by default, "indices do not matter": in vanilla
>> Coq, all equalities land in Prop, even say "bool = bool", while, to
>> comply with HoTT, equality should not be Prop-truncated. [To avoid
>> Prop-truncation, there is the option -indices-matter (used in the HoTT
>> library). In particular, it prevents proof-irrelevance to imply
>> UIP_refl.]
>>
>> Incidentally, there is an idea in the air to make Coq compatible with
>> univalence (and classical logic) without having to switch option
>> -indices-matter on. This would be to reinterpret each existing Type(n)
>> as HSet(n) and to add a new hierarchy, say Univ, standing for the
>> usual Martin-Löf's universes, so that indices matter can be on by
>> default without incompatibilities. Then, univalence would be stated in
>> Univ. I don't know what others think.
>>
>> Best,
>>
>> Hugo
>>
>> On Tue, Feb 23, 2021 at 01:44:26PM +0000, Thorsten Altenkirch wrote:
>> > No it doesn't as long as Prop means HProp (at most one inhabitant). Classical logic is consistent with univalence.
>> >
>> > This is different if you say "forall P : Type, P \/ ~P, because then you can use Hedberg's theorem to show that all tyoes have a propositional equality and this does contradict univalence.
>> >
>> >
>> >
>> > On 20/02/2021, 22:06, "coq-club-request AT inria.fr on behalf of Daniel Schepler" <coq-club-request AT inria.fr on behalf of dschepler AT gmail.com> wrote:
>> >
>> > On Fri, Feb 19, 2021 at 4:34 PM Maximilian Wuttke <mwuttke97 AT posteo.de> wrote:
>> > > > Variable classic_dec : forall P : Prop, {P} + {~P}.
>> > > > Variable UIP_refl : forall (X : Type) (x : X) (H : x = x), H = eq_refl.
>> >
>> > Incidentally, classic : forall P : Prop, P \/ ~P implies proof
>> > irrelevance, and therefore as a corollary classic_dec implies
>> > UIP_refl.
>> > --
>> > Daniel Schepler
- Re:[Coq-Club], Hugo Herbelin, 02/23/2021
- Re:[Coq-Club], Vincent Semeria, 02/28/2021
- Re:[Coq-Club], Bas Spitters, 02/28/2021
- Re:[Coq-Club], Vincent Semeria, 02/28/2021
- Re:[Coq-Club], Hugo Herbelin, 02/28/2021
- Re:[Coq-Club], Vincent Semeria, 02/28/2021
- Re:[Coq-Club], Bas Spitters, 02/28/2021
- Re:[Coq-Club], Pierre-Marie Pédrot, 02/28/2021
- Re:[Coq-Club], Bas Spitters, 02/28/2021
- Re:[Coq-Club], Hugo Herbelin, 02/28/2021
- Re:[Coq-Club], Pierre-Marie Pédrot, 02/28/2021
- Re:[Coq-Club], Bas Spitters, 02/28/2021
- Re:[Coq-Club], Vincent Semeria, 02/28/2021
- Re:[Coq-Club], Michael Shulman, 02/28/2021
- Re:[Coq-Club], Hugo Herbelin, 02/28/2021
- Re:[Coq-Club], Michael Shulman, 02/28/2021
- Re:[Coq-Club], Hugo Herbelin, 02/28/2021
- Re:[Coq-Club], Hugo Herbelin, 02/28/2021
- Re:[Coq-Club], Vincent Semeria, 02/28/2021
- Re:[Coq-Club], Bas Spitters, 02/28/2021
- Re:[Coq-Club], Vincent Semeria, 02/28/2021
Archive powered by MHonArc 2.6.19+.