coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Chantal Keller <chantal.keller AT wanadoo.fr>
- To: geng chen <chengeng4001 AT gmail.com>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] A question about pattern matching
- Date: Fri, 22 Jan 2010 15:47:49 +0100
Hi,
geng chen a écrit :
Hi, everyone.
I've met a problem about pattern matching. for example there is a function:
Definition check_a (a : nat) : bool :=
match a with
1 => true
| _ => false
end.
and result of check_a is "true". So how can I prove that a = 1 ?
It is important for me. Could any one help me?
You should have a look at the case tactic [1]. Using it twice solves the problem here.
Chantal.
[1]
http://coq.inria.fr/refman/Reference-Manual011.html#@tactic84
- [Coq-Club] A question about pattern matching, geng chen
- Re: [Coq-Club] A question about pattern matching, Guilhem Moulin
- Re: [Coq-Club] A question about pattern matching, Chantal Keller
Archive powered by MhonArc 2.6.16.