Skip to Content.
Sympa Menu

coq-club - Pattern-matching on a redefined constructor name

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Pattern-matching on a redefined constructor name


chronological Thread 
  • From: Guillaume Dufay <Guillaume.Dufay AT sophia.inria.fr>
  • To: coq-club AT pauillac.inria.fr
  • Subject: Pattern-matching on a redefined constructor name
  • Date: Thu, 18 May 2000 11:23:21 +0200
  • Organization: INRIA Sophia Antipolis

Hello,

I'm having a weird problem with the strategie Cases.
Hereafter a small example in Coq :

Require Bool.

Definition is_true := true.

Definition foo := [b:bool]
  Cases b of
    is_true => true |
    _ => false
  end.

Print is_true.
Print foo.




And the result is :
> is_true = true
>     : bool 
> foo = [_:bool]true
>     : bool->bool

No pattern-matching is done on the redefined constructor true.
Is that a normal behaviour? Is there a way to avoid this?


Thank you in advance. Regards,


Guillaume Dufay





Archive powered by MhonArc 2.6.16.

Top of Page