Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Unexpected universe level assignment

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Unexpected universe level assignment


Chronological Thread 
  • From: Dominik Kirst <kirst AT ps.uni-saarland.de>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Unexpected universe level assignment
  • Date: Mon, 17 Jul 2017 12:10:40 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=kirst AT ps.uni-saarland.de; spf=Pass smtp.mailfrom=kirst AT ps.uni-saarland.de; spf=None smtp.helo=postmaster AT theia.rz.uni-saarland.de
  • Ironport-phdr: 9a23:SDDEHhFWehItsnceQYq4dZ1GYnF86YWxBRYc798ds5kLTJ78oMSwAkXT6L1XgUPTWs2DsrQf2rWQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDiwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KOT4l/2/YhcN+kaxVoBy/qRN9wIDaZ5qYNOZnfqPYYd8aRXZNU8RXWidcAo28dYwPD+8ZMOhWqIn9oloOrR2/BQmvGejhzz5IhmXt3a0mzu8sFgLG3A06H9IVrHTZt831NLwIXeCoyqnIzCzPb+hM1jjn8ojIdgouofeRUr5qbMXe11AiGgXYhVuerozlOima1uULs2WD7upgU/ivi289pA1rrDiv3MEhgZTKiIIN0l3I6Ct0zYkvKdC8SUN3e9ypHIFeui2HL4d6X80vTm5ytCs+y7AKo4O3cSsLxZg92hLTd+GLfo6V6Rz5TumROy13hHd9dbK/mRmy9U+gx/XgVsm0zllKrzBKnsPWtnEMzRDT986HSvpk8ke6wzmAzRrT6uVeLkAyiKXXMYMuzaAompoSt0TMADP2lV3rgKKYeUgo4Oyl5uX9brjkvJOROZJ4hhn7Mqs0m8y/Beo4MhIJX2ie4em817zj/VfiQLVWlfA2irLZvIrHJcQdp661GhRV3Zw55BalCzepytIYkmQdIF1YZh2Ll5LpNE3WIPDkEfe/hEyhnytsx/DfJ7HuHpHNLmXYn7r6ZrZ860tcyBIpwtxF5pJUDKsBIPPpVUPrutzYFExxDwvhyOH+Td55y4k2WGSVA6bfPrmBn0WP47cDJOyNYo4W8BX8MeM5r6rtjGUihXcFZu+025pSc3mxBPBvJUnfbXe60YRJKnsDogdrFL+is1aFSzMGP3s=

Great, that did work, thank you!

Dominik




> On 17. Jul 2017, at 11:12, Gaetan Gilbert
> <gaetan.gilbert AT ens-lyon.fr>
> wrote:
>
> It's a consequence of a minimization heuristic. See
> https://coq.inria.fr/refman/Reference-Manual032.html#sec807
>
> You can do [Unset Universe Minimization ToSet] as the link says or you can
> make the universe explicit so that it won't be unified with Set.
>
> Gaëtan Gilbert
>
> On 14/07/2017 13:16, Dominik Kirst wrote:
>> Hello,
>>
>> the following code produces some unexpected behaviour:
>>
>> ——
>>
>> Set Universe Polymorphism.
>> Set Printing Universes.
>>
>> Inductive Tree : Type :=
>> | sup : forall X : Type, (X -> Tree) -> Tree.
>>
>> Definition pair s t :=
>> @sup bool (fun b => if b then s else t).
>>
>> About pair.
>>
>> "pair@{} : Tree@{Set} -> Tree@{Set} -> Tree@{Set}"
>>
>> ——
>>
>> Although the function “pair" is inferred to be universe-polymorphic, the
>> input trees and return trees are restricted to Set. This should not be the
>> case since the operation is valid for all universe levels. In fact, other
>> operations such as union and power (that do not refer to explicit types
>> like bool in their definitions) are typed correctly. Is that intended or a
>> bug?
>>
>> Thanks for your help,
>> Dominik Kirst
>




Archive powered by MHonArc 2.6.18.

Top of Page