coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Luo, Zhaohui" <Zhaohui.Luo AT rhul.ac.uk>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Cc: "Luo, Zhaohui" <Zhaohui.Luo AT rhul.ac.uk>
- Subject: Re: [Coq-Club] Is Coq SN ?
- Date: Mon, 29 Feb 2016 02:21:58 +0000
- Accept-language: en-GB, en-US
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=Zhaohui.Luo AT rhul.ac.uk; spf=None smtp.mailfrom=Zhaohui.Luo AT rhul.ac.uk; spf=Pass smtp.helo=postmaster AT EUR01-VE1-obe.outbound.protection.outlook.com
- Ironport-phdr: 9a23:oX0WxxUKo+79Z2T3dpXTBCaSVpLV8LGtZVwlr6E/grcLSJyIuqrYZhKFt8tkgFKBZ4jH8fUM07OQ6PC/HzJfqsrY+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq8KVPVoD2GP1SIgxBSv1hD2ZjtMRj4pmJ/R54TryiVwMRd5rw3h1L0mYhRf265T41pdi9yNNp6BprJYYAu2pN5g/GPZTCy1jOGQo7uXqswPCRE2B/DFUBm4Ri19DBxXPxBD8RJb49CXg4LlTwi6faIfSULdwEQai5qBrVR6iwHM1Nzc+8HzWzOhti4pBoA+l4RV0hZPXNtLGfMFid7/QKItJDVFKWdxcAnRM
Dear all,
In his PhD thesis in 1994, Goguen has studied the meta-theory of UTT (SN, CR, SR, ...) which is essentially CoC + inductive types + universes (ie, a subset of the current Coq system pCIC after its universe Set became predicative.)
Best regards,
Zhaohui
From: coq-club-request AT inria.fr <coq-club-request AT inria.fr> on behalf of roux cody <cody.roux AT gmail.com>
Sent: 28 February 2016 20:57
To: coq-club AT inria.fr
Subject: Re: [Coq-Club] Is Coq SN ?
Sent: 28 February 2016 20:57
To: coq-club AT inria.fr
Subject: Re: [Coq-Club] Is Coq SN ?
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) of
I 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 ?, 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 ?, 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.