coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jonathan Leivent <jonikelee AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Turning an evar into a goal?
- Date: Sat, 1 Apr 2017 14:48:14 -0400
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=jonikelee AT gmail.com; spf=Pass smtp.mailfrom=jonikelee AT gmail.com; spf=None smtp.helo=postmaster AT mail-qk0-f171.google.com
- Ironport-phdr: 9a23:ctyh6RA5jBCJfnQD+rJzUyQJP3N1i/DPJgcQr6AfoPdwSPv4o8bcNUDSrc9gkEXOFd2CrakV16yO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fdbghMizexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoJKiA38G/XhMJzgqxUrh2uqB5jzIDbe4yVKPhzc7nBcd8GS2dMXMBcXDFBDIOmaIsPCvIMM+Jfr4n7vVQOsRu+ChOqBOjyzDFHmH723bMk3OQnDQHNwQstH9AJsHTSrdX1N7kdUeSrw6bW1jjDYPZW1i386IjMaBwuvfaMXbdpfMfX1EIhFBvFg02OpYD5Oz6ZzOcAvmiB4+Z+S+6jl3QrpxxzrzSy3ssglIbEipgUx1zZ7yl0w4g4Kce4RUN/Z9OvDYFeuDuAN4RsR8MvW2Fotzg+yr0BoZO7eTIFyJUjxxLGcvyHcJSE7gvtVOqMIzp0mWhpeL24hxa1/kigzvPzWtOo31ZNqypJitjMtnYT2BzP8sWLVOdx80O71TuM1w3f8P9ILV4omabBNpIswKM8moIWsUvZHy/2nEv2jLWRdkUh4uWo6ePnYrPnpp+fKYB0jh/xPbo1l8ywBOQ3KAkOX2yB9eug073j+FX1QK9Wgf0ujqnZrJfaKNwHqa6+Gg9Zy5os6xKiDzi9y9kYhnkGLFddeB2dlYTpOlfOIOr5DfilmVisni1rlLj6OejqBYyIJXzemp/ge6x84ghS0lkd19dasrBTDLgdIPv1Emv8tcLVCANxZw6zxefkBdFw26sRXGuOBumSN6aE4gzA3f4mP+TZPNxdgz36MfVwv/M=
You first need to skolemize x before doing that unification, so that it has no hyps. You can also then set up the new goal with no hyps as well - so they will then both have no hyps at the point of the unification.
To skolemize, do something like "instantiate (1 := ltac:(revert_all))", where revert_all is the obvious:
Ltac revert_all := repeat lazymatch goal with H : _ |- _ => revert H end.
-- Jonathan
On 04/01/2017 02:20 PM, Jason Gross wrote:
Say I have an Ltac variable x such that [is_evar x] succeeds. How do I get
a goal corresponding to x, in an Ltac script (without vernaculars)? I
tried making a new goal and unifying the evar of that goal with x, but that
fails with a "not well typed in the context of x" message, because I have
different hypotheses.
Thanks,
Jason
- [Coq-Club] Turning an evar into a goal?, Jason Gross, 04/01/2017
- Re: [Coq-Club] Turning an evar into a goal?, Jonathan Leivent, 04/01/2017
- Re: [Coq-Club] Turning an evar into a goal?, Jason Gross, 04/03/2017
- Re: [Coq-Club] Turning an evar into a goal?, Jonathan Leivent, 04/03/2017
- Re: [Coq-Club] Turning an evar into a goal?, Jason Gross, 04/03/2017
- Re: [Coq-Club] Turning an evar into a goal?, Jonathan Leivent, 04/03/2017
- Re: [Coq-Club] Turning an evar into a goal?, Jason Gross, 04/03/2017
- Re: [Coq-Club] Turning an evar into a goal?, Jonathan Leivent, 04/03/2017
- Re: [Coq-Club] Turning an evar into a goal?, Jason Gross, 04/03/2017
- Re: [Coq-Club] Turning an evar into a goal?, Jonathan Leivent, 04/01/2017
Archive powered by MHonArc 2.6.18.