Skip to Content.
Sympa Menu

coq-club - [Coq-Club] autorewrite with *

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] autorewrite with *


Chronological Thread 
  • From: t x <txrev319 AT gmail.com>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: [Coq-Club] autorewrite with *
  • Date: Mon, 19 Aug 2013 15:01:52 +0000

Please consider the following code snipplet:

Goal forall x, (0 < Pos.to_nat x)% nat.
(* 1 *) auto with *.
(* 2 *) intros.
(* 3 *) auto with *.
(* 4 *) SearchAbout((0 < Pos.to_nat _)%nat).
(* 5 *) apply Pos2Nat.is_pos.


Neither line 1 nor line 3 solves the goal, is weird given that Line 4 finds the lemma used in Line 5.


Questions:

(1) Why does "auto with *" not solve this given (a) there is such a lemma and (b) "*" supposedly mean all Hints
(2) Where by "fix", I mean "write a tactic where if [apply _existing lemma_] can solve it, then solve it"

Thanks!





Archive powered by MHonArc 2.6.18.

Top of Page