Lean Kodunu Derle
lean_checkCompile Lean 4 code locally against Mathlib and return status plus compiler diagnostics, so you can iterate on proofs instead of guessing.
Instructions
Verilen Lean 4 kodunu yerel Lean derleyicisiyle çalıştırır. Mathlib ve temel Lean kütüphanesi kullanılabilir. Derleme başarılıysa status=success, başarısızsa derleyicinin hata mesajları diagnostics içinde döner.
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": {
"code": "<code>"
},
"name": "lean_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Çalıştırılacak Lean 4 kaynak kodu. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Derleme sonucunun durumu. | |
| summary | Yes | Sonucun kısa açıklaması. | |
| diagnostics | Yes | Derleyiciden gelen hata, uyarı ve bilgi mesajları. |