vero-source-python

Translate Python source code into Lean 4 with type mappings and opaque stdlib modeling.

2|Updated Jul 4, 2026
One-click install
npx skills add https://github.com/sunblaze-ucb/vero --skill vero-source-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vero-source-python
Source: https://github.com/sunblaze-ucb/vero/tree/main/.claude/skills/vero-source-python
Command: npx skills add https://github.com/sunblaze-ucb/vero --skill vero-source-python

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill prepares Python source code for translation into Lean 4 by providing classification rules, type mappings, and modeling guidance, ensuring a smooth integration with the Lean 4 ecosystem.

Core Features & Use Cases

  • Python to Lean Classification: Maps Python constructs to Lean classifications for accurate translation.
  • Type Mappings: Establishes mappings between Python and Lean types to maintain semantic integrity.
  • Stdlib-Opaque Modeling: Handles Python's standard library with opaque modeling for Lean compatibility.
  • Use Case: Before translating a Python library into Lean 4, use this skill to ensure the library's structure aligns with Lean's requirements.

Quick Start

Analyze the Python code in 'source.py' using the vero-source-python skill.

Frequently Asked Questions about vero-source-python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I translate Python source code to Lean 4?

You translate Python source code to Lean 4 by classifying Python constructs, mapping types to Lean equivalents, and modeling the standard library as opaque. This process prepares the Python library structure for accurate Lean 4 translation.

What does opaque modeling mean for Python standard library in Lean 4?

Opaque modeling for the Python standard library in Lean 4 treats standard library functions as opaque entities without exposing internal implementation. This maintains semantic compatibility with the Lean 4 ecosystem during source translation.

Can I use this to map Python types to Lean 4 types?

Yes, you can map Python types to Lean 4 types. The skill establishes explicit type mappings between Python and Lean 4 to maintain semantic integrity throughout the code translation process.

Do I need Python source code to analyze Python libraries for Lean 4 translation?

Yes, you need Python source code to analyze Python libraries for Lean 4 translation. The skill requires actual Python source files to classify constructs, map types, and apply opaque modeling for Lean 4 compatibility.

What are the limitations of translating Python to Lean 4?

A key limitation of translating Python to Lean 4 is that Python's standard library is modeled as opaque, meaning internal logic of standard functions is not translated. The skill focuses on structural alignment and type mapping rather than full library execution.

When do I need to optimize Python code before Lean 4 translation?

You need to optimize Python code before Lean 4 translation when a Python library is intended for Lean 4 integration. Preparing the code ensures its structure aligns with Lean's requirements for a smooth translation.