OpenMath Lean Theorem for Openclaw

A specialized technical skill for configuring Lean environments and executing formal mathematical proof workflows within AI agent ecosystems.

bennyzhe
v1.0.3
Mar 25, 2026
0
911
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install openmath-lean-theorem

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install openmath-lean-theorem using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is OpenMath Lean Theorem?

The OpenMath Lean Theorem skill is a robust configuration and workflow orchestrator designed for developers and mathematicians working with Lean 4. It provides the necessary plumbing to bridge OpenMath theorem downloads with local formal verification, ensuring that the toolchain, including lean, lake, and elan, is perfectly synchronized with the workspace requirements.

By leveraging this entry in the Openclaw Skills library, users can automate the tedious aspects of environment validation and external dependency management. It serves as the functional bridge between raw theorem data and a verified, buildable Lean project, allowing AI agents to operate within a stable and predictable proving loop.

OpenMath Lean Theorem Use Cases

  • Validating local Lean toolchains against specific workspace requirements.
  • Automated installation of essential proof skills from the leanprover/skills repository.
  • Standardizing the proof workflow for theorems downloaded via the OpenMath ecosystem.
  • Pre-submission verification to ensure Lean projects are free of sorry constants and build errors.

How OpenMath Lean Theorem Works

  1. Environment Verification: The skill checks for the presence of python3, lean, lake, and elan to ensure the host system is ready.
  2. Dependency Resolution: It identifies and installs required external Openclaw Skills such as lean-proof and mathlib-build.
  3. Preflight Execution: A Python-based preflight script is run to validate the specific workspace toolchain and initial build state.
  4. Proving Loop: The agent utilizes the proof playbook to interactively solve the theorem within the established Lean environment.
  5. Verification: A final lake build is executed with high-level logging to confirm proof validity.
  6. Handoff: Once verified, the proof is prepared for the openmath-submit-theorem skill for hashing and submission.

OpenMath Lean Theorem Setup

Ensure all system requirements are met before initializing the skill. You can manually install the required proof dependencies or use the preflight script for automated setup.

# Manual installation of required Openclaw Skills
npx leanprover-skills install lean-proof
npx leanprover-skills install mathlib-build

# Run the preflight check to validate your environment
python3 scripts/check_theorem_env.py <workspace_path>

# Optional: Auto-install missing skills into a specific directory
python3 scripts/check_theorem_env.py <workspace_path> --auto-install-skills --install-dir .codex/skills

OpenMath Lean Theorem Data Schema & Taxonomy

The skill manages environment metadata and local workspace configurations through a structured hierarchy:

Component Description Metadata/Taxonomy
lean-toolchain Version Pinning Ensures consistency with leanprover/lean4:v4.28.0.
scripts/ Tooling Contains check_theorem_env.py for environment state validation.
.codex/skills Dependency Storage Default or custom directory for external Lean proof skills.
references/ Knowledge Base Markdown guides for preflight and proof playbooks.

OpenMath Lean Theorem Advanced Features

  • Auto-Install Hooks: Dynamically clones and updates missing Lean skills during the preflight phase.
  • Toolchain Pinning: Automatically respects the leanprover/lean4:v4.28.0 versioning set during the initial theorem download.
  • External Repository Integration: Direct integration with the leanprover/skills ecosystem for extensible proving capabilities.
  • Workspace Isolation: Supports explicit install directories to prevent global dependency conflicts.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*