Skip to main content

rocq-build-troubleshoot

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.

Ir para a instalação

Informações da origem

Repositório
formal-land/rocq-of-rust
Última atividade na origem
8 de fevereiro de 2026 às 21:09
Idioma detectado do SKILL.md
inglês
Estrelas
1.165
Forks
43

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
rocq-build-troubleshoot
description
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.
# 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: ```sh coqc -R . RocqOfRust -impredicative-set path/to/file.v ``` 2. 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}/...`. 3. 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. 4. If `Range` literals fail type inference: - Use record notation with typed zeros: ```coq {| Range.start := (0 : usize); Range.end_ := (0 : usize) |} ``` 5. Recompile touched file(s): ```sh coqc -R . RocqOfRust -impredicative-set path/to/file.v ``` 6. Optional dependency sanity check: ```sh 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`.
Ver no GitHub