coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Soegtrop, Michael" <michael.soegtrop AT intel.com>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: RE: [Coq-Club] natural numbers as a datatype and as decimal numerals
- Date: Mon, 14 May 2018 10:09:53 +0000
- Accept-language: de-DE, en-US
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=michael.soegtrop AT intel.com; spf=Pass smtp.mailfrom=michael.soegtrop AT intel.com; spf=None smtp.helo=postmaster AT mga05.intel.com
- Dlp-product: dlpe-windows
- Dlp-reaction: no-action
- Dlp-version: 11.0.200.100
- Ironport-phdr: 9a23:5biVwRd2J6F3lWsk8VvksL4glGMj4u6mDksu8pMizoh2WeGdxcS+YB7h7PlgxGXEQZ/co6odzbaO6Oa4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahb75+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM38H/ZhNFsjKxVoxyhqR5ww4/Ib46aO/RzZb/dcsgeSGZdQspdSy5MD4WhZIUPFeoBOuNYopHzq1UTqhuxGwasBP/1yj9Pnn/6xbAx3eMgEQ7a3AwvBcwBsHDaoN7oM6oSVOG1w7XIzTrZcfxW3S3x6JPPch8/rvGMQahwcc3JyUQ0FgPFiEmQppLhPz+PyusNtG2b4vNmWOmyhWAnrARxrSKuxscqkoTJh4QVykza+iV92oo6OMO3RUhmatCnCJtdrzyWOo9oTs84Q2xluDw2x70YtZKhcyUHxowrywPeZvGJaYSF7BzuWPyPLTp2gH9pYq+zihWv/US41+HxV8253ExUoidFndTArG4B2wbN5sWITvZw+Fqq1yyV2ADJ8O5EJFg5larFJJ4lxb49jp8TsUvZESPqmEj6lq6WdkM4+ue27+TreKnpppiZN4NsiwH+NLohmtCnDOglNgUCQXKX9OS82bH5/UD1Xq9Gg/I4n6XBtZDVP8Ubpqq3Aw9P1YYj7g6yDzKn0NsEnXkINkxKeBadg4jyPFHBPv/4Deulg1SriDdm3PHGPrv9AprTKnjPiqvufbF460JE0go80chf545ICrEGOP/8RkjxtMXBAhAlNwy03v3oBc5m1oIeXGKPGrWWPLnTsV+O/OIvIvODaJUbuDbneLAZ4Kukhngg3FQZYKOB3J0NaXn+EO4saxGSZmOpidMcG08LuBA/RarkkgvRfyRUYiP4ZKUx6S0hD5riRaLCTYCkjbjLlHO+H5ZWb21CTEuLHHj0bYKcc/YKdC+WZMRml2pXBvCaV4Y92ET250fBwL19I7+Mo3xKhdfYzNFwotbru1Q3/D1wAd6a1jjUHWBygm4MATQx2fIm+BAv+hK4yaF9xsdgO5lL/foQC1U7M4LRy6pxDNWgAlucLOfMc06vR5CdOR90Tt81xIZRMUNyEo3/yBHFwyeuRbQSku7TCQ==
Dear Gergely,
SF defines its own nats in a module NatPlayground and then closes this
module, so that the standard library nats are used. They do the same trick
several times to just explain how things are done but then go back to the
library definitions.
The nat notation is pretty hard wired into Coq. In Init.Datatypes at the
beginning you find:
Declare ML Module "nat_syntax_plugin".
(note: this is not shown in the HTML dumps of the library sources, you need
to look into the .v file). Afaik this does the trick. I can't tell how the
nat type is actually connected to this plugin, I think it is simply hard
wired by name in the plugin.
I guess this is nothing the Coq community is especially proud of, but it did
work so far ...
Best regards,
Michael
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
- [Coq-Club] natural numbers as a datatype and as decimal numerals, Gergely Buday, 05/14/2018
- Re: [Coq-Club] natural numbers as a datatype and as decimal numerals, David P Á, 05/14/2018
- Re: [Coq-Club] natural numbers as a datatype and as decimal numerals, Gergely Buday, 05/14/2018
- RE: [Coq-Club] natural numbers as a datatype and as decimal numerals, Soegtrop, Michael, 05/14/2018
- Re: [Coq-Club] natural numbers as a datatype and as decimal numerals, Théo Zimmermann, 05/14/2018
- RE: [Coq-Club] natural numbers as a datatype and as decimal numerals, Soegtrop, Michael, 05/14/2018
- Re: [Coq-Club] natural numbers as a datatype and as decimal numerals, Théo Zimmermann, 05/14/2018
- Re: [Coq-Club] natural numbers as a datatype and as decimal numerals, José Manuel Rodriguez Caballero, 05/14/2018
- Re: [Coq-Club] natural numbers as a datatype and as decimal numerals, Gaëtan Gilbert, 05/14/2018
- Re: [Coq-Club] natural numbers as a datatype and as decimal numerals, Maxime Dénès, 05/14/2018
- Re: [Coq-Club] natural numbers as a datatype and as decimal numerals, Théo Zimmermann, 05/14/2018
- RE: [Coq-Club] natural numbers as a datatype and as decimal numerals, Soegtrop, Michael, 05/14/2018
- Re: [Coq-Club] natural numbers as a datatype and as decimal numerals, Théo Zimmermann, 05/14/2018
- RE: [Coq-Club] natural numbers as a datatype and as decimal numerals, Soegtrop, Michael, 05/14/2018
- Re: [Coq-Club] natural numbers as a datatype and as decimal numerals, Gergely Buday, 05/14/2018
- Re: [Coq-Club] natural numbers as a datatype and as decimal numerals, Li-yao Xia, 05/14/2018
- Re: [Coq-Club] natural numbers as a datatype and as decimal numerals, David P Á, 05/14/2018
Archive powered by MHonArc 2.6.18.