hol-metamath-adapter
Skill3 starsChanged 26 days agoApache-2.0View on GitHub
USE FOR: translating HOL Light (.ml tactical scripts) and Metamath (set.mm ZFC proofs) into Lean 4. DO NOT USE FOR: Rocq ports (@rocq-proof-adapter) or Isabelle ports (@isabelle-isar-adapter). TRIGGERS: HOL Light, Metamath, set.mm, MESON_TAC, REAL_ARITH_TAC, WORD_BLAST, uzind, 3eqtri.
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
- isabelle-isar-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/hol_light.json or references/dialects/metamath.json and query lean_search(source: …
- Very specific: line 52
STOP: when porting Metamath m - n where m, n e.
- Very specific: line 56
STOP: when porting HOL Light has_integral on improper oscillating functions.
≈ “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
HOL Light & Metamath (set.mm) Proof Adapter (hol_light / metamath -> lean4)
Translate HOL Light OCaml tactical scripts (THEN, THENL, MESON_TAC, REAL_ARITH_TAC, REAL_RING,
WORD_BLAST, real^N
analysis)
and Metamath set.mm ZFC deduction trees (syl, mpd, 3eqtri, uzind, fsum, extensible slot
structures) into structured
Lean 4 +
Mathlib4.
Routing
- USE FOR: porting HOL Light
.mltheorems (multivariate analysis, Flyspeck,s2n-bignumword proofs) and Metamathset.mm/iset.mmtheorems into Lean 4. - DO NOT USE FOR: Rocq/MathComp
.vports (delegate to@rocq-proof-adapter); Isabelle/Isar.thyports (delegate to@isabelle-isar-adapter). - TRIGGERS: HOL Light, Metamath,
set.mm,MESON_TAC,REAL_ARITH_TAC,REAL_RING,WORD_BLAST,SUBGOAL_THEN,3eqtri,uzind,fsum.
Workflow
- Load Dialect & Concordance Map: Read
references/dialects/hol_light.jsonorreferences/dialects/metamath.jsonand querylean_search(source: "concordance")forCONC-01..20. - Lift Untyped / Predicate Domains to Lean Types (
CONC-04,CONC-14):- Metamath
x e. N,y e. R,G e. Grp-> typed binders(x : Nat),(y : Real),{G : Type*} [Group G]. - HOL Light
s : A -> boolfinite sumsnsum (m..n) f->∑ i ∈ Finset.Icc m n, f i.
- Metamath
- Collapse Low-Level Plumbing Chains into High-Level Tactics (
CONC-05,CONC-13,CONC-18):- Collapse 20-100 step Metamath
syl/mpd/addass/leadd1ichains intotauto,ring,linarith,omega, orpositivity.
- Collapse 20-100 step Metamath
Recovery & STOP
- STOP when porting Metamath
m - nwherem, n e. N: inset.mm,N c_ Z c_ Cso2 - 5 = -3, whereas in Lean(2 - 5 : Nat) = 0! Either cast toIntviazifyor proven <= mbefore usingNat.sub. - STOP when porting HOL Light
has_integralon improper oscillating functions; verifyIntegrableOn f s volumefor Mathlib Bochner integration.
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/hol-metamath-adapter-handbook.md .
See also
../../references/hol-metamath-adapter-handbook.md-- Completehol-metamath-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.

