MedLean: A Modest Step Toward Reviving Formal Medical Verification as a Safety World Model in the Era of MLLMs
Abstract
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.
Create a lesson
Metadata
- Comments
- 10 pages, 3 figures, 5 tables (including Appendix Table A1)
Related papers
Scaling Neural Network Verification with Distributed αβ-CROWN
Shared title terminologycs.AILei Huang, Yifei Li, Xuanle Li et al.
TraceMetis: Towards Agent Comprehensibility
Shared title terminologycs.AIZhao Zhang, Chao Peng, Peijie Dong et al.
Using Decision Trees and Neural Networks to assess risk factors towards mediation of IP-related disputes
Shared title terminologycs.AISpyridon Spyratos, Anton Petrov, Tamar Aanen et al.
Plato: A Conversational Multimodal Chatbot for Real-World Meal Logging and Nutrition Analysis
Shared title terminologycs.AIShreyoshi Ghosh, Brayden Abo, Samantha Kleinberg
Same Request, Another Script, Opposite Verdicts: LLM Safety Judges on Script-Swapped Jailbreaks
Shared title terminologycs.AISarthak Senapati, Parijat Chatterjee, Sutanshu Saksena Raj et al.
Can LLM Agents Program Model Safety? Exploring Autonomous Safety Control in Weight Space
Shared title terminologycs.AIJunchi Chen, Changtao Miao, Zhenchao Jin et al.