Skip to content

Command-line search that finds Mathlib lemmas by type signature pattern, not by name, for Lean proofs.

CCM score
58 of 100
skills.sh installs
490
GitHub stars
4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers type-shape queries with wildcards (_), type variables (?a), name matches, and comma-combined terms against the Mathlib index
  • Includes a --json output flag and a loogle-server background process that keeps the 343MB index in memory for roughly 100-200ms queries
  • Uses the same type variable (?a) for matching types, so (?a → ?b) → List ?a → List ?b surfaces List.map and List.pmap
  • Designed for proof work in Lean when the needed lemma's type shape is known but its name is not

Install

$ npx -y skills add parcadei/continuous-claude-v3 --skill loogle-search -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Loogle Search - Mathlib Type Signature Search

Search Mathlib for lemmas by type signature pattern.

When to Use

  • Finding a lemma when you know the type shape but not the name
  • Discovering what's available for a type (e.g., all Nontrivial ↔ _ lemmas)
  • Type-directed proof search

Commands

# Search by pattern (uses server if running, else direct)
loogle-search "Nontrivial _ ↔ _"
loogle-search "(?a → ?b) → List ?a → List ?b"
loogle-search "IsCyclic, center"

# JSON output
loogle-search "List.map" --json

# Start server for fast queries (keeps index in memory)
loogle-server &

Query Syntax

PatternMeaning
_Any single type
?a, ?bType variables (same variable = same type)
Foo, BarMust mention both Foo and Bar
Foo.barExact name match

Examples

# Find lemmas relating Nontrivial and cardinality
loogle-search "Nontrivial _ ↔ _ < Fintype.card _"

# Find map-like functions
loogle-search "(?a → ?b) → List ?a → List ?b"
# → List.map, List.pmap, ...

# Find everything about cyclic groups and center
loogle-search "IsCyclic, center"
# → commutative_of_cyclic_center_quotient, ...

Details

Repository
github.com/parcadei/continuous-claude-v3
Categories
CLI & Terminal, Research & Academic
First seen
Jun 3, 2026

Questions

What does the loogle-search skill do?

The loogle-search skill searches Mathlib, the Lean math library, for lemmas by type signature pattern. It helps you find a lemma when you know the type shape but not its name. Queries like "Nontrivial _ ↔ _" return matching Mathlib lemmas.

How do I install loogle-search?

Run npx -y skills add parcadei/continuous-claude-v3 --skill loogle-search -y in a project. After that, the agent can run loogle-search queries to look up Mathlib lemmas by type pattern.

What do I need before using loogle-search?

Loogle must be built first, using lake build in the loogle directory and then building the Mathlib cache or writing the index. A running loogle-server keeps queries fast, around 100 to 200 milliseconds, while a cold start takes about 10 seconds.

Where does loogle-search stand in the CLI & Terminal category?

loogle-search is listed in the CLI & Terminal category on Claude Marketplaces, alongside herdr, gws-shared, opentui, cf-cli and pnpm. It is aimed at Lean proof work rather than general terminal tasks.

More from parcadei/continuous-claude-v3

All 108

Similar to Loogle Search

More CLI & Terminal