Importing the tactic in other files#
One important aspect of Camltac is that Camltac modules follow Rocq’s locality system, i.e., they can be made #[local], #[export], or #[global].
Create a new file called Test.v that simply imports Tutorial.v:
Test.v#
1Require Import Tutorial.
By default, Camltac modules are #[export], but we can make this explicit in Tutorial.v:
Tutorial.v#
3#[export]
4Camltac Module ApplySearch := ocaml:{{
5 (* … *)
In Test.v, you can check that ApplySearch was imported using Camltac Check: