Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] question about universes and equalities

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] question about universes and equalities


Chronological Thread 
  • From: Jason Gross <jasongross9 AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] question about universes and equalities
  • Date: Mon, 09 May 2016 21:12:42 +0000
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jasongross9 AT gmail.com; spf=Pass smtp.mailfrom=jasongross9 AT gmail.com; spf=None smtp.helo=postmaster AT mail-ob0-f172.google.com
  • Ironport-phdr: 9a23:LCGr8RYDSN/+RB20P0y8xuf/LSx+4OfEezUN459isYplN5qZpc+ybnLW6fgltlLVR4KTs6sC0LqH9fm6EjVcv96oizMrTt9lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9HOnpAIma153xjLDjvcSJKFwU2nKUWvBbElaflU3prM4YgI9veO4a6yDihT92QdlQ3n5iPlmJnhzxtY+a9Z9n9DlM6bp6r5YTGfayQ6NtRrtBST8iLmod5cvxtBCFQxHcyGEbVzA0mwFPBUDq9hbhRd+lsCLhsexywi6BJpzeQrU9WDDk5KBuHky7wBwbPiI0pTmEwvd7i7hW9Uqs

You're playing with fire here.  Consider the inductive type
Inductive foo (A : Type) (x : A) : A -> Type := Build_foo (y z : A) : x <> y -> x <> z -> y <> z -> foo A x x.

Then [foo Set True True] is inhabited (let y be False and z be bool), but [foo Prop True True] contradicts prop_extensionality+LEM and so cannot be inhabited.

What rule for universes of inductive types can you formulate that permits what you want for equality but forbids collapsing [foo Set True True] is to [foo Prop True True]?

On Mon, May 9, 2016, 4:01 PM Jonathan Leivent <jonikelee AT gmail.com> wrote:


On 05/09/2016 03:48 PM, Stefan Monnier wrote:
>> Note that [@eq Type@{i} A B -> @eq Type@{j} A B] does not hold for [i > j],
> Hmm.. which part of Coq's typing rules cause this?
>
>
>          Stefan

I'd just like to make it go away.  Specifically, I'd like [@eq Type@{i}
A B] to reduce to [@eq Type@{j} A B] where j is the minimum permissible
level considering A and B.

I guess one could have a type theory where some things are provably
equal at higher levels but not at lower ones.  But, such a thing seems
quite bizarre.

-- Jonathan




Archive powered by MHonArc 2.6.18.

Top of Page