coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Nathanaël Courant <nathanael.courant AT ens.fr>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Debugging universe inconsistencies
- Date: Wed, 20 Jun 2018 10:09:58 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=nathanael.courant AT ens.fr; spf=Pass smtp.mailfrom=nathanael.courant AT ens.fr; spf=None smtp.helo=postmaster AT nef2.ens.fr
- Ironport-phdr: 9a23:LzYUfRY0snF/PE4tiUNDSUn/LSx+4OfEezUN459isYplN5qZoMS4bnLW6fgltlLVR4KTs6sC17KL9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCa9bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjAn8G/Zl89+gqxVrx2uuxNxzJXZYJ2WOfdkYq/RYd0XSGhHU81MVyJBGIS8b44XAuQZJ+lYs4n9qEEIrRSkGQ6sAPvgxyFPhn/rx601yeIhER3b1wEnGdIBqmjUrNXvO6cUS++60q3IwS/fYPNRxDf98pLHchY9ofyXQ71wd9HRxVMhFwPfl1idr5HuMT2S1uQIqWeb7uxgWPqyh2Mltw19uDmvxsE0honGh4IV1lDE9Thiz4ovOdK4T0t7bNi5G5VTryGXL5Z6Tt0mTm1ypSo3zrkLtYS/cSUL0pgqyALTZ+Saf4SW4R/vTuKcLDliiH9keL+znRW//Vamx+bhTMe7ykxKoTBAktTUtnACyRjT6s+fR/t74Eih1yiD2xrN5eFCOkA4j6TbK4Q5zr4xkJocr1jDEzfrlEnoiKKabFgo9+ys5uj9Zrjrp4WQOoBohg3mN6QhgM2/AeA2MggUWGib/Pyx1Lv58k3lQLVFlPs2nbPHv5DeP8gUuqm5AxJP0ok57Ra/Eyyr38oenXkcNl5FdgiHg5DzO17SOPD4Eeu/g1O0nTh3wPDGJ6TtDYnJLnjei7jsZq196k5ZyAor199T/ZNUCrcbIPLyQED9rtLYDgVqezCzlu3gEZB20p4UcWOJGK6Qdq3I4nGS4ed6BeCQZIYTsbX5HNMi+uTni2NxzVkUYamg25IabDazGel8KkOFSXfqmZEPCzFZ7UIFUOX2hQjaAnZobHGoUvdkv2BpOMedFY7GA7uVrvmE1Sa/EIdRYzAUB1aXV3nyJdzdB6U8LRmKK8okqQQqEKC7Qt9z2Be18gHgmeI+c7jkvxYAvJem7+Bbou3ekRZrrm5yAsrHlWyLVCd6hDFQSg==
Hi all,
I am encountering universe inconsistencies while trying to write Coq code that depends on the VPL ( https://github.com/VERIMAG-Polyhedra/VPL ).
Once the VPL is compiled, the following code triggers an universe inconsistency:
Require Import ImpureConfig.
Require Import PedraQ.
Require Import List.
Definition f (x : unit) : imp unit := pure x.
Definition g l := map f l.
The error message is the following:
The term "f" has type "unit -> imp unit" while it is expected to have type
"unit -> ?B" (unable to find a well-typed instantiation for
"?B": cannot ensure that "Type@{Vpl.Impure.2}" is a subtype of
"Type@{Coq.Lists.List.170}").
In that code, the "Require Import PedraQ." conflicts with the application of "map" to a function returning "imp unit" (this file compiles fine without PedraQ).
Thus, I have two questions:
- how can I find in the code what causes the universe inconsistency? By that, I mean not only the specific line shown in the error message, but all the lines causing constraints in the cycle of the inconsistency.
- is there anything I could do to be able to use map with types such as "imp unit" that cause the universe inconsistency?
Thanks,
Nathanaël Courant
- [Coq-Club] Debugging universe inconsistencies, Nathanaël Courant, 06/20/2018
- Re: [Coq-Club] Debugging universe inconsistencies, Sylvain Boulmé, 06/20/2018
- Re: [Coq-Club] Debugging universe inconsistencies, Nathanaël Courant, 06/20/2018
- Re: [Coq-Club] Debugging universe inconsistencies, Matthieu Sozeau, 06/20/2018
- Re: [Coq-Club] Debugging universe inconsistencies, Nathanaël Courant, 06/20/2018
- Re: [Coq-Club] Debugging universe inconsistencies, Matthieu Sozeau, 06/20/2018
- Re: [Coq-Club] Debugging universe inconsistencies, Nathanaël Courant, 06/20/2018
- Re: [Coq-Club] Debugging universe inconsistencies, Sylvain Boulmé, 06/20/2018
Archive powered by MHonArc 2.6.18.