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.