Skip to Content.
Sympa Menu

coq-club - RE: [Coq-Club] difficulty computing with integers in Ltac

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

RE: [Coq-Club] difficulty computing with integers in Ltac


Chronological Thread 
  • From: Georges Gonthier <gonthier AT microsoft.com>
  • To: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: RE: [Coq-Club] difficulty computing with integers in Ltac
  • Date: Tue, 2 Dec 2014 10:28:06 +0000
  • Accept-language: en-GB, en-US
  • Authentication-results: spf=pass (sender IP is 131.107.125.37) smtp.mailfrom=gonthier AT microsoft.com;

If you really need this particular feature, you might want to consider the
Ssreflect plugin. Ssreflect tactics generally accept Coq integers along Caml
ones; in particular it is possible to compute iteration counts (as in do
N!tactic), occurrence selectors (set x := {+N}y), and subgoal selectors
(tac1; first N [tacN]).
-- Georges

-----Original Message-----
From:
coq-club-request AT inria.fr

[mailto:coq-club-request AT inria.fr]
On Behalf Of Jonathan
Sent: 02 December 2014 02:53
To:
coq-club AT inria.fr
Subject: Re: [Coq-Club] difficulty computing with integers in Ltac

On 12/01/2014 06:12 PM, Jason Gross wrote:
> ...
> Alternatively, you can write an ocaml plugin to convert a constr to an
> int_or_var.

What is the best way to get started writing plugins? Is there a tutorial?

-- Jonathan




Archive powered by MHonArc 2.6.18.

Top of Page