Driving · 2026-12-04

MedLean: A Modest Step Toward Reviving Formal Medical Verification as a Safety World Model in the Era of MLLMs

Zhihao Tang, Chao Li, Jun Zhao

arXiv:2612.06157PDF

AI-assisted summary based on the paper. Consult the linked source for methods and limitations. Benchmark numbers appear after editor verification.

TL;DR

MedLean is a two-stage Lean 4 framework for oncology safety world modeling: MedLean-Compiler converts four NCCN/CSCO guidelines into 1,861 executable Lean 4 rules and uses Z3 full-space auditing; MedLean-Verifier audits LLM-proposed plans online with a proved Lean 4 kernel (23 machine-checked theorems). On 428 synthetic multi-cancer cases, MedLean drives high-risk releases to 0% and raises whole-plan certification to 98.4% and 100%.

Why it matters

The authors target a gap in medical AI safety: LLMs can process clinical text but may release contraindicated therapies or omit mandatory duties. By using formal verification as an interactive “safety world model,” MedLean aims to provide deterministic, machine-checked auditing and structured revision feedback, including missing-evidence protection and whole-plan duty checking, rather than only verifying isolated rules or actions.

Method

  • Offline: MedLean-Compiler compiles four NCCN/CSCO oncology guidelines into 1,861 executable Lean 4 rules and runs Z3 full-space static auditing to expose negative-default leaks and guideline conflicts.
  • Online: MedLean-Verifier loads a proved Lean 4 kernel (backed by 23 machine-checked theorems) to whole-case audit LLM-proposed care plans under three-valued logic, block unsafe approval, and output exact {0,1} certification rewards with structured revision feedback.
  • Evaluation: compare against unverified LLM generation and baselines on 428 synthetic multi-cancer cases using DeepSeek-V4.1-Flash and GPT-6.2-Astra, including anti-hacking stress tests and feedback ablations.

Limitation

All 428 online benchmark cases are synthetic structured vignettes using canonicalized fact keys and standardized action IDs rather than raw free-text electronic health records; upstream extraction errors are not evaluated inside the Lean kernel and remain a separate risk.

Abstract (from arXiv)

Formal medical verification encodes clinical guidelines into mathematical logic to audit care plans, yet traditional tools stalled under heavy coding burdens, manual record extraction, and opaque outputs. Conversely, multimodal and large language models (MLLMs and LLMs) excel at clinical text processing but still release contraindicated therapies under missing tests and omit mandatory clinical duties. We investigate whether formal medical verification can be revived alongside MLLMs as their interactive safety world model. Focusing on oncology, we introduce MedLean, a two-stage Lean 4 framework comprising an offline compiler and Z3 full-space auditor (MedLean-Compiler) over four NCCN and CSCO guidelines (1,861 executable rules) and an online verification kernel proved across 23 machine-checked theorems (MedLean-Verifier). Static auditing uncovers 362 binary negative-default leaks alongside genuine published-guideline contradictions. Across 428 multi-cancer cases with DeepSeek-V4.1-Flash and GPT-6.2-Astra, MedLean drives high-risk releases to 0% and lifts whole-plan certification to 98.4% and 100%. Binary rule engines actively degrade mandatory-duty completion below unverified LLMs, and safety-first models achieve full base certification partly through conservative omission unless paired with consultation-target accountability.

Related papers

Publication record

Bibliographic evidence describes where and when a record appeared. It does not validate scientific claims.

First public release: 2026-12-03 · Indexed by Pub-AI: 2026-12-04 UTC

preprint

MedLean: A Modest Step Toward Reviving Formal Medical Verification as a Safety World Model in the Era of MLLMs

Zhihao Tang, Chao Li, Jun Zhao

Preprint posted: 2026-12-03 · Original record ↗

arxiv
2612.06157
Explicit source versions (1)
  • v1 · 2026-12-03
  1. Preprint available

    Source date: 2026-12-03 · First detected: 2026-12-04 UTC · Historical baseline

    Source evidence (2)
Abstract · arxiv

Formal medical verification encodes clinical guidelines into mathematical logic to audit care plans, yet traditional tools stalled under heavy coding burdens, manual record extraction, and opaque outputs. Conversely, multimodal and large language models (MLLMs and LLMs) excel at clinical text processing but still release contraindicated therapies under missing tests and omit mandatory clinical duties. We investigate whether formal medical verification can be revived alongside MLLMs as their interactive safety world model. Focusing on oncology, we introduce MedLean, a two-stage Lean 4 framework comprising an offline compiler and Z3 full-space auditor (MedLean-Compiler) over four NCCN and CSCO guidelines (1,861 executable rules) and an online verification kernel proved across 23 machine-checked theorems (MedLean-Verifier). Static auditing uncovers 362 binary negative-default leaks alongside genuine published-guideline contradictions. Across 428 multi-cancer cases with DeepSeek-V4.1-Flash and GPT-6.2-Astra, MedLean drives high-risk releases to 0% and lifts whole-plan certification to 98.4% and 100%. Binary rule engines actively degrade mandatory-duty completion below unverified LLMs, and safety-first models achieve full base certification partly through conservative omission unless paired with consultation-target accountability.