mathlib-knowledge

Reference Mathlib tactics and Lean naming conventions for proof development.

72|2|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/mutable-state-inc/lean-collab --skill mathlib-knowledge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mathlib-knowledge
Source: https://github.com/mutable-state-inc/lean-collab/tree/main/skills/mathlib-knowledge
Command: npx skills add https://github.com/mutable-state-inc/lean-collab --skill mathlib-knowledge

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mathlib-knowledge consolidates tactics, lemmas, and naming conventions for Lean to accelerate proof development and agent-oriented reasoning.

Core Features & Use Cases

  • Tactic Reference: quick access to common tactic forms (norm_num, nlinarith, ring, etc.) and pattern-based usage notes.
  • Mathlib Naming Conventions: patterns for function and lemma naming to unlock library sections and lemmas.
  • Domain Highlights: curated snippets for Real Analysis, Inequalities, Convexity, and Number Theory to guide strategy.
  • Practical Guidance: best practices for selecting tactics based on goal structure and hypotheses.

Quick Start

Identify your goal, consult the reference to select an appropriate tactic, and apply the recommended pattern to progress.

Frequently Asked Questions about mathlib-knowledge

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

FAQPage Schema
How do I find the right Lean tactics for proving goals in Mathlib?

To find the right Lean tactics for Mathlib proofs, consult a structured reference covering tactic forms like nlinarith and norm_num, along with pattern-based usage notes that match specific goal structures and hypotheses.

What are the naming conventions for lemmas in Lean 4 Mathlib?

Mathlib naming conventions follow structured patterns for functions and lemmas. Accessing a curated reference unlocks library sections and helps you navigate proofs by matching lemma names to their mathematical properties.

How do I select a proof strategy for Real Analysis and Inequalities in Lean?

Selecting a proof strategy for Real Analysis and Inequalities in Lean requires curated snippets and practical guidance that map specific goal forms to appropriate tactics, enabling pattern-based reasoning across these mathematical domains.

When should I use nlinarith instead of ring for Lean proof goals?

Use nlinarith instead of ring when your Lean proof goals involve nonlinear arithmetic inequalities. A tactic reference provides best practices for selecting the correct approach based on your specific goal structure and available hypotheses.

Can I embed Mathlib tactic references into automated Lean prover workflows?

Yes, you can embed Mathlib tactic references into automated Lean prover workflows. The reference material uses machine-readable frontmatter to enable discovery and integration into agent-oriented reasoning and proof development pipelines.

Does mathlib-knowledge cover Number Theory and Convexity proof patterns?

Yes, mathlib-knowledge covers Number Theory and Convexity proof patterns. It provides curated snippets and domain highlights for these areas to guide your proof strategy and accelerate Lean development.