Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Why does this "apply in" does not work ?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Why does this "apply in" does not work ?


Chronological Thread 
  • From: Vincent Siles <vincent.siles AT ens-lyon.org>
  • To: Coq-Club Club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Why does this "apply in" does not work ?
  • Date: Thu, 26 Jun 2014 12:00:07 +0200

Hi club,
an interesting question was asked on StackOverflow yesterday, and I
have to say I don't understand why this simple apply fails. Consider
the script:

Parameter P: nat -> Prop.
Parameter Q: nat -> Prop.
Hypothesis x : forall i, P i -> (forall k, Q k).

Lemma y:
forall i, P i -> (* Whatever *) P i.
Proof.
intros i hPi.
apply x in hPi.

It fails with: Error: Unable to find an instance for the variable k.

Why does Coq asks for the instantiation of k ?

Best,
V.



Archive powered by MHonArc 2.6.18.

Top of Page