Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] hello coq users

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] hello coq users


Chronological Thread 
  • From: Hugo Herbelin <Hugo.Herbelin AT inria.fr>
  • To: Jonas Oberhauser <s9joober AT gmail.com>
  • Cc: coq-club AT inria.fr, zerosum42 AT gmail.com
  • Subject: Re: [Coq-Club] hello coq users
  • Date: Fri, 23 Jan 2015 17:05:16 +0100

Hi,

BTW, there is also a (unfortunately not so nice) syntax for
"reverting" on the fly:

Parameter P : nat -> nat -> nat -> nat -> Prop.
Axiom baseCase : forall a b c, P 0 a b c.

Lemma l : forall a b c n, P n a b c.
Proof.
intros a b c n. induction n in a, b, c |- *.
- apply baseCase.
- ...

Hugo

On Tue, Jan 20, 2015 at 02:01:21AM +0100, Jonas Oberhauser wrote:
> Am 18.01.2015 um 19:48 schrieb Andrei Borac:
> >Ah sorry folks, it seems making other variables "arbitrary" is indeed
> >the default in Coq,
>
> It is not. Try this on for size:
>
> Goal forall a b n c, ....
> induction n.
>
>
> What will happen is that a and b will be fixed, while c will stay
> generalized.
> Coq will fix the variables until the one that you mention, from left
> to right, and keep the ones after it generalized.
>
> hope that helps,
>
> jonas



Archive powered by MHonArc 2.6.18.

Top of Page