MedLean: A Modest Step Toward Reviving Formal Medical Verification as a Safety World Model in the Era of MLLMs
MedLean turns four oncology guidelines into 1,861 Lean rules and, on 428 cases, drives reported high-risk releases to zero while certifying whole plans at 98.4 percent and 100 percent.
The 30-second take
- An offline compiler and a Z3 auditor encode four NCCN and CSCO oncology guidelines as 1,861 executable rules, and an online kernel is proved across 23 machine-checked theorems.
- On 428 multi-cancer cases with DeepSeek-V4.1-Flash and the model the authors name GPT-6.2-Astra, high-risk releases fall to 0 percent and whole-plan certification reaches 98.4 percent and 100 percent.
- Hospitals testing guideline checks beside a language model should not trust a binary rule engine alone, because the authors say it can worsen mandatory-duty completion.
What the paper actually did
Formal medical verification encodes clinical guidelines as mathematical logic so a care plan can be audited. The authors say older tools stalled because coding was heavy, records had to be extracted by hand, and the outputs were opaque. Multimodal and large language models are good at clinical text, but the authors say they still release contraindicated therapies when tests are missing and they skip mandatory clinical duties. MedLean is a two-stage Lean 4 framework meant to sit beside those models as an interactive safety world model, focused on oncology. MedLean-Compiler is an offline compiler and a Z3 full-space auditor over four National Comprehensive Cancer Network and Chinese Society of Clinical Oncology guidelines, totaling 1,861 executable rules. MedLean-Verifier is an online kernel proved across 23 machine-checked theorems. Static auditing finds 362 binary negative-default leaks and also genuine contradictions inside published guidelines. The case study uses 428 multi-cancer cases and two models, DeepSeek-V4.1-Flash and a model the paper names GPT-6.2-Astra.
What makes this disruptive
The disruptive move is not another chatbot summary of a guideline. It is a checker that can refuse a plan. The authors report that MedLean drives high-risk releases to 0 percent and lifts whole-plan certification to 98.4 percent and 100 percent across the two models they name. They also report a negative result that matters as much as the gain: binary rule engines actively degrade mandatory-duty completion below unverified language models. Safety-first models can reach full base certification partly by leaving work out, unless the setup adds what the authors call consultation-target accountability. A verifier that only punishes action can look safe while the patient still lacks a required step.
Why it matters (outside the lab)
A full guideline audit is scarce. It takes a specialist who can hold the rule, the missing test, and the omitted duty in mind at once. If a machine-checked kernel can do that pass beside a language model, the scarce thing gets closer to a default review step rather than a research demo. That is a direction, not a deployment date. The paper is explicit that this is a modest step, and the numbers are on 428 oncology cases, not on a hospital going live. The abundance question is whether contraindicated releases can be made rare without teaching the model to pass by omission.
Limitations & open questions
The scope is oncology and four named guidelines. Static auditing uncovered contradictions in published guidelines, so a plan can be certified against a rule that is itself in conflict. The 0 percent high-risk figure and the 98.4 percent and 100 percent certification figures are the authors' results on 428 cases with two named models. They are not a multi-site clinical trial. Binary engines can make mandatory duties worse than an unverified model. Certification by conservative omission is called out in the abstract, which means a perfect safety score can hide unfinished care unless accountability for the consultation target is part of the test. The abstract does not report bedside use.
Explain ladder
Default article depth
A language model can read a chart and suggest a cancer treatment. It can also suggest something the guideline forbids when a test is missing, or it can forget a duty the guideline requires. MedLean compiles four oncology guidelines into 1,861 rules that a solver can check, and it proves an online kernel with 23 machine-checked theorems. On 428 cases, the authors say risky releases go to zero and whole-plan certification reaches 98.4 percent and 100 percent. The caution is built in. A crude yes-or-no rule checker can make the model worse at required duties. A cautious model can look fully certified because it left the hard recommendation out.
Key terms
- Lean 4
- A proof assistant the authors use to encode guideline rules so a machine can check them.
- Negative-default leak
- A binary rule failure the static audit counts, here 362 cases where a default of no can let a bad plan through.
- Safety world model
- The authors' phrase for a formal checker that a language model can consult before a care plan is released.
Sources
Related explainers
Same topic and week first — keep exploring the scarcity → abundance map.
GameStation: Benchmarking Multimodal Agents on Long-Horizon Modern Games
2026-W50 · score 93 · Artificial Intelligencesame weeksame topic
MIMIC: A Generative Multimodal Foundation Model for Biomolecules
2026-W50 · score 90 · Artificial Intelligencesame weeksame topic
Multi-Hop Attention Graph Sampling for Masked Diffusion LLMs
2026-W50 · score 88 · Artificial Intelligencesame weeksame topic
MMSearchArt: Training Unified Multimodal Deep Research Agents with Scalable Synthetic Task Mixtures
2026-W50 · score 85 · Artificial Intelligencesame weeksame topic
Imagine a new viewpoint only when the picture is not enough
2026-W48 · score 93 · Artificial Intelligencesame topic
