Individual skill
python-to-lean4-translator
Translate Python programs to equivalent Lean4 code while preserving semantics and ensuring type safety. Use when users ask to convert, translate, or port Python code to Lean4, or when they need to verify Python algorithms using Lean4's theorem proving capabilities. Handles functions, classes, data structures, control flow, and ensures the generated Lean4 code is well-typed, executable, and can successfully run.
skills/python-to-lean4-translator/SKILL.md
Source commit 4f38503747e0617504bce5329283ef837d375c09
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 260
- Repository last updated
- Aug 21, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- claude-skills Repository topic
- metaprogramming Repository topic
- software-development Repository topic
- software-engineering Repository topic
- claude Repository topic
- claude-code Repository topic
- data Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 8,739 bytesSKILL.mdcore · 8,739 bytesSKILL.mdcore · 8,739 bytesSKILL.mdcore · 8,739 bytesSKILL.mdcore · 8,739 bytesSKILL.mdcore · 8,739 bytesSKILL.mdcore · 8,739 bytesSKILL.mdcore · 8,739 bytesSKILL.mdcore · 8,739 bytesSKILL.mdcore · 8,739 bytesSKILL.mdcore · 8,739 bytesreferences/advanced_features.mddoc · 7,073 bytesreferences/common_patterns.mddoc · 7,377 bytesreferences/type_mappings.mddoc · 5,236 bytes
Read excerpt
# Python to Lean4 Translator
Translate Python programs into equivalent, executable Lean4 code while preserving program semantics and ensuring type safety.
## Overview
This skill provides systematic guidance for translating Python code to Lean4, handling type inference, function translations, data structures, control flow, and ensuring well-typed, executable output.
## Translation Workflow
```
Python Input → Analyze Structure → Map Types → Translate Constructs → Verify → Output Lean4
├─ Identify types and signatures
├─ Map Python constructs to Lean4 equivalents