lean_loogle
Search Mathlib theorems using type patterns, constants, or name substrings via Loogle queries to get relevant results.
Instructions
Search Mathlib by type signature via loogle.lean-lang.org.
Examples: `Real.sin`, `"comm"`, `(?a → ?b) → List ?a → List ?b`,
`_ * (_ ^ _)`, `|- _ < _ → _ + 1 < _ + 1`
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "lean_loogle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Type pattern, constant, or name substring | |
| num_results | No | Max results |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | List of Loogle results |