SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2111.05986 · 2021

SyMetric: Measuring the Quality of Learnt Hamiltonian Dynamics Inferred from Vision

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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, 0 violated it and 10 have no contract verdict; 0 failures of our instrument; 2 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/2111.05986.json · badge: /api/ran/2111.05986.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
deepmind/dm_hamiltonian_dynamics_suite canonical (classifier label)
classifier basis not recorded on the link
10 ran · 2 no recorded run
FunctionStatusWhere it lives
create_pipeline Ran
ran on a synthesized input
deepmind/dm_hamiltonian_dynamics_suite/dm_hamiltonian_dynamics_suite/datasets.py
code served (permissive licence) · get_code("a28162f363d3a72a")
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 function. 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 tempfile
import os
import jax.numpy as jnp
import numpy as np
import tensorflow as tf

# Create a temporary directory for output
temp_dir = tempfile.mkdtemp()

# Define a generate function that produces example dictionaries
def generate_fn(seed: int) -> dict:
    """Generate an example dictionary with arrays of different types."""
    np.random.seed(seed)
    return {
        'image': np.random.randint(0, 255, (2, 4, 3), dtype=np.uint8),  # 4D after reshape
        'action': np.array([1, 2, 3, 4], dtype=np.int32),
        'reward': np.array([0.1, 0.2, 0.3, 0.4], dtype=np.float32),
        'nested': {
            'state': np.array([5, 6, 7, 8], dtype=np.int32),
            'value': np.array([1.5, 2.5, 3.5, 4.5], dtype=np.float64),
        }
    }

ARGS = {
    'generate': generate_fn,
    'output_path': temp_dir,
    'num_train': 2,
    'num_test': 1,
    'return_generated_examples': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
expand_to_rank_left Ran
ran on a synthesized input
deepmind/dm_hamiltonian_dynamics_suite/dm_hamiltonian_dynamics_suite/hamiltonian_systems/utils.py
code served (permissive licence) · get_code("eb54c49f358151d5")
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 ArrayImpl, ndim 4, dtype family float, shape (1, 1, 2, 4) 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 jax.numpy as jnp

# Create a small JAX array with rank 2 (2D array)
x = jnp.array([[1.0, 2.0, 3.0, 4.0],
               [5.0, 6.0, 7.0, 8.0]])

# Target rank to expand to (4D in this case)
rank = 4

ARGS = {
    "x": x,
    "rank": rank,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 4, dtype family float, shape (1, 1, 2, 4) — shape (1, 1, 2, 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
expand_to_rank_right Ran
ran on a synthesized input
deepmind/dm_hamiltonian_dynamics_suite/dm_hamiltonian_dynamics_suite/hamiltonian_systems/utils.py
code served (permissive licence) · get_code("86dea2648404cdab")
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 ArrayImpl, ndim 4, dtype family float, shape (2, 4, 1, 1) 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 jax.numpy as jnp
import numpy as np

# Create a small JAX array with rank 2 (2D)
x = jnp.array([[1.0, 2.0, 3.0, 4.0],
                [5.0, 6.0, 7.0, 8.0]])

# Target rank to expand to (e.g., rank 4)
rank = 4

ARGS = {
    "x": x,
    "rank": rank
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 4, dtype family float, shape (2, 4, 1, 1) — shape (2, 4, 1, 1) 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_based_on_keys Ran
ran on a synthesized input
deepmind/dm_hamiltonian_dynamics_suite/dm_hamiltonian_dynamics_suite/load_datasets.py
code served (permissive licence) · get_code("83fa0666ee6152f1")
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 torch
import numpy as np
from typing import Mapping, Sequence

torch.manual_seed(0)

# Create a simple example mapping with string keys and various value types
example = {
    "feature_1": torch.tensor([1.0, 2.0, 3.0, 4.0]),
    "feature_2": torch.tensor([5.0, 6.0, 7.0, 8.0]),
    "feature_3": np.array([9, 10, 11, 12]),
    "label": torch.tensor([0, 1])
}

# Test case 1: Multiple keys to preserve
keys_to_preserve_multiple = ["feature_1", "feature_2", "label"]

# Test case 2: Single key to preserve
keys_to_preserve_single = ["feature_1"]

ARGS = {
    "example": example,
    "keys_to_preserve": keys_to_preserve_multiple,
    "single_key_return_array": False
}
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 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
flatten_record Ran
ran on a synthesized input
deepmind/dm_hamiltonian_dynamics_suite/dm_hamiltonian_dynamics_suite/molecular_dynamics/generate_dataset.py
code served (permissive licence) · get_code("da6d626242ab598b")
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 1, dtype family float, shape (16,) 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

# Create a small test array with shape [num_particles, 2*dim]
# num_particles = 2, dim = 4, so last dimension = 8
x = np.random.randn(2, 8).astype(np.float32)

ARGS = {
    'x': x
}
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 ndarray, ndim 1, dtype family float, shape (16,) — shape (16,) 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
load_filenames_and_parse_fn Ran
ran on a synthesized input
deepmind/dm_hamiltonian_dynamics_suite/dm_hamiltonian_dynamics_suite/load_datasets.py
code served (permissive licence) · get_code("4863d1f2532e330b")
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 os
import tempfile
import tensorflow as tf

# Create a temporary directory with the required files
temp_dir = tempfile.mkdtemp()

# Create a simple tfrecord file
tfrecord_path = os.path.join(temp_dir, 'data.tfrecord')
writer = tf.io.TFRecordWriter(tfrecord_path)

# Write a sample record
feature = {
    'image': tf.train.Feature(bytes_list=tf.train.BytesList(value=[b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x01\x00\x00\x00\x01\x08\x02\x00\x00\x00\x90wS\xde\x00\x00\x00\x0cIDATx\x9cc\xf8\x0f\x00\x00\x01\x01\x00\x05\x18I\xb4\x00\x00\x00\x00IEND\xaeB`\x82'])),
    'values': tf.train.Feature(int64_list=tf.train.Int64List(value=[1, 2, 3, 4]))
}
example = tf.train.Example(features=tf.train.Features(feature=feature))
writer.write(example.SerializeToString())
writer.close()

# Create features.txt file
features_file = os.path.join(temp_dir, 'features.txt')
with open(features_file, 'w') as f:
    f.write('image, (1, 1, 3), uint8\n')
    f.write('values, (4,), float32\n')

ARGS = {
    'path': temp_dir,
    'tfrecord_prefix': 'data',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — 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
poisson_bracket_with_q_and_p Ran
ran on a synthesized input
deepmind/dm_hamiltonian_dynamics_suite/dm_hamiltonian_dynamics_suite/hamiltonian_systems/phase_space.py
code served (permissive licence) · get_code("6907f258e0633c9b")
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 function. 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 jax
import jax.numpy as jnp

# Define a simple Hamiltonian function for testing
# It takes time t and a PhaseSpace object y, and returns a scalar or array
def hamiltonian_function(t: jnp.ndarray, y) -> jnp.ndarray:
    """A simple quadratic Hamiltonian: H = 0.5 * (p^2 + q^2)"""
    # y is a PhaseSpace object, so we access its position (q) and momentum (p)
    q = y.position
    p = y.momentum
    return 0.5 * jnp.sum(p**2) + 0.5 * jnp.sum(q**2)

# Create the ARGS dictionary
ARGS = {
    'f': hamiltonian_function
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
read_trajectory Ran
ran on a synthesized input
deepmind/dm_hamiltonian_dynamics_suite/dm_hamiltonian_dynamics_suite/molecular_dynamics/generate_dataset.py
code served (permissive licence) · get_code("100b63a3610fa151")
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 numpy as np
import tempfile
import os

# Create a temporary trajectory file with the expected format
temp_dir = tempfile.mkdtemp()
filename = os.path.join(temp_dir, "trajectory.dat")

# Write a simple trajectory file with 2 timesteps, 3 atoms
with open(filename, 'w') as f:
    # First timestep
    f.write("ITEM: TIMESTEP\n")
    f.write("0\n")
    f.write("ITEM: NUMBER OF ATOMS\n")
    f.write("3\n")
    f.write("ITEM: BOX BOUNDS pp pp pp\n")
    f.write("0.0 10.0\n")
    f.write("0.0 10.0\n")
    f.write("0.0 10.0\n")
    f.write("ITEM: ATOMS id type x y vx vy fx fy\n")
    f.write("1 1 1.0 2.0 3.0 4.0 5.0 6.0\n")
    f.write("2 1 1.5 2.5 3.5 4.5 5.5 6.5\n")
    f.write("3 1 1.2 2.2 3.2 4.2 5.2 6.2\n")
    
    # Second timestep
    f.write("ITEM: TIMESTEP\n")
    f.write("1\n")
    f.write("ITEM: NUMBER OF ATOMS\n")
    f.write("3\n")
    f.write("ITEM: BOX BOUNDS pp pp pp\n")
    f.write("0.0 10.0\n")
    f.write("0.0 10.0\n")
    f.write("0.0 10.0\n")
    f.write("ITEM: ATOMS id type x y vx vy fx fy\n")
    f.write("1 1 1.1 2.1 3.1 4.1 5.1 6.1\n")
    f.write("2 1 1.6 2.6 3.6 4.6 5.6 6.6\n")
    f.write("3 1 1.3 2.3 3.3 4.3 5.3 6.3\n")

ARGS = {
    "filename": filename
}
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 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
transform_symplectic_tangent_function_using_array Ran
ran on a synthesized input
deepmind/dm_hamiltonian_dynamics_suite/dm_hamiltonian_dynamics_suite/hamiltonian_systems/phase_space.py
code served (permissive licence) · get_code("2f2a719903586b8b")
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 function. 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 jax.numpy as jnp

def symplectic_tangent_func(t: jnp.ndarray, phase_space) -> object:
    """
    A simple symplectic tangent function that takes time and phase space,
    and returns a TangentPhaseSpace object.
    """
    # Import here to access the class
    from jax import numpy as jnp
    
    # Create a simple tangent phase space by scaling the input
    q_dot = phase_space.q * 0.1
    p_dot = phase_space.p * 0.2
    
    # Import TangentPhaseSpace from the context
    class TangentPhaseSpace:
        def __init__(self, position, momentum):
            self._position = position
            self._momentum = momentum
        
        @property
        def q(self):
            return self._position
        
        @property
        def p(self):
            return self._momentum
        
        @property
        def single_state(self):
            return jnp.concatenate([self.q, self.p], axis=-1)
    
    return TangentPhaseSpace(position=q_dot, momentum=p_dot)

# Create test data
position = jnp.array([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]])
momentum = jnp.array([[0.1, 0.2, 0.3, 0.4], [0.5, 0.6, 0.7, 0.8]])

# Define the arguments dictionary
ARGS = {
    "func": symplectic_tangent_func
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
vecmul Ran
ran on a synthesized input
deepmind/dm_hamiltonian_dynamics_suite/dm_hamiltonian_dynamics_suite/hamiltonian_systems/utils.py
code served (permissive licence) · get_code("43d555e817be699f")
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 ArrayImpl, ndim 1, dtype family float, shape (4,) 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 jax.numpy as jnp

# Create a small matrix and vector for testing
# Using distinct dimensions: matrix is 4x3, vector is 3
matrix = jnp.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0],
    [10.0, 11.0, 12.0]
], dtype=jnp.float32)

vector = jnp.array([1.0, 2.0, 3.0], dtype=jnp.float32)

ARGS = {
    "matrix": matrix,
    "vector": vector
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 1, dtype family float, shape (4,) — shape (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
encode_example Not yet run
unverified (harvested, no recorded run)
deepmind/dm_hamiltonian_dynamics_suite/dm_hamiltonian_dynamics_suite/datasets.py
code served (permissive licence) · get_code("77cf9b9db4dc74cf")
How it ran

no invocation recorded.

preprocess_batch Not yet run
unverified (harvested, no recorded run)
deepmind/dm_hamiltonian_dynamics_suite/dm_hamiltonian_dynamics_suite/load_datasets.py
code served (permissive licence) · get_code("7673211f515f6a00")
How it ran

no invocation recorded.

Also present in other papers' code

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

A recently proposed class of models attempts to learn latent dynamics from high-dimensional observations, like images, using priors informed by Hamiltonian mechanics. While these models have important potential applications in areas like robotics or autonomous driving, there is currently no good way to evaluate their performance: existing methods primarily rely on image reconstruction quality, which does not always reflect the quality of the learnt latent dynamics. In this work, we empirically highlight the problems with the existing measures and develop a set of new measures, including a binary indicator of whether the underlying Hamiltonian dynamics have been faithfully captured, which we call Symplecticity Metric or SyMetric. Our measures take advantage of the known properties of Hamiltonian dynamics and are more discriminative of the model's ability to capture the underlying dynamics than reconstruction error. Using SyMetric, we identify a set of architectural choices that significantly improve the performance of a previously proposed model for inferring latent dynamics from pixels, the Hamiltonian Generative Network (HGN). Unlike the original HGN, the new HGN++ is able to discover an interpretable phase space with physically meaningful latents on some datasets. Furthermore, it is stable for significantly longer rollouts on a diverse range of 13 datasets, producing rollouts of essentially infinite length both forward and backwards in time with no degradation in quality on a subset of the datasets.

For agents

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

get_harvested_code_for_paper("2111.05986")
get_code_for_paper("2111.05986")
have("2111.05986")

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

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

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

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

Connect an agent — have() is free.