coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jonathan <jonikelee AT gmail.com>
- To: Coq Club <coq-club AT inria.fr>
- Subject: [Coq-Club] erased args in extracted anon funs
- Date: Sat, 05 Jul 2014 22:10:32 -0400
I am using extraction into OCaml quite a bit, and one thing I am
wondering about is if there is any way to get the extraction of
anonymous and local functions (such as those generated by induction)
to not be so underscore-happy. With the extraction of named global
functions, Coq does a very good job of pruning out any and all
arguments that have no runtime content (like Prop terms). But, for
anonymous and local functions, it just replaces them with
underscores, as in the following:let union t1 t2 = The annoying thing is: with named functions, if this was happening, I could probably use Extraction Implicit to fix it. But I don't see how that could work with anonymous or local functions. I know the underscores don't do anything - and the OCaml compiler most likely eliminates them - so concern about this can't be very high, but I figured I'd ask anyway. Keeping the extracted OCaml code as readable as possible is providing surprising benefits to my project. -- Jonathan |
- [Coq-Club] erased args in extracted anon funs, Jonathan, 07/06/2014
- Re: [Coq-Club] erased args in extracted anon funs, Daniel Schepler, 07/15/2014
Archive powered by MHonArc 2.6.18.