coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: roux cody <cody.roux AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Is Coq SN ?
- Date: Sun, 28 Feb 2016 15:57:07 -0500
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=cody.roux AT gmail.com; spf=Pass smtp.mailfrom=cody.roux AT gmail.com; spf=None smtp.helo=postmaster AT mail-ob0-f170.google.com
- Ironport-phdr: 9a23:U6HSJx37EJen+H4SsmDT+DRfVm0co7zxezQtwd8ZsegVLvad9pjvdHbS+e9qxAeQG96LtLQa1aGP7/mocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC0ILpiavrp8SbSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/JHBK79ZuEzSaFSJDUgKWE8osPx5jfZSg7a/HwBQi0dlRZZS1zO6x3rGI32rzvSue902S3cNsrzG+NnEQ++5rtmHUe7wBwMMCQ0pTna
The SN of CIC + universes is something of a nasty open question at the moment. With recursors instead of fixpoint and no co-induction, it's believed to be indeed strongly normalizing, with Benjamin Werner's PhD serving as reference for the CIC without universes and Luo's thesis for CoC with universes.
There is no "smoking gun" that seems to jeopardize consistency, but a complete write up would be nice.I think part of the issue is that the theory for strong normalization proofs are really not streamlined, which means each individual proof has to do a lot of setup work, which is really discouraging. In particular, there seems to be some resilience to using the "usual" realizability semantics interpretation. There's some work by Hyland, Ong and Ritter on how to fix this, but it hasn't been pushed all the way through, as far as I know.
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.45.6979&rep=rep1&type=pdf
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.45.6979&rep=rep1&type=pdf
http://www.cse.chalmers.se/~abela/talkIHP14.pdf
https://gist.github.com/puffnfresh/8960574
Best,
Cody
On Sun, Feb 28, 2016 at 1:43 PM, Abhishek Anand <abhishek.anand.iitg AT gmail.com> wrote:
However, Coq's implementation (if no bugs) should be weakly normalizing,
which is usually enough for consistency.I thought that for consistency we also need type preservation (along with strong/weak normalization).Coq seems to not have type preservation, as shown in the last 2 slides (25 and 26) ofI just reproduced the above described problem using Coq 8.5:Set Implicit Arguments.CoInductive Inf :=S : Inf -> Inf.CoFixpoint infinity : Inf :=S ( infinity).(** This innocuous looking functionactually causes an unfolding of cofix *)Definition unfold (x : Inf) : Inf :=match x with| S y => S yend.Definition unfoldEq (x:Inf) : x = unfold x.Proof.intros.destruct x as [x'].simpl. exact eq_refl.Defined.(** We make a dummy goal to use the "type of" function *)Goal False.(** [unfoldEq infinity] is of type [infinity = S infinity] *)match type of (unfoldEq infinity) with| ?T => let T' := eval simpl in T in idtac T "," T'end.(**when we compute on [eqq infinity] as shown above, weget [eq_refl] which cannot be of the type[infinity = S infinity] because [S infinity] is not definitionally equal to [infinity]. *)Eval compute in (unfoldEq infinity).(** This is a voilation of type preservation*)
- [Coq-Club] Is Coq SN ?, Bas Spitters, 02/28/2016
- Re: [Coq-Club] Is Coq SN ?, Maxime Dénès, 02/28/2016
- Re: [Coq-Club] Is Coq SN ?, Abhishek Anand, 02/28/2016
- Re: [Coq-Club] Is Coq SN ?, roux cody, 02/28/2016
- Re: [Coq-Club] Is Coq SN ?, Luo, Zhaohui, 02/29/2016
- Re: [Coq-Club] Is Coq SN ?, Thorsten Altenkirch, 02/29/2016
- Re: [Coq-Club] Is Coq SN ?, Frédéric Blanqui, 02/29/2016
- Re: [Coq-Club] Is Coq SN ?, Thorsten Altenkirch, 02/29/2016
- Re: [Coq-Club] Is Coq SN ?, Thorsten Altenkirch, 02/29/2016
- Re: [Coq-Club] Is Coq SN ?, Frédéric Blanqui, 02/29/2016
- Re: [Coq-Club] Is Coq SN ?, roux cody, 02/29/2016
- Re: [Coq-Club] Is Coq SN ?, Jonathan Leivent, 02/29/2016
- Re: [Coq-Club] Is Coq SN ?, Benoît Viguier, 02/29/2016
- Re: [Coq-Club] Is Coq SN ?, Jonathan Leivent, 02/29/2016
- Re: [Coq-Club] Is Coq SN ?, Frédéric Blanqui, 02/29/2016
- Re: [Coq-Club] Is Coq SN ?, Thorsten Altenkirch, 02/29/2016
- Re: [Coq-Club] Is Coq SN ?, Luo, Zhaohui, 02/29/2016
- Re: [Coq-Club] Is Coq SN ?, roux cody, 02/28/2016
- Re: [Coq-Club] Is Coq SN ?, Abhishek Anand, 02/28/2016
- Re: [Coq-Club] Is Coq SN ?, Maxime Dénès, 02/28/2016
Archive powered by MHonArc 2.6.18.