Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Dependent function type subtyping and contravariant domains

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Dependent function type subtyping and contravariant domains


Chronological Thread 
  • From: Talia Ringer <tringer AT cs.washington.edu>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Dependent function type subtyping and contravariant domains
  • Date: Wed, 2 Mar 2016 13:08:42 -0800
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=tringer AT cs.washington.edu; spf=None smtp.mailfrom=tringer AT cs.washington.edu; spf=None smtp.helo=postmaster AT mail-yk0-f175.google.com
  • Ironport-phdr: 9a23:wrLuCR+4OOx0df9uRHKM819IXTAuvvDOBiVQ1KB91+kcTK2v8tzYMVDF4r011RmSDdqdtKgP0raK+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuStGU0J78jrzus7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cY6Lod8JtLVry/dKAlR5RZCi4nOiY7/p7Frx7GGDeG4noVGl8XlBVFGUCR8Av7WJj8qAPxraxi0TKaPMv5UbcyHzmu8vE4G1fTlC4bOmthoynsgctqgfcDrQ==

Hi all,

I have a question about dependent function types and universe subtyping.

Coq has this rule:

"if E[Γ] ⊢ T =βδιζη U and E[Γ::(x:T)] ⊢ T′ ≤βδιζη U′ then E[Γ] ⊢ ∀ x:T, T′ ≤βδιζη ∀ x:U, U"

Seen here in point five.

The bit that I want to know more about is why we need T = U and not T => U. That is, why is this rule not contravariant on the domain of dependent function types?

In the OPLSS 2011 slides (slide 23), for CoC with a universe hierarchy, we also don't have contravariance over the domain. Yet I've seen other PTS definitions (typically without universes, so I'm not sure if the distinction lies there) which define subtyping in a way that is contravariant for this rule.

I'm curious if this is a deliberate decision since I can't find much about it. That is, would being contravariant over the domain break anything? If so, what in particular? If not, is there a reason that Coq doesn't allow this?

Thanks!

Talia


  • [Coq-Club] Dependent function type subtyping and contravariant domains, Talia Ringer, 03/02/2016

Archive powered by MHonArc 2.6.18.

Top of Page