A persistent memory skill for Lean 4 that learns successful proof patterns and avoids known dead-ends across formalization sessions.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install lean4-proof-lean4-memories
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install lean4-proof-lean4-memories using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Lean 4 Memories skill transforms stateless AI assistance into a continuous learning system by leveraging the Model Context Protocol (MCP). By integrating this capability into Openclaw Skills, developers can ensure their AI agents remember successful tactic sequences, project-specific naming conventions, and complex mathematical dependencies. This persistent layer bridges the gap between individual coding sessions, allowing the agent to adapt to your specific formalization style and project history.
At its core, this skill functions as a long-term knowledge repository. Instead of rediscovering the same helper lemmas or repeating the same infinite tactic loops, Openclaw Skills users benefit from a structured memory that grows more intelligent as the project progresses. This is particularly valuable for complex mathematical formalizations where context and historical attempts are critical for finding a valid proof path.
To utilize this skill, you must have the MCP memory server configured in your environment. Openclaw Skills work best when the memory server is properly linked in your configuration file:
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-memory"]
" }
}
}
Once the server is running, the skill will automatically begin tracking and retrieving memories based on your project directory.
Information is organized into structured entity types to ensure high-speed retrieval and clarity within Openclaw Skills. Data is categorized as follows:
| Entity Type | Purpose | Metadata Captured |
|---|---|---|
| ProofPattern | Successful proof strategies | goal_pattern, tactics, helper_lemmas, difficulty |
| FailedApproach | Known dead-ends to avoid | failed_tactic, error_description, suggested_alternative |
| ProjectConvention | Code style and patterns | naming_conventions, required_imports, tactic_preferences |
| UserPreference | Workflow customization | output_verbosity, tool_selection, confidence_thresholds |
| TheoremDependency | Logical relationships | helper_lemma_usage, theorem_hierarchy |
Loading
A recursive Input-Process-Output framework that treats every task as a nested logical unit for systematic AI execution.

A sophisticated sports monitoring skill that parses betting slips and provides automated 15-minute live score updates for multi-sport accumulators.

A powerful plugin that intercepts AI responses to replace em-dashes and en-dashes with natural, dash-free language through embedded LLM rewrites.

An AI-driven normalization engine that transforms messy, manual engineering failure logs into standardized, codebook-compliant data for manufacturing quality control.

A powerful AI-driven tool for turning game clips and screenshots into professional 1080p movies with music and transitions.

A high-fidelity tool for converting PDF documents into structured Markdown while preserving LaTeX equations and formatting.








































