Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Contexts in Natural Deduction

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Contexts in Natural Deduction


chronological Thread 
  • From: Adam Chlipala <adamc AT hcoop.net>
  • To: Coq Mailing List <coq-club AT pauillac.inria.fr>
  • Subject: Re: [Coq-Club] Contexts in Natural Deduction
  • Date: Wed, 16 Sep 2009 10:59:31 -0400
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Damien Andrew Tamburri wrote:
I am having difficulty in including the context for rules in Natural Deduction, within a structure representing Natural Deduction Trees themselves (see attached file).. I keep getting the "The term "In a X" has type "Prop" which is not a (co-)inductive type." error for the last three constructors of type NDTree.. can anyone explain me if and how I can use the construct "if..then..else" in this way? what other context alternatives are there?

Like the error message suggests, [if..then..else] is for analyzing
values of inductive types that have two constructors (e.g., [bool]).  It
doesn't make sense that you'd be able to use the same construct to
analyze a [Prop], since [if..then..else] is very computational, and
truth of [Prop]s is undecidable in general.

Try to find a way to express what you want using implication instead.
You don't have many other options available within an inductive type
definition, because of the positivity criterion.





Archive powered by MhonArc 2.6.16.

Top of Page