coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Kenji Maillard <chocobodralliam AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Question about Coq universes
- Date: Wed, 22 Apr 2020 18:00:46 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=chocobodralliam AT gmail.com; spf=Pass smtp.mailfrom=chocobodralliam AT gmail.com; spf=None smtp.helo=postmaster AT mail-wr1-f53.google.com
- Ironport-phdr: 9a23:vsrfPxTCIcNPX2XVms2cz7mRqtpsv+yvbD5Q0YIujvd0So/mwa6yYReN2/xhgRfzUJnB7Loc0qyK6v2mBTNLscjJmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanbr5+MRW7oR/eu8QUjodvKac8wQbVr3VVfOhb2XlmLk+JkRbm4cew8p9j8yBOtP8k6sVNT6b0cbkmQLJBFDgpPHw768PttRnYUAuA/WAcXXkMkhpJGAfK8hf3VYrsvyTgt+p93C6aPdDqTb0xRD+v4btnRAPuhSwaMTMy7WPZhdFqjK9DvRyvuRJ/zY7Xbo+bOvVxcaHScs8BSGVbQspcTTZMDp+yYoYNCecKIOZWr5P6p1sLtRawABejBOXtyj9Jm3T42rc10+UlEQHCxgMgBc8Bu2nTodrpNKcSVvy6zK7TwjXEcvxWwy3y6IzMchAgu/6MWKl9ccXUyUY1FgPFik+cppDiPzOQz+kAtXWQ4eRnVeKqkWEnqgdxryCyxscqi4nJmJsZykvB9Spi2oo1K8e4RUhmatCnCJtdrz+WO5dyT884QGxluDw2xqMYtZKmZiQHyJoqywbBZ/Odb4SE/xfuW/ifLDp4gX9pZry/hxi2/EWlyuDwSse03EpPoyVYiNbAq2oC2hnN5cedSPZy5UKs1DeM2g/I6OxJJF04mbfFJJMhxLM7i4Advl7ZHiDsnUX7lK+WeVsg+uiv8+nnZ6/ppp6YN4NthAD+KLkiltWxAek4PAUCRWeb+eO71L3s+U32Xq9GgeExkqncqJzaJMIbqbClAwJNzIov9xKyAy2l3dkYh3ULMkxJdA+dg4XpNVzCOPX4Au2+g1Sonjdr3ffGPrj5D5rRLnjDl6vufbFm5E5b1QUz18pQ55ZQCrEAOv3zX1T8tNPdDhAjMgy0x/zrB8l61oMbQW6PGLOWMLvOsV+U4eIiO/WDZIgMuDrkN/cl4+PugmQilF8Gfaip2IMXZ2qiEvRnJUWZe3vsjc0bHWcEpAptBNDt3VaFSHtYY2u4d6M6/DAyToy8XqnZQYX4o7GH3ibzO5RXYmRPEFzERXzocI6DUfAAciuWJs5olxQLULGgT8kq0hT451yy8KZuMueBon5QjpnkztUgv7SOxyF3ziR9CoGm60/IT2xwmTlVFTo/3aQ6vlYkj1neiu53hPtXEdEV7PRMAF9jZMzsitdiAtW3YTrvO9KASVKoWNKjWGhjQdc4wttIaEF4SYz70kLzmhGyCrpQrISlQYQu+/uFjXf0Lsd5jX3B0ft5gg==
Hi Richard,
What do you want to achieve exactly ?
I don't think it is exact to say Coq's universe levels form a
total order: at any point of a Coq development the universes
together with their constraints form a finite graph without any
cycle containing a strict edge (<). However you could always
map such a graph to a total order by adding more constraints.
In your example, you can see by printings universes that (test t2)
adds a constraint sf1 <= sf0 (at least if you add a `Definition
x := test t2.`) so that your universe graph is not a tree anymore
(and I don't think that there is any way to declare to coq that
two universe levels should be incomparable).
Cheers,
Kenji
Thanks for your prompt answer. Let us consider the following test :
Universes sf2 sf1
sf0.
Constraint sf0 < sf2.
Constraint sf1 < sf2.
Parameter t1 : Type@{sf0}.
Parameter t2 : Type@{sf1}.
Parameter test : Type@{sf0} -> Prop.
Check (test t1).
(* we expect that sf0 and sf1 are two branches under sf2 and
that the following test fails *)
Check (test t2).
Gaëtan Gilbert
On 22/04/2020 17:08, richard Dapoigny wrote:
Dear Coq Members,
We are using the Coq hierarchy of polymorphic universes which has been recently implemented by Sozeau.
We want to use it for subtyping and we expect it to be an implementation of Grothendieck universes, however it seems to be a total order. Therefore we cannot have a tree-like hierarchy.
However is it possible to ultimately have that structure?
Thanks for your answer,
Richard
--
*Richard Dapoigny*
/Associate Professor/ - LISTIC Laboratory
University Savoie Mont-Blanc
5, chemin de Bellevue
Po. Box 80439
Annecy-le-Vieux 74940
FRANCE
https://www.listic.univ-smb.fr/en/presentation-en/members/lecturers/richard-dapoigny-en/
/****** People who don't know history are condemned to repeat it. ******/
Richard Dapoigny
Associate Professor - LISTIC Laboratory
University Savoie Mont-Blanc
5, chemin de Bellevue
Po. Box 80439
Annecy-le-Vieux 74940
FRANCE
https://www.listic.univ-smb.fr/en/presentation-en/members/lecturers/richard-dapoigny-en/
****** People who don't know history are condemned to repeat it. ******
- [Coq-Club] Question about Coq universes, richard Dapoigny, 04/22/2020
- Re: [Coq-Club] Question about Coq universes, Gaëtan Gilbert, 04/22/2020
- Re: [Coq-Club] Question about Coq universes, richard Dapoigny, 04/22/2020
- Re: [Coq-Club] Question about Coq universes, Kenji Maillard, 04/22/2020
- Re: [Coq-Club] Question about Coq universes, Gaëtan Gilbert, 04/22/2020
- Re: [Coq-Club] Question about Coq universes, richard Dapoigny, 04/22/2020
- Re: [Coq-Club] Question about Coq universes, Gaëtan Gilbert, 04/22/2020
- Re: [Coq-Club] Question about Coq universes, Pierre Courtieu, 04/22/2020
- Re: [Coq-Club] Question about Coq universes, Kenji Maillard, 04/22/2020
- Re: [Coq-Club] Question about Coq universes, richard Dapoigny, 04/22/2020
- Re: [Coq-Club] Question about Coq universes, Gaëtan Gilbert, 04/22/2020
Archive powered by MHonArc 2.6.18.