Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Search trees

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Search trees


chronological Thread 
  • From: Lionel Elie Mamane <lionel AT mamane.lu>
  • To: Marko Maliković <marko AT ffri.hr>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] Search trees
  • Date: Tue, 17 Jul 2007 07:46:41 +0200
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

On Mon, Jul 16, 2007 at 11:08:54PM +0200, Marko Maliković wrote:

> Is it possible in Coq to define a search tree with nodes labeled
> with predicates? By default, values in the nodes should be Set, Prop
> or Type.
> But, I need to label nodes with (unique) predicates, for example:

I don't know exactly what you want, but here is an example of a binary
tree with nodes labelled with Prop-predicates:

Inductive Tree (A:Type) : Type :=
  | Leaf : Tree A
  | Node : (A -> Prop) -> Tree A -> Tree A -> Tree A
.

-- 
Lionel





Archive powered by MhonArc 2.6.16.

Top of Page