coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jason Gross <jasongross9 AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Coq term parsers
- Date: Sat, 11 Feb 2017 06:45:57 +0000
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=jasongross9 AT gmail.com; spf=Pass smtp.mailfrom=jasongross9 AT gmail.com; spf=None smtp.helo=postmaster AT mail-qk0-f172.google.com
- Ironport-phdr: 9a23:NQ3DjB0pa6ZA9TuusmDT+DRfVm0co7zxezQtwd8ZseISI/ad9pjvdHbS+e9qxAeQG96Kt7QU26GP6/yocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDWwbalxIRi1ogndq9UajIR/Iast1xXFpWdFdf5Lzm1yP1KTmBj85sa0/JF99ilbpuws+c1dX6jkZqo0VbNXAigoPGAz/83rqALMTRCT6XsGU2UZiQRHDg7Y5xznRJjxsy/6tu1g2CmGOMD9UL45VSi+46ptVRTljjoMOTwk/2HNksF/g6xbrxChqRJxwIDafZ+bO+Zlc6zHYd8XX3BMUtpNWyFDBI63cosBD/AGPeZdt4Tzo0EBrQC5BQmqGejhyyVIhnjt3a0hzu8sFgPG0xY7H9IJtnTUo8/1NKAJUeCuyKTF1jrDb/ZM1jf87IjEaAwuofaJXb9pd8fa1EchFwTAjlqKqIzlOSuY2fgKs2ie8+VgUvuvhHIgqwFouTevwsAshZLVhoIP11DE8yZ5wJ4xJd2lR057YNikEIBOuCCVK4t2WNktTH10uCY7zb0Gv4C0fScWyJQ93RHQd+CHc4mP4hLlTuqRJDN4iGpqeLK+mxay8VWgxfbmWsao11ZKqyxImcTPuHAVzxHf9NSLR/9n8kqi2TuDzR7f5v9YLUwuiKbWKYAtz7gtnZQJq0vDBDX5mEDuga+WaEok/u+o5vziYrr8p5+cM5Z4ihj9Mqgyg8C/D/k0PwoQU2SB9uS807rj/UL9QLpUlPE5jq7ZsJXCKcQaoK62HRNV35495xqjCzqqytcVkHkdIF5bZh6Lk5LlN0zMLfzmFfu/hk6jkDZvx/DIJL3hBZDNI2DBkLj7ZrZ97EhcyAUpzdBY/JJUEbUMLen8Wk/0rtPYDxs5PxaozObgDdVxzpkeVn6XAq+FLKPStkeF6f4oI+mVfYMapDL9K+U+6PP1ln84mVodfbGz0pcNaXC4GO5mI0SDbnb2jNcBCzRCgg1rR+vzzVaGTDR7ZnCoXqt66CtoJpihCNLhT5uqhvSuxiCgBdUCZGldDVaDC3DzbNSsVPIFaSbUKchkxG9XHYO9QpMsgEn9/DTxzKBqe7LZ
Maybe try removing " | Sort s when Sorts.is_prop s -> (Logic,TypeScheme)" from flag_of_type in https://github.com/coq/coq/blob/trunk/plugins/extraction/extraction.ml? Also maybe look at removing instances of Kill kProp in that file?
On Fri, Feb 10, 2017, 9:03 PM Talia Ringer <tringer AT cs.washington.edu> wrote:
Possibly. JSON is an acceptable format. I'm not familiar with the Coq internals; do you know where I would look to make such a change?On Sat, Feb 11, 2017 at 2:32 AM, Jason Gross <jasongross9 AT gmail.com> wrote:It should be straightforward to fork Coq and have it extract Props too; I expect this to be at most a 5-line change (probably more like 1-line). Alternatively, pass -impredicative-set, and replace all instances of Prop with Set. Do either of those work?On Fri, Feb 10, 2017 at 8:22 PM Talia Ringer <tringer AT cs.washington.edu> wrote:Hello,For a project I'm working on, I need to be able to get ASTs for Coq terms. So far I'm aware of a few options:
- JSON extraction in 8.5, which does not work for us because we also need information in Prop
- A Peacoq plugin which we are trying to get working
- The XML protocol, which I know nothing about (is this useful?) but see referenced in old Coq-club threads
- template-coq, which is neat but does not fit our needs
I'm wondering if anyone knows of any other parsers that produce ASTs for Coq terms, including Props, preferably as s-expressions (or something similarly versatile).
Thanks,
Talia
- [Coq-Club] Coq term parsers, Talia Ringer, 02/11/2017
- Re: [Coq-Club] Coq term parsers, Jason Gross, 02/11/2017
- Re: [Coq-Club] Coq term parsers, Talia Ringer, 02/11/2017
- Re: [Coq-Club] Coq term parsers, Jason Gross, 02/11/2017
- Re: [Coq-Club] Coq term parsers, Talia Ringer, 02/11/2017
- Re: [Coq-Club] Coq term parsers, Emilio Jesús Gallego Arias, 02/22/2017
- Re: [Coq-Club] Coq term parsers, Jason Gross, 02/11/2017
Archive powered by MHonArc 2.6.18.