Skip to Content.
Sympa Menu

coq-club - Re:[Coq-Club]

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re:[Coq-Club]


Chronological Thread 
  • From: Vincent Semeria <vincent.semeria AT gmail.com>
  • To: Vincent Semeria <vincent.semeria AT gmail.com>, coq-club AT inria.fr
  • Subject: Re:[Coq-Club]
  • Date: Sun, 28 Feb 2021 14:16:16 +0100
  • Authentication-results: mail2-smtp-roc.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:uL2J1Baq1gif6SOTdjAvmi//LSx+4OfEezUN459isYplN5qZrs69bnLW6fgltlLVR4KTs6sC17OH9fG+EjBdqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba52IRmsqQjct8YajIRiJ60s1hbHv3xEdvhMy2h1P1yThRH85smx/J5n7Stdvu8q+tBDX6vnYak2VKRUAzs6PW874s3rrgTDQhCU5nQASGUWkwFHDBbD4RrnQ5r+qCr6tu562CmHIc37SK0/VDq+46t3ThLjlSEKPCM7/m7KkMx9lK1UoByjqBJ/zYDaY5ybOuRica7GZ9wWWXBMU9xNWyBdAI6xaZYEAeobPeZfqonwv1QBrRq4BQawGuzvzCNIjWLr06Ik1uQuDxvG3A06ENkTt3nUstT1NKEOXu+ryqnI0S/Pb+hI1jf49ofIaBEhruuXULJ/dMre00gvFwffglqMrozlOiqY2+IQuGeU8+RuT/igi3I7qw5vuDivwN8hhIbHiI4I1F3J6zl0zYk0KNCkSkN2Yt2pHZReuiyEKod7Rt8vTm92tSs+xbALt561cigExpon2xPTdeCLfouL7x/lSe2fLzB4hHd/d7K+gRa/6VKvyvfzV8m1zlZGtC1FksPDtnwV2BzT69SHSvtg/ki6wzqAywfT6uRCLEsplqTbM4YszqAsmpcXq0jOHS/7lF/ogKOLakko4Oel5uXhb777vJGTLZV0hRv7Mqk2msywH+A4Mg8WUmie4+u81bnj8VT+QLVWk/E6i6fZvZ/bKMgBqa65BAhV0okn6xmhFTupzNMYnXwfIFJEfhKIkZTpNknQLPzkCfqzmVehnTdxy/zYI7HtHo/BI3fCnbv5eLZy8U9cyA49zdBF4JJUD6kMIOzyWk/3qNPXEBk5MxCuz+b8Ftp9050RWXiOAqCDK67SvlqI6fguI+mIfoMapDH9K/096/70kXA5gUMdfbWu3ZYPdH+4Ge1mL1yFbnron9cOCnwHvhE+TezvkF2NSyRfZ3e0X6Im5zE0EpiqDYnZRtPlvLvU4ia9FZBQeih9B1WBC3bhP9GaWvEHZSSOZNRslzEeVLGJRIoo1BXovwj/nf4vJe3NvyYcqJjL1d5v5uSVmwth2yZzCpGj0meGQmdo1lgFQjIs3ak39VJ8zFyO17Q+mPFdGMZS7ttGVw47MdjXyOksWIO6YR7IYtrcEAXued6hGzxkFotgke9LWF50HpCZtj6G2iOrB7EPkLnSXc4796vd2z76IMMvki+ahplktEEvR450DUPjnrR2rlGBCIvAkkHfnKGvJ/xFgXz9sVybxG/Lh3l2FQ59VaKfACIab0rS6NPlvwbME+HoBrMgPQ9Mj8WFL/kSZw==

Interesting. It would be nice to have HoTT working with impredicative Prop and the standard library.

However, until this happens, the HoTT library disables Prop and the standard library, which I think should be explained more clearly in HoTT's readme. The readme can then be updated again, to reflect each step of the integration process.

On Sun, Feb 28, 2021 at 1:57 PM Hugo Herbelin <Hugo.Herbelin AT inria.fr> wrote:
Hi,

Maybe others know better, but I'm not aware of inconsistencies between
Coq's impredicative Prop and Homotopy Type Theory (the latter being
taken in the sense of Martin-Löf's type theory + univalence + HITs,
possibly extended with resizing, classical logic, axiom of choice, as
discussed in the HoTT Book). From what I'm aware of, my own bet is
that HoTT and Prop-impredicativity is not a problem and that what
makes hesitating is more that it is understudied territory, i.e. that
the relations between propositional resizing, impredicativity,
hProp-truncation, Prop-truncation, sProp-truncation, classical logic,
etc. need to be investigated more.

In particular, not using Prop in the HoTT library is to my eyes more a
design choice than a real constraint.

Making HoTT compatible with Coq prelude (e.g. by rethinking the
intended model of Type as a hierarchy of hSet and adding a new
univalent hierarchy, as in my previous mail) would have some
advantages as HoTT is one of these developments which contains quite a
lot of contents worth being considered as standard (starting with
useful basic notations, basic properties of equality, basic category
theory, ...).

[More generally, I don't know exactly how to proceed to collect
standard contents dispatched here and there into a single collective
ideally unified place, but it seems to me that for the benefit of the
whole Coq ecosystem, this is something that needs to be done.]

Best,

Hugo

On Sun, Feb 28, 2021 at 11:31:57AM +0100, Vincent Semeria wrote:
> 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
>



Archive powered by MHonArc 2.6.19+.

Top of Page