package rocq-camltac
Install
Dune Dependency
Authors
Maintainers
Sources
sha512=25955b8a53889141599f897d7b3902bc258d7037dfe38234bc8c2a128d27807bf0a0e6bfdc212a2a2c7126394f9350e85541f4946ec28e82f13d98450b83d605
Description
Camltac is an OCaml plugin for Rocq that lets you run OCaml code within Rocq scripts. Camltac makes it possible to define OCaml meta-programs and tactics, and run them in the current Rocq state without the friction and boilerplate of setting up a plugin.
Camltac is both a tactic and a meta-programming language:
-
As a tactic language, Camltac provides constructs inspired by Ltac2, including term quotations (
{%constr| … |}), pattern matching (match%rocq), and antiquotations using ppx_rocq. Camltac makes it easy to define new tactics by providing the usual tacticals from Ltac2, and a dedicated FFI with Ltac and Ltac2. -
As a meta-programming language, Camltac offers a complete meta-programming experience by allowing access to Rocq's internal APIs and state. To ensure stability, Camltac includes the Ltac2 APIs which provide a simple entry point to meta-programming in OCaml.
Tags
category:Miscellaneous/Rocq Extensions keyword:tactic keyword:ocaml keyword:ltac2 logpath:Camltac date:2026-10-26Published: 28 Oct 2026
Dependencies (8)
- ocamlfind
- ppx_deriving
- rocq-mltac2
- ppx_rocq
- rocq-core
-
coq-core
>= "9.0" -
dune
>= "3.17" & < "3.24" -
ocaml
>= "4.14"
Dev Dependencies (1)
-
odoc
with-doc
Used by
None
Conflicts
None