lean-dependent-types

Community

Tackle Lean 4's complex type system.

Authorkim-em
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers overcome common and complex errors encountered when working with Lean 4's dependent type system, including recursion limits, visibility issues, and subtle rewrite failures.

Core Features & Use Cases

  • Recursion Depth Errors: Provides solutions for congr and rw/ hitting max recursion depth on nested structures like Prod and List.ofFn.
  • Visibility and Namespacing: Clarifies how to correctly define and access definitions across different files using protected and proper namespace management.
  • Rewrite Strategy: Guides on using .trans for transitive equality and congrArg for large constant rewrites to avoid type mismatches and recursion issues.

Quick Start

Use the lean-dependent-types skill to resolve a "motive is not type correct" error in Lean 4.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: lean-dependent-types
Download link: https://github.com/kim-em/lean-zip/archive/main.zip#lean-dependent-types

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.