lean-tactic-select

Classify Lean 4 proof goals by shape and propose prioritized tactic candidates.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps Lean developers by analyzing the current proof goal shape and suggesting the next tactic to apply.

Core Features & Use Cases

  • Classify common Lean goal shapes (equality, quantified goals, conjunctions, disjunctions, induction, arithmetic) and propose prioritized tactics.
  • Provide guidance when a proof is stuck, speeding up proof planning and reducing search space for tactic selection.
  • Useful in educational contexts to illustrate how to progress Lean proofs and to automate routine planning.

Quick Start

Describe your current Lean goal state to the assistant and ask for the next tactic recommendation.

Frequently Asked Questions about lean-tactic-select

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

FAQPage Schema
How do I choose the right Lean 4 tactic when my proof is stuck?

To choose a tactic when a Lean 4 proof stalls, classify the current goal shape—such as equality, conjunction, or universal quantification—and select a prioritized tactic matching that structure to reduce the search space.

What Lean 4 tactics should I use for an equality goal?

For an equality goal in Lean 4, tactic selection involves applying structural classification to propose candidates like reflexivity or rewriting, tailored to the observed goal shape to progress the proof.

Can I get tactic recommendations for universal quantification goals in Lean?

Yes, you can get tactic recommendations for universal quantification goals in Lean by analyzing the goal shape and returning a structured list of prioritized tactics, such as introducing variables.

What is the best way to plan Lean proof tactics for disjunction and induction goals?

The best way to plan Lean proof tactics for disjunction and induction goals is to classify the goal shape and apply prioritized tactic candidates designed for those specific common forms.

Do I need to provide my entire Lean proof state to get tactic suggestions?

You do not need the entire proof state; this tactic selection process requires only a description of the current goal as input to generate a structured list of tailored tactic recommendations.

Why does my Lean tactic selection fail on arithmetic goals?

Lean tactic selection on arithmetic goals may stall if the goal shape is not properly classified; applying the correct arithmetic tactic requires matching the observed structure to a prioritized candidate.