coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "jonikelee AT gmail.com" <jonikelee AT gmail.com>
- To: Pierre-Marie Pédrot <pierre-marie.pedrot AT inria.fr>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] module types and Ltac
- Date: Thu, 3 Dec 2020 09:39:48 -0500
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jonikelee AT gmail.com; spf=Pass smtp.mailfrom=jonikelee AT gmail.com; spf=None smtp.helo=postmaster AT mail-qv1-f53.google.com
- Ironport-phdr: 9a23:5mR76x9VApWq5P9uRHKM819IXTAuvvDOBiVQ1KB+0+wRIJqq85mqBkHD//Il1AaPAdyErasa1aGN6ejJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglVhjexe65+IRS3oAneuMQan5ZpJ7osxBfOvnZGYfldy3lyJVKUkRb858Ow84Bm/i9Npf8v9NNOXLvjcaggQrNWEDopM2Yu5M32rhbDVheA5mEdUmoNjBVFBRXO4QzgUZfwtiv6sfd92DWfMMbrQ704RSiu4qF2QxLzliwJKyA2/33WisxojaJUvhShpwBkw4XJZI2ZLedycr/Bcd8fQ2dKQ8RfWDFbAo6kYYUBD/QPM/tboYb/qVsAqhSxChWjCu701j9In2X70bEg3ug9EwzL2hErEdIUsHTTqdX4LKkeUeKyzKnOzDXDbO1Z2TPj54fWaR0hrvSMUqhxccrV00UgCwTFjlCepYf4OD6V1OMNs26a7+pjS+2vj3AopB9qrzigw8cjkIjJhoYPxl/Y8iV5xZ84KNulQ0F0fdCqCoFftz2GN4RoWMMiRXlltik7x7AGuZO2fTUHxYknyhPQaPGLboeF7xHgWeuRITp1gGxpdbKhixiy7ESs1+PxWtW13VtEsyZIk9fCum4T2xHV98OJRPx9/kK71jaO0QDe8u5EIUEolarbNp4u2aQ8mYYUsUTGGCL9hUb4jLeOe0k65uSl7/7rb7bmq5OGKYN4lwXzPr4ul8GxGeg0LAkDU3SG9em5ybHu+VH2TbBFg/A3jqXVrJXXKdkFqqGlBgJY3Zos5AujAzqj0NkXh3cHLFxAdRKJkYflJlDDLfX5APijgVmgjjFmzO3cMLL7GJXCNH3Dna/hfblj705czxI+zdVF6JJVDrENOevzWlHsuNDBAB80MwK5z/zoCNV60YMeVmaPDbGDPKzOtl+I4/ojI+iKZIALpDbwM+Yp6+LqgHMjmlIQfbOl0YUKZH28BPhrI0uUbWLpgtgbEGcKugQ+TPbtiF2HSTNTZXGyX6Q95jE4Fo2mCZnMSZ62jbyO2Se0BJxWZmRcBl+QFnfocp2IW+0QZyKKPs9hjjsEWKC5S4A/yB6urgj6y6Z8I+vV+y0YsIns1MJv6OHJlBEy8yZ0D8WH3G2XQWF0hHsCRyUq06BnvUx91lCD3LBkjPxfDNxf/u9GUgMnNZHH1OF6ENDzWgfZftiTUlqmQ9OmASswTt0r2dMObVx9SJ2eiUX73iewGbJQsrWRBZF8yiPQxX/tb5JlynvczqRkilA8Q8YJLWCqnKlj3wnVHY/A1UuDwfWEb6MZiWTP82GCzmeKsUxwXwt5UKGDVncaLAOCr9P/50DPS7KjIbsiOwpFj8WFL/0ZOZXSkVxaSaK7a5zlaGWrljL1XE7Qn+/eXM/RY2wYmR7lJg0ciQlKpCSJMAE/AmGqpGeMVGUzR2KqWFvl9KxFkF3+TkIwyFvXPUho1r7w4wBMwPLBELUc2bULvCpnoDJxTg7kjoDmTuGYrg8kR51yJNY04VNJz2Xc7lUvMZmpLqQkjVkbIV16
On Thu, 3 Dec 2020 14:23:36 +0100
Pierre-Marie Pédrot <pierre-marie.pedrot AT inria.fr> wrote:
> On 03/12/2020 04:33, jonikelee AT gmail.com wrote:
> > Did anyone know that it works to define Ltac in a Module Type, such
> > that instantiations of that Module Type with an instantiated Ltac
> > def (mostly) works?:
> >
> > This is in 8.12. I haven't tried Ltac2 yet - hopefully, the
> > instantiations are required to type match the abstration. Also, I
> > think it would be better if End Burp produced an error due to the
> > missing tac instantiation, instead of deferring the error (as an
> > Anomaly, no less) until runtime. That is, assuming this is all
> > intended behavior, which I hope it is... Is it?
>
> It's known, and can be considered a feature-ish bug. It's essentially
> a variant of the trick described here:
>
> https://github.com/coq/coq/issues/2199
yup. I should remember that, sometimes, the issue tracker makes an
excellent refman addition.
>
> Please don't do that in Ltac2 though, this is a known source of type
> unsoundness which is currently not fixable in the current module
> architecture. The best we can do is to forbid the definition of Ltac2
> types inside a module type, but even there one can probably weasel
> their way around using Include.
>
> PMP
>
Perhaps there might be some consideration in the future for how
to modularize Ltac2 code in a type safe way?
- [Coq-Club] module types and Ltac, jonikelee AT gmail.com, 12/03/2020
- Re: [Coq-Club] module types and Ltac, Jason Gross, 12/03/2020
- Re: [Coq-Club] module types and Ltac, Pierre-Marie Pédrot, 12/03/2020
- Re: [Coq-Club] module types and Ltac, jonikelee AT gmail.com, 12/03/2020
Archive powered by MHonArc 2.6.19+.