Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] C-zar proof help

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] C-zar proof help


chronological Thread 
  • From: Taral <taralx AT gmail.com>
  • To: Ian Lynagh <igloo AT earth.li>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] C-zar proof help
  • Date: Wed, 4 Mar 2009 16:01:01 -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:content-transfer-encoding; b=uYB4GDd6Ub7V/wvGHNMzeJ+AumFCjNLD+iTSfUP2gc2zClowa0ERz+FlqoU99E6wUc ldc0g299BBLI0r2GeO1r4NGxUjOTvZujxDXfG1sVo+Qd60r4nJ8/GYBB9v4UEDLk8fnU 5J7Lvv9zeEWHItF/LGdYQbAxj6VL5J+FqJuKk=
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

On Wed, Mar 4, 2009 at 8:38 AM, Ian Lynagh 
<igloo AT earth.li>
 wrote:
> You mean I can't do the
>    be such that (namedCommute (p, q) = Some (q', p')).
> step, right? It's not obvious to me why that shouldn't also work.

That's right. The reason is that the induction steps do not substitute
into hypotheses, so you have to keep it in the goal as an implication
until you're done with your induction steps.

> If I understand you correctly, this is one of the things that confuses
> me too. e.g. in the following lemma, the last line goes orange, whereas
> I would expect it to be green:
>
> Lemma Foo : forall (x : bool), ((x = true) \/ (x = false)).
> proof.
> let x : bool.
> per cases on x.
> suppose it is true.
> then (x = true).

Exactly. In Ltac, this is the difference between "case" and "case_eq".
I think it's a serious shortcoming of C-zar that it doesn't generate
the equality.

-- 
Taral 
<taralx AT gmail.com>
"Please let me know if there's any further trouble I can give you."
    -- Unknown





Archive powered by MhonArc 2.6.16.

Top of Page