coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jeremy Dawson <Jeremy.Dawson AT anu.edu.au>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] rewriting something used in a subsequent hypothesis
- Date: Fri, 12 Jul 2019 22:40:47 +0000
- Accept-language: en-US
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=Jeremy.Dawson AT anu.edu.au; spf=Pass smtp.mailfrom=Jeremy.Dawson AT anu.edu.au; spf=Pass smtp.helo=postmaster AT AUS01-ME1-obe.outbound.protection.outlook.com
- Ironport-phdr: 9a23:2ZYathRON+q0/bfHnVj8l0Oh4Npsv+yvbD5Q0YIujvd0So/mwa6ybBGN2/xhgRfzUJnB7Loc0qyK6vqmBDVLuM/JmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanbr5+MQu6oR/Ru8ULjoduN7s9wQbVr3VVfOhb2XlmLk+JkRbm4cew8p9j8yBOtP8k6sVNT6b0cbkmQLJBFDgpPHw768PttRnYUAuA/WAcXXkMkhpJGAfK8hf3VYrsvyTgt+p93C6aPdDqTb0xRD+v4btnRAPuhSwaMTMy7WPZhdFqjK9DoByvuQFxw5Labo+WOvpxfKLdcs8VS2VORctRSzdOD5mgY4cTE+YMP+BVpJT9qVsUqhu+ABGhCufxxT9SmHD22K072PkvHw7c0g0gBNUOsHLJp9jyMKkdT/q1w7fNzTTDdf9Y1y3y6YbTchAmp/GBRqh/cczMyUU1CQzKk0iQpZb/MDOIz+kAtXWQ4el4Ve+3hGMrtxt9riWzysoukIXFm4wYx1He+Slk3Io4J8W0RFNnbdOqCpdcqj2WO5ZsTs8/QWxkpTw2xqAFtJKlZCQKxoooyh3DZ/GCdoWF4hLuWPiSLDp9n31od6mwiAi3/EWkxeDzTMm53VNUoiVeidbDrXYA3AHJ5MedUPty5EKh1C6P1w/N7uFEJlg5mLbVJJA83rI8i4Mfv0PMECPrgUn2i7SZeVs+9uiv9uTnfq7pppiBN49ylw7yKLwumta4AeQkLAcBQ3Sb+eW71L3l50H5R6hKjuEykqnet5DaJt4XqbK+Aw9Qyooj6hC/ACm60NkAknQLMEhJdA+bg4XrIV3CPf71APalj1ixjDtmxejKPrj7DZXMKnjDnq3hfbF460NEzAQ808pf6IxRCrABOv79VFX+tdLDDh8+NQy52PzoCNNg1o8ER22AH7KZPLnIvl+V/u4vOfWDZJcJuDbhLPgo/+LhjXggmVMEYaap2YYXZ2ujE/R9I0SZZGLsjc0bHWcLuAo+Vu3qh0eYXT5dfXbhF547s3swD5vjBoPeTKishqaA1WG1BNceMmtBExWHFWriX4SCQfYFLiyIdJxPiDsBAJqsUYIkxFmCvRDhzLwvesjZ4CAdpNTP3cdu4Ov7nBcvszF4EoKUzjfeHClPgmoUSmpuj+hEqktnxwLbiPQqs7ljDdVWoshxfEIiL5eFlb5zDc20Vw7cON6UGg7/H4eWRAopR9d0+OcgJkZwH9L+0ULq4hHyWvowuuXOA5Y5tKXBw3L2OsBxjW7c07UshEUnRc0JMnC6gql49E7YAIubyhzIxZbvTrwV2Wv2zEnGyGOPuE9CVwspC/fMW21Za0fL693ktBrP
Thanks. I've tried the following
instantiate (W := W).
> ^^^^^^^^^^^^^^^^^^^^
Error:
Ltac call to "instantiate ( (ident) := (lglob) )" failed.
Unknown existential variable.
I've never used the instantiate tactic before, but
instantiate (?W := W).
seems to give a parsing error
What am I doing wrong here?
Thanks
Jeremy
On 07/13/2019 12:14 AM, Matthieu Sozeau wrote:
> Hi Jeremy,
>
> It seems your hypotheses contain extistential variables ?W and ?W0 that
> by default depend on all previous hypotheses. You can try to either
> instantiate them or cut their dependencies at the time they are introduced
> (by clearing unnecessary hypotheses for their later instantiation), then
> the rewrite should work.
>
> My 2 cents,
> -- Matthieu
>
>> Le 12 juil. 2019 à 10:02, Jeremy Dawson
>> <Jeremy.Dawson AT anu.edu.au>
>> a écrit :
>>
>>
>> Hi,
>>
>> I have the following goal:
>>
>> (earlier hyps, then)
>> H0 : (Γ1 ++ Γ2) ++ ?W ⊦ A :: Δ
>> H2 : Gnh_height H0 < n
>> H : (Γ1 ++ B :: Γ2) ++ ?W0 ⊦ Δ
>> H1 : Gnh_height H < n
>>
>> To make use of these hypotheses I need them in the form
>> H0 : Γ1 ++ Γ2 ++ ?W ⊦ A :: Δ
>> H : Γ1 ++ B :: Γ2 ++ ?W0 ⊦ Δ
>>
>> trying to rewrite with app_assoc_reverse produces the errors
>>
>> Error: Cannot change H0, it is used in hypothesis H2.
>> Error: Cannot change H, it is used in hypothesis H1.
>>
>> Is there any reason why what I'm trying to do should be invalid?
>> How can I get around this problem?
>>
>> Thanks for any help
>>
>> Jeremy
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
- [Coq-Club] rewriting something used in a subsequent hypothesis, Jeremy Dawson, 07/12/2019
- Re: [Coq-Club] rewriting something used in a subsequent hypothesis, Dominique Larchey-Wendling, 07/12/2019
- Re: [Coq-Club] rewriting something used in a subsequent hypothesis, Jeremy Dawson, 07/13/2019
- Re: [Coq-Club] rewriting something used in a subsequent hypothesis, Matthieu Sozeau, 07/12/2019
- Re: [Coq-Club] rewriting something used in a subsequent hypothesis, Jeremy Dawson, 07/13/2019
- Re: [Coq-Club] rewriting something used in a subsequent hypothesis, Dominique Larchey-Wendling, 07/12/2019
Archive powered by MHonArc 2.6.18.