anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
An open code-agent model from Mistral for the Lean 4 proof assistant. It proves theorems and fixes Lean code, takes text and images, and runs through the Mistral API or your own vLLM server.
Leanstral 1.5 119B A6B is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
vibe --setup
Leanstral 1.5 is a code agent model with open weights, aimed at Lean 4. Lean 4 is a proof assistant that can state both advanced mathematics and specifications for software. It belongs to the Mistral Small 4 family and updates the earlier Leanstral release.
It is a mixture-of-experts model with 128 experts, 4 active per token, and 119 billion parameters of which 6.5 billion are active. The context length is 256k tokens. It accepts text and images and produces text.
Lean 4 users who want an AI agent that proves theorems or repairs code in their project, and developers building agents around Lean.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Mathematics | Lean users and mathematicians | Have an agent attempt proofs of stated theorems | Proving a lemma inside a Lean project |
| Software verification | Verification engineers | Write and repair formal specifications | Fixing a failing proof in a spec |
| AI agents | Agent developers | Pair the model with Lean tooling over MCP | Connecting the model to lean-lsp-mcp |
| Education | Students | Get help with Lean exercises | Asking the agent to complete a proof step |
Anyone who does not work with Lean 4 can skip it, since the model is built for that proof assistant.
| Use case | Who | What they get back |
|---|---|---|
| Theorem proving | Lean users | Proof attempts for a theorem you state |
| Code repair | Developers | Fixes to Lean code in your project |
| Long tasks | Researchers | Hours of autonomous work on one hard problem |
You need a Mistral account setup or a local vLLM server.
vibe --setup
Inside vibe, type these two lines in turn:
/leanstall exit
Open a terminal in your Lean project and start the Lean agent. Check that Leanstral shows at the top. Recommended settings are temperature 1.0 and a context of 200k tokens or less.
vibe --agent lean
To approve the model's changes automatically, add the yolo flag, and be careful with it:
vibe --agent lean --yolo
| Tool | What it does |
|---|---|
| vibe --setup | Asks for your Mistral API key if setup did not run on its own |
| /leanstall | Installs Leanstral inside vibe |
| vibe --agent lean | Starts the Lean agent |
| --yolo | Approves model changes without asking |
| lean-lsp-mcp | A tool that lets agents talk to Lean |
In your Lean project folder, start the agent and ask it to prove a theorem you have written, or to fix a broken proof. It can keep working on a hard problem for hours, then reports what it changed.
If you are new to Lean, start by reading a short proof, then ask the agent to explain or extend it. Keep the default approval prompts on so you see every change.
For experts, the reasoning effort setting has two values: none turns reasoning off and high turns it on for complex prompts. A local vLLM setup needs vllm 0.24.0 or newer and a custom agent file in the vibe agents folder. The card advises using the Mistral API if local serving gives weak results.
The points below cover limits and costs.
An open code-agent model from Mistral for the Lean 4 proof assistant. It proves theorems and fixes Lean code, takes text and images, and runs through the Mistral API or your own vLLM server.
Made by mistralai on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: Leanstral 1.5 is a code agent model with open weights, aimed at Lean 4. Lean 4 is a proof assistant that can state both advanced mathematics and specifications for software. It belongs to the Mistral Small 4 family and updates the earlier Leanstral release.
It is a mixture-of-experts model with 128 experts, 4 active per token, and 119 billion parameters of which 6.5 billion are active. The context length is 256k tokens. It accepts text and images and produces text.
Who it suits: Lean 4 users who want an AI agent that proves theorems or repairs code in their project, and developers building agents around Lean.
Industry | Who uses it | How they use it | Example
Mathematics | Lean users and mathematicians | Have an agent attempt proofs of stated theorems | Proving a lemma inside a Lean project
Software verification | Verification engineers | Write and repair formal specifications | Fixing a failing proof in a spec
AI agents | Agent developers | Pair the model with Lean tooling over MCP | Connecting the model to lean-lsp-mcp
Education | Students | Get help with Lean exercises | Asking the agent to complete a proof step
Anyone who does not work with Lean 4 can skip it, since the model is built for that proof assistant.
Where to use it:
Use case | Who | What they get back
Theorem proving | Lean users | Proof attempts for a theorem you state
Code repair | Developers | Fixes to Lean code in your project
Long tasks | Researchers | Hours of autonomous work on one hard problem
How to set it up: You need a Mistral account setup or a local vLLM server.
vibe --setup
Inside vibe, type these two lines in turn:
/leanstall
exit
How to use it: Open a terminal in your Lean project and start the Lean agent. Check that Leanstral shows at the top. Recommended settings are temperature 1.0 and a context of 200k tokens or less.
vibe --agent lean
To approve the model's changes automatically, add the yolo flag, and be careful with it:
vibe --agent lean --yolo
Tool | What it does
vibe --setup | Asks for your Mistral API key if setup did not run on its own
/leanstall | Installs Leanstral inside vibe
vibe --agent lean | Starts the Lean agent
--yolo | Approves model changes without asking
lean-lsp-mcp | A tool that lets agents talk to Lean
Example: In your Lean project folder, start the agent and ask it to prove a theorem you have written, or to fix a broken proof. It can keep working on a hard problem for hours, then reports what it changed.
For newcomers and experts: If you are new to Lean, start by reading a short proof, then ask the agent to explain or extend it. Keep the default approval prompts on so you see every change.
For experts, the reasoning effort setting has two values: none turns reasoning off and high turns it on for complex prompts. A local vLLM setup needs vllm 0.24.0 or newer and a custom agent file in the vibe agents folder. The card advises using the Mistral API if local serving gives weak results.
You open a Lean 4 project
Start vibe with the lean agent
Leanstral reads your files and goal
It works on a proof or a fix
You review the changes it makes
Good to know: The points below cover limits and costs.
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download mistralai/Leanstral-1.5-119B-A6B
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Leanstral 1.5 119B A6B This page | 425 | 234 | — | apache-2.0 | |
| gpt-oss-20bShares vllm | 5,685,450 | 5,299 | 20.9B | apache-2.0 | |
| gpt-oss-120bShares vllm | 2,435,242 | 5,509 | 117B | apache-2.0 | |
| Mistral-7B-Instruct-v0.3Shares vllm | 1,771,788 | 3,838 | 7.2B | apache-2.0 | |
| Laguna XS 2.1Shares vllm | 633,340 | 268 | 33.4B | openmdw-1.1 | |
| Qwen3.8-27B-DFlash2 by incoaiShares vllm | 429,580 | 301 | 1.9B | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.