SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.01456 · NeurIPS · 2023

Compositional Policy Learning in Stochastic Control Systems with Formal Guarantees

Abhinav Verma, Mathias Lechner, Ðor De Žikelić, Krishnendu Chatterjee, Thomas Henzinger

arXiv · PDF · Open in the Atlas

Code that ran

12 of 18 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (5 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 5 failures of our instrument; 6 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/2312.01456.json · badge: /api/ran/2312.01456.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
mlech26l/neural_martingales canonical (classifier label)
classifier basis: classifier_2025
12 ran · 6 no recorded run
FunctionStatusWhere it lives
Dense Ran
ran on a synthesized input · constructed an object; no result was computed
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("f1e4fbbcfa50bc57")
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 an instance of its own class, Dense: the run constructed the object and did not call it, so no result was computed. 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
import flax.linen as nn

class Dense(nn.Module):
    features: int

    @nn.compact
    def __call__(self, inputs):
        lower_bound_head, upper_bound_head = inputs
        kernel = self.param('kernel', jax.nn.initializers.glorot_uniform(), (lower_bound_head.shape[-1], self.features))
        bias = self.param('bias', nn.initializers.zeros, (self.features,))
        center_prev = 0.5 * (upper_bound_head + lower_bound_head)
        edge_len_prev = 0.5 * jnp.maximum(upper_bound_head - lower_bound_head, 0)
        center = jnp.matmul(center_prev, kernel) + bias
        edge_len = jnp.matmul(edge_len_prev, jnp.abs(kernel))
        lower_bound_head = center - edge_len
        upper_bound_head = center + edge_len
        return [lower_bound_head, upper_bound_head]

# Create tiny input tensors
batch_size = 2
input_dim = 4
output_dim = 3

lower_bound = jnp.ones((batch_size, input_dim))
upper_bound = jnp.ones((batch_size, input_dim)) * 2.0

ARGS = {
    'features': output_dim
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Dense — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Dense 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
ExperienceBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("e6f27ce0cd0ccd68")
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 an instance of its own class, ExperienceBuffer: the run constructed the object and did not call it, so no result was computed. 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 tensorflow as tf

# ExperienceBuffer doesn't take any __init__ parameters
# It's a simple class with no constructor arguments
ARGS = {}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ExperienceBuffer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ExperienceBuffer 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
IBPMLP Ran
ran on a synthesized input · constructed an object; no result was computed
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("b1fe18dc127c4fd5")
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 an instance of its own class, IBPMLP: the run constructed the object and did not call it, so no result was computed. 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
from typing import Sequence
import flax.linen as nn

# Create a small input tensor with batch size 2 and feature dimension 4
# The input is a list [lower_bound, upper_bound] representing interval bounds
batch_size = 2
input_dim = 4

lower_bound_input = jnp.ones((batch_size, input_dim)) * 0.1
upper_bound_input = jnp.ones((batch_size, input_dim)) * 0.9

input_data = [lower_bound_input, upper_bound_input]

# Define the arguments for IBPMLP
ARGS = {
    'features': (8, 6, 3),  # Three layers: input -> 8 -> 6 -> 3
    'activation': 'relu',
    'square_output': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type IBPMLP — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a IBPMLP 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
MLP Ran
ran on a synthesized input · constructed an object; no result was computed
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("d6c0ab2b08001e11")
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 an instance of its own class, MLP: the run constructed the object and did not call it, so no result was computed. 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
from typing import Sequence
import flax.linen as nn

ARGS = {
    'features': [8, 16, 4],
    'activation': 'relu',
    'square_output': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MLP — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MLP 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
PPO Ran
ran on a synthesized input · constructed an object; no result was computed
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("8da6d9f473137584")
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 an instance of its own class, PPO: the run constructed the object and did not call it, so no result was computed. 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
import numpy as np
from flax import linen as nn
from flax.training import train_state
import optax


class SimplePolicy(nn.Module):
    action_dim: int
    
    @nn.compact
    def __call__(self, x):
        x = nn.Dense(8)(x)
        x = nn.relu(x)
        x = nn.Dense(self.action_dim)(x)
        return x


class SimpleValue(nn.Module):
    
    @nn.compact
    def __call__(self, x):
        x = nn.Dense(8)(x)
        x = nn.relu(x)
        x = nn.Dense(1)(x)
        return x


class DummyEnv:
    def __init__(self, obs_dim=4, action_dim=3):
        self.obs_dim = obs_dim
        self.action_dim = action_dim
        self.observation_space = type('obj', (object,), {'shape': (obs_dim,)})()
        self.action_space = type('obj', (object,), {'shape': (action_dim,)})()
        self.step_count = 0
        self.max_steps = 5
    
    def reset(self):
        self.step_count = 0
        return np.random.randn(self.obs_dim).astype(np.float32)
    
    def step(self, action):
        self.step_count += 1
        next_state = np.random.randn(self.obs_dim).astype(np.float32)
        reward = float(np.random.randn())
        done = self.step_count >= self.max_steps
        info = {}
        return next_state, reward, done, info


obs_dim = 4
action_dim = 3

policy_model = SimplePolicy(action_dim=action_dim)
value_model = SimpleValue()

dummy_state = np.random.randn(1, obs_dim).astype(np.float32)

policy_params = policy_model.init(jax.random.PRNGKey(0), dummy_state)
value_params = value_model.init(jax.random.PRNGKey(1), dummy_state)

policy_tx = optax.adam(learning_rate=1e-3)
value_tx = optax.adam(learning_rate=1e-3)

p_state = train_state.TrainState.create(
    apply_fn=policy_model.apply,
    params=policy_params,
    tx=policy_tx
)

v_state = train_state.TrainState.create(
    apply_fn=value_model.apply,
    params=value_params,
    tx=value_tx
)

env = DummyEnv(obs_dim=obs_dim, action_dim=action_dim)
max_lip = 1.0

ARGS = {
    'p_state': p_state,
    'v_state': v_state,
    'env': env,
    'max_lip': max_lip
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, numpy, optax, tensorflow, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PPO — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PPO 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
create_train_state Ran
ran; our contract draft was wrong, not the code
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("c7c3d01d90cd968f")
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 TrainState. 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
from flax import linen as nn
import optax

# Define a simple Flax model
class SimpleModel(nn.Module):
    features: int = 8
    
    @nn.compact
    def __call__(self, x):
        x = nn.Dense(self.features)(x)
        x = nn.relu(x)
        x = nn.Dense(4)(x)
        return x

# Create the model instance
model = SimpleModel(features=8)

# Create RNG for Flax
rng = jax.random.PRNGKey(0)

# Set input dimension
in_dim = 4

# Set learning rate
learning_rate = 1e-3

# Construct ARGS dictionary
ARGS = {
    "model": model,
    "rng": rng,
    "in_dim": in_dim,
    "learning_rate": learning_rate
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, optax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TrainState — a TrainState output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TrainState 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
jax_load Ran
ran; our contract draft was wrong, not the code
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("36774259cd87b905")
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 flax
import tempfile
import os

# Create a minimal Flax parameter structure
# The function expects params to be a pytree (nested dict/list of arrays)
# We'll create a simple nested dict structure with jax arrays

try:
    import jax
    import jax.numpy as jnp
except ImportError:
    # Fallback if jax not available - use numpy
    import numpy as np
    jnp = np

# Create sample parameters as a nested dict (typical Flax params structure)
sample_params = {
    'layer1': {
        'kernel': jnp.ones((4, 3)),
        'bias': jnp.zeros(3)
    },
    'layer2': {
        'kernel': jnp.ones((3, 2)),
        'bias': jnp.zeros(2)
    }
}

# Create a temporary file with serialized params
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, 'test_params.bin')

# Serialize the params to a file
bytes_data = flax.serialization.to_bytes(sample_params)
with open(temp_file, 'wb') as f:
    f.write(bytes_data)

# Create empty params dict with same structure (to be filled by from_bytes)
empty_params = {
    'layer1': {
        'kernel': jnp.zeros((4, 3)),
        'bias': jnp.zeros(3)
    },
    'layer2': {
        'kernel': jnp.zeros((3, 2)),
        'bias': jnp.zeros(2)
    }
}

ARGS = {
    'params': empty_params,
    'filename': temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, numpy — 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
lipschitz_l1_jax Ran
ran, honoured the contract we drafted
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("d0572d00a75060af")
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 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 jax.numpy as jnp

# Construct a minimal params dict that the function expects
# The function accesses params['params'].items() and expects each value to have a 'kernel' key
# Each kernel should be a JAX array where we can compute sum(abs(v), axis=0) and then max

# Create sample kernels with distinct shapes for different layers
kernel_1 = 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)

kernel_2 = jnp.array([
    [0.5, 1.5, 2.5, 3.5],
    [4.5, 5.5, 6.5, 7.5]
], dtype=jnp.float32)

# Build the params structure expected by the function
params = {
    'params': {
        'layer_0': {
            'kernel': kernel_1
        },
        'layer_1': {
            'kernel': kernel_2
        }
    }
}

ARGS = {
    'params': params
}
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 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
martingale_loss Ran
ran, honoured the contract we drafted
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("e0d8b0ab3120de38")
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 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 jax.numpy as jnp
import numpy as np

# Create small loss tensors for l and l_next
l = jnp.array([0.5, 0.3, 0.8, 0.2], dtype=jnp.float32)
l_next = jnp.array([0.6, 0.4, 0.7, 0.3], dtype=jnp.float32)

# Create a small epsilon value
eps = 0.1

ARGS = {
    "l": l,
    "l_next": l_next,
    "eps": eps,
}
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 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
pretty_time Ran
ran; our contract draft was wrong, not the code
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("5246cad8d478b520")
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 torch

torch.manual_seed(0)

# The function 'pretty_time' takes a single parameter 'elapsed' which represents time in seconds
# It performs arithmetic operations and comparisons on this numeric value
# We need to test it with various numeric values

ARGS = {
    'elapsed': 0.5  # A float value representing elapsed time in seconds
}
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 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
train_step_value Ran
ran; our contract draft was wrong, not the code
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("98da6feb7127d25d")
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 jax
import jax.numpy as jnp
import flax.core
from flax import linen as nn
from flax.training import train_state
import optax

class SimpleValueNetwork(nn.Module):
    """Minimal value network for JAX/Flax."""
    
    @nn.compact
    def __call__(self, states):
        x = nn.Dense(8)(states)
        x = nn.relu(x)
        x = nn.Dense(1)(x)
        return x

def create_value_state():
    """Create a train state for the value network."""
    value_net = SimpleValueNetwork()
    
    # Initialize with dummy states (batch_size=2, state_dim=4)
    dummy_states = jnp.ones((2, 4))
    params = value_net.init(jax.random.PRNGKey(0), dummy_states)
    
    # Create optimizer and train state
    tx = optax.adam(learning_rate=0.001)
    value_s = train_state.TrainState.create(
        apply_fn=value_net.apply,
        params=params,
        tx=tx
    )
    
    return value_s

# Create the arguments
value_s = create_value_state()
states = jnp.ones((2, 4))  # batch_size=2, state_dim=4
returns = jnp.array([[1.5], [2.3]])  # batch_size=2, returns_dim=1

ARGS = {
    'value_s': value_s,
    'states': states,
    'returns': returns
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, optax — 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
triangular Ran
ran; our contract draft was wrong, not the code
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("0ffe4d76721da7dc")
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 2, dtype family float, shape (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
import jax.numpy as jnp

# Create a random number generator key for JAX
rng_key = jax.random.PRNGKey(0)

# Define a small shape for the output
shape = (2, 4)

# Construct the ARGS dictionary
ARGS = {
    "rng_key": rng_key,
    "shape": shape,
}
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 2, dtype family float, shape (2, 4) — shape (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
RSMLearner Not yet run
unverified (harvested, no recorded run)
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("6599e51ec0488b6f")
How it ran

no invocation recorded.

clip_grad_norm Not yet run
unverified (harvested, no recorded run)
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("9e14d50c7aebab23")
How it ran

no invocation recorded.

gauss_log_prob Not yet run
unverified (harvested, no recorded run)
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("0744fbc00a5e00d8")
How it ran

no invocation recorded.

jax_save Not yet run
unverified (harvested, no recorded run)
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("5e6c9f2799afda75")
How it ran

no invocation recorded.

np_gauss_log_prob Not yet run
unverified (harvested, no recorded run)
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("37e02abbd643e919")
How it ran

no invocation recorded.

train_step_policy Not yet run
unverified (harvested, no recorded run)
mlech26l/neural_martingales/rsm_learner.py
code served (permissive licence) · get_code("80915e76d57c6c97")
How it ran

no invocation recorded.

Also present in other papers' code

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

Reinforcement learning has shown promising results in learning neural network policies for complicated control tasks. However, the lack of formal guarantees about the behavior of such policies remains an impediment to their deployment. We propose a novel method for learning a composition of neural network policies in stochastic environments, along with a formal certificate which guarantees that a specification over the policy's behavior is satisfied with the desired probability. Unlike prior work on verifiable RL, our approach leverages the compositional nature of logical specifications provided in SPECTRL, to learn over graphs of probabilistic reach-avoid specifications. The formal guarantees are provided by learning neural network policies together with reach-avoid supermartingales (RASM) for the graph's sub-tasks and then composing them into a global policy. We also derive a tighter lower bound compared to previous work on the probability of reach-avoidance implied by a RASM, which is required to find a compositional policy with an acceptable probabilistic threshold for complex tasks with multiple edge policies. We implement a prototype of our approach and evaluate it on a Stochastic Nine Rooms environment. * Equal contribution. Preprint. Under review.

For agents

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

get_harvested_code_for_paper("2312.01456")
get_code_for_paper("2312.01456")
have("2312.01456")

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

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

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

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

Connect an agent — have() is free.