Mindket

Leanstral 1.5 119B A6B

Newversion 1 · updated

Overview

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.

At a glance

You need
  • A Mistral account. The free plan is enough, with Labs models enabled in the privacy settings
  • A Mistral API key
  • The Mistral Vibe command line tool, installed as Mistral's own guide describes
  • A Lean 4 project to work in
Runs in
  • The Mistral Vibe command line tool, running inside your Lean project directory.
  • The VS Code terminal, which the card suggests so vibe and your code sit side by side.
  • Your own vLLM server, if you prefer not to call the Mistral API.
  • The lean-lsp-mcp tool, which the card suggests for agents that work with Lean.
Start with
vibe --setup

Platform

VS CodeCode editor

About

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.

IndustryWho uses itHow they use itExample
MathematicsLean users and mathematiciansHave an agent attempt proofs of stated theoremsProving a lemma inside a Lean project
Software verificationVerification engineersWrite and repair formal specificationsFixing a failing proof in a spec
AI agentsAgent developersPair the model with Lean tooling over MCPConnecting the model to lean-lsp-mcp
EducationStudentsGet help with Lean exercisesAsking 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

  • The Mistral Vibe command line tool, running inside your Lean project directory.
  • The VS Code terminal, which the card suggests so vibe and your code sit side by side.
  • Your own vLLM server, if you prefer not to call the Mistral API.
  • The lean-lsp-mcp tool, which the card suggests for agents that work with Lean.
Use caseWhoWhat they get back
Theorem provingLean usersProof attempts for a theorem you state
Code repairDevelopersFixes to Lean code in your project
Long tasksResearchersHours of autonomous work on one hard problem

How to set it up

You need a Mistral account setup or a local vLLM server.

  • A Mistral account. The free plan is enough, with Labs models enabled in the privacy settings
  • A Mistral API key
  • The Mistral Vibe command line tool, installed as Mistral's own guide describes
  • A Lean 4 project to work in
  1. Sign in to your Mistral account and enable the Labs models option.
  2. Create an API key.
  3. Install the vibe command line tool.
  4. Start vibe, which asks for your key. If it does not, run the setup command.
  5. Inside vibe, enter the install command for Leanstral, then exit.
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
ToolWhat it does
vibe --setupAsks for your Mistral API key if setup did not run on its own
/leanstallInstalls Leanstral inside vibe
vibe --agent leanStarts the Lean agent
--yoloApproves model changes without asking
lean-lsp-mcpA 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.

  1. You open a Lean 4 project
  2. Start vibe with the lean agent
  3. Leanstral reads your files and goal
  4. It works on a proof or a fix
  5. You review the changes it makes

Good to know

The points below cover limits and costs.

  • Reasoning: use high for complex prompts and none to skip reasoning.
  • License: Apache 2.0.
  • Cost to run: a Mistral API key is required for the hosted route, and the card says the free plan is enough. A local server needs a lot of GPU capacity.
  • Data it reaches: your project files and prompts go to the Mistral API unless you run your own vLLM server. The agent config also gives it a shell tool.
  • Not for: auto-approving changes without care, or work outside Lean 4.

README and files

README

Leanstral 1.5 119B A6B

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.

About

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:

  • The Mistral Vibe command line tool, running inside your Lean project directory.
  • The VS Code terminal, which the card suggests so vibe and your code sit side by side.
  • Your own vLLM server, if you prefer not to call the Mistral API.
  • The lean-lsp-mcp tool, which the card suggests for agents that work with Lean.
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.

  • A Mistral account. The free plan is enough, with Labs models enabled in the privacy settings
  • A Mistral API key
  • The Mistral Vibe command line tool, installed as Mistral's own guide describes
  • A Lean 4 project to work in
  1. Sign in to your Mistral account and enable the Labs models option.
  2. Create an API key.
  3. Install the vibe command line tool.
  4. Start vibe, which asks for your key. If it does not, run the setup command.
  5. Inside vibe, enter the install command for Leanstral, then exit.
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.

  • Reasoning: use high for complex prompts and none to skip reasoning.
  • License: Apache 2.0.
  • Cost to run: a Mistral API key is required for the hosted route, and the card says the free plan is enough. A local server needs a lot of GPU capacity.
  • Data it reaches: your project files and prompts go to the Mistral API unless you run your own vLLM server. The agent config also gives it a shell tool.
  • Not for: auto-approving changes without care, or work outside Lean 4.

On Hugging Face, 13 November 2026

  • Library: vllm
  • Downloads in the last 30 days: 425
  • Likes: 234
  • License: apache-2.0
  • Based on: mistralai/Leanstral-2603
  • Quantized versions: 15
  • Fine-tunes: 2
  • Tags: vllm

Links

Get the model

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.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
Leanstral 1.5 119B A6B This page425234—apache-2.0
gpt-oss-20bShares vllm5,685,4505,29920.9Bapache-2.0
gpt-oss-120bShares vllm2,435,2425,509117Bapache-2.0
Mistral-7B-Instruct-v0.3Shares vllm1,771,7883,8387.2Bapache-2.0
Laguna XS 2.1Shares vllm633,34026833.4Bopenmdw-1.1
Qwen3.8-27B-DFlash2 by incoaiShares vllm429,5803011.9Bapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

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.

satvikpendemMistralai/Leanstral-1.5-119B-A6B8 points · 1 replyLibreCanadaHugging Face - Webpage "Leanstral 1.5 is an open-source code agent model designed for Lean 4, a proof assistant capable of expressing complex mathematical objects such as"... huggingface.co/mistralai/Le... ========================== #librecanada #linux #opensource2 likes · 1 replyデイリーHuggingFaceトレンド今日のHuggingFaceトレンド mistralai/Leanstral-1.5-119B-A6B Leanstral 1.5は、証明アシスタントLean 4向けに設計されたオープンソースのコードエージェントモデルです。 数学的対象の記述やソフトウェア仕様の検証を目的としており、Mistral Small 4ファミリーに基づいた効率的なアーキテクチャを採用しています。 既存のクローズドソースな選択肢と比較して、高い性能とコスト効率を実現しています。Aamer MehaisiMistral dropped Leanstral-1.5 — 119B MoE, 6B active. 20:1 sparsity. If quality holds, this is the real efficiency play: big model knowledge at small model inference cost. Architecture direction is right. https://huggingface.co/mistralai/Leanstral-1.5-119B-A6BHacker News Top 100 Bot (Unofficial)Mistralai/Leanstral-1.5-119B-A6B DiscussionBest of HNMistral AI has published Leanstral 1.5, a new mixture-of-experts model with 119B total parameters and 6B active, on Hugging Face. Submit to upvote on HN https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fhuggingface.co%2Fmistralai%2FLeanstral-1.5-119B-A6B&t=Mistralai%2FLeanstral-1.5-119B-A6B

Searched

More from Mindket

See all from Mindket

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…

New

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…

New

ACE-Step 1.5 XL SFT

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…

New

Similar in Developer

See all in Developer

Claude Code Skills & Plugins

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…

New29.8k

buzz

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…

New37.3k

plannotator

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.

New10.5k