coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Kirill Taran <kirill.t256 AT gmail.com>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] dependent pattern matching (return clause and normalization)
- Date: Fri, 14 Feb 2014 02:03:41 +0400
Hello,
I have quiet strange problem with depent pattern matching.
I can't reproduce it on small example and my real code is too complex to paste it here.
But I am trying something like:
The term y has type "Container TypeA" while
it is expected to have type "Container (Tag2Type TagA)".
I checked if I am trying to give wrong term:
Eval simpl in Tag2Type TagA gives TypeA, so there is no my mistake, I think.
I suspect, that Coq stops normalization of Container (Tag2Type TagA) too early.
I failed to reproduce error on smaller examples, so maybe reason is too complex structure.
Is there way to force this normalization?
I have quiet strange problem with depent pattern matching.
I can't reproduce it on small example and my real code is too complex to paste it here.
But I am trying something like:
match x in Something t return Container (Tag2Type t) withAnd this doesn't pass type-check with message like:
| ... y => y
| ... z => z
end.
The term y has type "Container TypeA" while
it is expected to have type "Container (Tag2Type TagA)".
I checked if I am trying to give wrong term:
Eval simpl in Tag2Type TagA gives TypeA, so there is no my mistake, I think.
I suspect, that Coq stops normalization of Container (Tag2Type TagA) too early.
I failed to reproduce error on smaller examples, so maybe reason is too complex structure.
Is there way to force this normalization?
Sincerely,
Kirill Taran
Kirill Taran
- [Coq-Club] dependent pattern matching (return clause and normalization), Kirill Taran, 02/13/2014
- Re: [Coq-Club] dependent pattern matching (return clause and normalization), Daniel Schepler, 02/13/2014
- Re: [Coq-Club] dependent pattern matching (return clause and normalization), Kirill Taran, 02/14/2014
- Re: [Coq-Club] dependent pattern matching (return clause and normalization), Jason Gross, 02/14/2014
- Re: [Coq-Club] dependent pattern matching (return clause and normalization), Kirill Taran, 02/14/2014
- Re: [Coq-Club] dependent pattern matching (return clause and normalization), Daniel Schepler, 02/13/2014
Archive powered by MHonArc 2.6.18.