SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.14260 · 2026

On the Burden of Achieving Fairness in Conformal Prediction

Jesse Cresswell, Masoud Asgharian, Mouloud Belbahri, Yang, Pengqi Liu, Ziang Gao, Yi Archer

arXiv · PDF · Open in the Atlas

Code that ran

22 of 24 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; 6 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 16 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2605.14260.json · badge: /api/ran/2605.14260.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
GreenPenguin001/group-cp-tradeoffs canonical (classifier label)
classifier basis: census
22 ran · 2 no recorded run
FunctionStatusWhere it lives
conformal_index Ran
ran, honoured the contract we drafted
GreenPenguin001/group-cp-tradeoffs/bio_bias/emp_cal_size/data_plot.py
code served (permissive licence) · get_code("3a63f58f4aecba3e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math

def conformal_index(n: int, alpha: float) -> int:
    k = int(math.ceil((n + 1) * (1.0 - alpha)))
    k = min(max(k, 1), n)
    return k - 1

ARGS = {
    "n": 10,
    "alpha": 0.1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
counts_from_weights Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
GreenPenguin001/group-cp-tradeoffs/synthetic_sim/src/synthcp/minority_imbalance_diagnosis_with_freq_larger_fonts.py
code served (permissive licence) · get_code("043d77e384d47573")
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 int, shape (3,) 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

ARGS = {
    "total": 10,
    "weights": np.array([1.5, 2.0, 0.5])
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (3,) — shape (3,) 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
discover_result_root Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/bio_bias/raps/outputs/data_plot.py
code served (permissive licence) · get_code("12a76438c74302cd")
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 tempfile
import zipfile
from pathlib import Path

# Create a minimal result root directory structure
import os

# Create a temporary directory with the expected structure
temp_result = tempfile.TemporaryDirectory(prefix='test_result_')
result_root = Path(temp_result.name)

# Create the expected structure: split_meta.json and seed_* directories
split_meta_path = result_root / 'split_meta.json'
split_meta_path.write_text('{}')

seed_dir = result_root / 'seed_0'
seed_dir.mkdir(exist_ok=True)

# Create a script_dir (can be any directory)
script_dir = Path(temp_result.name) / 'scripts'
script_dir.mkdir(exist_ok=True)

ARGS = {
    'script_dir': script_dir,
    'user_result_root': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 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
discover_result_root Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/bio_bias/saps/outputs/data_plot.py
code served (permissive licence) · get_code("0eb282be4e7698b5")
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 tempfile
import zipfile
from pathlib import Path

# Create a minimal result directory structure to satisfy _looks_like_result_root
tmp_result = tempfile.TemporaryDirectory(prefix='test_result_')
result_path = Path(tmp_result.name)

# Create the structure that _looks_like_result_root expects
split_meta = result_path / 'split_meta.json'
split_meta.write_text('{}')

seed_dir = result_path / 'seed_0'
seed_dir.mkdir()

# Create script_dir as a separate temporary directory
tmp_script = tempfile.TemporaryDirectory(prefix='test_script_')
script_dir = Path(tmp_script.name)

ARGS = {
    'script_dir': script_dir,
    'user_result_root': str(result_path),
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 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
discover_result_root Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/bio_bias/simple/outputs/data_plot.py
code served (permissive licence) · get_code("8232a9fc128161a9")
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 tempfile
import zipfile
from pathlib import Path

# Create a temporary directory structure to test the function
test_dir = Path(tempfile.gettempdir()) / "test_bias_bios_discovery"
test_dir.mkdir(exist_ok=True)

# Create a mock result directory with the expected naming pattern
result_dir = test_dir / "bias_in_bios_full_primary_results"
result_dir.mkdir(exist_ok=True)

# Create a dummy file inside to make it a valid directory
(result_dir / "dummy.txt").write_text("test data")

# Test Case 1: Using user_result_root as a directory path
ARGS = {
    "script_dir": Path.cwd(),
    "user_result_root": str(result_dir)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 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
ensure_dir Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/FACET/outputs/data_plot.py
code served (permissive licence) · get_code("dad03f7607f3f098")
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 PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from pathlib import Path
import tempfile

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()
test_path = Path(temp_dir) / "test" / "nested" / "directory"

ARGS = {
    "path": test_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
facet_group_name_from_index Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/FACET/outputs/data_plot.py
code served (permissive licence) · get_code("840defcd6ee89ddc")
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

# The function facet_group_name_from_index takes a single parameter: idx (an int)
# It converts idx to int, checks if it's in range [0, len(FACET_GROUP_ORDER))
# If so, returns the corresponding string from FACET_GROUP_ORDER
# Otherwise returns str(idx)

# Test with a valid index
ARGS = {
    'idx': 1
}
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
lighten_color Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/synthetic_sim/src/synthcp/plots.py
code served (permissive licence) · get_code("839e4f589b75b194")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from matplotlib import colors as mcolors

ARGS = {
    "color": "red",
    "factor": 0.62
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_arrays Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/bio_bias/raps/outputs/data_plot.py
code served (permissive licence) · get_code("178c46e841196daa")
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.

from pathlib import Path
import numpy as np
import tempfile
import shutil

# Create a temporary directory structure with the required .npy files
temp_dir = tempfile.mkdtemp()
seed_dir = Path(temp_dir)
arrays_dir = seed_dir / 'arrays'
arrays_dir.mkdir(parents=True, exist_ok=True)

# Create small dummy numpy arrays and save them
np.random.seed(0)
probs_cal = np.random.rand(5, 3).astype(np.float32)
probs_test = np.random.rand(4, 3).astype(np.float32)
y_cal = np.random.randint(0, 3, size=(5,)).astype(np.int32)
y_test = np.random.randint(0, 3, size=(4,)).astype(np.int32)
g_cal = np.random.randint(0, 2, size=(5,)).astype(np.int32)
g_test = np.random.randint(0, 2, size=(4,)).astype(np.int32)

np.save(arrays_dir / 'probs_cal.npy', probs_cal)
np.save(arrays_dir / 'probs_test.npy', probs_test)
np.save(arrays_dir / 'y_cal.npy', y_cal)
np.save(arrays_dir / 'y_test.npy', y_test)
np.save(arrays_dir / 'g_cal.npy', g_cal)
np.save(arrays_dir / 'g_test.npy', g_test)

ARGS = {
    'seed_dir': seed_dir
}
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 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
make_multigroup_gaussian Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/synthetic_sim/src/synthcp/distributions.py
code served (permissive licence) · get_code("0a06564c8fe02bab")
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, 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
from scipy import stats
from dataclasses import dataclass

@dataclass(frozen=True)
class GroupDistribution:
    name: str
    dist: object

    def cdf(self, x):
        return self.dist.cdf(x)

    def pdf(self, x):
        return self.dist.pdf(x)

    def ppf(self, u: float) -> float:
        return float(self.dist.ppf(u))

    def rvs(self, size: int, rng: np.random.Generator) -> np.ndarray:
        return np.asarray(self.dist.rvs(size=size, random_state=rng), dtype=float)

def make_multigroup_gaussian(scale: float) -> list[GroupDistribution]:
    mus = scale * np.array([-1.5, -0.5, 0.5, 1.5], dtype=float)
    return [GroupDistribution(f'g{i}', stats.norm(loc=float(mu), scale=1.0)) for i, mu in enumerate(mus)]

# Setup code
scale_value = 2.5

ARGS = {
    'scale': scale_value
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
make_multigroup_wide_gaussian Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/synthetic_sim/src/synthcp/distributions.py
code served (permissive licence) · get_code("3aec9a11f9bee189")
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, 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
from scipy import stats
from dataclasses import dataclass

@dataclass(frozen=True)
class GroupDistribution:
    name: str
    dist: object

    def cdf(self, x):
        return self.dist.cdf(x)

    def pdf(self, x):
        return self.dist.pdf(x)

    def ppf(self, u: float) -> float:
        return float(self.dist.ppf(u))

    def rvs(self, size: int, rng: np.random.Generator) -> np.ndarray:
        return np.asarray(self.dist.rvs(size=size, random_state=rng), dtype=float)

def make_multigroup_wide_gaussian(scale: float) -> list[GroupDistribution]:
    scales = 1.0 + scale * np.array([0.0, 0.2, 0.4, 0.6], dtype=float)
    return [GroupDistribution(f'g{i}', stats.norm(loc=0.0, scale=float(sd))) for i, sd in enumerate(scales)]

ARGS = {
    'scale': 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
make_two_group_gaussian Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/synthetic_sim/src/synthcp/distributions.py
code served (permissive licence) · get_code("4615aa3dc6feae2e")
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, 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
from scipy import stats

# Define ARGS for make_two_group_gaussian
ARGS = {
    'delta': 1.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
ordered_group_items Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/FACET/emp_cal_size/data_plot.py
code served (permissive licence) · get_code("985d09ade2005496")
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 pandas as pd

# Create a simple DataFrame with a 'score' column
# The function groups by 'score' and sorts based on SCORE_ORDER
df = pd.DataFrame({
    'score': ['raps', 'simple', 'saps', 'simple', 'raps', 'saps'],
    'value': [1, 2, 3, 4, 5, 6]
})

ARGS = {
    'df': df
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
parse_float_weights Ran
ran, honoured the contract we drafted
GreenPenguin001/group-cp-tradeoffs/synthetic_sim/src/synthcp/minority_imbalance_diagnosis_with_freq_larger_fonts.py
code served (permissive licence) · get_code("6f2d9e8dc81f71a1")
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

# parse_float_weights takes a single parameter: text (str)
# The function:
# 1. Splits the text by commas
# 2. Converts each stripped token to float
# 3. Creates a numpy array of floats
# 4. Validates that it's 1D and non-empty
# 5. Validates that all weights are strictly positive
# 6. Normalizes by dividing by sum

# Create a valid comma-separated string of positive floats
text_input = "0.5, 1.0, 2.0, 1.5"

ARGS = {
    "text": text_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (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
parse_int_list Ran
ran, honoured the contract we drafted
GreenPenguin001/group-cp-tradeoffs/synthetic_sim/src/synthcp/minority_imbalance_diagnosis_with_freq_larger_fonts.py
code served (permissive licence) · get_code("dce41a803ca827d1")
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, ndim 1, dtype family int; 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

def parse_int_list(text: str) -> list[int]:
    values = [int(tok.strip()) for tok in text.split(',') if tok.strip()]
    if not values:
        raise ValueError('Expected at least one integer value.')
    return values

ARGS = {
    'text': '1, 2, 3, 4, 5'
}
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 list, ndim 1, dtype family int — a list 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
run_seeded_sweep Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/synthetic_sim/src/synthcp/experiments.py
code served (permissive licence) · get_code("b88e700bd7b8781b")
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.

from pathlib import Path
from scipy import stats
import numpy as np
import pandas as pd

def make_dists_factory(sweep_value: float) -> list:
    """Create a list of scipy distributions based on sweep value."""
    return [
        stats.norm(loc=sweep_value, scale=1.0),
        stats.norm(loc=sweep_value + 1, scale=1.5)
    ]

def mock_runner(dists: list, weights: np.ndarray, alpha: float, rng: np.random.Generator, n_cal: int, n_test: int) -> tuple:
    """Mock runner that returns group_df and summary dict."""
    # Simulate generating some group-level results
    n_samples = 5
    group_df = pd.DataFrame({
        'value_1': rng.normal(0, 1, n_samples),
        'value_2': rng.normal(0, 1, n_samples),
    })
    
    # Simulate summary statistics
    summary = {
        'metric_1': float(rng.normal(0.5, 0.1)),
        'metric_2': float(rng.uniform(0, 1)),
    }
    
    return group_df, summary

ARGS = {
    'experiment': 'test_sweep_experiment',
    'sweep_values': np.array([0.1, 0.5, 1.0]),
    'make_dists': make_dists_factory,
    'runner': mock_runner,
    'alpha': 0.05,
    'seeds': 2,
    'outdir': '/tmp/sweep_output',
    'n_cal': 50,
    'n_test': 100,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — 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
sanitize_name Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/FACET/emp_cal_size/data_plot.py
code served (permissive licence) · get_code("e759f125a5cb1e07")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def sanitize_name(text: str) -> str:
    text = str(text)
    text = re.sub('[^0-9a-zA-Z]+', '_', text).strip('_')
    return text or 'unknown'

ARGS = {
    'text': 'Hello-World_123!@#'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
score_display_name Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/FACET/outputs/data_plot.py
code served (permissive licence) · get_code("d67a3e8b87ccd1e7")
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

SCORE_DISPLAY = {'simple': 'Simple', 'saps': 'SAPS', 'raps': 'RAPS'}

def score_display_name(score_name: str) -> str:
    return SCORE_DISPLAY.get(str(score_name).lower(), str(score_name).title())

# Test with a known score name from the dictionary
ARGS = {
    'score_name': 'simple'
}
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
sigma_weighted Ran
ran, honoured the contract we drafted
GreenPenguin001/group-cp-tradeoffs/synthetic_sim/src/synthcp/metrics.py
code served (permissive licence) · get_code("edf2fcbd2e258950")
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 numpy as np

# Construct valid arguments for sigma_weighted
values = [1.0, 2.0, 3.0, 4.0]
weights = [0.1, 0.2, 0.3, 0.4]

ARGS = {
    "values": values,
    "weights": weights
}
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 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
standardize_group_name Ran
ran; our contract draft was wrong, not the code
GreenPenguin001/group-cp-tradeoffs/bio_bias/raps/outputs/data_plot.py
code served (permissive licence) · get_code("88c8d4758ab8aae2")
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 standardize_group_name(name: str) -> str:
    raw = str(name).strip()
    lower = raw.lower()
    if lower == 'male':
        return 'Male'
    if lower == 'female':
        return 'Female'
    if raw == '0':
        return 'Male'
    if raw == '1':
        return 'Female'
    return raw.title() if raw else raw

ARGS = {
    'name': 'male'
}
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
weighted_l2 Ran
ran, honoured the contract we drafted
GreenPenguin001/group-cp-tradeoffs/synthetic_sim/src/synthcp/metrics.py
code served (permissive licence) · get_code("c38f2528711f2044")
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 numpy as np

ARGS = {
    "values": [1.5, 2.0, 3.5, 0.5],
    "weights": [0.1, 0.2, 0.3, 0.4]
}
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 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
weighted_std Ran
ran, honoured the contract we drafted
GreenPenguin001/group-cp-tradeoffs/FACET/emp_cal_size/data_plot.py
code served (permissive licence) · get_code("a10a5c3aa258f562")
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 math
import numpy as np

# Create sample data for the weighted_std function
values = np.array([1.0, 2.0, 3.0, 4.0, 5.0])
weights = np.array([0.1, 0.2, 0.3, 0.2, 0.2])

ARGS = {
    "values": values,
    "weights": weights,
}
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 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
experiment_multigroup Not yet run
unverified (harvested, no recorded run)
GreenPenguin001/group-cp-tradeoffs/synthetic_sim/src/synthcp/experiments.py
code served (permissive licence) · get_code("b866283f31ac200e")
How it ran

no invocation recorded.

experiment_two_group Not yet run
unverified (harvested, no recorded run)
GreenPenguin001/group-cp-tradeoffs/synthetic_sim/src/synthcp/experiments.py
code served (permissive licence) · get_code("21b12fb5e4531263")
How it ran

no invocation recorded.

Also present in other papers' code

Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 1 the same month, 1 later) and 22 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
ensure_dir 2 other papers
1 the same month, 1 later
2605.13167 (2026-05)
GeoBuildBench: A Benchmark for Interactive and Executable Geometry Construction from Natural Language
2607.19335 (2026-07)
-Lipschitz Neural Networks on Hadamard Manifolds

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

Conformal prediction is often calibrated with a single pooled threshold, but this can hide cross-group heterogeneity in score distributions and distort group-wise coverage. We study this phenomenon through the population score distributions underlying split conformal calibration. First, we derive a conservation law and lower bound showing that pooled calibration incurs irreducible group-wise coverage distortion at a scale set by cross-group quantile heterogeneity. Second, we demonstrate that the two leading fairness definitions for conformal prediction, Equalized Coverage and Equalized Set Size, are fundamentally in tension. Third, we quantify the cost of moving between policies which treat groups separately or pool them. Experiments on synthetic and real data confirm the same bidirectional trade-off after finite-sample calibration. Our results show that, for the policy families studied here, calibration choice does not remove cross-group heterogeneity; it determines whether the resulting distortion appears in the coverage or size dimension, providing a principled lens for analyzing fairness-oriented calibration choices in practice.

For agents

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

get_harvested_code_for_paper("2605.14260")
get_code_for_paper("2605.14260")
have("2605.14260")

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

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

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

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

Connect an agent — have() is free.