OpenParable
Skip to content
← Back to skills

Rocq Build Troubleshoot

Testing & Quality
rocq-build-troubleshoot

Rocq Build Troubleshoot is an Agent Skill for testing & quality published in the formal-land/rocq-of-rust repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Fast workflow to diagnose and fix Rocq/Coq compile errors in this repository, especially missing imports after links/simulate splits and per-file compile checks.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/formal-land/rocq-of-rust/blob/HEAD/RocqOfRust/skills/rocq-build-troubleshoot/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/rocq-build-troubleshoot, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Rocq Build Troubleshoot

Use this skill when a .v file fails to compile and the goal is a minimal targeted fix.

Scope

  • Repository: RocqOfRust
  • Commands use project flags: -R . RocqOfRust -impredicative-set
  • Prefer single-file checks first, then dependency checks.

Workflow

  1. Reproduce exactly:
coqc -R . RocqOfRust -impredicative-set path/to/file.v
  1. If error references missing module/loadpath:
  • Add explicit Require Import ... in the failing file.
  • Do not rely on removed aggregator modules.
  • Prefer per-function imports in revm/revm_interpreter/instructions/{links,simulate}/....
  1. If error is argument-order/type mismatch in run_* call:
  • Compare the local run_* instance signature in .../links/....
  • Align call order exactly; remove placeholder _ arguments unless required by implicit params.
  1. If Range literals fail type inference:
  • Use record notation with typed zeros:
{|
  Range.start := (0 : usize);
  Range.end_ := (0 : usize)
|}
  1. Recompile touched file(s):
coqc -R . RocqOfRust -impredicative-set path/to/file.v
  1. Optional dependency sanity check:
make path/to/file.vo

Guardrails

  • Keep fixes minimal and local.
  • Do not reintroduce removed aggregators.
  • Preserve Admitted where the project intentionally keeps placeholders.
  • If proving _eq fails, check semantic alignment before attempting Qed.