lean-simp-tactics

Provide Lean 4 tactics for simplifying proofs with simp only failures.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/fmhall/lean-png --skill lean-simp-tactics-fmhall
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lean-simp-tactics
Source: https://github.com/fmhall/lean-png/tree/main/.claude/skills/lean-simp-tactics
Command: npx skills add https://github.com/fmhall/lean-png --skill lean-simp-tactics-fmhall

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a comprehensive set of tactics to solve common proof simplification challenges in Lean 4, offering solutions for unexpected simp only failures, handling Bool vs Prop issues, and more.

Core Features & Use Cases

  • Unexpected simp only Issues: Offers strategies to overcome issues when simp only fails unexpectedly.
  • Bool vs Prop Handling: Provides guidelines for dealing with conditional expressions involving Bool and Prop types.
  • Use Case: When you encounter a proof where simp only fails to simplify expressions involving List.filter and anonymous lambdas, this Skill offers a solution using full simp (without only).

Quick Start

Run the skill with the command: run lean-simp-tactics -- problem "When 'simp only' fails unexpectedly in Lean 4 proofs."

Frequently Asked Questions about lean-simp-tactics

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

FAQPage Schema
Why does simp only fail unexpectedly in Lean 4 proofs?

In Lean 4, `simp only` fails unexpectedly when it lacks specific rewrite rules for complex expressions, often requiring full `simp` to resolve simplification challenges involving anonymous lambdas or List.filter.

How do I handle Bool vs Prop conditions in Lean 4 proof simplification?

Handling Bool vs Prop conditions in Lean 4 requires specialized tactics to bridge conditional expressions, resolving type mismatches that prevent standard proof simplification from evaluating correctly.

What's the best way to simplify Lean 4 proofs with if conditions and recursive calls?

The best way to simplify Lean 4 proofs with `if` conditions and recursive calls is applying expert tactics designed to resolve conditional expressions and manage recursive evaluation failures.

Do I need a specific Lean 4 environment to use these proof simplification tactics?

Yes, you need an active Lean 4 environment and basic familiarity with Lean proof tactics to effectively deploy these simplification strategies and resolve conditional expression issues.

Can I use full simp instead of simp only to fix List.filter simplification failures?

Yes, using full `simp` without the `only` modifier resolves simplification failures involving `List.filter` and anonymous lambdas by allowing Lean 4 to apply all available rewrite rules.

What are the limitations of simp only in Lean 4 formal verification?

A key limitation of `simp only` in Lean 4 formal verification is its failure to simplify expressions involving `List.filter` and anonymous lambdas, necessitating full `simp` or expert tactics for resolution.