From: mukesh tiwari <mukeshtiwari.iiitm@gmail.com>
To: coq-club@inria.fr
Cc: caml-list@inria.fr
Subject: [Caml-list] Connecting extracted OCaml code from Rocq to zarith library
Date: Mon, 18 Aug 2025 10:07:35 +0100 [thread overview]
Message-ID: <BEB2738E-3A4B-4E18-9926-2CBADCCAC4B7@gmail.com> (raw)
Hi all,
I am hoping to find some Dune experts. I am currently working on a Rocq project [1] that builds with Dune, and I am trying to extract it into OCaml where Rocq integer (Z) is mapped to ExtrOcamlZBigInt [2]. However, I am getting the following error and wondering how to resolve this.
File "src/Extraction/dune", lines 2-7, characters 1-197:
2 | (coq.extraction
3 | (prelude Extraction)
4 | (extracted_modules SigmaIns Sigma Datatypes Vector
5 | VectorDef Zpstar BigInt)
6 | (theories ExtLib Stdlib Utility Crypto Algebra
7 | Probability Examples))
Error: Rule failed to generate the following targets:
- src/Extraction/Sigmalib/BigInt.ml
- src/Extraction/Sigmalib/BigInt.mli
In the past, I have used Makefile [3] where I linked a Big.ml [4] file to num or zarith library but I don’t know how to do this with Dune. I have also posted this question on Zulip so feel free to answer there as well [5].
Best,
Mukesh
[1] https://github.com/mukeshtiwari/SigmaProtocol/blob/master/src/Extraction/dune
[2] https://github.com/mukeshtiwari/SigmaProtocol/blob/master/src/Extraction/Sigmalib/Extraction.v#L3
[3] https://github.com/mukeshtiwari/EncryptionSchulze/blob/master/code/Makefile#L34
[4] https://github.com/mukeshtiwari/EncryptionSchulze/blob/master/code/big.ml
[5] https://rocq-prover.zulipchat.com/#narrow/channel/237977-Rocq-users/topic/Unbound.20value.20iff_reflect
reply other threads:[~2025-08-18 9:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BEB2738E-3A4B-4E18-9926-2CBADCCAC4B7@gmail.com \
--to=mukeshtiwari.iiitm@gmail.com \
--cc=caml-list@inria.fr \
--cc=coq-club@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox