coq-club AT inria.fr
Subject: The Coq mailing list
List archive
RE: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?
Chronological Thread
- From: "Soegtrop, Michael" <michael.soegtrop AT intel.com>
- To: John M Grosen <jmgrosen AT mit.edu>, "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: RE: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?
- Date: Sat, 30 Jun 2018 08:29:08 +0000
- Accept-language: de-DE, en-US
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=michael.soegtrop AT intel.com; spf=Pass smtp.mailfrom=michael.soegtrop AT intel.com; spf=None smtp.helo=postmaster AT mga01.intel.com
- Ironport-phdr: 9a23:kRDwrxQBgY7yr3TcjzoUsgUDZtpsv+yvbD5Q0YIujvd0So/mwa6zZR2N2/xhgRfzUJnB7Loc0qyK6/6mATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfbJ/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4rx1QxH0ligIKz858HnWisNuiqJbvAmhrAF7z4LNfY2ZKOZycqbbcNgHR2ROQ9xRWjRBDI2icoUPE+QPM+VWr4b/plsBsRSxCwa3CePz0z9FgmP60bEm3+g/FwzNwQwuH8gJsHTRtNj5OrocUeerw6nH0TXDdfRW2S/l5IPVdR4hoO2DXbJqfsXPzUkjGR7Og1KVqYzkIzyV1v4CvHaf7+Z6TuKvjHAoqw5toji1wccskpLEhoMTylDY6yp5xJw5KsG/SE5+eNOpFoZbuS+dN4tzWMwiQmdotT47yr0ApZ60YiwKxI46yBHBbfGMbouG4gr7WeqMJTp0mmhpdbK/ihqo8UWs1PfwW8q33VpSsyZIk9fBumoD2hHd8MSLVPVw80O71TqS1A3f9/lILV01mKffMZIt3L49m5UJvUjdBCP6hUr7ga6Qe0454Oan8f7nba/jppKEN497lAX+MqM2l8y6DuQ3KBQCU3WB9eS90r3j4VP2QLFQgvIqlanZtYjWJcUdpqGnHw9Yypsv5hKhAzu80NkVnWMLIVJbdB6djIXkOEnCIPXiAve+h1Ssni1rx/fDPrD5B5XNL2TMkLf7crlj705Q0hEzzddB6JJbFrEBOvXzWlfqudzZCB85LxK7w+L9BNph0YMeXHqDArWFP6PKrV+I+uUvLvGQa48SoTbxMuQq5/rzjXAiglIdZqmo3Z4PaH+iBPhmIkOZYWDtgtgbC2sKsBA+H6TWjwigVj5VL1P6cLg7/Tw9QNakCIjZQZughpSE3Tv9E5FLMCQOQFuLCDLjc5iOc/YKciObZMF72HRQXr+4DoQlyBuGtQngyrMhIPCCqQMCspe2nuNy6uLPjxYqsXRRDs+d2myJBSkgm2IDRzY72OZkpkFy1k2EyYB5heBVEZpY4PYfAVRyDoLV0+EvU4O6YQnGZNrcDQ/+Goz3UwF0dco4xpo1W2g4Htyjih7Z2C/zWu0UkaCGANo/9aeOhiGtdfY48G7P0ewat3djWtFGbDT0h6hj+gyVDInMwR3AyvSaMJ8E1SuIz1+tiGqDuEYBD1x1XqydBDYeYFfbqZLy4UaQF7I=
Dear John,
then I don't understand your problem. If you want to instantiate the evar in
the context of the current goal (rather than focus another goal in whose
context the evar can be instantiated more easily), what is wrong with e.g.:
Goal exists (n : nat), n = 2.
eexists.
reflexivity.
Or maybe
Goal exists (n : nat), n = 2.
eexists.
match goal with
| [ |- ?x = _ ] => is_evar x; reflexivity
end.
Or in case you have an evar in a term:
Goal exists (n m : nat), n + m = 2.
eexists.
eexists.
match goal with
| [ |- ?x + ?y = _ ] => assert(x=0) as H by reflexivity; clear H
end.
The problem with your example is that you cannot possibly instantiate the
evar with 0, because this would lead to 0=2. If none of the above works, it
would help if you post a minimal sample which actually could work (doesn't
lead to False) and whose solution would solve your issue. As is, it is hard
to guess what your issue is.
Best regards,
Michael
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
- [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, John Grosen, 06/27/2018
- Re: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Jason -Zhong Sheng- Hu, 06/27/2018
- RE: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, John M Grosen, 06/27/2018
- Re: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Ralf Jung, 06/28/2018
- Re: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Yannick Forster, 06/28/2018
- Re: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Ralf Jung, 06/28/2018
- RE: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Soegtrop, Michael, 06/28/2018
- Re: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Ralf Jung, 06/28/2018
- RE: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, John M Grosen, 06/29/2018
- RE: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Soegtrop, Michael, 06/30/2018
- Re: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Armaël Guéneau, 06/30/2018
- RE: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, John M Grosen, 06/29/2018
- Re: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Ralf Jung, 06/28/2018
- RE: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Soegtrop, Michael, 06/28/2018
- Re: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Gaëtan Gilbert, 06/28/2018
- Re: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Ralf Jung, 06/28/2018
- Re: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Yannick Forster, 06/28/2018
- Re: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Robbert Krebbers, 06/28/2018
- Re: [Coq-Club] Is it possible to perform tactics in an existential's context from Ltac?, Jason -Zhong Sheng- Hu, 06/27/2018
Archive powered by MHonArc 2.6.18.