coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Benjamin Werner <(e6fa90e88c%hidden_head%e6fa90e88c)ben(e6fa90e88c%hidden_at%e6fa90e88c)benjamin.werner.name(e6fa90e88c%hidden_end%e6fa90e88c)>
- To: Andrea Poles <(e6fa90e88c%hidden_head%e6fa90e88c)evilpuchu(e6fa90e88c%hidden_at%e6fa90e88c)gmail.com(e6fa90e88c%hidden_end%e6fa90e88c)>
- Cc: (e6fa90e88c%hidden_head%e6fa90e88c)coq-club(e6fa90e88c%hidden_at%e6fa90e88c)pauillac.inria.fr(e6fa90e88c%hidden_end%e6fa90e88c)
- Subject: Re: [Coq-Club] information
- Date: Wed, 16 Dec 2009 12:37:58 +0100
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Hi, Le 16 déc. 2009 à 12:22, Andrea Poles a écrit :
a => true. Here you want to test equality between a and b. You shoud use a function testing equality between natural numbers. Like dec_eq_nat defined in the library Peano_dec. Here, the clause a => true matches all natural numbers; the fact that there is another variable named a is irrelevant. This way to handle pattern-matching is not specific to Coq but shared by most functional languages (ML, Haskell, etc). Benjamin |
- [Coq-Club] information, Andrea Poles
- Re: [Coq-Club] information, Benjamin Werner
Archive powered by MhonArc 2.6.16.