SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.05400 · 2026

LeanMarathon: Toward Reliable AI Co-Mathematicians through Long-Horizon Lean Autoformalization

Yuekai Sun, Jason Lee, Fanghui Liu, Taiji Suzuki, Yuanhe Zhang

arXiv · PDF · Open in the Atlas

Code that ran

11 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 5 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 4 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.05400.json · badge: /api/ran/2606.05400.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
YuanheZ/LeanMarathon canonical (classifier label)
classifier basis: census
11 ran · 4 no recorded run
FunctionStatusWhere it lives
branch_slug Ran
ran; our contract draft was wrong, not the code
YuanheZ/LeanMarathon/.scripts/per_node_worker_loop.py
code served (permissive licence) · get_code("99f2364977bbe8a9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def branch_slug(name: str, *, limit: int=180) -> str:
    base = re.sub('[^A-Za-z0-9._-]+', '-', name).strip('.-')
    base = base or 'node'
    if len(base) > limit:
        base = base[:limit].rstrip('.-') or 'node'
    return base


# Setup code to construct valid arguments
ARGS = {
    'name': 'my-feature_branch.123',
    'limit': 180,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
construct_mapping_without_duplicates Ran
ran; our contract draft was wrong, not the code
YuanheZ/LeanMarathon/agents/Blueprinter/.codex/hooks/ralph_wiggum_stop.py
code served (permissive licence) · get_code("9299243a41efe83d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import yaml
from typing import Any

class UniqueKeyLoader(yaml.SafeLoader):
    pass

# Create a simple YAML mapping node for testing
# We need a MappingNode with key-value pairs
key_node_1 = yaml.ScalarNode(tag='tag:yaml.org,2002:str', value='key1')
value_node_1 = yaml.ScalarNode(tag='tag:yaml.org,2002:str', value='value1')

key_node_2 = yaml.ScalarNode(tag='tag:yaml.org,2002:int', value='42')
value_node_2 = yaml.ScalarNode(tag='tag:yaml.org,2002:str', value='value2')

mapping_node = yaml.MappingNode(
    tag='tag:yaml.org,2002:map',
    value=[
        (key_node_1, value_node_1),
        (key_node_2, value_node_2)
    ]
)

# Create a loader instance
loader = UniqueKeyLoader("")

ARGS = {
    'loader': loader,
    'node': mapping_node,
    'deep': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
emit_block Ran
ran, honoured the contract we drafted
YuanheZ/LeanMarathon/agents/Blueprinter/.codex/hooks/ralph_wiggum_stop.py
code served (permissive licence) · get_code("50b4e938c741848e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json

def emit_block(reason: str) -> int:
    print(json.dumps({'decision': 'block', 'reason': reason}, ensure_ascii=False))
    return 0

ARGS = {
    'reason': 'User submitted malicious content'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
emit_terminate Ran
ran, honoured the contract we drafted
YuanheZ/LeanMarathon/agents/Blueprinter/.codex/hooks/ralph_wiggum_stop.py
code served (permissive licence) · get_code("713abf373429aed5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json

def emit_terminate(reason: str) -> int:
    print(json.dumps({'continue': False, 'stopReason': reason, 'systemMessage': reason}, ensure_ascii=False))
    return 0

ARGS = {
    'reason': 'Training completed successfully'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
line_of_offset Ran
ran, honoured the contract we drafted
YuanheZ/LeanMarathon/.scripts/verify_blueprint.py
code served (permissive licence) · get_code("c929d35ea6ce5114")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

ARGS = {
    "text": "hello\nworld\nfoo\nbar",
    "offset": 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_patch Ran
ran; our contract draft was wrong, not the code
YuanheZ/LeanMarathon/mcp-servers/apply-patch/apply_patch_mcp.py
code served (permissive licence) · get_code("d74e1da769253e9c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ParsedPatch. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

# Setup code for parse_patch function

ARGS = {
    "patch": """*** Begin Patch
@@ -1,3 +1,4 @@
 line 1
+added line
 line 2
 line 3
-removed line
*** End Patch"""
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ParsedPatch — a ParsedPatch output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ParsedPatch output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
replace_toml_string_if_present Ran
ran; our contract draft was wrong, not the code
YuanheZ/LeanMarathon/.scripts/stage1_blueprint_loop.py
code served (permissive licence) · get_code("ff851fd3b9d8b0a4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import re

def replace_toml_string_if_present(text: str, key: str, value: str) -> str:
    quoted = json.dumps(value)
    pattern = re.compile(f'(^\\s*{re.escape(key)}\\s*=\\s*)\\".*?\\"', re.MULTILINE)
    return pattern.sub(f'\\g<1>{quoted}', text)

# Setup code
text = '''[section]
name = "old_value"
other_key = "something"
database_url = "postgresql://localhost"
'''

key = "name"
value = "new_value"

ARGS = {
    "text": text,
    "key": key,
    "value": value,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
run_cmd Ran
ran; our contract draft was wrong, not the code
YuanheZ/LeanMarathon/.scripts/per_node_worker_loop.py
code served (permissive licence) · get_code("28c4e0f933f99ae5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned CompletedProcess. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import shlex
import subprocess
from pathlib import Path
import tempfile

# Since REPO_ROOT is determined by __file__.resolve().parents[1],
# we need to create a temporary structure or use an existing path.
# For this setup, we'll use a valid temporary directory.
TEMP_DIR = Path(tempfile.gettempdir())

# Define arguments for run_cmd
args_list = ["echo", "hello world"]

cwd_path = TEMP_DIR

env_dict = {"TEST_VAR": "test_value"}

check_flag = True

text_flag = True

input_text_str = None

ARGS = {
    "args": args_list,
    "cwd": cwd_path,
    "env": env_dict,
    "check": check_flag,
    "text": text_flag,
    "input_text": input_text_str,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CompletedProcess — a CompletedProcess output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a CompletedProcess output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
seek_sequence Ran
ran, honoured the contract we drafted
YuanheZ/LeanMarathon/mcp-servers/apply-patch/apply_patch_mcp.py
code served (permissive licence) · get_code("4ebb1779d0ddbbc3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

def _normalise_for_match(value: str) -> str:
    translation = {'‐': '-', '‑': '-', '‒': '-', '–': '-', '—': '-', '―': '-', '−': '-', ''': "'", ''': "'", '‚': "'", '‛': "'", '"': '"', '"': '"', '„': '"', '‟': '"', '\xa0': ' ', '\u2002': ' ', '\u2003': ' ', '\u2004': ' ', '\u2005': ' ', '\u2006': ' ', '\u2007': ' ', '\u2008': ' ', '\u2009': ' ', '\u200a': ' ', '\u202f': ' ', '\u205f': ' ', '\u3000': ' '}
    return ''.join((translation.get(char, char) for char in value.strip()))

def seek_sequence(lines: list[str], pattern: list[str], start: int, eof: bool) -> int | None:
    if not pattern:
        return start
    if len(pattern) > len(lines):
        return None
    search_start = len(lines) - len(pattern) if eof and len(lines) >= len(pattern) else start
    search_end = len(lines) - len(pattern)
    if search_start > search_end:
        return None
    for index in range(search_start, search_end + 1):
        if lines[index:index + len(pattern)] == pattern:
            return index
    for index in range(search_start, search_end + 1):
        if all((lines[index + offset].rstrip() == value.rstrip() for offset, value in enumerate(pattern))):
            return index
    for index in range(search_start, search_end + 1):
        if all((lines[index + offset].strip() == value.strip() for offset, value in enumerate(pattern))):
            return index
    for index in range(search_start, search_end + 1):
        if all((_normalise_for_match(lines[index + offset]) == _normalise_for_match(value) for offset, value in enumerate(pattern))):
            return index
    return None

# Test case 1: Basic matching
lines_1 = ["hello", "world", "foo", "bar"]
pattern_1 = ["world", "foo"]
start_1 = 0
eof_1 = False

# Test case 2: With special characters that need normalization
lines_2 = ["line–one", "line—two", "line-three", "end"]
pattern_2 = ["line-one", "line-two"]
start_2 = 0
eof_2 = False

# Test case 3: EOF search
lines_3 = ["start", "middle", "end1", "end2"]
pattern_3 = ["end1", "end2"]
start_3 = 0
eof_3 = True

# Test case 4: Empty pattern
lines_4 = ["a", "b", "c"]
pattern_4 = []
start_4 = 1
eof_4 = False

# Test case 5: Whitespace normalization
lines_5 = ["  foo  ", "  bar  ", "baz"]
pattern_5 = ["foo", "bar"]
start_5 = 0
eof_5 = False

ARGS = {
    "lines": lines_1,
    "pattern": pattern_1,
    "start": start_1,
    "eof": eof_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
skip_comments_and_ws Ran
ran, honoured the contract we drafted
YuanheZ/LeanMarathon/.scripts/verify_blueprint.py
code served (permissive licence) · get_code("7cfe8c603ed52012")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

def _skip_block_comment(text: str, start: int) -> int:
    """Skip a Lean 4 block comment at offset `start` (which must be `/-`).
    Lean 4 block comments (`/- ... -/` and `/-- ... -/`) NEST — we must
    track depth and consume up to the matching `-/`. Returns the position
    just after the closing `-/`, or `len(text)` if unclosed."""
    depth = 1
    i = start + 2
    n = len(text)
    while i < n and depth > 0:
        if text.startswith('/-', i):
            depth += 1
            i += 2
        elif text.startswith('-/', i):
            depth -= 1
            i += 2
        else:
            i += 1
    return i

def skip_comments_and_ws(text: str, i: int) -> int:
    while i < len(text):
        if text[i] in ' \t\n\r':
            i += 1
            continue
        if text.startswith('--', i):
            j = text.find('\n', i)
            i = j + 1 if j != -1 else len(text)
            continue
        if text.startswith('/-', i) and (not text.startswith('/--', i)):
            i = _skip_block_comment(text, i)
            continue
        break
    return i

# Create test cases for skip_comments_and_ws
# The function takes a string and an integer starting position
# It skips whitespace, line comments (--), and block comments (/- ... -/)

text1 = "  \n  hello"  # whitespace then non-comment
text2 = "-- comment\nhello"  # line comment then content
text3 = "  /- block comment -/  x"  # block comment with nesting
text4 = "/- nested /- comment -/ more -/ done"  # nested block comments
text5 = "no comments here"  # no comments or whitespace

ARGS = {
    "text": text1,
    "i": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
yaml_quote Ran
ran; our contract draft was wrong, not the code
YuanheZ/LeanMarathon/.scripts/per_node_worker_loop.py
code served (permissive licence) · get_code("7c6310420d6728a1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json

def yaml_quote(value: str) -> str:
    return json.dumps(value)

# The function takes a single string parameter and returns its JSON representation
# We need to provide a valid string value

ARGS = {
    "value": "hello world"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_snapshot Not yet run
unverified (harvested, no recorded run)
YuanheZ/LeanMarathon/mcp-servers/dag-tracker/dag_tracker_mcp.py
code served (permissive licence) · get_code("f06e807ab002d4a9")
How it ran

no invocation recorded.

find_balanced Not yet run
unverified (harvested, no recorded run)
YuanheZ/LeanMarathon/.scripts/verify_blueprint.py
code served (permissive licence) · get_code("e0588123af01b084")
How it ran

no invocation recorded.

load_verifier Not yet run
unverified (harvested, no recorded run)
YuanheZ/LeanMarathon/mcp-servers/dag-tracker/dag_tracker_mcp.py
code served (permissive licence) · get_code("987b08a77407184b")
How it ran

no invocation recorded.

snapshot Not yet run
unverified (harvested, no recorded run)
YuanheZ/LeanMarathon/mcp-servers/dag-tracker/dag_tracker_mcp.py
code served (permissive licence) · get_code("218f485fdc9529cf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 15 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Long-horizon autoformalization of research mathematics fails not only at hard lemmas, but at scale: statements drift, dependencies tangle, context decays, and local repairs corrupt distant work. We present LeanMarathon, a multi-agent harness for reliable research-level Lean autoformalization. Its core abstraction is an evolving blueprint: a Lean file that serves simultaneously as formal proof skeleton, natural-language proof graph, and shared system of record. Four contract-scoped agents construct, audit, prove, and repair this blueprint. These agents are coordinated by a two-stage orchestrator that first stabilizes target fidelity through adversarial review and then discharges the proof directed acyclic graph (DAG) from its dynamic leaves upward in parallel CI-gated rounds. LeanMarathon turns one brittle multi-hour run into many local, recoverable, parallel transactions. We evaluate LeanMarathon on two recent research papers spanning four Erdős problems (#1051, #1196, #164, #1217). Across three autonomous runs, it formalizes all seven target theorems with no sorry , proving 258 lemmas and theorems. These results show that reliable AI co-mathematics requires not only stronger provers, but durable harnesses that preserve target fidelity across long mathematical developments. The code can be found at https://github.com/YuanheZ/LeanMarathon.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.05400")
get_code_for_paper("2606.05400")
have("2606.05400")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.05400.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.05400.svg)](https://syntology.ai/paper/2606.05400)

Connect an agent — have() is free.