SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.10631 · 2023

Llemma: An Open Language Model For Mathematics

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2310.10631.json · badge: /api/ran/2310.10631.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
EleutherAI/math-lm canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
wellecks/llemma_formal2formal community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
FunctionStatusWhere it lives
create_outputs Ran
ran; our contract draft was wrong, not the code
EleutherAI/math-lm/proof_pile_2/algebraic_stack/process_isabelle_proofsteps.py
code served (permissive licence) · get_code("404e4e000ce8e5a4")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

torch.manual_seed(0)

# Construct a valid 'split' argument
# The function expects a list where:
# - split[0] is a tuple with (something, statement_string)
# - split[i] for i >= 1 are tuples with (state_string, step_string)

split = [
    (None, "Theorem: If P then Q."),
    ("Initial proof state", "Apply modus ponens."),
    ("After applying modus ponens", "Assume P is true."),
    ("P is assumed true", "Therefore Q follows.")
]

ARGS = {
    "split": split
}
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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
extract_theory_file Ran
ran; our contract draft was wrong, not the code
EleutherAI/math-lm/proof_pile_2/algebraic_stack/process_isabelle_proofsteps.py
code served (permissive licence) · get_code("a748289feeef8b50")
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 extract_theory_file(json_filename):
    pattern = '2022-12-06_thys_(.*?)\\.thy_output\\.json'
    match = re.search(pattern, json_filename)
    if match:
        return match.group(1)
    return None

ARGS = {
    'json_filename': '2022-12-06_thys_MyTheory.thy_output.json'
}
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
numerical_density Ran
ran, honoured the contract we drafted
EleutherAI/math-lm/proof_pile_2/algebraic_stack/process_stack.py
code served (permissive licence) · get_code("dc657f552ea0c7e4")
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 float, ndim 0, dtype family float, 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

def numerical_density(ex):
    txt = ''.join(ex['content'].split())
    ntoks = sum((txt.count(c) for c in '0123456789'))
    return ntoks / len(txt)

ARGS = {
    'ex': {
        'content': 'hello 123 world 456 test 789'
    }
}
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 float, ndim 0, dtype family float, 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
r_filter Ran
ran, violated the contract we drafted
EleutherAI/math-lm/proof_pile_2/algebraic_stack/process_stack.py
code served (permissive licence) · get_code("90d0c5e777c36f13")
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 bool, ndim 0, dtype family float, 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

# Construct a minimal example dict that satisfies r_filter's requirements
example = {
    'content': 'def hello_world():\n    print("Hello, World!")\n    x = 42\n    return x'
}

# Verify the example passes all filters
# - Not too large in bytes
# - Not too dense in numbers (42 is only 1 digit out of ~50+ characters)
# - No resource fork marker
# - No Requirement { Identifier pattern
# - Doesn't start with <?xml
# - Doesn't start with {

ARGS = {
    'example': example
}
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 bool, ndim 0, dtype family float, 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
resume_from Ran
ran; our contract draft was wrong, not the code
wellecks/llemma_formal2formal/proofsearch.py
code served (permissive licence) · get_code("f227a3efda0fb0e6")
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 tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 tempfile
import os

# Create a temporary JSON file with results data
temp_dir = tempfile.mkdtemp()
results_filename = os.path.join(temp_dir, "results.json")

# Create sample results data
sample_results = {
    "results": [
        {"epoch": 0, "loss": 0.5},
        {"epoch": 1, "loss": 0.3},
        {"epoch": 2, "loss": 0.2}
    ]
}

with open(results_filename, 'w') as f:
    json.dump(sample_results, f)

# Create sample data - a list with more elements than results
# The function will slice from len(results) onwards
sample_data = [
    {"id": 0, "value": "a"},
    {"id": 1, "value": "b"},
    {"id": 2, "value": "c"},
    {"id": 3, "value": "d"},
    {"id": 4, "value": "e"},
    {"id": 5, "value": "f"}
]

ARGS = {
    "results_filename": results_filename,
    "data": sample_data
}
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 tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
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
split_list Ran
ran; our contract draft was wrong, not the code
EleutherAI/math-lm/proof_pile_2/algebraic_stack/process_isabelle_proofsteps.py
code served (permissive licence) · get_code("a3b15e19e090eb8d")
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 list. 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 torch
import numpy as np

def split_list(lst):
    splits = []
    temp = []
    for item in lst:
        if item[0] == '':
            if temp:
                splits.append(temp)
            temp = [item]
        else:
            temp.append(item)
    if temp:
        splits.append(temp)
    return splits

# Construct a valid argument for the function
# The function expects a list of items where each item is indexable (has [0])
# It splits the list based on whether item[0] == ''

lst = [
    ('a', 1),
    ('b', 2),
    ('', 3),
    ('c', 4),
    ('d', 5),
    ('', 6),
    ('e', 7),
]

ARGS = {
    'lst': lst
}
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 list — a list output has no array shape of its own; none is 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
standard_filter Ran
ran, violated the contract we drafted
EleutherAI/math-lm/proof_pile_2/algebraic_stack/process_stack.py
code served (permissive licence) · get_code("6557b371083607b5")
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 bool, ndim 0, dtype family float, 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

# Create a valid example dictionary for the function
example = {
    'content': 'The quick brown fox jumps over the lazy dog. This is a test string with minimal numbers like 123.'
}

# Verify the example passes basic requirements
txt = ''.join(example['content'].split())
ntoks = sum((txt.count(c) for c in '0123456789'))
numerical_density_value = ntoks / len(txt)

ARGS = {
    'example': example,
    'max_numerical_density': 0.5,
    'text_max_size': 1048575
}
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 bool, ndim 0, dtype family float, 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
row_of_name Not yet run
unverified (harvested, no recorded run)
EleutherAI/math-lm/proof_pile_2/algebraic_stack/process_lean_proofsteps.py
code served (permissive licence) · get_code("328e227d602c1b9a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 1 the same month, 1 later) and 7 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.

FunctionAlso present inEarliest-datedOthers named
resume_from 2 other papers
1 the same month, 1 later
2310.18457 (2023-10)
LLMSTEP: LLM proofstep suggestions in Lean
2410.15700 (2024-10)
InternLM2.5-StepProver: Advancing Automated Theorem Proving via Critic-Guided Search

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

We present Llemma, a large language model for mathematics. We continue pretraining Code Llama on the Proof-Pile-2, a mixture of scientific papers, web data containing mathematics, and mathematical code, yielding Llemma. On the MATH benchmark Llemma outperforms all known open base models, as well as the unreleased Minerva model suite on an equi-parameter basis. Moreover, Llemma is capable of tool use and formal theorem proving without any further finetuning. We openly release all artifacts, including 7 billion and 34 billion parameter models, the Proof-Pile-2, and code to replicate our experiments.

For agents

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

get_harvested_code_for_paper("2310.10631")
get_code_for_paper("2310.10631")
have("2310.10631")

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

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

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

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

Connect an agent — have() is free.