Registry / arabelatso

arabelatso/skills-4-se/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.

Agent skill · version 0.0.0-main.1794322170.g4f38503 · from ArabelaTso/Skills-4-SE

Install

npx yarkr-cli add skill:arabelatso/skills-4-se/python-to-lean4-translator

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:arabelatso/skills-4-se/python-to-lean4-translator
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:arabelatso/skills-4-se/python-to-lean4-translator

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:arabelatso/skills-4-se/python-to-lean4-translator

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.