SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2006.10782 · NeurIPS · 2020

AI Feynman 2.0: Pareto-optimal symbolic regression exploiting graph modularity

Tailin Wu, Silviu-Marian Udrescu, Andrew Tan, Jiahai Feng, Orisvaldo Neto, Max Tegmark

arXiv · PDF · Open in the Atlas

Code that ran

12 of 20 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; 0 honoured the contract we drafted, 1 violated it and 7 have no contract verdict; 4 failures of our instrument; 8 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/2006.10782.json · badge: /api/ran/2006.10782.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
SJ001/AI-Feynman canonical (classifier label)
classifier basis: census
7 ran · 6 no recorded run
zykhoo/ai-feynman community
Papers with Code archive
5 ran · 2 no recorded run
FunctionStatusWhere it lives
NN_eval Ran
ran on a synthesized input
SJ001/AI-Feynman/aifeynman/S_NN_eval.py
code served (permissive licence) · get_code("4a9e454bb7c407bf")
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 int; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import torch.nn as nn
import numpy as np
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory and a dummy data file
tmpdir = tempfile.mkdtemp()
filename = "test_data.txt"
filepath = os.path.join(tmpdir, filename)

# Create dummy data: 30 samples with 3 input variables + 1 output
# This creates a 30x4 array (3 features + 1 target)
np.random.seed(0)
data = np.random.randn(30, 4)
np.savetxt(filepath, data)

# Create a dummy trained model and save it
pathdir = tmpdir + "/"
model_dir = os.path.join(tmpdir, "results", "NN_trained_models", "models")
os.makedirs(model_dir, exist_ok=True)

class SimpleNet(nn.Module):
    def __init__(self, ni):
        super().__init__()
        self.linear1 = nn.Linear(ni, 128)
        self.linear2 = nn.Linear(128, 128)
        self.linear3 = nn.Linear(128, 64)
        self.linear4 = nn.Linear(64, 64)
        self.linear5 = nn.Linear(64, 1)

    def forward(self, x):
        import torch.nn.functional as F
        x = F.tanh(self.linear1(x))
        x = F.tanh(self.linear2(x))
        x = F.tanh(self.linear3(x))
        x = F.tanh(self.linear4(x))
        x = self.linear5(x)
        return x

# Create and save a dummy model
dummy_model = SimpleNet(3)
model_save_path = os.path.join(model_dir, filename + ".h5")
torch.save(dummy_model.state_dict(), model_save_path)

ARGS = {
    "pathdir": pathdir,
    "filename": filename
}
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 tuple, ndim 1, dtype family int — 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
RPN_to_eq Ran
ran on a synthesized input
SJ001/AI-Feynman/aifeynman/RPN_to_eq.py
code served (permissive licence) · get_code("7c2df61572f9e3c0")
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 numpy as np

# The function RPN_to_eq takes a single parameter 'expr' which should be a string
# or iterable of characters representing a Reverse Polish Notation expression.
# The function processes it character by character and builds a mathematical expression.

# Valid test cases:
# - Simple variable: 'a' -> 'x0'
# - Binary operation: 'ab+' -> '(x0+x1)'
# - Unary operation: 'a>' -> '((x0+1))'
# - Complex: 'ab+c*' -> '((x0+x1)*x2)'

expr1 = 'ab+'  # Simple addition of two variables
expr2 = 'aS'   # sin(x0)
expr3 = 'ab+c*'  # (x0+x1)*x2
expr4 = 'a>'    # (x0+1)
expr5 = 'P1+'   # (pi+1)

ARGS = {
    'expr': expr1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
add_bf_on_numbers_on_pareto Ran
ran on a synthesized input
SJ001/AI-Feynman/aifeynman/S_add_bf_on_numbers_on_pareto.py
code served (permissive licence) · get_code("aefecb64907f3e4f")
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 MockPareto. 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 numpy as np
import tempfile
import os

# Create a mock Pareto class that has an add method
class Point:
    def __init__(self, x, y, data):
        self.x = x
        self.y = y
        self.data = data

class MockPareto:
    def __init__(self):
        self.points = []
    
    def add(self, point):
        self.points.append(point)

# Create temporary directory for file operations
tmpdir = tempfile.mkdtemp()
pathdir = tmpdir + "/"

# Create a sample input data file
filename = "input_data.txt"
input_array = np.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]])
np.savetxt(pathdir + filename, input_array)

# Create mock functions that are called but not defined in the provided code
def brute_force_number(pathdir, filename):
    """Mock brute force function that creates results.dat"""
    results = np.array([["x+1"], ["x*2"], ["x**2"]])
    np.savetxt(pathdir + "results.dat", results, fmt="%s")

def RPN_to_eq(rpn_expr):
    """Mock RPN to equation converter"""
    return "x + 1"

def get_symbolic_expr_error(input_data, expr_str):
    """Mock symbolic expression error calculator"""
    return float(np.random.random())

def get_number_DL_snapped(number):
    """Mock description length calculator for snapped numbers"""
    return float(np.log2(abs(number) + 1))

# Inject the mock functions into the module namespace
import sys
current_module = sys.modules[__name__]
current_module.brute_force_number = brute_force_number
current_module.RPN_to_eq = RPN_to_eq
current_module.get_symbolic_expr_error = get_symbolic_expr_error
current_module.get_number_DL_snapped = get_number_DL_snapped

# Create the arguments
PA = MockPareto()
math_expr = "x**2 + 2*x + 1"

ARGS = {
    "pathdir": pathdir,
    "filename": filename,
    "PA": PA,
    "math_expr": math_expr
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MockPareto — a MockPareto output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockPareto 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
add_snap_expr_on_pareto Ran
ran on a synthesized input
SJ001/AI-Feynman/aifeynman/S_add_snap_expr_on_pareto.py
code served (permissive licence) · get_code("799d88fb2639c6a0")
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 ndarray, ndim 2, dtype family float, shape (5, 2) 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 numpy as np
import tempfile
import os

# Create a temporary directory and files for testing
tmpdir = tempfile.mkdtemp()
pathdir = tmpdir + '/'

# Create a simple input data file
input_data = np.random.randn(10, 2)
filename = 'test_data.txt'
np.savetxt(pathdir + filename, input_data)

# Create a simple mathematical expression
math_expr = "x**2 + 2*x + 1"

# Create a Pareto frontier (PA) - a simple 2D array
PA = np.random.randn(5, 2)

# Optional DR_file parameter
DR_file = ''

ARGS = {
    'pathdir': pathdir,
    'filename': filename,
    'math_expr': math_expr,
    'PA': PA,
    'DR_file': DR_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 2) — shape (5, 2) 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
draw_samples Ran
ran; our contract draft was wrong, not the code
zykhoo/ai-feynman/aifeynman/S_gradient_decomposition.py
code served (permissive licence) · get_code("45e77154a33a4ee2")
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 Tensor, ndim 2, dtype family float, shape (3, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch.nn as nn

torch.manual_seed(0)

# Create a small dataset X with shape (batch=2, features=4)
X = torch.randn(2, 4, dtype=torch.float)

# Create a small target tensor y
y = torch.randn(2, dtype=torch.float)

# Create a minimal model that isn't actually used in the function body
class DummyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 1)
    
    def forward(self, x):
        return self.linear(x)

model = DummyModel()

# s is a list of dimension indices to keep fixed
s = [0, 2]

# Number of samples to draw
NUM_SAMPLES = 3

# point is optional, can be None or an integer index
point = None

ARGS = {
    'X': X,
    'y': y,
    'model': model,
    's': s,
    'NUM_SAMPLES': NUM_SAMPLES,
    'point': point
}
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 Tensor, ndim 2, dtype family float, shape (3, 4) — shape (3, 4) 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
evaluate_derivatives Ran
ran on a synthesized input
SJ001/AI-Feynman/aifeynman/S_NN_get_gradients.py
code served (permissive licence) · get_code("6fc741317fe3c443")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch.nn as nn
import numpy as np
import tempfile
import os

torch.manual_seed(0)

# Create a simple neural network model
class SimpleModel(nn.Module):
    def __init__(self):
        super(SimpleModel, self).__init__()
        self.linear1 = nn.Linear(4, 8)
        self.linear2 = nn.Linear(8, 1)
    
    def forward(self, x):
        x = torch.relu(self.linear1(x))
        x = self.linear2(x)
        return x

# Create a temporary directory and file for testing
tmpdir = tempfile.mkdtemp()
pathdir = tmpdir + "/"

# Create test data file with 2 samples, 4 features + 1 label column
test_data = np.random.randn(2, 5)
filename = "test_data.txt"
filepath = os.path.join(pathdir, filename)
np.savetxt(filepath, test_data)

# Instantiate the model
model = SimpleModel()

ARGS = {
    "pathdir": pathdir,
    "filename": filename,
    "model": model
}
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
filter_decompositions_relative_scoring Ran
ran; our contract draft was wrong, not the code
zykhoo/ai-feynman/aifeynman/S_gradient_decomposition.py
code served (permissive licence) · get_code("3f393d2c3c8a8dd6")
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) and returned list. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch.nn as nn
import numpy as np

torch.manual_seed(0)
np.random.seed(0)

# Create a simple neural network model
class SimpleModel(nn.Module):
    def __init__(self, input_dim):
        super(SimpleModel, self).__init__()
        self.linear1 = nn.Linear(input_dim, 8)
        self.linear2 = nn.Linear(8, 1)
    
    def forward(self, x):
        x = torch.relu(self.linear1(x))
        x = self.linear2(x)
        return x

# Create small tensors
# X: N x d (batch_size x num_features)
X = torch.randn(2, 4, dtype=torch.float32)

# y: N x 1 (labels)
y = torch.randn(2, 1, dtype=torch.float32)

# Create model
model = SimpleModel(input_dim=4)

# Define ARGS dictionary with all parameters
ARGS = {
    'X': X,
    'y': y,
    'model': model,
    'max_subset_size': 2,
    'visualize': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
matplotlib, numpy, scipy, sklearn, 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
intify Ran
ran on a synthesized input
SJ001/AI-Feynman/aifeynman/S_add_snap_expr_on_pareto.py
code served (permissive licence) · get_code("a081d0e97957a1f7")
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 Add. 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.

from sympy import Symbol, lambdify, N, simplify, powsimp, Rational, symbols, S, Float

# Analyze the function:
# intify(expr) takes an expression, converts it to a sympy expression via S(),
# finds all Float atoms, identifies which ones are integers (int(i) == i),
# and replaces them with actual int types using xreplace()

# The function needs an expr parameter that can be:
# - A sympy expression, or
# - Something that S() can convert to a sympy expression

# Create test expressions with floats that are integers
expr1 = S("1.0 + 2.0*x + 3.5")  # Mix of integer-valued floats and non-integer floats
expr2 = S("4.0 + 5.0*y")  # All integer-valued floats
expr3 = 2.0*Symbol('z') + 1.0  # Direct sympy expression with floats

ARGS = {
    "expr": expr1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Add — a Add output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Add 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
powerset_atleast_2 Ran
ran; our contract draft was wrong, not the code
zykhoo/ai-feynman/aifeynman/S_gradient_decomposition.py
code served (permissive licence) · get_code("252c1aad46c908fa")
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 chain. 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.

from itertools import chain, combinations, islice

# Analyze the function:
# - iterable: passed to list() and then to combinations()
# - max_subset_size: used as upper bound in range()
# Both are simple Python types

ARGS = {
    "iterable": [1, 2, 3, 4],
    "max_subset_size": 3
}
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 chain — a chain output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a chain 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
rmse_loss Ran
ran on a synthesized input
SJ001/AI-Feynman/aifeynman/S_NN_eval.py
code served (permissive licence) · get_code("f194288004a3dba8")
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 Tensor, 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 torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for pred and targ
# pred: model predictions, shape (2, 4) - batch size 2, 4 values
# targ: target values, shape (2, 4) - batch size 2, 4 values
pred = torch.randn(2, 4)
targ = torch.randn(2, 4)

ARGS = {
    "pred": pred,
    "targ": targ,
}
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 Tensor, 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
score_consistency Ran
ran; our contract draft was wrong, not the code
zykhoo/ai-feynman/aifeynman/S_gradient_decomposition.py
code served (permissive licence) · get_code("96167167f766b306")
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. 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

torch.manual_seed(0)

# Create a small gradient tensor: shape (n_pts, n_features)
# n_pts = 2 (number of points)
# n_features = 4 (gradient dimension)
grads_tensor = torch.randn(2, 4)

ARGS = {
    "grads_tensor": grads_tensor
}
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 tuple — a tuple 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
signal_to_noise Ran
ran, violated the contract we drafted
zykhoo/ai-feynman/aifeynman/S_gradient_decomposition.py
code served (permissive licence) · get_code("ec79e09961e5f71d")
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 numpy as np
from scipy.stats import iqr

# The function takes two lists of scores
# Each list will be converted to numpy arrays and log-transformed
# The function compares medians and uses iqr to compute a tail value

# Create small lists of scores (values between 0 and 1 make sense for the log transform)
high_scores = [0.1, 0.2, 0.15, 0.25]
low_scores = [0.5, 0.6, 0.55, 0.65, 0.7]

ARGS = {
    "high": high_scores,
    "low": low_scores,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
NN_train Not yet run
unverified (harvested, no recorded run)
SJ001/AI-Feynman/aifeynman/S_NN_train.py
code served (permissive licence) · get_code("1f12c200481a3f18")
How it ran

no invocation recorded.

RPN_to_pytorch Not yet run
unverified (harvested, no recorded run)
SJ001/AI-Feynman/aifeynman/RPN_to_pytorch.py
code served (permissive licence) · get_code("f71b2f2208f359cc")
How it ran

no invocation recorded.

add_sym_on_pareto Not yet run
unverified (harvested, no recorded run)
SJ001/AI-Feynman/aifeynman/S_add_sym_on_pareto.py
code served (permissive licence) · get_code("9198af899b3208cb")
How it ran

no invocation recorded.

brute_force_comp Not yet run
unverified (harvested, no recorded run)
SJ001/AI-Feynman/aifeynman/S_brute_force_comp.py
code served (permissive licence) · get_code("5139d3e67c91cdd3")
How it ran

no invocation recorded.

brute_force_gen_sym Not yet run
unverified (harvested, no recorded run)
SJ001/AI-Feynman/aifeynman/S_brute_force_gen_sym.py
code served (permissive licence) · get_code("947b21e6e1a2cb74")
How it ran

no invocation recorded.

brute_force_number Not yet run
unverified (harvested, no recorded run)
SJ001/AI-Feynman/aifeynman/S_brute_force_number.py
code served (permissive licence) · get_code("c8434b02a9ba199f")
How it ran

no invocation recorded.

evaluate_derivatives_andrew Not yet run
unverified (harvested, no recorded run)
zykhoo/ai-feynman/aifeynman/S_gradient_decomposition.py
code served (permissive licence) · get_code("05a477901acb3736")
How it ran

no invocation recorded.

visualize_distribution Not yet run
unverified (harvested, no recorded run)
zykhoo/ai-feynman/aifeynman/S_gradient_decomposition.py
code served (permissive licence) · get_code("21905df6db18ffa8")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 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 20 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

We present an improved method for symbolic regression that seeks to fit data to formulas that are Pareto-optimal, in the sense of having the best accuracy for a given complexity. It improves on the previous state-of-the-art by typically being orders of magnitude more robust toward noise and bad data, and also by discovering many formulas that stumped previous methods. We develop a method for discovering generalized symmetries (arbitrary modularity in the computational graph of a formula) from gradient properties of a neural network fit. We use normalizing flows to generalize our symbolic regression method to probability distributions from which we only have samples, and employ statistical hypothesis testing to accelerate robust brute-force search.

For agents

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

get_harvested_code_for_paper("2006.10782")
get_code_for_paper("2006.10782")
have("2006.10782")

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

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

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

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

Connect an agent — have() is free.