coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Gaëtan Gilbert <gaetan.gilbert AT skyskimmer.net>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Suspicious instance of non-strictly-positive-occurence error
- Date: Thu, 14 Jun 2018 16:42:46 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=gaetan.gilbert AT skyskimmer.net; spf=Pass smtp.mailfrom=gaetan.gilbert AT skyskimmer.net; spf=None smtp.helo=postmaster AT relay7-d.mail.gandi.net
- Ironport-phdr: 9a23:QW7XNhELJlpI/3jTTxckJJ1GYnF86YWxBRYc798ds5kLTJ78r86wAkXT6L1XgUPTWs2DsrQY07eQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDqwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KOSMn/mHZisJ+j6xVrxyuqBN934Hab5qYNOZ9c67HYd8WWWRMU8RXWidcAo28dYwPD+8ZMOhZtYb6u0cOogG4BQa0Be3vyztIiWTo0q0gz+QqDAbL3AM6EN0QrHTbttP1OL0dUeC0yKnH1ivMb+lK2Trm84jIcRAgoeqPXbJxdMrRzFcgFxnfglWWt4PlIyqY2+IQuGaY9+ptTfyjh3Mlpg1roDWj2t0ghpTKi48b0FzI6zl1zJotKdC5VkJ3e8OoHIdOuy2AKod7TcAvT3t1tCs6y7ALv4OwcjIQx5Q93RHfbuSKc4iW7RLnU+acOS14i2xheL2lhxe/81GsxfDmWsmxyllKry5FnsPDtn8X0Rzc98mHRuF7/ki/xTaDzwHT6udaLkAojafXNYMtz7wqmpcRrUjPBDL6lUb4gaOMaEko5vSk5/ziYrr8p5+cM4F0ihv5MqQrgsG/Dv43PRYSX2eB/+SwzrLj/Uz9QLpRkPI2iLXZvYvBJcQYpq+5GAxV0ocm6xa6ETimys4UnX8ZI1JZYB6HlZTmO0nSIPDkCveym0ijkDByx/zfIrLhBojNIWPYnbf6fbd97lZcxxApwdBe4ZJUELABL+jpVk//rtyLRiM+Zgez2qPsDMh3/oIYQ2OGRKGDY43ItlrdyeusP+CKU6AUvDzwMeRts/HngGMwnxkSfK2j0IELQGu7D+9lIkCcbGCqhNodRzRZ9jEiRfDn3QXRGQVYYGy/Cvplt2MLTbm+BIKGfbiDxbmI3SO1BJpTPz4UEVOdCnTpcoCJQbEKZT7Ae5Y9wAxBbqCoTsoa7T/rrBXzkuQ1NenF4S4ZsJfuzp5z6vGBzUhvpwwxNNyU1iS2d08xnm4MQGVrjrpypUVslRKPl61xgvgeGtVV6/IPVAomZ8bR
>The problem
> stays if replace _let_ with _match_ for the "nn" argument.
let is just a notation for match in this case.
Gaëtan Gilbert
On 14/06/2018 16:36, Julia Belyakova wrote:
Dear all,
I want to define a relation with the rule similar to FOO_4 (see below). However, I got an error _Non strictly positive occurrence of "foo"_. This does not look like a non-strictly-positive occurrence to me, and I also don't see a big difference between FOO_4 and FOO_3. The problem stays if replace _let_ with _match_ for the "nn" argument. Is it a non-strictly-positive occurrence or is it a bug?
I use Coq 8.8.0.
Inductive foo : nat -> Prop :=
| FOO_1 : foo 1
| FOO_2 : forall (ns : list nat),
Forall foo ns ->
foo 3
| FOO_3 : forall (ns : list nat),
Forall (fun n => foo n) ns ->
foo 4
| FOO_4 : forall (ns : list nat),
Forall (fun (nn : nat*nat) => let (n1, n2) := nn in foo n1) (zip ns ns) ->
foo 5
.
where "zip" is defined as
Fixpoint zip {A B} (xs : list A) (ys : list B) : list (A * B) :=
match xs, ys with
| x :: xs', y :: ys' => (x, y) :: zip xs' ys'
| _, _ => nil
end.
--
Kind regards, Julia
- [Coq-Club] Suspicious instance of non-strictly-positive-occurence error, Julia Belyakova, 06/14/2018
- Re: [Coq-Club] Suspicious instance of non-strictly-positive-occurence error, Gaëtan Gilbert, 06/14/2018
- Re: [Coq-Club] Suspicious instance of non-strictly-positive-occurence error, Li-yao Xia, 06/14/2018
- Re: [Coq-Club] Suspicious instance of non-strictly-positive-occurence error, Julia Belyakova, 06/14/2018
- [Coq-Club] Suspicious instance of non-strictly-positive-occurence error, Maxime Dénès, 06/14/2018
- Re: [Coq-Club] Suspicious instance of non-strictly-positive-occurence error, Julia Belyakova, 06/14/2018
Archive powered by MHonArc 2.6.18.