29 comments

  • cadamsdotcom 1 hour ago
    It’s great to see this pattern of people realising that agents can specify the desired behavior then write code to conform to the specs.

    TDD, verification, whatever your tool; verification suites of all sorts accrue over time into a very detailed repository of documentation of how things are supposed to work that, being executable, puts zero tokens in the context when the code is correct.

    It’s more powerful than reams upon reams of markdown specs. That’s because it encodes details, not intent. Your intent is helpful at the leading edge of the process, but the codified result needs shoring up to prevent regression. That’s the area software engineering has always ignored because we have gotten by on letting teams hold context in their heads and docs.

    As software gets more complex we need better solutions than “go ask Jim about that, bloke’s been in the code for years”.

    • refulgentis 35 minutes ago
      I've seen this sentiment and am a big fan of it, but I was confused by the blog post, and based on your comment you might be able to help: how does Lean help me? FWIW, context is: code Dart/Flutter day to day.

      I can think of some strawmen: for example, prove a state machine in Lean, then port the proven version to Dart? But I'm not familiar enough with Lean to know if that's like saying "prove moon made of cheese with JavaScript, then deploy to the US mainframe"

  • lsb 4 hours ago
    The real world success they report reminds me of Simon Willison’s Red Green TDD: https://simonwillison.net/guides/agentic-engineering-pattern...

    > Instead of taking a stab in the dark, Leanstral rolled up its sleeves. It successfully built test code to recreate the failing environment and diagnosed the underlying issue with definitional equality. The model correctly identified that because def creates a rigid definition requiring explicit unfolding, it was actively blocking the rw tactic from seeing the underlying structure it needed to match.

    • jatins 2 hours ago
      If Agent is writing the tests itself, does it offer better correctness guarantees than letting it write code and tests?
      • MillionOClock 5 minutes ago
        It is definitely not foolproof but IMHO, to some extent, it is easier to describe what you expect to see than to implement it so I don't find it unreasonable to think it might provide some advantages in terms of correctness.
    • skanga 3 hours ago
      TDD == Prompt Engineering, for Agentic coding tasks.
      • _boffin_ 1 hour ago
        Wild it’s taken people this long to realize this. Also lean tickets / tasks with all needed context to complete the task, including needed references / docs, places to look in source, acceptance criteria, other stuff.
  • rothific 3 hours ago
    There have been a lot of conversations recently about how model alignment is relative and diversity of alignment is important - see the recent podcast episode between Jack Clark (co-founder of Anthropic) and Ezra Klein.

    Many comments here point out that Mistral's models are not keeping up with other frontier models - this has been my personal experience as well. However, we need more diversity of model alignment techniques and companies training them - so any company taking this seriously is valuable.

  • drdaeman 1 hour ago
    Can someone please explain... If I don't know any Lean (and I suspect most people don't), is it of any direct value? Trying to understand if there's something it can help me with (e.g. automatically write proofs for my Go programs somehow... I'm not sure) or should I just cheer solely for more open models out there, but this one isn't for me?
    • TimTheTinker 49 minutes ago
      Presumably the idea is that an agent generates a Lean4 specification against which the software is measured.

      But then the Lean4 specification effectively becomes the software artifact.

      And we're sort of back to square 1. How do you verify a Lean4 spec is correct (and that it describes what needs to be built in the first place) without human review?

  • jasonjmcghee 4 hours ago
    Curious if anyone else had the same reaction as me

    This model is specifically trained on this task and significantly[1] underperforms opus.

    Opus costs about 6x more.

    Which seems... totally worth it based on the task at hand.

    [1]: based on the total spread of tested models

    • beernet 4 hours ago
      Agreed. The idea is nice and honorable. At the same time, if AI has been proving one thing, it's that quality usually reigns over control and trust (except for some sensitive sectors and applications). Of course it's less capital-intense, so makes sense for a comparably little EU startup to focus on that niche. Likely won't spin the top line needle much, though, for the reasons stated.
      • segmondy 2 hours ago
        Ha, keep putting your prompts and workflows into cloud models. They are not okay with being a platform, they intend to cannibalize all businesses. Quality doesn't always reign over control and trust. Your data and original ideas are your edge and moat.
      • miohtama 4 hours ago
        Alignment tax directly eats to model quality, double digit percents.
      • hermanzegerman 3 hours ago
        EU could help them very much if they would start enforcing the Laws, so that no US Company can process European data, due to the Americans not willing to budge on Cloud Act.

        That would also help to reduce our dependency on American Hyperscalers, which is much needed given how untrustworthy the US is right now. (And also hostile towards Europe as their new security strategy lays out)

        • bcye 2 hours ago
          This would be unfortunately a rather nuclear option due to the continent’s insane reliance on technology that breaks its unenforced laws.
    • DarkNova6 4 hours ago
      I'm never sure how much faith one can put into such benchmarks but in any case the optics seem to shift once you have pass@2 and pass@3.

      Still, the more interesting comparison would be against something such as Codex.

    • nimchimpsky 2 hours ago
      [dead]
  • andai 5 hours ago
    Trustworthy vibe coding. Much better than the other kind!

    Not sure I really understand the comparisons though. They emphasize the cost savings relative to Haiku, but Haiku kinda sucks at this task, and Leanstral is worse? If you're optimizing for correctness, why would "yeah it sucks but it's 10 times cheaper" be relevant? Or am I misunderstanding something?

    On the promising side, Opus doesn't look great at this benchmark either — maybe we can get better than Opus results by scaling this up. I guess that's the takeaway here.

    • flowerbreeze 4 hours ago
      They haven't made the chart very clear, but it seems it has configurable passes and at 2 passes it's better than Haiku and Sonnet and at 16 passes starts closing in on Opus although it's not quite there, while consistently being less expensive than Sonnet.
      • ainch 1 hour ago
        pass@k means that you run the model k times and give it a pass if any of the answers is correct. I guess Lean is one of the few use cases where pass@k actually makes sense, since you can automatically validate correctness.
      • andai 4 hours ago
        Oh my bad. I'm not sure how that works in practice. Do you just keep running it until the tests pass? I guess with formal verification you can run it as many times as you need, right?
    • DrewADesign 5 hours ago
      It’s really not hard — just explicitly ask for trustworthy outputs only in your prompt, and Bob’s your uncle.
      • miacycle 3 hours ago
        Assuming that what you're dealing with is assertable. I guess what I mean to say is that in some situations is difficult to articulate what is correct and what isn't depending in some situations is difficult to articulate what is correct and what isn't depending upon the situation in which the software executes.
  • esperent 3 hours ago
    I absolutely called this a couple of weeks ago, nice to be vindicated!

    > I'm interested to see what it is in the age of LLMs or similar future tools. I suspect a future phase change might be towards disregarding how easy it is for humans to work with the code and instead focus on provability, testing, perhaps combined with token efficiency.

    > Maybe Lean combined with Rust shrunk down to something that is very compiler friendly. Imagine if you could specify what you need in high level language and instead of getting back "vibe code", you get back proven correct code, because that's the only kind of code that will successfully compile.

    https://news.ycombinator.com/item?id=47192116

    • AlotOfReading 43 minutes ago
      It's important to keep in mind that no proof system ensures your proof is the correct proof, only that it's a valid proof. Completely understanding what a proof proves is often nearly as difficult as understanding the program it's proving. Normally you benefit because the process of building a proof forces you to develop your understanding more fully.
  • patall 4 hours ago
    Maybe a naive question: given that they see better performance with more passes but the effect hits a limit after a few passes, would performance increase if they used different models per pass, i.e leanstral, kimi, qwen and leanstral again instead of 4x leanstral?
    • andai 4 hours ago
      This is called a "LLM alloy", you can even do it in agentic, where you simply swap the model on each llm invocation.

      It does actually significantly boost performance. There was an article on here about it recently, I'll see if I can find it.

      Edit: https://news.ycombinator.com/item?id=44630724

      They found the more different the models were (the less overlap in correctly solved problems), the more it boosted the score.

      • patall 4 hours ago
        That sounds quite interesting. Makes me wonder if sooner or later they will have to train multiple independent models that cover those different niches. But maybe we will see that sooner or later. Thanks for the link.
        • cyanydeez 4 hours ago
          One would think that LoRAs being so successful in StableDiffusion, that more people would be focused on constructing framework based LoRas; but the economics of all this probably preclude trying to go niche in any direction and just keep building the do-all models.
  • flakiness 4 hours ago
  • JoshTriplett 3 hours ago
    Pleasant surprise: someone saying "open source" and actually meaning Open Source. It looks like the weights are Apache-2.0 licensed.
    • jasonjmcghee 2 hours ago
      Based on community definitions I've seen, this is considered "open weights". If you can't reproduce the model, it's not "open source"
  • Havoc 4 hours ago
    What are these "passes" they reference here? Haven't seen that before in LLM evals

    Could definitely be interesting for having another model run over the codebase when looking for improvements

    • rockinghigh 4 hours ago
      It's the number of attempts at answering the question.
  • elAhmo 4 hours ago
    I don’t know a single person using Mistral models.
    • consumer451 3 hours ago
      Isn't their latest speech to text model SOTA? When I tested it on jargon, it was amazing.

      https://news.ycombinator.com/item?id=46886735

      • troyvit 53 minutes ago
        I'm using this model for my first python project, coding using opencode along with devstral and Mistral Large 3. I know it's not as capable as other, more expensive models, but working with it this way is teaching me python. More directly to your point though, the speech to text model is really good.

        It's funny because I just took a break from it to read some hn and found this post.

    • brainless 1 hour ago
      I'm building a knowledge graph on personal data (emails, files) with Ministral 3:3b. I try with Qwen 3.5:4b as well but mostly Ministral.

      Works really well. Extracts companies you have dealt with, people, topics, events, locations, financial transactions, bills, etc.

    • Adrig 3 hours ago
      I used Ministral for data cleaning.

      I was surprised: even tho it was the cheapest option (against other small models from Anthropic) it performed the best in my benchmarks.

      • Bombthecat 2 hours ago
        Mistral is super smart in smaller context and asking questions about it
    • ainch 1 hour ago
      That's likely because they're chasing enterprise - see deals with HSBC, ASML, AXA, BNP Paribas etc... Given swelling anti-US sentiment and their status as a French 'national champion', Mistral are probably in a strong position for now regardless of model performance, research quality or consumer uptake.
    • badsectoracula 2 hours ago
      Pretty much all of my LLM usage has been using Mistral's open source models running on my PC. I do not do full agentic coding as when i tried it with Devstral Small 2 it was a bit too slow (though if i could get 2-3 times the speed of my PC from a second computer it'd be be a different story and AFAIK that is doable if i was willing to spend $2-3k on it). However i've used Mistral's models for spelling and grammar checks[0], translations[1][2], summaries[3] and trying to figure out if common email SPAM avoidance tricks are pointless in the LLM age :-P [4]. FWIW that tool you can see in the shots is a Tcl/Tk script calling a llama.cpp-based command-line utility i threw together some time ago when experimenting with llama.cpp.

      I've also used Devstral Small to make a simple raytracer[5][6] (it was made using the "classic" chat by copy/pasting code, not any agentic approach and i did fix bits of it in the process) and a quick-and-dirty "games database" in Python+Flask+Sqlite for my own use (mainly a game backlog DB :-P).

      I also use it to make various small snippets, have it generate some boilerplate stuff (e.g. i have an enum in C and want to write a function that prints names for each enum value or have it match a string i read from a json file with the appropriate enum value), "translate" between languages (i had it recently convert some matrix code that i had written in Pascal into C), etc.

      [0] https://i.imgur.com/f4OrNI5.png

      [1] https://i.imgur.com/Zac3P4t.png

      [2] https://i.imgur.com/jPYYKCd.png

      [3] https://i.imgur.com/WZGfCdq.png

      [4] https://i.imgur.com/ytYkyQW.png

      [5] https://i.imgur.com/FevOm0o.png (screenshot)

      [6] https://app.filen.io/#/d/e05ae468-6741-453c-a18d-e83dcc3de92... (C code)

      [7] https://i.imgur.com/BzK8JtT.png

    • pelagicAustral 3 hours ago
      Me neither, they're not ready for prime imo. I have a yearly sub and the product is just orders of magnitude behind Anthropic's offering. I use Code for real world stuff and I am happy with the result, Mistral is just not something I can trust right now.
    • Fnoord 2 hours ago
      I use them solely.
    • nimchimpsky 2 hours ago
      [dead]
  • igravious 30 minutes ago
    "and continues to scale linearly"

    it clearly and demonstrably does not. in fact, from eyeballing their chart Qwen, Kimi, and GLM scale linearly whereas Leanstral does not. But this is not surprising because the Alibaba, Moonshot, and Zhipu have hundreds of employees each and hundreds of millions of dollars of investment each.

  • piyh 2 hours ago
    Automated theorem provers running on a $5k piece of hardware is a cool version of the future
  • jasonjmcghee 2 hours ago
    Curious if pass@2 was tested for haiku and sonnet?
  • miacycle 3 hours ago
    The TDD foundation! We might need one of those. :)
  • lefrenchy 4 hours ago
    Does Mistral come close to Opus 4.6 with any of their models?
    • chucky_z 4 hours ago
      I use mistral-medium-3.1 for a lot of random daily tasks, along with the vibe cli. I'd state from my personal opinion that mistral is my preferred 'model vendor' by far at this point. They're extremely consistent between releases while each of them just feels better. I also have a strong personal preference to the output.

      I actively use gemini-3.1-pro-preview, claude-4.6-opus-high, and gpt-5.3-codex as well. I prefer them all for different reasons, however I usually _start_ with mistral if it's an option.

      • sa-code 4 hours ago
        Why not Large 3? It's larger and cheaper
    • DarkNova6 4 hours ago
      Not at the moment, but a release of Mistral 4 seems close which likely bridges the gap.
      • re-thc 4 hours ago
        Mistral Small 4 is already announced.
        • androiddrew 3 hours ago
          MOE but 120B range. Man I wish it was an 80B. I have 2 GPUs with 62Gib of usable VRAM. A 4bit 80B gives me some context window, but 120B puts me into system RAM
    • tjwebbnorfolk 4 hours ago
      Mistral hasn't been in the running for SOTA for quite awhile now
  • kittikitti 4 hours ago
    This is great, congratulations to the Mistral team! I'm looking forward to the code arena benchmark results. Thanks for sharing.
  • htrp 3 hours ago
    is the haiku comparison because they've distilled from the model?
  • hnipps 3 hours ago
    Here we go.
  • gpubridge 2 hours ago
    [dead]
  • leontloveless 4 hours ago
    [dead]
  • aplomb1026 3 hours ago
    [dead]
  • paseante 2 hours ago
    [dead]
  • glinksss 3 hours ago
    [dead]
  • theirgooch 4 hours ago
    [flagged]
  • selectively 4 hours ago
    [flagged]
  • blurbleblurble 5 hours ago
    Truly exciting