coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Talia Ringer <tringer AT cs.washington.edu>
- To: Coq-Club <coq-club AT inria.fr>
- Subject: [Coq-Club] Plugins, type-checking, and universe constraints
- Date: Mon, 9 Apr 2018 18:06:37 -0700
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=tringer AT cs.washington.edu; spf=None smtp.mailfrom=tringer AT cs.washington.edu; spf=None smtp.helo=postmaster AT mail-ua0-f176.google.com
- Ironport-phdr: 9a23:jLzQxxKLkuEgzlgyXNmcpTZWNBhigK39O0sv0rFitYgRKPXxwZ3uMQTl6Ol3ixeRBMOHs6kC07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwtFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhicJOTA67W/ZlNB/gblBrx69vRFy2ZLYbJ2XOfd4Y6jTfckaRW1EXstJSSJOGIe8b4oVAOEcIehYro/9p1QQohukGAKhA//vyiVJhn/w0q01zf4hHBra0ww7Bd4Pvm7brM71NKcTV+C1w7XIzTLFb/9Mxzjy9ZXIfwknrPqRXrxwadLcxVczGw7BlFmdqozoMymL2ugQsWWX9fdsWOCuhmMhtgp/uCKgxt02hYnMno8Vyk7L9SF+wIstIN23Uk97Ydq9HJtNrS6WK5J6Qs0/T2xquSs20LIGuZm8fCgFzJQo2QTTZOCAc4iN+h7jVeCRLilkhH99Zr6zmxK//VKjx+D8TMW4zktGoyhfntXRtH0A1gTf6s2dRft8+keh1yyP1wfW6uxcPUA0j6vbK5guwrEujJoeqljMHjTslET4lqCWbUUk+umu6+TofrXmoZmcO5VqhQ7jL6Qigta/DvggMggSQ2ib/vyx26Hk/U3gWblFkvk2krTCv53BPsQapqu5AxdP3Yo56ha/CS2m0NUCknUdIlJFYkHPs4+8EFbXZdv8EP3311+riXJgw+3MFrznGJTEaHbZxuTPZ7F4vnJVzAs6hepe4Z1ZEPlVPOjyXED8rvTTFVkmOhe0wuDoFNJ7kI4SRDTcUeeiLKrOvArQtaoUKO6WadpN4WevG70e//fryEQBtxoYdKit04EQbSnpTP99ZVqQenrthNgdFmFMswYjHrSz1A+yFAVLbnP3ZJoSoykhAdv3X4zYAJ+km7yA2iinGZsQa2xbWAjVTCXYMr6cUvJJUxq8Z89sljteC+qkQo4lkAyn7Er0kuU5aOXT/SIcuNTo090nv+A=
Hello,
I am writing a plugin, and as part of this plugin, I occasionally need to type-check terms. This is usually fine, but sometimes, I get errors like this:
The 2nd term has type "nat -> Type@{max(Foo, Bar)}"
which should be coercible to "nat -> Type@{Baz}".
I know what this means, but the thing is, these constraints are actually solvable; if I wrote the term outside of my plugin, it would type-check and go through. But inside of the plugin, the type-checking routine fails.
I'm looking for one of two things:
1. A way to tell type-checking from within a plugin about the universe constraints so that it knows to solve them correctly, or
2. a way to tell type-checking from within a plugin to just assume all universe constraints go through, because this will always be true for me, and if it isn't, then the plugin will just fail later anyways
I'm assuming #1 is the proper way to call type-checking from within a plugin, but I'm not sure how to do it.
- [Coq-Club] Plugins, type-checking, and universe constraints, Talia Ringer, 04/10/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Sylvain Boulmé, 04/10/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Matthieu Sozeau, 04/10/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Emilio Jesús Gallego Arias, 04/11/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Talia Ringer, 04/13/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Théo Zimmermann, 04/13/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Sylvain Boulmé, 04/13/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Emilio Jesús Gallego Arias, 04/13/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Talia Ringer, 04/13/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Sylvain Boulmé, 04/10/2018
Archive powered by MHonArc 2.6.18.