vero-lean-pitfalls
OfficialPrevent common Lean pitfalls with Lean 4 translations
Software Engineering#software development#formal verification#code translation#Lean 4#programming pitfalls
Authorsunblaze-ucb
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers avoid common mistakes when translating formally-verified code from Dafny, Verus, or Coq into Lean 4, ensuring more robust and error-free code.
Core Features & Use Cases
- Avoid Noncomputable Errors: Identifies and resolves issues with noncomputable functions.
- Standard Library Mappings: Offers guidance on Lean's standard library equivalents.
- Prop vs Bool Clarification: Differentiates between logical propositions and computational booleans.
- Natural Number Subtraction and Division: Handles specific Lean behaviors like truncating subtraction and division by zero.
- Import Order and autoImplicit Rules: Ensures correct file structure and variable declaration.
- deriving Clause Limitations: Provides guidance on using Lean's type class derivation features.
- Mutual Recursion and Universe Polymorphism: Offers solutions for complex Lean features.
- Use Case: For a developer translating a Coq module into Lean 4, this Skill can help avoid common pitfalls and ensure the translated code is both correct and efficient.
Quick Start
Use the vero-lean-pitfalls skill to review the common Lean pitfalls before translating your Coq module to Lean 4.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: vero-lean-pitfalls Download link: https://github.com/sunblaze-ucb/vero/archive/main.zip#vero-lean-pitfalls Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.