Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] void : Type

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] void : Type


chronological Thread 
  • From: Chad E Brown <cebrown2323 AT yahoo.com>
  • To: Gert Smolka <smolka AT ps.uni-saarland.de>, Coq-Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] void : Type
  • Date: Mon, 2 May 2011 02:34:53 -0700 (PDT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=a2Pstxc4ZNlNQPB4y0v5ionT33pOIU1KzGqWq9JPzt9uMo2pOzHWdm03S5hZVKybowV55gkNFhdf3aX6r8aR74Yam88mTKaXYaWU4c8GWCG+5jPk57TZDrO9il4YoUyrb63v0NTxrqpzyd/ml5asQ7aBvD9677flMYLWk7LcWZI=;

The responses so far provide good answers to question 2, but not question 1.
Why does Coq ignores the explicit ": Type" annotation?

Here is a way to force zero, one and two to be in one of the Type universes.
Is there a simpler way?

Inductive zero : Type := .
Check zero.
===> zero : Prop

Definition zeroT : Type := zero.
Check zeroT.
===> zeroT : Type

- Chad


From: Gert Smolka <smolka AT ps.uni-saarland.de>
To: Coq-Club <coq-club AT inria.fr>
Sent: Mon, May 2, 2011 9:17:59 AM
Subject: [Coq-Club] void : Type

Inductive zero : Type := .
Check zero.
===> zero : Prop

Inductive one : Type := O : one.
Check one.
===> one : Prop

Inductive two : Type := A : two | B : two.
Check two.
===> two : Set

1. Why does Coq ignore my wish to place the types
in one of the universes Type ranges over?

2. Why are zero and one put into Prop while
two is put into Set?

-- Gert








Archive powered by MhonArc 2.6.16.

Top of Page