SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1811.00866 · 2018

Efficient Neural Network Robustness Certification with General Activation Functions

arXiv · PDF · Open in the Atlas

Code that ran

33 of 43 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; 2 honoured the contract we drafted, 0 violated it and 29 have no contract verdict; 2 failures of our instrument; 10 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/1811.00866.json · badge: /api/ran/1811.00866.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
huanzhang12/RecurJac-Jacobian-Bounds canonical (classifier label)
classifier basis: census
20 ran · 5 no recorded run
huanzhang12/CertifiedReLURobustness canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
AkhilanB/CNN-Cert reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
ZhaoyangLyu/FROWN extension (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
aria-systems-group/formal-deep-kernel-synthesis extension (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
ReLU Ran
ran on a synthesized input
huanzhang12/CertifiedReLURobustness/get_bounds_ours.py
code served (permissive licence) · get_code("753617a588e4fc41")
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 (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 numpy as np
from numba import jit

@jit(nopython=True)
def ReLU(vec):
    return np.maximum(vec, 0)

# Create a small numpy array with mixed positive and negative values
vec = np.array([-2.0, -1.0, 0.5, 3.5], dtype=np.float64)

ARGS = {
    "vec": vec
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 (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
ReLU Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/bound_base.py
code served (permissive licence) · get_code("67421da32aae154e")
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 (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 numpy as np
from numba import jit, njit

@jit(nopython=True)
def ReLU(vec):
    return np.maximum(vec, 0)

# Create a small test vector with both positive and negative values
vec = np.array([-2.0, -1.0, 0.5, 1.5], dtype=np.float64)

ARGS = {
    "vec": vec
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 (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
add_cache Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/cachefy.py
code served (permissive licence) · get_code("35286dc13357efe4")
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)

ARGS = {
    'l': 'some_function'
}
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
command Ran
ran; our contract draft was wrong, not the code
AkhilanB/CNN-Cert/pymain.py
code served (permissive licence) · get_code("961f8ae9024624c4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) 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 subprocess

# The function takes a single parameter 'cmd' which is a shell command string
# It will be executed via subprocess.run with shell=True

# A simple, safe command that will work on most systems
cmd = "echo 'Hello World'"

ARGS = {
    'cmd': cmd
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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
extract_data Ran
ran, honoured the contract we drafted
huanzhang12/CertifiedReLURobustness/setup_mnist.py
code served (permissive licence) · get_code("86c9fa246614e9a9")
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 4, dtype family float, shape (2, 28, 28, 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 numpy as np
import gzip
import io

# Create a minimal gzip file containing MNIST-like data
def create_test_gzip_file():
    # MNIST format: 16-byte header + image data
    # Header: magic number (4 bytes) + num images (4 bytes) + rows (4 bytes) + cols (4 bytes)
    header = np.array([2051, 2, 28, 28], dtype='>i4').tobytes()
    
    # Create image data: 2 images of 28x28 pixels
    num_images = 2
    image_data = np.random.randint(0, 256, size=(num_images * 28 * 28), dtype=np.uint8).tobytes()
    
    # Combine header and image data
    full_data = header + image_data
    
    # Compress with gzip and write to BytesIO
    buffer = io.BytesIO()
    with gzip.GzipFile(fileobj=buffer, mode='wb') as gz:
        gz.write(full_data)
    
    buffer.seek(0)
    return buffer

# Create the test gzip file
test_gzip_buffer = create_test_gzip_file()
test_filename = io.BytesIO(test_gzip_buffer.getvalue())

# Monkey-patch gzip.open to return our test file
import gzip as gzip_module
original_open = gzip_module.open

def mock_gzip_open(filename, *args, **kwargs):
    return gzip.GzipFile(fileobj=io.BytesIO(test_gzip_buffer.getvalue()), mode='rb')

gzip_module.open = mock_gzip_open

ARGS = {
    "filename": "test_mnist.gz",
    "num_images": 2
}
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 4, dtype family float, shape (2, 28, 28, 1) — shape (2, 28, 28, 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
extract_labels Ran
ran, honoured the contract we drafted
huanzhang12/CertifiedReLURobustness/setup_mnist.py
code served (permissive licence) · get_code("a0cf6bb81ff7819e")
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, 10) 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 gzip
import io
import tempfile
import os

# Create a temporary gzip file with mock label data
# MNIST label format: 8-byte magic header + 1 byte per label
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "labels.gz")

num_images = 5
magic_number = np.array([0, 0, 0, 8], dtype=np.uint8)  # MNIST magic number
num_images_bytes = np.array([0, 0, 0, num_images], dtype=np.uint8)
labels_data = np.array([0, 1, 2, 3, 4], dtype=np.uint8)

with gzip.open(temp_file, 'wb') as f:
    f.write(magic_number.tobytes())
    f.write(num_images_bytes.tobytes())
    f.write(labels_data.tobytes())

ARGS = {
    'filename': temp_file,
    'num_images': num_images
}
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 2, dtype family float, shape (5, 10) — shape (5, 10) 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
fastlip_2layer Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/bound_fastlin_fastlip.py
code served (permissive licence) · get_code("bbc8cb9f0698c825")
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 3, 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 numpy as np
from numba import jit, njit

@jit(nopython=True)
def fastlip_2layer(W2, W1, neuron_state, norm=1):
    assert norm == 1
    diag = np.maximum(neuron_state.astype(np.float32), 0)
    unsure_index = np.nonzero(neuron_state == 0)[0]
    c = np.dot(diag * W2, W1)
    l = np.zeros((W2.shape[0], W1.shape[1]), dtype=W2.dtype)
    u = np.zeros_like(l)
    for r in range(W2.shape[0]):
        for k in range(W1.shape[1]):
            for i in unsure_index:
                prod = W2[r, i] * W1[i, k]
                if prod > 0:
                    u[r, k] += prod
                else:
                    l[r, k] += prod
    return (c, l, u)

# W2: shape (output_dim, hidden_dim) = (3, 4)
W2 = np.array([
    [0.1, 0.2, 0.3, 0.4],
    [0.5, 0.6, 0.7, 0.8],
    [0.9, 1.0, 1.1, 1.2]
], dtype=np.float32)

# W1: shape (hidden_dim, input_dim) = (4, 2)
W1 = np.array([
    [0.2, 0.3],
    [0.4, 0.5],
    [0.6, 0.7],
    [0.8, 0.9]
], dtype=np.float32)

# neuron_state: shape (hidden_dim,) = (4,)
# Mix of positive, zero, and negative values
neuron_state = np.array([1, 0, -1, 0], dtype=np.int32)

# norm parameter
norm = 1

ARGS = {
    "W2": W2,
    "W1": W1,
    "neuron_state": neuron_state,
    "norm": norm
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, 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
format_norm Ran
ran on a synthesized input
huanzhang12/CertifiedReLURobustness/genlatex.py
code served (permissive licence) · get_code("32794458cec639b5")
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
import numpy as np

torch.manual_seed(0)

def format_norm(n):
    if n == n:
        return '{:.5f}'.format(n)
    else:
        return '-'

# The function takes a single parameter 'n' which should be a number
# It checks if n == n (which is False for NaN values)
# and formats it as a string with 5 decimal places, or returns '-' for NaN

# Test with a regular float
ARGS = {
    'n': 0.123456
}
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 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
format_time Ran
ran on a synthesized input
huanzhang12/CertifiedReLURobustness/genlatex.py
code served (permissive licence) · get_code("0e83f0ab852f5a0b")
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
import numpy as np

torch.manual_seed(0)

ARGS = {
    't': 2.5
}
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 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
get_area Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/activation_functions_quad.py
code served (permissive licence) · get_code("90f4d0f321d7321a")
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
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - get_area takes 5 parameters: a, b, c, lower, upper
# - It creates a lambda function f that computes a cubic polynomial
# - The lambda uses a, b, c as coefficients and x as the variable
# - It returns f(upper) - f(lower), which is the area under the curve
# - All parameters appear to be numeric scalars

a = 2.0
b = 3.0
c = 1.5
lower = 1.0
upper = 5.0

ARGS = {
    "a": a,
    "b": b,
    "c": c,
    "lower": lower,
    "upper": upper
}
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 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
get_layer_bound Ran
ran on a synthesized input
huanzhang12/CertifiedReLURobustness/get_bounds_ours.py
code served (permissive licence) · get_code("37fee45ec17c90a3")
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 numpy as np

# Define parameters for get_layer_bound function
W_Nk = np.array([
    [0.5, -0.3, 0.2, 0.1],
    [-0.4, 0.6, -0.1, 0.3]
], dtype=np.float64)

b_Nk = np.array([0.1, -0.2], dtype=np.float64)

UB_prev = np.array([1.0, 0.8, 0.9, 0.7], dtype=np.float64)

LB_prev = np.array([-0.5, -0.7, -0.6, -0.8], dtype=np.float64)

x0 = np.array([0.1, 0.2, -0.1, 0.15], dtype=np.float64)

eps = 0.1

is_last = False

p_n = 2

ARGS = {
    "W_Nk": W_Nk,
    "b_Nk": b_Nk,
    "UB_prev": UB_prev,
    "LB_prev": LB_prev,
    "is_last": is_last,
    "x0": x0,
    "eps": eps,
    "p_n": p_n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — 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
get_lower_quad_parameterized_lgtu Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/activation_functions_quad.py
code served (permissive licence) · get_code("859c42b9a1c7fb44")
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)

ARGS = {
    "u": 2.5,
    "l": -1.0,
    "theta": 0.8
}
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
get_model_meta_real Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/mnist_cifar_models.py
code served (permissive licence) · get_code("63f0738b7f84b19d")
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 tensorflow as tf
import json

# Create a minimal TensorFlow model that can be serialized and deserialized
def create_test_model():
    """Create a simple Sequential model with Dense layers and activations"""
    model = tf.keras.Sequential([
        tf.keras.layers.Flatten(input_shape=(2, 4)),
        tf.keras.layers.Dense(8, activation='relu'),
        tf.keras.layers.Dense(5, activation='relu'),
        tf.keras.layers.Dense(3, activation='linear')
    ])
    return model

# Create the model and save its JSON representation
test_model = create_test_model()

# Define a simple model_loader function that loads from JSON
def model_loader(filename, custom_objects=None):
    """Mock model loader that returns our test model"""
    return test_model

# Prepare filename (not actually used since we're not doing file I/O)
filename = "dummy_model.h5"

# Construct ARGS dictionary
ARGS = {
    'filename': filename,
    'model_loader': model_loader
}
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
get_upper_quad_parameterized Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/activation_functions_quad.py
code served (permissive licence) · get_code("171e3d9dae850e45")
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
import numpy as np
from numba import jit

torch.manual_seed(0)

@jit(nopython=True)
def get_upper_quad_parameterized(u, l, theta):
    a = 1.0 / (u - l) + 1.0 / (u * l) * theta
    b = 1.0 / (u * l) * (l * l * u / (l - u) - (l + u) * theta)
    c = theta
    return (a, b, c)

# u, l, and theta are scalars used in arithmetic operations
# They should be floating point numbers
u_val = 5.0
l_val = 2.0
theta_val = 1.5

ARGS = {
    "u": u_val,
    "l": l_val,
    "theta": theta_val
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 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
get_weights_list Ran
ran on a synthesized input
huanzhang12/CertifiedReLURobustness/get_bounds_ours.py
code served (permissive licence) · get_code("fcf70a46a28d44a2")
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 torch
import torch.nn as nn

torch.manual_seed(0)

class MockLayer(nn.Module):
    def __init__(self, in_features, out_features):
        super().__init__()
        self.weight_param = nn.Parameter(torch.randn(out_features, in_features))
        self.bias_param = nn.Parameter(torch.randn(out_features))
    
    def get_weights(self):
        return [self.weight_param.detach().numpy(), self.bias_param.detach().numpy()]

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.U = nn.ModuleList([
            MockLayer(4, 5),
            MockLayer(5, 6)
        ])
        self.W = MockLayer(6, 3)
    
    def forward(self, x):
        pass

model = MockModel()

ARGS = {
    '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 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
get_weights_list Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/bound_base.py
code served (permissive licence) · get_code("19a9b690599869b4")
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 torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleLayer(nn.Module):
    def __init__(self, in_features, out_features):
        super().__init__()
        self.weight = nn.Parameter(torch.randn(out_features, in_features))
        self.bias = nn.Parameter(torch.randn(out_features))
    
    def get_weights(self):
        return [self.weight.detach().cpu().numpy(), self.bias.detach().cpu().numpy()]

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.U = nn.ModuleList([
            SimpleLayer(4, 3),
            SimpleLayer(3, 5)
        ])
        self.W = SimpleLayer(5, 2)
    
    def forward(self, x):
        for ui in self.U:
            x = ui(x)
        x = self.W(x)
        return x

model = SimpleModel()

ARGS = {
    '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 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
init_fastlin_bounds Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/bound_fastlin_fastlip.py
code served (permissive licence) · get_code("98c1b7034a8af60a")
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 numpy as np

# The function init_fastlin_bounds expects Ws, which is a list of weight matrices
# Looking at the function:
# - It accesses len(Ws) to get nlayer
# - It accesses Ws[i].shape[1] for each layer
# - The weights are numpy arrays (or array-like with .shape attribute)

# Create a list of weight matrices with distinct shapes for clarity
# Layer 0: shape (input_dim, hidden_dim_0) = (5, 4)
# Layer 1: shape (hidden_dim_0, hidden_dim_1) = (4, 3)
# Layer 2: shape (hidden_dim_1, output_dim) = (3, 2)

Ws = [
    np.random.randn(5, 4).astype(np.float32),
    np.random.randn(4, 3).astype(np.float32),
    np.random.randn(3, 2).astype(np.float32),
]

ARGS = {
    "Ws": Ws,
}
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 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
interval_bound Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/bound_interval.py
code served (permissive licence) · get_code("1e47ec700db6f2be")
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 numpy as np

# Set seed for reproducibility
np.random.seed(0)

# Define small test arrays
# W_Nk: weight matrix of shape (N, k) - let's use (3, 4)
W_Nk = np.array([
    [0.5, -0.3, 0.2, 0.1],
    [-0.1, 0.4, -0.2, 0.3],
    [0.2, 0.1, 0.5, -0.4]
], dtype=np.float64)

# b_Nk: bias vector of shape (N,) - must match first dim of W_Nk
b_Nk = np.array([0.1, -0.2, 0.15], dtype=np.float64)

# UB_prev: upper bound vector of shape (k,) - must match second dim of W_Nk
UB_prev = np.array([1.0, 0.8, 1.2, 0.9], dtype=np.float64)

# LB_prev: lower bound vector of shape (k,) - must match second dim of W_Nk
LB_prev = np.array([-1.0, -0.9, -1.1, -0.8], dtype=np.float64)

# x0: initial point of shape (k,) - must match second dim of W_Nk
x0 = np.array([0.0, 0.1, -0.1, 0.05], dtype=np.float64)

# eps: epsilon value for perturbation
eps = 0.1

# p_n: norm type (can be np.inf or a finite value like 2)
p_n = np.inf

ARGS = {
    "W_Nk": W_Nk,
    "b_Nk": b_Nk,
    "UB_prev": UB_prev,
    "LB_prev": LB_prev,
    "x0": x0,
    "eps": eps,
    "p_n": p_n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — 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
l1_dist Ran
ran on a synthesized input
huanzhang12/CertifiedReLURobustness/utils.py
code served (permissive licence) · get_code("754f9759bf35afba")
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 float64, ndim 0, 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 numpy as np

# l1_dist takes two array-like objects (x, y) and computes L1 distance
# by flattening them and computing the L1 norm of their difference

x = np.random.randn(2, 4)
y = np.random.randn(2, 4)

ARGS = {
    "x": x,
    "y": y,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
l2_dist Ran
ran on a synthesized input
huanzhang12/CertifiedReLURobustness/utils.py
code served (permissive licence) · get_code("c616cfbcc11326f3")
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 float64, ndim 0, 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 numpy as np

# l2_dist takes two parameters: x and y
# Both are used with .flatten() and subtraction, so they should be array-like
# They're passed to np.linalg.norm which expects array-like inputs

x = np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0]])

y = np.array([[1.5, 2.5, 3.5, 4.5],
              [5.5, 6.5, 7.5, 8.5]])

ARGS = {
    "x": x,
    "y": y
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
leaky_relu_ub_pn Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/activation_functions.py
code served (permissive licence) · get_code("bcfb10a6fdde6ee1")
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
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - leaky_relu_ub_pn takes three parameters: u, l, k
# - All three are used in arithmetic operations (subtraction, multiplication, division)
# - The function computes a and b as scalars or arrays
# - Parameters appear to be numeric (float or array-like)

# Creating small numeric values for the parameters
u = 2.0  # upper bound
l = 0.5  # lower bound
k = 0.1  # slope parameter (leaky relu coefficient)

ARGS = {
    "u": u,
    "l": l,
    "k": k
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 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
linf_dist Ran
ran on a synthesized input
huanzhang12/CertifiedReLURobustness/utils.py
code served (permissive licence) · get_code("4fc767413887cc02")
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 float64, ndim 0, 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 numpy as np

# The function linf_dist takes two array-like arguments x and y
# and computes the L-infinity norm of their difference after flattening.
# We need to provide numpy arrays (or array-like objects).

x = np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0]])

y = np.array([[1.5, 2.5, 3.5, 4.5],
              [5.5, 6.5, 7.5, 8.5]])

ARGS = {
    "x": x,
    "y": y
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
main Ran
ran; our contract draft was wrong, not the code
ZhaoyangLyu/FROWN/train_model.py
pointer only (licence: NONE) · get_code("05f24c1d58d4690a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ZhaoyangLyu/FROWN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

proj_l1 Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/bound_crown_quad.py
code served (permissive licence) · get_code("2dfae576a64727fc")
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 (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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create small test inputs
x_real = np.array([1.5, -2.3, 0.8, -1.2], dtype=np.float32)
x0 = np.array([0.1, 0.2, -0.1, 0.05], dtype=np.float32)
q = 0.5

ARGS = {
    "x_real": x_real,
    "x0": x0,
    "q": q,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 (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
proj_l2 Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/bound_crown_quad.py
code served (permissive licence) · get_code("dd8e7c5361d6a51b")
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 (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 numpy as np
from numba import jit

@jit(nopython=True)
def proj_l2(x, x0, eps):
    delta = x - x0
    norm = np.linalg.norm(delta)
    if norm > eps:
        delta /= norm / eps
    return x0 + delta

# Create test arguments
x = np.array([1.0, 2.0, 3.0, 4.0], dtype=np.float64)
x0 = np.array([0.5, 1.5, 2.5, 3.5], dtype=np.float64)
eps = 0.5

ARGS = {
    "x": x,
    "x0": x0,
    "eps": eps
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 (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
proj_li Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/bound_crown_quad.py
code served (permissive licence) · get_code("cba73c35959ddc1d")
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 (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 numpy as np
from numba import jit

@jit(nopython=True)
def proj_li(x, i_lb, i_ub):
    return np.minimum(np.maximum(x, i_lb), i_ub)

# Create small numpy arrays for testing
x = np.array([0.5, 1.5, -0.3, 2.1], dtype=np.float64)
i_lb = np.array(0.0, dtype=np.float64)  # scalar lower bound
i_ub = np.array(1.0, dtype=np.float64)  # scalar upper bound

ARGS = {
    "x": x,
    "i_lb": i_lb,
    "i_ub": i_ub
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 (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
recurjac_bound_2layer Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/bound_recurjac.py
code served (permissive licence) · get_code("de5a9dcd60ab18e8")
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 3, 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 numpy as np
from numba import njit, prange

# Analyze the function signature:
# recurjac_bound_2layer(W2, W1, grad_UB, grad_LB)
# 
# From the function body:
# - W2 has shape (W2.shape[0], W2.shape[1]) - used as W2[r, i]
# - W1 has shape (W1.shape[1], W1.shape[1]) - used as W1[i, k]
# - grad_UB has shape (W2.shape[1],) - used as grad_UB[i]
# - grad_LB has shape (W2.shape[1],) - used as grad_LB[i]
# - Output l, u have shape (W2.shape[0], W1.shape[1])

# The function computes bounds for a 2-layer jacobian
# W2: output layer weights, shape (output_dim, hidden_dim)
# W1: hidden layer weights, shape (hidden_dim, input_dim)
# grad_UB, grad_LB: gradient bounds for hidden layer, shape (hidden_dim,)

np.random.seed(0)

# Set up distinct dimensions to avoid ambiguity
output_dim = 3      # W2.shape[0]
hidden_dim = 4      # W2.shape[1] and W1.shape[0]
input_dim = 2       # W1.shape[1]

# Create weight matrices
W2 = np.random.randn(output_dim, hidden_dim).astype(np.float64)
W1 = np.random.randn(hidden_dim, input_dim).astype(np.float64)

# Create gradient bounds
grad_UB = np.random.randn(hidden_dim).astype(np.float64)
grad_LB = np.random.randn(hidden_dim).astype(np.float64)

ARGS = {
    'W2': W2,
    'W1': W1,
    'grad_UB': grad_UB,
    'grad_LB': grad_LB
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, 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
relu_grad_bounds Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/bound_recurjac.py
code served (permissive licence) · get_code("fa98765e8a5ffef2")
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
import numpy as np
from numba import njit, prange

@njit
def relu_grad_bounds(lb, ub, alpha):
    assert lb <= ub + 1e-05
    assert alpha >= 0
    if lb >= 0:
        return (1, 1)
    if ub <= 0:
        return (alpha, alpha)
    else:
        return (alpha, 1)

ARGS = {
    "lb": -0.5,
    "ub": 0.5,
    "alpha": 0.01
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 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
relu_ub_pn Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/activation_functions.py
code served (permissive licence) · get_code("88ac5c47845ee90e")
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 torch
import numpy as np
from numba import jit

torch.manual_seed(0)

@jit(nopython=True)
def relu_ub_pn(u, l):
    a = u / (u - l)
    return (a, -l * a)

# The function takes two parameters: u and l
# It performs element-wise operations: division and multiplication
# These should be numeric arrays or scalars that support arithmetic

# Create small numeric arrays for u and l
u = np.array([2.0, 3.0, 4.0, 5.0], dtype=np.float64)
l = np.array([0.5, 1.0, 1.5, 2.0], dtype=np.float64)

ARGS = {
    "u": u,
    "l": l,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 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
remove_cache Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/cachefy.py
code served (permissive licence) · get_code("0b2c8166cb0eec6b")
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

def remove_cache(l):
    if l[-1] == ')':
        l = l.replace('cache=True', '')
        s = l.strip()[:-1].strip()
        if s[-1] == ',':
            l = s[:-1] + ')'
    if l[-2:] == '()':
        l = l[:-2]
    return l

ARGS = {
    'l': 'some_function(cache=True)'
}
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
sigmoid_grad_bounds Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/bound_recurjac.py
code served (permissive licence) · get_code("fe4cf0885a1400ce")
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
import numpy as np
from numba import njit, prange

torch.manual_seed(0)

@njit
def sigmoid_grad_bounds(lb, ub, grad_f):
    assert lb <= ub + 1e-05
    if lb >= 0:
        return (grad_f(ub), grad_f(lb))
    if ub <= 0:
        return (grad_f(lb), grad_f(ub))
    return (grad_f(max(-lb, ub)), grad_f(0))

# Define grad_f: a simple sigmoid gradient function
@njit
def sigmoid_gradient(x):
    """Sigmoid gradient: sigmoid(x) * (1 - sigmoid(x))"""
    sig = 1.0 / (1.0 + np.exp(-x))
    return sig * (1.0 - sig)

# Test values for lb and ub
lb = -2.5
ub = 1.5

ARGS = {
    'lb': lb,
    'ub': ub,
    'grad_f': sigmoid_gradient
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 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
spectral_bound Ran
ran on a synthesized input
huanzhang12/CertifiedReLURobustness/get_bounds_others.py
code served (permissive licence) · get_code("82879d94252d9441")
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 float64, ndim 0, 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 numpy as np

# Reset global state
import __main__
__main__.norm_prev = 1.0

# Create small test data
num_classes = 5
num_layers = 3
input_dim = 4

# Create weight matrices for each layer
# Layer 0: input_dim -> 6
# Layer 1: 6 -> 7
# Layer 2 (last): 7 -> num_classes
weights = [
    np.random.randn(6, input_dim),      # Layer 0 weights
    np.random.randn(7, 6),               # Layer 1 weights
    np.random.randn(num_classes, 7)     # Layer 2 (output) weights
]

# Create biases for each layer
biases = [
    np.random.randn(6),
    np.random.randn(7),
    np.random.randn(num_classes)
]

# Create predictions (output of network for current input)
predictions = np.array([0.1, 0.8, 0.05, 0.03, 0.02])

# Set up test case: predicted class is 1, target class is 0
pred_label = 1
target_label = 0
x0 = np.random.randn(input_dim)

ARGS = {
    'weights': weights,
    'biases': biases,
    'pred_label': pred_label,
    'target_label': target_label,
    'x0': x0,
    'predictions': predictions,
    'numlayer': num_layers,
    'p': 'i',
    'untargeted': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
__main__, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
spectral_bound Ran
ran on a synthesized input
huanzhang12/RecurJac-Jacobian-Bounds/bound_spectral.py
code served (permissive licence) · get_code("22f9598f566ecc55")
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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create small weight matrices for a multi-layer network
# numlayer = 3, so we need 3 weight matrices and 3 bias vectors
numlayer = 3
num_classes = 5
hidden_dim = 4
input_dim = 3

# Build weights list - shape should be compatible with the function
# weights[l] should have shape such that np.linalg.norm works on it
weights = [
    np.random.randn(hidden_dim, input_dim),      # layer 0: hidden_dim x input_dim
    np.random.randn(hidden_dim, hidden_dim),     # layer 1: hidden_dim x hidden_dim
    np.random.randn(num_classes, hidden_dim)     # layer 2 (last): num_classes x hidden_dim
]

# Build biases list
biases = [
    np.random.randn(hidden_dim),                 # layer 0
    np.random.randn(hidden_dim),                 # layer 1
    np.random.randn(num_classes)                 # layer 2
]

# pred_label: predicted class (must be < num_classes)
pred_label = 0

# target_label: target class (must be < num_classes or -1)
target_label = 1

# x0: input sample (small, just needs to exist)
x0 = np.random.randn(input_dim)

# predictions: model predictions for each class
predictions = np.array([0.9, 0.05, 0.03, 0.01, 0.01])

# Construct the ARGS dictionary
ARGS = {
    'weights': weights,
    'biases': biases,
    'pred_label': pred_label,
    'target_label': target_label,
    'x0': x0,
    'predictions': predictions,
    'numlayer': numlayer,
    'activation': 'relu',
    'p': np.inf,
    'untargeted': False
}
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, 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
beta_bias Not yet run
unverified (harvested, no recorded run)
aria-systems-group/formal-deep-kernel-synthesis/alpha-beta-CROWN/auto_LiRPA/beta_crown.py
pointer only (licence: NONE) · get_code("9270bd3e922adfe2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, aria-systems-group/formal-deep-kernel-synthesis when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

getMaximumEps Not yet run
unverified (harvested, no recorded run)
ZhaoyangLyu/FROWN/terminal_runner_certify_targeted_attack.py
pointer only (licence: NONE) · get_code("78bdba96d37bb59e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ZhaoyangLyu/FROWN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_general_bounds Not yet run
unverified (harvested, no recorded run)
huanzhang12/RecurJac-Jacobian-Bounds/bound_crown.py
code served (permissive licence) · get_code("91b496effee73d52")
How it ran

no invocation recorded.

get_leaky_relu_bounds Not yet run
unverified (harvested, no recorded run)
huanzhang12/RecurJac-Jacobian-Bounds/bound_crown.py
code served (permissive licence) · get_code("9047985cc861bb05")
How it ran

no invocation recorded.

get_model_meta Not yet run
unverified (harvested, no recorded run)
huanzhang12/RecurJac-Jacobian-Bounds/mnist_cifar_models.py
code served (permissive licence) · get_code("aff1aec26ddd75e4")
How it ran

no invocation recorded.

get_relu_bounds Not yet run
unverified (harvested, no recorded run)
huanzhang12/RecurJac-Jacobian-Bounds/bound_crown.py
code served (permissive licence) · get_code("d338c893ca81dac0")
How it ran

no invocation recorded.

load_batch Not yet run
unverified (harvested, no recorded run)
huanzhang12/CertifiedReLURobustness/setup_cifar.py
code served (permissive licence) · get_code("ab7faf0047f2c872")
How it ran

no invocation recorded.

load_batch Not yet run
unverified (harvested, no recorded run)
huanzhang12/CertifiedReLURobustness/setup_cifar.py
code served (permissive licence) · get_code("3b4fb87c66244ebf")
How it ran

no invocation recorded.

relu_lb_pn Not yet run
unverified (harvested, no recorded run)
huanzhang12/RecurJac-Jacobian-Bounds/activation_functions.py
code served (permissive licence) · get_code("52125b4504b9b441")
How it ran

no invocation recorded.

run Not yet run
unverified (harvested, no recorded run)
AkhilanB/CNN-Cert/pymain.py
code served (permissive licence) · get_code("fd87678657cdbe5f")
How it ran

no invocation recorded.

Also present in other papers' code

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

FunctionAlso present inEarliest-datedOthers named
extract_data 8 other papers
4 dated earlier, 1 the same month, 3 later
1802.07623 (2018-02)
Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negatives
1805.10367 (2018-05)
Zeroth-Order Stochastic Variance Reduction for Nonconvex Optimization
1805.11090 (2018-05)
GenAttack: Practical Black-box Attacks with Gradient-Free Optimization
and 5 more not named here
extract_labels 8 other papers
4 dated earlier, 1 the same month, 3 later
1802.07623 (2018-02)
Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negatives
1805.10367 (2018-05)
Zeroth-Order Stochastic Variance Reduction for Nonconvex Optimization
1805.11090 (2018-05)
GenAttack: Practical Black-box Attacks with Gradient-Free Optimization
and 5 more not named here
load_batch 5 other papers
2 dated earlier, 3 later
1805.11090 (2018-05)
GenAttack: Practical Black-box Attacks with Gradient-Free Optimization
1805.11770 (2018-05)
AutoZOOM: Autoencoder-based Zeroth Order Optimization Method for Attacking Black-box Neural Networks
1902.03229 (2019-02)
Adaptive and Safe Bayesian Optimization in High Dimensions via One-Dimensional Subspaces
and 2 more not named here
load_batch 4 other papers
2 dated earlier, 2 later
1805.11090 (2018-05)
GenAttack: Practical Black-box Attacks with Gradient-Free Optimization
1805.11770 (2018-05)
AutoZOOM: Autoencoder-based Zeroth Order Optimization Method for Attacking Black-box Neural Networks
1902.03229 (2019-02)
Adaptive and Safe Bayesian Optimization in High Dimensions via One-Dimensional Subspaces
and 1 more not named here
ReLU 1 other paper
1 later
2211.17244 (2022-11)
Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations
command 1 other paper
1 dated earlier
1804.09699 (2018-04)
Towards Fast Computation of Certified Robustness for ReLU Networks
getMaximumEps 1 other paper
1 later
1905.07387 (2019-05)
POPQORN: Quantifying Robustness of Recurrent Neural Networks
get_area 1 other paper
1 later
2211.17244 (2022-11)
Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations
get_layer_bound 1 other paper
1 later
2211.17244 (2022-11)
Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations
get_lower_quad_parameterized_lgtu 1 other paper
1 later
2211.17244 (2022-11)
Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations
get_model_meta_real 1 other paper
1 later
2002.12920 (2020-02)
Automatic Perturbation Analysis for Scalable Certified Robustness and Beyond
get_relu_bounds 1 other paper
1 later
2211.17244 (2022-11)
Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations
get_upper_quad_parameterized 1 other paper
1 later
2211.17244 (2022-11)
Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations
get_weights_list 1 other paper
1 later
2211.17244 (2022-11)
Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations
l1_dist 1 other paper
1 later
2211.17244 (2022-11)
Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations
l2_dist 1 other paper
1 later
2211.17244 (2022-11)
Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations
linf_dist 1 other paper
1 later
2211.17244 (2022-11)
Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations
proj_l1 1 other paper
1 later
2211.17244 (2022-11)
Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations
proj_l2 1 other paper
1 later
2211.17244 (2022-11)
Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations
proj_li 1 other paper
1 later
2211.17244 (2022-11)
Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations

Shown: the 20 functions present in the most other papers. 4 more shared functions are not listed here.

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

Finding minimum distortion of adversarial examples and thus certifying robustness in neural network classifiers for given data points is known to be a challenging problem. Nevertheless, recently it has been shown to be possible to give a non-trivial certified lower bound of minimum adversarial distortion, and some recent progress has been made towards this direction by exploiting the piece-wise linear nature of ReLU activations. However, a generic robustness certification for general activation functions still remains largely unexplored. To address this issue, in this paper we introduce CROWN, a general framework to certify robustness of neural networks with general activation functions for given input data points. The novelty in our algorithm consists of bounding a given activation function with linear and quadratic functions, hence allowing it to tackle general activation functions including but not limited to four popular choices: ReLU, tanh, sigmoid and arctan. In addition, we facilitate the search for a tighter certified lower bound by adaptively selecting appropriate surrogates for each neuron activation. Experimental results show that CROWN on ReLU networks can notably improve the certified lower bounds compared to the current state-of-the-art algorithm Fast-Lin, while having comparable computational efficiency. Furthermore, CROWN also demonstrates its effectiveness and flexibility on networks with general activation functions, including tanh, sigmoid and arctan.

For agents

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

get_harvested_code_for_paper("1811.00866")
get_code_for_paper("1811.00866")
have("1811.00866")

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

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

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

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

Connect an agent — have() is free.