TRANSMISSION // 2612.06157v1

Can formal rules make oncology AI plans safer?

Source published

MedLean pairs language models with a formal checker for oncology plans. Tests on synthetic cases found fewer high-risk releases, but do not establish clinical readiness.

AI-generated conceptual illustration for Can formal rules make oncology AI plans safer?
AI-generated conceptual illustration; not documentary evidence.

Language models can suggest care plans, but may miss required steps or act on incomplete evidence. MedLean tests whether a formal rule-checker can catch those problems and guide revisions—an early benchmark result, not evidence of clinical readiness.

A rule-checker alongside the model

A medical care plan can be unsafe not only because it recommends the wrong treatment, but also because it overlooks a required test or other clinical duty. A fluent answer does not guarantee that every relevant guideline condition has been checked. Formal verification offers a different approach: translate guideline instructions into rules that software can inspect.

In the preprint MedLean, Zhihao Tang, Chao Li and Jun Zhao ask whether formal verification can work alongside multimodal and large language models (MLLMs). Their prototype focuses on oncology, where decisions may depend on several tests, treatment histories and safety exclusions.

MedLean has two parts. Its offline compiler turns structured material from four NCCN and CSCO lung and gastric cancer guidelines into 1,861 executable rules. A Z3 logic auditor checks the encoded rules across the state space defined by those rules and their formal inputs. This is not an exhaustive audit of every clinical situation. The online verifier assesses a model’s proposed plan and can return structured feedback for revision.

A key design choice is how to represent missing information. Instead of treating an unreported test result as positive or negative, MedLean records it as unknown. That distinction matters: an unknown result should not automatically satisfy a condition needed to authorize an action. The verifier also checks for mandatory actions omitted from a plan, rather than looking only for problems in actions the model proposed. Its Lean 4 verification kernel is supported by 23 machine-checked theorems about the system’s formal rules and structured inputs.

What the tests found

The researchers first audited their rule library. They report finding 362 cases where a binary, negative-default approach could allow an action despite missing evidence. They also identified contradictions within the published guideline material itself. These point to two different challenges: how software handles uncertainty, and how to encode guidance that may not be internally consistent.

For online tests, the team used 428 synthetic, structured cancer cases and two language models: DeepSeek-V4.1-Flash and GPT-6.2-Astra. The cases were not raw patient records. In the 300-case main cohort, MedLean’s final released plans had no high-risk releases for either model. It also achieved full mandatory-duty completion among cases requiring such duties: 127 of 127 for each model. Whole-plan certification was 299 of 300 for DeepSeek and 300 of 300 for Astra.

Those results depended on the complete system, including feedback, revision and a final safety filter. They do not show that either model independently produced safe plans. The comparison also shows why a simple rule engine may not be enough: the paper reports that its binary-default baseline reduced mandatory-duty completion in most model–cohort comparisons. A checker that blocks risky actions can still perform poorly if it does not help restore necessary actions.

The authors found that a passing base certificate did not always mean a sufficiently complete response. A plan could pass by omitting an eligible consultation target when no other duty or test was pending. The paper describes a separate consultation gate that required explicit judgments about designated targets; it rejected empty responses in that setting. This addresses a specific benchmark scoring weakness, not the broader question of whether a plan is complete or clinically appropriate.

What remains uncertain

The formal proofs apply to the verifier’s defined rules and structured inputs. They do not prove that the guidelines were transcribed correctly, that the guidelines themselves are clinically complete, or that a certified plan will benefit a real patient. The authors say the benchmark cases were synthetic and the rule library has not received independent blinded review by board-certified oncologists. Some source material also remained partial or pending because it depended on factors such as patient preferences, anatomy or local procedures.

The study does not test the entire path from messy medical records to verified decisions. Errors in extracting facts from clinical notes remain outside the kernel’s guarantees, as do broader questions about care across multiple conditions and over time. The evaluation covers four oncology guidelines and two models.

MedLean demonstrates a limited idea: a formal checker can expose missing-evidence risks and omissions in a defined benchmark, then give a model targeted feedback. Further work could examine additional guidelines, clinical assessment and different data or workflow settings. This is an arXiv preprint, so its findings are preliminary—not evidence of a deployed or clinically validated system.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • A More Traceable Way for AI to Use Clinical Guidelines

    Shared method: Both papers turn clinical guidance into executable representations and use deterministic formal reasoning to evaluate patient evidence against guideline conditions. The overlap is at this method level: MedLean verifies whole oncology plans with a Lean 4 kernel and three-valued states, while VerClin matches scoped cases to guidelines with a four-valued reasoner and leaves specialty screening and response generation model-based. Their reported evaluations and safety claims are not directly comparable.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2612.06157v1 — Original paper

      Excerpt reference: static/papers/2612.06157v1.md:263-382
      Basis: Paper text
      Source file SHA-256: 3fc0e8c4c3ef892818eb5f1cceb77c90d81b0f5e058f4d0cb819ddba50c427f2

    • 2612.06157v1 — Original paper

      Excerpt reference: static/papers/2612.06157v1.md:383-509
      Basis: Paper text
      Source file SHA-256: 3fc0e8c4c3ef892818eb5f1cceb77c90d81b0f5e058f4d0cb819ddba50c427f2

    • 2611.32247v1 — Original paper

      Excerpt reference: static/papers/2611.32247v1.md:308-394
      Basis: Paper text
      Source file SHA-256: 6240d9232e1921811fd5fb4e88784bf95ad11f56bc93c5e3067f47ed0b81a144

    • 2611.32247v1 — Original paper

      Excerpt reference: static/papers/2611.32247v1.md:395-464
      Basis: Paper text
      Source file SHA-256: 6240d9232e1921811fd5fb4e88784bf95ad11f56bc93c5e3067f47ed0b81a144

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.