coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Hugo Herbelin <Hugo.Herbelin AT inria.fr>
- To: Marko Maliković <marko AT ffri.hr>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] When apply tactic cannot determine varaibles automatically
- Date: Mon, 10 May 2010 11:21:36 +0200
Hi,
> can someone explain to me why in such case, apply tactic cannot determine
> variable Q automatically (example is only "demo"):
>
> Coq < Section Demo.
>
> Coq < Axiom A : forall P Q : Prop, (P -> Q) -> P -> Q.
> A is assumed
>
> Coq < Parameter x y : nat.
> x is assumed
> y is assumed
>
> Coq < Hypothesis H : x = 1 -> y = 2.
> H is assumed
>
> Coq <
> Coq < Goal True.
> 1 subgoal
>
> H : x = 1 -> y = 2
> ============================
> True
>
> Unnamed_thm <
> Unnamed_thm < apply A in H.
> Toplevel input, characters 1-13:
> > apply A in H.
> > ^^^^^^^^^^^^
> Error: Unable to find an instance for the variable Q.
>
> OK, "apply A with (Q := (y=2)) in H" help, but I don't want to know what
> is value of Q. I want to do it automatically.
You could have said as well "apply A with (Q := (y=3)) in H" and it
would have worked, what shows that there is indeed no instance for Q
that Coq could infer.
Hope it helps.
Hugo Herbelin
- [Coq-Club] When apply tactic cannot determine varaibles automatically, Marko Malikoviæ
- Re: [Coq-Club] When apply tactic cannot determine varaibles automatically, AUGER
- Re: [Coq-Club] When apply tactic cannot determine varaibles automatically, Hugo Herbelin
Archive powered by MhonArc 2.6.16.