Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] the type of [sum]

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] the type of [sum]


Chronological Thread 
  • From: Daniel Schepler <dschepler AT gmail.com>
  • To: Jason Gross <jasongross9 AT gmail.com>
  • Cc: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] the type of [sum]
  • Date: Mon, 10 Sep 2012 10:21:22 -0700

On Mon, Sep 10, 2012 at 9:43 AM, Jason Gross
<jasongross9 AT gmail.com>
wrote:
> Hi,
> Can someone explain to me why the type of [sum] is
> [Type (* Coq.Init.Datatypes.33 *) ->
> Type (* Coq.Init.Datatypes.34 *) ->
> Type (* max(Set, Coq.Init.Datatypes.33, Coq.Init.Datatypes.34) *)]
> In particular, why is the [sum] of two propositions in [Set], rather than in
> [Prop]?

Because from the sum P+Q, you can extract some information (which
branch an element comes from), which would be illegal for the
disjunction proposition P\/Q. P+Q is equivalent to the type {P} + {Q}
=def= sumbool P Q, which is the more usual one to use for Props.
--
Daniel Schepler



Archive powered by MHonArc 2.6.18.

Top of Page