Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] About mutual recursion

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] About mutual recursion


chronological Thread 
  • From: Adam Chlipala <adam AT chlipala.net>
  • To: Gyesik Lee <leegys AT gmail.com>
  • Cc: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] About mutual recursion
  • Date: Mon, 11 Oct 2010 14:00:00 -0400

Gyesik Lee wrote:
(* Now I would like to check if a (t : toto) contains [Var] or not.
One possible definition is as follows *)

Fixpoint VarIn (t:toto) : Prop :=
   match r with
     | Var        =>  True
     | Unit       =>  False
     | Plus t0 t1 =>  (VarIn t0) \/ (VarIn t1)
   end.

(* What I don't like with this definition is that I don't have the
proof unicity without using proof-irrelevance.

Why don't you just use [bool] instead of [Prop]?



Archive powered by MhonArc 2.6.16.

Top of Page