Skip to Content.
Sympa Menu

coq-club - [Coq-Club] A question on matching.

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] A question on matching.


chronological Thread 
  • From: Bernard Hurley <bernard AT marcade.biz>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: [Coq-Club] A question on matching.
  • Date: Sun, 22 Apr 2012 19:00:44 +0100

Hi,

How would I match [m] so that I could write a Fixpoint with the format?

+++++++++++++++++++++++++++++++++++
Variable n: nat.

Fixpoint test (m: nat):=
  match m with
    | (* m less than n *) => (*return something*)
    | (* m equals n *) => (* return something *)
    | _ => (* return something *)
  end.
+++++++++++++++++++++++++++++++++++

Cheers,

Bernard.





Archive powered by MhonArc 2.6.16.

Top of Page