coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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.
- [Coq-Club] A question on matching., Bernard Hurley
- Re: [Coq-Club] A question on matching.,
gallais @ ensl.org
- Re: [Coq-Club] A question on matching.,
Bernard Hurley
- Re: [Coq-Club] A question on matching., Jonas Oberhauser
- Re: [Coq-Club] A question on matching.,
Bernard Hurley
- Re: [Coq-Club] A question on matching.,
gallais @ ensl.org
Archive powered by MhonArc 2.6.16.