lean-simp-guide

Guide Lean 4 simp tactic selection and stabilize simp to simp only transitions.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/my04337/shapez2-in-lean --skill lean-simp-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lean-simp-guide
Source: https://github.com/my04337/shapez2-in-lean/tree/main/.github/skills/lean-simp-guide
Command: npx skills add https://github.com/my04337/shapez2-in-lean --skill lean-simp-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lake, lean, python3, jq, and includes scripts (resource) components.

What problem does it solve?

This skill guides Lean users to select appropriate simp tactics and stabilize simp -> simp only transitions, improving proof reproducibility and maintainability.

Core Features & Use Cases

  • Decision framework for choosing between simp, simp only, dsimp, simp_all, and simpa based on goal complexity and development phase.
  • Step-by-step stabilization guidance: convert bare simp calls to simp? and simp_all? and apply proposals with careful handling of at-target annotations and indentation.
  • Automated stability scripts: use the included scripts to generate and apply lean --json-based suggestions, then validate with lake build.

Quick Start

Run the included lean-simp-guide stability scripts on your Lean file to convert bare simp calls into simp? forms and verify with lake build.

Frequently Asked Questions about lean-simp-guide

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

FAQPage Schema
How do I stabilize simp tactics in Lean 4 proofs?

Stabilizing simp tactics involves converting bare simp calls to simp? forms, applying the generated suggestions via automated scripts, and validating proof reproducibility with lake build in Lean 4.

What is the difference between simp, dsimp, simp_all, and simpa in Lean 4?

The difference between simp, dsimp, simp_all, and simpa lies in their application scope; a decision framework selects the appropriate tactic based on goal complexity and whether you are in development or final proof stages.

How do I convert bare simp calls to simp only in Lean 4?

To convert bare simp calls to simp only, run the stability scripts to generate lean --json-based suggestions using simp?, then carefully apply the proposed rewrites while handling at_target annotations and indentation.

Do I need lake and python3 to automate simp tactic stabilization?

Yes, you need lake, python3, lean, and jq installed, as the automated stability scripts depend on these tools to generate suggestions and validate the stabilized Lean proofs.

Why does my Lean 4 simp proof break after updates?

Lean 4 simp proofs break after updates because bare simp calls rely on internal lemma ordering; stabilizing them to simp only transitions fixes this by explicitly specifying the applied rewrite rules.