Isabelle/HOL & Isar Structured Proof Adapter (isabelle_hol -> lean4)
Translate Isabelle/HOL theories (.thy) -- including structured Isar blocks (fix / assume / obtain /
have / moreover /
ultimately / show), locale hierarchies, Krauss function packages, Lifting & Transfer, and
HOL-Analysis filter/measure
proofs --
into idiomatic Lean 4.
Routing
- USE FOR: porting Isabelle/HOL
.thyfiles, Archive of Formal Proofs (AFP) developments, seL4/word theories, andHOL-Analysis/HOL-Probabilityproofs into Lean 4 + Mathlib4. - DO NOT USE FOR: Rocq/Coq
.vports (delegate to@rocq-proof-adapter); HOL Light.mlor Metamath.mmports (delegate to@hol-metamath-adapter). - TRIGGERS: Isabelle, Isar,
.thy,locale,interpretation,obtain ... where,also have,finally show,lift_definition,by transfer,sledgehammer,meson.
Workflow
- Load Dialect & Concordance Map: Read
references/dialects/isabelle.jsonand querylean_search(source: "concordance")forCONC-01..20. - Translate Locales & Type Definitions (
CONC-04,CONC-13,CONC-14):- Single-carrier
locale/class-> Lean 4class([Group G]). - Multi-carrier
locale-> Lean 4 bundledstructureor multi-parameter typeclass ([Module R M]). quotient_type+lift_definition+by transfer->Quotient+Quotient.lift+Quotient.inductionOn.
- Single-carrier
- Translate Isar Structured Blocks (
CONC-02,CONC-06):fix x assume h: "P x"->intro x h.obtain w where hw: "Q w" using h by blast->obtain ⟨w, hw⟩ := h.
Recovery & STOP
- STOP when porting
(f ⤏ l) (at x within s): Isabelle'sat x within sexcludesx(𝓝[s \ {x}] x), whereas Mathlib's𝓝[s] xincludesx! Verify whetherx ∈ smatters before choosing𝓝[≠] xvs𝓝 x. - STOP if an Isabelle type definition relies on non-emptiness (
typedef) where the LeanType*requires an[Inhabited α]or[Nonempty α]typeclass hypothesis.
Handoffs
- Predecessors:
skill:lean-gateway,skill:itp-cross-porting,skill:lean-specification. - Successors:
skill:lean-proof,skill:lean-proof-review,skill:lean-verification-gate.
Detailed reference
- Layer-1 Fast Lookup Card (read first):
references/cards/isabelle-isar-adapter-tables.mdFull encyclopedic reference, decision trees, and lookup tables live inreferences/handbooks/isabelle-isar-adapter-handbook.md.
See also
../../references/handbooks/isabelle-isar-adapter-handbook.md-- Completeisabelle-isar-adapterHandbook../lean-gateway/SKILL.md-- Top-level skill router
