Cross-ITP Proof Porting & Concordance Router (CONC-01..20)
Coordinate proof and specification translation across the 6 supported Interactive Theorem Prover (ITP)
families (lean4,
coq_mathcomp,
isabelle_hol, hol_light, agda, metamath) using vendor/itp-ontology/cross-itp-concordance.v1.json and
references/dialects/*.json.
Routing
- USE FOR: end-to-end cross-prover translation planning, Agda <-> Lean 4 ports, multi-prover concordance
queries
(
lean_search(source: "concordance")), and routing dialect-specific translations to@rocq-proof-adapter,@isabelle-isar-adapter, or@hol-metamath-adapter. - DO NOT USE FOR: standard Lean 4 proof authoring without a foreign source proof (delegate to
@lean-proof); porting existing Lean 4 corpus lemmas into Mathlib4 PRs (delegate to@lean-upstream-pr). - TRIGGERS: cross-ITP port, translate proof, Agda to Lean, Coq to Lean, Isabelle to Lean, HOL Light to
Lean, Metamath to Lean,
CONC-01..CONC-20.
Workflow
- Identify Source Prover & Foundation Delta: Classify the source artifact (
coq_mathcomp,isabelle_hol,hol_light,agda,metamath) and load its dialect table fromreferences/dialects/<dialect>.json. - Query Concordance (
lean_search(source: "concordance")): Map each foreign proof mechanism (CONC-01throughCONC-20) to its idiomatic Lean 4 counterpart rather than translating line-by-line tactical plumbing. - Dispatch Dialect Adapter when Specialized:
- Rocq / Coq / SSReflect / MathComp ->
@rocq-proof-adapter - Isabelle/HOL / Isar / locales ->
@isabelle-isar-adapter - HOL Light / Metamath (
set.mm) ->@hol-metamath-adapter
- Rocq / Coq / SSReflect / MathComp ->
Recovery & STOP
- STOP if a foreign proof relies on untyped partiality or set-theoretic junk values that falsify the naïve
Lean 4 translation;
add
explicit domain preconditions via
@lean-specification. - STOP if porting from Agda/Coq introduces a custom
axiomin Lean 4; map classical/extensional postulates to Lean's standard[propext, Classical.choice, Quot.sound].
Handoffs
- Predecessors:
skill:lean-gateway,skill:lean-research,skill:lean-specification. - Successors:
skill:rocq-proof-adapter,skill:isabelle-isar-adapter,skill:hol-metamath-adapter,skill:lean-proof,skill:lean-proof-review.
Detailed reference
- Layer-1 Fast Lookup Card (read first):
references/cards/itp-cross-porting-tables.mdFull encyclopedic reference, decision trees, and lookup tables live inreferences/handbooks/itp-cross-porting-handbook.md.
See also
../../references/handbooks/itp-cross-porting-handbook.md-- Completeitp-cross-portingHandbook../lean-gateway/SKILL.md-- Top-level skill router
