isabelle-isar-adapter
Skill3 starsChanged 25 days agoApache-2.0View on GitHub
USE FOR: translating Isabelle/HOL and Isar proofs (locales, transfer, HOL-Analysis) into Lean 4. DO NOT USE FOR: Rocq ports (@rocq-proof-adapter) or HOL/Metamath (@hol-metamath-adapter). TRIGGERS: Isabelle, Isar, locale, lift_definition, transfer, Sledgehammer, Isabelle to Lean.
In this repository65 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-guard-judge-evalSkill
- applied-data-information-securitySkill
- applied-engineering-disciplinesSkill
- applied-legal-reasoningSkill
- epistemic-discovery-engineSkill
- epistemic-mappingSkill
- hol-metamath-adapterSkill
- itp-cross-portingSkill
- lean-ai-formalizationSkill
- lean-applied-reasoningSkill
- lean-axiom-closureSkill
- lean-bigraph-modelingSkill
- lean-bisectSkill
- lean-blueprintSkill
- lean-buildSkill
- lean-causal-reasoningSkill
- lean-competitive-mathSkill
- lean-convergence-verificationSkill
- lean-core-onlySkill
- lean-dag-visualizerSkill
- lean-deep-auditSkill
- lean-doc-feedbackSkill
- lean-doc-improvementSkill
- lean-doc-requirementsSkill
- lean-enforcementSkill
- lean-formalization-breakdownSkill
- lean-gatewaySkill
- lean-integration-protocolSkill
- lean-knowledge-formalizationSkill
- lean-math-analysisSkill
- lean-math-discreteSkill
- lean-math-dynamicalSkill
- lean-math-foundationsSkill
- lean-math-optimizationSkill
- lean-math-stochasticSkill
- lean-mweSkill
- lean-nested-learningSkill
- lean-package-researchSkill
- lean-pedagogical-expositionSkill
- lean-proof-refactorSkill
- lean-proof-repairSkill
- lean-proof-reviewSkill
- lean-proofSkill
- lean-prSkill
- lean-quality-engineSkill
- lean-replay-verificationSkill
- lean-reportSkill
- lean-researchSkill
- lean-retroactive-auditSkill
- lean-retro-methodologySkill
- lean-review-councilSkill
- lean-security-formalizationSkill
- lean-setupSkill
- lean-specificationSkill
- lean-tautology-triageSkill
- lean-upstream-portingSkill
- lean-vendor-substrateSkill
- lean-zettelkastenSkill
- math-product-managementSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
Load Dialect & Concordance Map: Read references/dialects/isabelle.json and query lean_search(source: "concordance") for CONC-01..20.
- Very specific: line 52
STOP: when porting (f ⤏ l) (at x within s): Isabelle's at x within s excludes x (𝓝[s \ {x}] x), whereas Mathlib's 𝓝[s] x includes x!
- Very specific: line 56
STOP: if an Isabelle type definition relies on non-emptiness (typedef) where the Lean Type* requires an [Inhabited α] or [Nonempty α] …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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-axiom-closure.
Detailed reference
Full encyclopedic reference, decision trees, and lookup tables live in
references/isabelle-isar-adapter-handbook.md .
See also
../../references/isabelle-isar-adapter-handbook.md-- Completeisabelle-isar-adapterHandbook../lean-gateway/SKILL.md-- Top-level skill router
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

