coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jason -Zhong Sheng- Hu <fdhzs2010 AT hotmail.com>
- To: Xuanrui Qi <xqi01 AT cs.tufts.edu>, "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Connecting strings in Coq and extraction target?
- Date: Fri, 5 Oct 2018 21:18:44 +0000
- Accept-language: en-CA, en-US
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=fdhzs2010 AT hotmail.com; spf=Pass smtp.mailfrom=fdhzs2010 AT hotmail.com; spf=Pass smtp.helo=postmaster AT NAM03-DM3-obe.outbound.protection.outlook.com
- Ironport-phdr: 9a23:AhO69xRmkmrMLz+ym+RBSIC/Rtpsv+yvbD5Q0YIujvd0So/mwa6zZhSN2/xhgRfzUJnB7Loc0qyK6/+mATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfbF/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4rx1QxH0ligIKz858HnWisNuiqJbvAmhrAF7z4LNfY2ZKOZycqbbcNgHR2ROQ9xRWjRBDI2icoUPE+QPM+VWr4b/u1QBogCzChOwCO/z0DJEmmP60bM83u88EQ/GxgsgH9cWvXrQttr1L6ASUeaox6XRzjrDb/RW2THy6IPVbx4hoe+DXbR/ccbI1EIhFR7FhUiXpIzrIjyV1uUMs3OF4+Z8SO6jl3UqqwF2ojizw8cjkIjJhoYPxl/Y8iV5xZ84KNulQ0B4ed6pCIVcuz2YOodsTc4vQntktDs7x7AIo5K3YjUGxIwpxxHBaPGLb42F7xf5W+uVPzt3n3dodK+9ihmp/0itz+7xWdev31tPrydKidfMuWsL2hfO8MaIUOF98V2k2TuX1wDc9OVEIUcsmKTDN5MvxaI8m5QKvUrNGSH7llz6jKiNeUo64OSo7PnnYqn9qZ+bKo90jBzxPr42msylBuQ4LhYBUHSH+eS9073j+1f1QLJXjv0qlqnZt5faJccBqqGlBA9V154v6xe5Dzi4zNQVhWcLIE5HdR6dgIXkOkvCLO35APqxmVigjipny+jDPrL7A5XNKnbDkK3mfbZ480Ncxhc8zdBe5pJPFL0NPO//VlPqudzYCR85Lwm0zPzmCNV5zI8RRWWPAqqBPKPIrVCI/v4vI/WLZIINpDn9LOEl6+fygn89hF8SZrKk3YAXaXC9BvRpOV+VYXvqgtcbEGcFpBAyTOLwiA7KbTkGV2u7Wbgh53kCCcryHZ7CHtmFi6fHwDq1AoYQa2xbXBTEW3zvbsCPX+oGQCOUOM5o1DIeH/D1QIg4kBqqqQXSyrx9L+OS9DdO5rz5090gxeTIkhd6sA50CMKSm1qNQmd72ysoWndi0qx/s1cnkg7b+ah/n/lRFNgV7PRMBFRpfaXAxvB3XoihEjnKec2EHRP/Go3/UGMBC+kpytpLWH5TXtCrjxTNxS2vWuRHl7uXAZU19uTX2H2jfp8hmUaD77EoihwdeuUKLXev3/Ut9w/PAofIlwOSkKP4Lf1Bjh6Iz3+KyC+1hG8dUAN0VvmaD1Y2QxON6PjcvQbFRbLoDqk7OAxcz8LEMrFNdtDikVRBQrHkJcjaZGWy3Wy3AETRyw==
Hi Xuanrui, Ifaz,
I took a quick look at Menhir's refman. Actually it has a coq backend. Ultimately it's coq that does the verification, so I think it's fine. It has caught a few of my typos. Compcert seems to also do it in this way. However, what's certified in Menhir's output
is that the parser is sound wrt to the grammar. It's one step closer to string -> ast, but lexer is missing now.
From: coq-club-request AT inria.fr <coq-club-request AT inria.fr> on behalf of Xuanrui Qi <xqi01 AT cs.tufts.edu>
Sent: October 5, 2018 1:28 PM
To: Coq Club
Subject: Re: [Coq-Club] Connecting strings in Coq and extraction target?
Sent: October 5, 2018 1:28 PM
To: Coq Club
Subject: Re: [Coq-Club] Connecting strings in Coq and extraction target?
Jason and Ifaz:
I'm not sure Menhir generates a verified parser, though. If I recall correctly, verified parsing is still a quite active research topic.
-Xuanrui
On Fri, Oct 5, 2018 at 12:06 PM -0400, "Ifaz Kabir"
<ikabir AT uwaterloo.ca> wrote:
Hi Jason,
I can't comment on the strings part, but Menhir (an OCaml parser generator) can produce Coq parsers.
-Ifaz
From: Jason -Zhong Sheng- Hu
Sent: Friday, October 5, 9:56 AM
Subject: [Coq-Club] Connecting strings in Coq and extraction target?
To: Coq Club
Hi all,
I am wondering if there is already a good practice on turning strings in Coq into, say, strings in Haskell? The goal is to push informal part as late as possible, so I am thinking implementing the to-string functions in Coq as well. This is especially important when the objects are dependent. However, these strings need to go to console eventually, so I guess it has to become string in Haskell some point. My problem is, if this transition is not well-guarded, it sort of defeats the purpose of pushing informal parts late already. So how do people normally do this?
Secondly, is there any framework that can turn a context free grammar into a certified parser in Coq?
Thanks,
Jason
- [Coq-Club] Connecting strings in Coq and extraction target?, Jason -Zhong Sheng- Hu, 10/05/2018
- Re: [Coq-Club] Connecting strings in Coq and extraction target?, Ifaz Kabir, 10/05/2018
- Re: [Coq-Club] Connecting strings in Coq and extraction target?, Xuanrui Qi, 10/05/2018
- Re: [Coq-Club] Connecting strings in Coq and extraction target?, Jason -Zhong Sheng- Hu, 10/05/2018
- Re: [Coq-Club] Connecting strings in Coq and extraction target?, Xuanrui Qi, 10/05/2018
- Re: [Coq-Club] Connecting strings in Coq and extraction target?, sunil, 10/05/2018
- Re: [Coq-Club] Connecting strings in Coq and extraction target?, Ifaz Kabir, 10/05/2018
Archive powered by MHonArc 2.6.18.