# Autonomous AI Agents Systematically Diverge From Human Preferences in Proof Formalization

Simulated collaboration shows AI agents diverge from human preferences in Lean proofs

Bálint Gyevnár, Simon DeDeo · arXiv · 2026-11-4

- **Problem** Existing evaluations give agents pre-selected subproblems, so what agents attend to when choosing their next step has gone unobserved. Those choices decide which parts of a formal proof get written first.
- **Method** Simulated collaboration replays each human Lean commit history and hands the next step to an agent. Because the agent picks its own target, the place it works becomes the measured outcome.
- **Results** Agents are far more strongly drawn to sorry-marked definitions than humans, with Claude reaching 92% of its edits against 19% for humans. Agents also avoid densely connected proof centers.

![Figure 5: Lean 4 syntax (a) and dependency graph (b) based on the proof that infinitely many primes exist](https://refivu.com/papers/0667f312-1b91-4e84-840b-2ee875dac6ae/figures/figure-b6af5d680b8ed0d34876966418a635ad.png?thumb=512)

**Figure 5** :Lean 4 syntax (a) and dependency graph (b) based on the proof that infinitely many primes exist.

[Original paper](https://arxiv.org/abs/2611.06995v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bálint Gyevnár, Simon DeDeo · Autonomous AI Agents Systematically Diverge From Human Preferences in Proof Formalization · Original paper figure · Extracted the figure area from page 17 of the original PDF.

## Why agent choices of next step matter

The choice of which subproblem to attack next decides which parts of a formal proof get written first. Proof assistants such as Lean let people split a theorem into formally specified subproblems, each closed by systematic search. Recent AI proofs have been described as verbose, circuitous, redundant, and misformalized. Some proponents of AI in mathematics argue that formalization assistance should keep human control and agency over proof discovery.

When an agent picks the next step on its own, humans give up part of that agency.

Existing evaluations use pre-selected problems, so they reveal little about what agents attend to when they choose. The authors separate the syntax of a proof, its textual organization, from its semantics, the mathematical content it represents. Neural models lean on surface regularities, and LLM provers can succeed on one wording of a theorem and fail on an equivalent one.

Code models can also learn internal representations that go beyond surface form, so semantics may matter too.

The paper asks whether agents work with surface syntax or underlying semantics, which is RQ1. It also asks whether agent preferences match those of human experts, which is RQ2. The authors rerun each human history and hand the next step to an agent under a deliberately broad objective. They compare the human baseline with three models: Claude Opus 4.6, Google Gemini 3.1 Pro, and GPT-5.2.

The dataset covers nine major Lean collaborations, with 4.7M definitions across more than 6K commits.

## Replaying human histories with an agent in the loop

Simulated collaboration replays each human Lean commit history and asks an agent to take the next step at each parent state. Because the agent picks its own target, the place where it works becomes the measured outcome rather than an input. Like earlier work by Xin+26, the authors replay full histories, but they set a deliberately broad objective for the agent.

They remove all merge commits and every commit in which no Lean file was modified. For each remaining human parent state, Ht−1, an agent is called and produces an artificial child state, At. The human child state Ht is then compared with At, using features extracted from each. Figure 1 summarizes this pipeline, which groups its features into syntactic, temporal and semantic families.

Claude Code runs Claude Opus 4.6, Codex runs GPT-5.2-Codex, and Gemini CLI runs Gemini 3.1 Pro. Each agent gets the same minimal prompt, which keeps the choice of target open. The syntactic features include definition length and the presence of sorry markers. A sorry is a Lean keyword that lets a proof compile without a complete proof. The semantic features capture network position, measured by the maximum shortest-path distance to accessible leaves.

Network position also includes the distance to the nearest significant root. Surprise is the per-token surprise of a definition's type signature and of its body.

The sorry analysis scores surprise under DeepSeek-Prover-V2-7B, the model shown in Figure 4. The regression model takes these features from the parent commit as predictors of which definitions an actor edits.

## How much agents edit compared to humans

Table 1 lists how many definitions each actor adds, modifies and removes, with each category's share of that actor's total. These differences are significant overall, with χ2(3) = 31.7 and p \< 0.001.

![Table 1: The number and per-actor percentage of definitions that wereAdded,Modified, orRemoved, aggregated across all commits we consider. The three categories…](https://refivu.com/papers/0667f312-1b91-4e84-840b-2ee875dac6ae/figures/figure-b6f056c8a70f123848cf1b11ba05e890.png?thumb=512)

**Table 1** :The number and per-actor percentage of definitions that wereAdded,Modified, orRemoved, aggregated across all commits we consider. The three categories are mutually exclusive, with the remaining definitions left unchanged.Median chars.gives the median number of characters inserted plus deleted across the signature and body.Totalis the number of definitions for the actor across all commits, including unchanged definitions.

[Original paper](https://arxiv.org/abs/2611.06995v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The largest gap appears in removals, and agents almost never delete code. Humans remove 4,913 definitions, while Codex removes only 57. Median characters changed in a modified definition are 20 for humans, 84 for Gemini, 149.5 for Claude and 103 for Codex. A Gaussian mixed model of log edit size gives Holm-corrected p = 0.002 for Gemini and p \< 0.001 for Claude and Codex.

The authors read these patterns as agent edits being more monolithic, larger and touching fewer definitions. In this reading, agents see the current codebase as fixed scaffolding, not as a draft to revise. For humans, that share is about one-third. The authors call the typical agent commit a proof autofiller. Such autofilling can produce verbose, hard-to-understand artifacts, which the authors tie to mathematicians' warnings.

## Why sorry markers draw agents in

AI agents concentrate their edits on definitions that contain a sorry, the Lean keyword that lets a proof compile with a gap. Claude reaches 92%, Gemini 80% and Codex 59%, while humans stand at 19% of their edits.

The pull follows the marker itself rather than its neighbourhood, since the modification share falls as distance from a sorry grows. Humans, by contrast, spread their largest share of edits to definitions two steps from a sorry. Claude is the most assiduous sorry-editor, yet it edits only 10% of the sorry-bearing definitions available, pooled over commits.

Per commit, that share averages 18%.

The authors read agents as treating every sorry as an open request for assistance. A human collaborator, by contrast, uses a sorry as a placeholder and a planning device. Humans may defer a definition because its proof is routine but laborious, or because the shape of its argument is still undecided. The Lean compiler, however, requires that no sorry remains for a complete formalization, so agents follow the only explicit signal of unfinished work.

Under a minimal prompt, this reading is arguably not unreasonable.

Agents fill the gaps that humans chose to defer, and they seem not to see that decision. The authors expect collaborators who treat a sorry as a symptom to work on its neighbourhood instead.

## Longer definitions and isolated edits

Humans are strongly drawn to longer definitions, with a coefficient of +2.207 ± 0.055 log-odds in the logistic model. The agent deviations from that human baseline are −1.58 for Claude, −1.77 for Gemini and −2.56 for Codex. Because each deviation is negative, agents lean toward shorter definitions than humans do, which fits their preference for sorry-marked code.

The paper reports these length effects alongside Figure 2, where the Size (rank) predictor sits among the fixed-effect coefficients.

Agents also make isolated edits, so their changes rarely touch other definitions changed in the same commit. Of Claude's edits, 77% connect to no other definition edited in the same commit, against 69% for Gemini and 82% for Codex. The authors read this as a sign that agents prefer simple, isolated places in the code over connected regions.

Agents also edit fewer definitions overall, which makes these isolated edits a distinct pattern from the sorry preference.

## Where agents edit on the dependency graph

Position is measured with two quadratic fits, one on Max leaf and one on Root distance, in the regression behind Figure 2. Max leaf is the maximum shortest-path distance from a definition to all accessible leaves. For humans, the Max leaf curve bottoms out at the 10th percentile, which holds the leaves themselves. For humans, the curve then rises steadily with distance into the graph.

For AI agents, the minimum moves off the leaves, to one to three dependency steps above a leaf. Codex reaches its minimum at one step, at the 38th percentile. Gemini and Claude reach their minimum at three steps, at the 42nd and 52nd percentiles. Edit probability therefore rises in both directions from that minimum, a U-shaped relationship that the coefficient signs confirm.

Root distance shows the same structure, with a strong U-shaped response for the agents. All of these deviations have p below 0.01, and simpler regressions with either measure alone don't change the picture.

Read this way, agents approach the proof from its two ends, the top theorem and the bottom axioms. They avoid the densely connected middle, where humans spend more effort on intermediate lemmas.

## Surprise: bodies regularized, signatures avoided

Surprise is scored per token with DeepSeek-Prover-V2-7B, for both type signatures and bodies. Figure 4 compares definitions containing at least one sorry before and after each actor's modification, with 95% bootstrapped intervals.

The authors also check sorry and non-sorry bodies separately, so the effect isn't driven only by sorry markers. The authors describe this as agents tending to regularize proofs toward an LLM standard.

All three agents are less likely than humans to modify definitions whose type signatures carry high surprise. Informally, the stranger the proof goal looks relative to an LLM standard, the less likely an agent is to edit the body. This aversion to surprising signatures holds regardless of which model scores the surprise. Agents thus steer clear of unusual statements while still gravitating toward unusual proof bodies.

The authors argue that avoiding hard signatures can be a sensible choice, since a well-designed agent would avoid problems beyond its training data. They add that an agent might make sense of an idiosyncratic signature, but it is wise to avoid editing when it cannot.

## What the divergences mean for collaboration

Sorry-filling cuts both ways for human–AI collaboration, according to the authors. It offers a natural division of labor, because closing local gaps is tedious work that humans already defer. But agents appear blind to a human decision to defer, which can have downstream consequences. Between 25% (Codex) and 48% (Claude) of sorry-chosen declarations later took a new signature.

The authors read this as evidence that much of the sorry-filling is premature.

The authors' most parsimonious explanation is that the periphery offers low-hanging fruit under a minimal prompt. Sorry markers give a ready-made signal of what could be a useful next step. Dependency position and type-signature complexity instead signal what is a feasible next step. Shorter definitions might match Lean code that exists elsewhere, a hypothesis the authors don't test here.

The center of a proof holds accumulated decisions that combine axioms and external dependencies, which makes it more idiosyncratic.

The authors stress that the center of the dependency graph is where a proof's core ideas are expected to appear. That asymmetry matters because intermediate lemmas make a formal proof match one particular human proof. On surprise, the authors see regularization as a concern, since LLM homogenization may extend to smoothing out unusual proofs.

Their findings suggest that LLMs don't only homogenize text but also look for unusual places to smooth out.

The authors also expect that human authors may write AI-friendly proofs to recruit agents. Such proofs would have shorter bodies, fewer dense connections, and placement closer to leaves and roots. That style could frustrate human goals of synthesis, diversity, and innovation.

## Limitations of the simulated collaboration results

Dependency graphs are built by a heuristic lexical parser instead of by the Lean compiler itself. The authors validated this parser, and it shows a high degree of reliability in Appendix B. Even so, the reconstruction doesn't match the compiler's dependencies exactly. An optimal parser would still blend dependencies a human can see with those created by subtle compile-time interactions.

Separating the human-visible dependencies from the rest remains an open question.

The authors argue that this contamination would shrink the observed human–AI differences, making those differences a lower bound. Unnoticed use of an AI agent in the raw human commits would likewise reduce the observed gaps. The authors therefore call their reported differences conservative. The study treats the human as a single actor, yet the repositories have between 1 and 61 contributors.

Individual humans are expected to deviate in many ways, so the results describe the human average.

Merge commits are excluded because a merge combines separately developed work, not a single next-step decision. The authors didn't trace merges back to individual forks, since private-fork commits are more variable and less interpretable. The regression analyses are correlational, so they don't establish causal effects. Causal claims would need interventions such as inserting or removing sorry markers, which produce unnatural stimuli.

So the results inform how collaborations might evolve, but they can't simulate a repository over long periods.

## Paper info

- **Authors**: Bálint Gyevnár, Simon DeDeo
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-4
- **Added**: 2026-11-6
- **Updated**: 2026-11-4
- **Version**: v1
- **arXiv**: 2611.06995
- **Category**: cs.AI · cs.HC
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.06995v1) · [PDF ↗](https://arxiv.org/pdf/2611.06995v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Artificial intelligence (AI) systems have ushered in a new age of proof abundance, but helping humans understand these proofs requires new attention to the differences in how AI agents and humans pursue a proof-making task. We present "simulated collaboration", a methodology that allows us to examine two key questions: (1) the relative attention AI agents pay to surface syntax or, conversely, deeper underlying semantics, and (2) how and where AI agent preferences for what to do next diverge from human preferences. On a set of nine major human collaborations in Lean with 4.7M definitions across more than 6K commits, we find that, over the course of proof construction, AI agents (1) are far more strongly drawn than humans to explicitly marked gaps; (2) show a relative aversion to densely connected proof centers and to complex or surprising proof goals; and (3) are relatively attracted to surprising proof bodies, which they tend to regularize toward baseline. Our results highlight important blind spots and potential interventions for future human-AI collaboration in mathematics.

## Quote from the paper

Bálint Gyevnár, Simon DeDeo (2026). Autonomous AI Agents Systematically Diverge From Human Preferences in Proof Formalization. arXiv:2611.06995v1. https://arxiv.org/abs/2611.06995v1

**BibTeX**

```
@misc{gyevnr2026autonomous,
  title = {{Autonomous AI Agents Systematically Diverge From Human Preferences in Proof Formalization}},
  author = {Bálint Gyevnár and Simon DeDeo},
  year = {2026},
  eprint = {2611.06995},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.06995v1}
}
```

## Other paper commentary

- [Reflexion: Language Agents with Verbal Reinforcement Learning](https://refivu.com/en/papers/a572f458-b121-4d38-bfc9-7a77309a3aba-reflexion-language-agents-with-verbal-reinforcement-learning.md)
- [A Generalist Agent](https://refivu.com/en/papers/890475cb-e797-43df-8de3-0d0eb9ed882e-a-generalist-agent.md)
- [Toward Agentic Robotics: A Large-Scale Study of Harness Design for Robot-Use Agents](https://refivu.com/en/papers/14d1c215-9799-4493-b5f1-c86c787dcba4-toward-agentic-robotics-a-large-scale-study-of.md)
- [VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets](https://refivu.com/en/papers/f3a3ce4f-fd41-462e-8bb7-f3e5263ba827-veriladder-a-multi-agent-specification-refinement-system-for.md)
- [AutoPILOT: A Visual Agent Harness for Real-Time Gameplay](https://refivu.com/en/papers/610b7c6f-2c3b-4308-bb50-b139b48fceb7-autopilot-a-visual-agent-harness-for-real-time.md)
- [LesionAgent: Training-Free Agentic Tumor Tracking and Response Assessment in Longitudinal CT](https://refivu.com/en/papers/aad1fd25-45a9-4d0f-bd6b-86f8fce045bc-lesionagent-training-free-agentic-tumor-tracking-and.md)
- [Automated Feedback to Peer Tutors Increases Their Talk Moves and Learner Reasoning but Not the Balance of Talk](https://refivu.com/en/papers/1e58766c-0ddb-431f-8443-e6eafb8bcd1d-automated-feedback-to-peer-tutors-increases-their-talk.md)
- [Beyond Instruction Override: Benchmarking Indirect Prompt Injection with Task-Tampering Attacks](https://refivu.com/en/papers/cefe818d-f868-4fcb-934d-a801e01c1bf8-beyond-instruction-override-benchmarking-indirect-prompt.md)
- [Consistent Submodular Maximization with Full Foresight](https://refivu.com/en/papers/581075e3-e4d0-4abc-a9f5-d93e53320471-consistent-submodular-maximization-with-full-foresight.md)
- [Off-Policy Deep Reinforcement Learning without Exploration](https://refivu.com/en/papers/997f4405-73fe-49b5-a89f-243df2c90604-off-policy-deep-reinforcement-learning-without-exploration.md)
- [Large Scale GAN Training for High Fidelity Natural Image Synthesis](https://refivu.com/en/papers/93f6ad29-8cca-4630-9a3b-d12f9ad91854-large-scale-gan-training-for-high-fidelity-natural.md)
- [Decoupled Weight Decay Regularization](https://refivu.com/en/papers/19eca1c5-1291-475b-a58c-daedbe769654-decoupled-weight-decay-regularization.md)

## Terms in this paper

- [AI agent](https://refivu.com/en/terms/fc11c0e687e4-ai-agent)
- [dependency graph](https://refivu.com/en/terms/f2f5053beb0c-dependency-graph)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/0667f312-1b91-4e84-840b-2ee875dac6ae-autonomous-ai-agents-systematically-diverge-from-human)
