Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Calling out to unification from a plugin

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Calling out to unification from a plugin


Chronological Thread 
  • From: Abhishek Anand <abhishek.anand.iitg AT gmail.com>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Calling out to unification from a plugin
  • Date: Tue, 23 May 2017 16:28:23 -0400
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=abhishek.anand.iitg AT gmail.com; spf=Pass smtp.mailfrom=abhishek.anand.iitg AT gmail.com; spf=None smtp.helo=postmaster AT mail-ua0-f178.google.com
  • Ironport-phdr: 9a23:AXhyURCOp+bu1ddQdxaKUyQJP3N1i/DPJgcQr6AfoPdwSPT8osbcNUDSrc9gkEXOFd2CrakV1ayL7OigATVGusfe9ihaMdRlbFwst4Y/p08aPIa9E0r1LfrnPWQRPf9pcxtbxUy9KlVfA83kZlff8TWY5D8WHQjjZ0IufrymUoHdgN6q2O+s5pbdfxtHhCanYbN1MR66sRjdutMYjIZmK6s90BvEr3lVcOhS2W9kOEifkhj468qy5pJv7zhct/c8/MNcTKv2eLg1QrNfADk6KW4549HluwfeRgWV/HscVWsWkhtMAwfb6RzxQ4n8vCjnuOdjwSeWJcL5Q6w6VjSk9KdrVQTniDwbOD4j8WHYkdJ/gaRGqx+8vRN/worUYIaINPpie67WYN0XSXZdUstXSidMBJ63YYkSAOobJetXrYf9qVsAoxW9GAeiGv/gxyRSiXPqx6A3yfgtHR3E0QEmAtkAsG7UrNLwNKoKTe2616nIzTTYb/NWxzj965XDfwwnof6WW7J/bNfaxE41GAzejlWQqJflPzOL2eQOqWSU9exgWvipi2E6sQ1xozmvxtsjioTSiYIVz0rL9SR9wIovOdK4T0t7bMeiHZBNuS+aMI52TdkjQ2FuoCs11roGuYS9fCcUzJQnwwTTZOKafIiV+h7jW+eRISt4hHJ4Y72znQq98U+lyuD6S8K6005KozJbntXQsn0BzR/e58idRvdj40us2yyD2x3R5+xHJ00/iLDVJIQ7wrEqk5oeqUTDETHymEXxlKKWc18r+ums6+j+f7XpvIOQO5Z6ig3jMKkjmdazAes/MggJUGib/fqz2Kf/8k3+RbVGlvw2kq/Hv5DGPckXuLK1DgtP3osg6xuzFSmq3MkakHUdMV5IehGKg5DsO17UIfD4Cfm/g06rkDdu3/3JJKbuApXMLnjYkLfuY7V951RGxwo1199f4Y9bBqsAIPLyRk/xu8fVDhA8MwOuwubnDM9x2Z8ZWWKKGqOZKr/dsUeU5uIzJOmBfJMauDHkK/Q8+/HuiWI5lkQGcKmy3ZoXbWi4Ee58L0WYZ3rsmNYBHn0QsgowVuy5wGGFBDVUfjO5W782rmUwD5vjBoPeTKishqaA1WG1BMsFSHpBDwWlG3fpbIWJWL8lbiuULoc1mzYEVKOhRoxn3BensgO8yrt7IcLb/yQZsdTo090jtL6brg076TEhV5fV6GqKVWwhxm4=

Also, you may want to look at the code implementing Coq's unify tactic, which is in the file:
https://github.com/coq/coq/blob/741f3fab052b91eaec57f32b639ca722c3d8dc34/tactics/tactics.ml#L5044

In general, when I am wondering "how do I do .... in Coq's OCaml codebase", I recall a tactic or vernacular command doing something similar and find its implementation.


On Tue, May 23, 2017 at 4:16 PM, Jason Gross <jasongross9 AT gmail.com> wrote:
I'd guess you're looking for something like w_unify: https://github.com/coq/coq/blob/trunk/pretyping/unification.mli#L49

On Tue, May 23, 2017 at 1:30 PM Talia Ringer <tringer AT cs.washington.edu> wrote:
Hi all,

I'm writing a Coq plugin that finds patches for small changes in theorems and proofs.

Right now, there is a point in my tool where it would be very useful to query out to unification rather than reinvent the wheel. The unification problems I'm dealing with should be easy enough for Coq to solve most of the time.

Does anyone know how I can call out to unification from a plugin in OCaml? Has anyone done this? I am on Coq 8.5 right now, which may make a difference since I know the unification algorithm and tooling has changed very recently.

Best,

Talia
University of Washington




Archive powered by MHonArc 2.6.18.

Top of Page