What problem does it solve?
This Skill addresses common challenges when dealing with dependent types in Lean 4, such as recursion limits, namespace scoping, and visibility issues, helping you maintain clean and provable code.
Core Features & Use Cases
- Recursive Type Handling: Mitigate issues like
max recursion in expressions involving recursive data types like List.ofFn.
- Namespace Scope Clarification: Guidance on creating definitions in nested namespaces and maintaining correct scoping.
- Visibility Issues Resolution: Tips on managing access controls with
protected vs. private visibility, essential for cross-file usage.
- Transitive Equality Proving: Techniques for proper chain rule applications when proving transitive equality.
- State Composition Theorem Handling: How to use composition theorems effectively with nested state management using
if let statements.
- Alpha-Equivalence Handling: Strategies for
if let issues due to mismatched match motives and proof structure alignment.
Quick Start
Use the lean-dependent-types skill to rewrite complex dependent type scenarios in Lean 4.