arXiv:2610.20459cs.CLOct 2026

Manuscript Offprint

arXiv:2610.20459

MolLean: A Process-Verifiable Language for Chemical Reasoning

Jiatong Li, Yatao Bian

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Chemical chain-of-thought can contain hallucinated structural and property claims. We thereby introduce MolLean, a process-verifiable language that grounds chemical reasoning in an explicit molecular state. A layered Lean-based kernel checks state transitions and assertions over molecular readouts, from primitive graph edits to compound transformations. Meanwhile, a typed witness protocol separates native structural checks from externally supplied measurements. We further introduce MolLean-MCP, a stateful tool interface that exposes these transitions, checks, and readouts during generation: the model receives feedback to decide its next action, and rejected actions leave the state unchanged. MolLean supports one-pass trace execution, whole-trace refinement, and interactive reasoning through MolLean-MCP. We evaluate these three modes with direct chain-of-thought on 8,800 matched examples across 12 tasks spanning molecular generation, editing, optimization, and reactions. With Qwen3.6-27B, whole-trace refinement outperforms direct chain-of-thought on all 12 tasks. MolLean-MCP complements whole-trace refinement with stepwise verification feedback, reaching better performance in reaction tasks. Together, these results highlight an executable foundation for chemical reasoning, in which explicit chemical commitments can be checked and revised rather than remaining solely in free-form explanations.

1 Introduction

Chain-of-thought prompting makes a model’s intermediate reasoning visible (Wei et al., 2022). In chemistry, this is appealing as chemists could examine the intermediate reasoning steps to improve the explainability of the final answer (Wang et al., 2026; Narayanan et al., 2026; Li et al., 2025; Zhao et al., 2025). However, a model can invoke a functional group absent from a molecule, lose track of a bond, or claim a property improvement without establishing it. Analyses of chemical reasoning find fabricated structural claims even alongside correct answers (Li et al., 2026b), and broader evaluations reveal uneven chemical competence and overconfidence (Mirza et al., 2025). These errors concern the stated chemistry itself, a failure mode complementary to causal unfaithfulness, where an explanation misrepresents how the answer was produced (Turpin et al., 2023).

We therefore ask what must a chemical reasoning language represent for its steps to be verifiable? Lean offers a precedent: a model proposes a derivation and a proof assistant checks its formal obligations (Moura & Ullrich, 2021; Jiang et al., 2023; Yang et al., 2023). Chemical reasoning combines graph transformations, structural observations, empirical estimates, and choices among plausible candidates. Chemistry tools already support capable agents (M. Bran et al., 2024; Boiko et al., 2023); the key step is to give successive operations and claims a shared molecular referent and an explicit acceptance condition.

We introduce MolLean, a process-verifiable language grounded in a maintained molecular state (Figure 1). A transition constructs, modifies, or reorganizes represented molecules. A readout obtains information without changing them, and an assertion tests a claim against that information. The model selects actions and obligations; a Lean-based kernel checks admissible transitions and native structural predicates. Descriptor- and knowledge-dependent assertions obtain typed witnesses from external providers. These distinctions let construction, transformation, and observation share one language while each keeps its own form of evidence.

The state does more than record the output: it determines which atoms a later edit addresses, which molecule a property readout measures, and whether an accepted prefix remains usable after a failed proposal. MolLean supports primitive edits, construction macros, joint transformations, and candidate introduction at different granularities. An accepted edit supplies the referent for subsequent checks, and a rejected edit leaves the maintained state intact. Verification thus applies directly to the model's declared commitments.

We expose the same language through whole-trace and interactive interfaces. MolLean One-pass submits a complete trace; MolLean Refinement revises a rejected trace from the initial state. MolLean-MCP lets the model inspect the current state, attempt an operation, and use immediate feedback to choose its next action. External feedback is central to revision: tool-grounded criticism guides reasoning more reliably than intrinsic self-correction (Huang et al., 2024; Gou et al., 2024). MolLean specifies what that feedback refers to and when it commits a change.

Our contributions are as follows:

• A state-grounded chemical reasoning language and verification contract. MolLean unifies molecular transitions, readouts, and assertions, with explicit boundaries between native structural checks and externally witnessed claims.

• Two feedback regimes over shared execution semantics. Whole-trace refinement revises complete traces from the input; MolLean-MCP interacts with the maintained state and commits only accepted edits.

• An evaluation on 8,800 matched examples across 12 tasks. With Qwen3.6-27B, refinement improves over direct chain-of-thought on every task, and MCP reaches the highest reaction accuracy. On ChEBI-20, refined traces reach 79.0% soundness and 33.1% answer accuracy, identifying task fidelity as the next challenge beyond repairing rejected steps. Qwen3-4B gains substantially on structural tasks.