loogle-search

Search Mathlib for lemmas by type signature pattern

INSTALLATION
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill loogle-search
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$27

Start server for fast queries (keeps index in memory)

loogle-server &

## Query Syntax

| Pattern | Meaning |

|---------|---------|

| `_` | Any single type |

| `?a`, `?b` | Type variables (same variable = same type) |

| `Foo, Bar` | Must mention both `Foo` and `Bar` |

| `Foo.bar` | Exact 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, ...

Find Fintype.card lemmas

loogle-search "Fintype.card"


## Performance

- **With server running**: ~100-200ms per query

- **Cold start (no server)**: ~10s per query (loads 343MB index)

## Setup

Loogle must be built first:

cd ~/tools/loogle &#x26;&#x26; lake build

lake build LoogleMathlibCache # or use --write-index


## Integration with Proofs

When stuck in a Lean proof:

- Identify what type shape you need

- Query Loogle to find the lemma name

- Apply the lemma in your proof

-- Goal: Nontrivial G from 1 < Fintype.card G

-- Query: loogle-search "Nontrivial _ ↔ 1 < Fintype.card _"

-- Found: Fintype.one_lt_card_iff_nontrivial

exact Fintype.one_lt_card_iff_nontrivial.mpr h

BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card