coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: geng chen <chengeng4001 AT gmail.com>
- To: Chantal Keller <chantal.keller AT wanadoo.fr>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] A question about pattern matching
- Date: Wed, 3 Feb 2010 15:40:31 +0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=uIsR+AE/a/dFhRb/zxUKwaJWG/BjHxH+H90ymw4zfALxrBuj//nLElXx08Lxjm8oCC N8ZAuOsR6p2bxBDBb6sS8Z6D/PMrTNQhG1o/S9rE66dCfVS7x2zbsv1bU3CVYvih5phZ ejf/yHYyg7rQ7STFQfAtYkh+val0WrJSaiLmk=
Thanks ! But I think I have not describe my question clearly. I do some work on separation logic and I want to prove the following lemma.
w : v
p : positive
st : s
-----------------------------------------------------------------
match
store.lookup w
match lookup w st with
| 0 => store.union (singleton w p) st
| Zpos => ......
| Zneg => ......
end
with
| Some x => Zpos x
| None =>0
end = Zpos p
and I use the 'case lookup' tactic to do case analysis. Here is the first goal:
w : v
p : positive
st : s
----------------------------------------------------
match
store.lookup w (store.union (singleton w p) st)
with
| Some x => Zpos x
| None =>0
end = Zpos p
This case is when 'lookup w st = 0'. So why Coq do not put 'lookup w st = 0'
in hypotheses? If I want the 'lookup w st = 0' in the hypotheses, what tactics should I use?
- Re: [Coq-Club] A question about pattern matching, geng chen
- Re: [Coq-Club] A question about pattern matching, Pierre Casteran
Archive powered by MhonArc 2.6.16.