Duplicate theories in the same project should be caught by Dune: $ mkdir A $ mkdir B $ cat > A/dune << EOF > (rocq.theory > (name foo)) > EOF $ cat > B/dune << EOF > (rocq.theory > (name foo)) > EOF $ dune build Error: Rocq theory foo is defined twice: - theory foo in A/dune:2 - theory foo in B/dune:2 -> required by alias default [1]