SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.24033 · 2026

Towards Verifiable Transformers: Solver-Checkable Circuit Explanations

Neel Somani

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 0 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.24033.json · badge: /api/ran/2605.24033.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
neelsomani/symbolic-circuit-distillation canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
FunctionStatusWhere it lives
process Ran
ran; our contract draft was wrong, not the code
neelsomani/symbolic-circuit-distillation/results/best_bracket_program.py
code served (permissive licence) · get_code("16dab98774527d2e")
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 torch

torch.manual_seed(0)

# The function takes a list/iterable of tokens (integers)
# It processes them by tracking depth based on membership in specific token sets
# Returns either 1252 or 330 based on final depth value

# Create a simple list of token integers
tokens = [58, 292, 434, 60, 330, 833, 1008]

ARGS = {
    "tokens": tokens
}
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 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
process Ran
ran; our contract draft was wrong, not the code
neelsomani/symbolic-circuit-distillation/results/best_bracket_raw_program.py
code served (permissive licence) · get_code("b18deb260a34ad53")
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 torch

torch.manual_seed(0)

# The function takes a list of tokens and processes them based on token values
# Tokens are integers that are checked against predefined sets
# The function returns an integer (either 1252 or 330)

# Create a simple list of token integers for testing
tokens = [58, 292, 60, 330, 833, 1008, 1252, 1878]

ARGS = {
    "tokens": tokens
}
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 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
process Ran
ran; our contract draft was wrong, not the code
neelsomani/symbolic-circuit-distillation/results/best_quote_program.py
code served (permissive licence) · get_code("c4fcc6b453cbc49d")
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 torch

torch.manual_seed(0)

# The function takes a list/iterable of tokens (integers)
# and checks if any token is in one of two sets, returning 1 or 6 based on which set was found
tokens = [100, 200, 1, 300, 400]

ARGS = {
    "tokens": tokens
}
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 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
run_program_abstract Ran
ran; our contract draft was wrong, not the code
neelsomani/symbolic-circuit-distillation/sdc/search.py
code served (permissive licence) · get_code("c35c7edd6317916e")
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.

from typing import Sequence, Dict, List

class SimpleCondition:
    def __init__(self, kind, value=None, target=None):
        self.kind = kind
        self.value = value
        self.target = target

class SimpleUpdate:
    def __init__(self, kind, target, value=None):
        self.kind = kind
        self.target = target
        self.value = value

class SimpleStateVar:
    def __init__(self, name, initial, minimum=None, maximum=None):
        self.name = name
        self.initial = initial
        self.minimum = minimum
        self.maximum = maximum

class SimpleRule:
    def __init__(self, predicate=None, state_conditions=None, updates=None):
        self.predicate = predicate
        self.state_conditions = state_conditions if state_conditions is not None else []
        self.updates = updates if updates is not None else []

class SimpleOutputRule:
    def __init__(self, conditions, value):
        self.conditions = conditions
        self.value = value

class SimpleProgram:
    def __init__(self, state, rules, output_rules, default_output=None):
        self.state = state
        self.rules = rules
        self.output_rules = output_rules
        self.default_output = default_output

# Create a simple program
state_vars = [
    SimpleStateVar("counter", initial=0, minimum=0, maximum=10),
    SimpleStateVar("flag", initial=0, minimum=0, maximum=1)
]

# Rule: if token is 5, increment counter
cond_token_eq = SimpleCondition(kind='token_eq', value=5)
update_increment = SimpleUpdate(kind='increment', target='counter', value=1)
rule1 = SimpleRule(predicate=cond_token_eq, updates=[update_increment])

# Rule: if counter >= 3, set flag to 1
cond_state_gte = SimpleCondition(kind='state_gte', target='counter', value=3)
update_flag = SimpleUpdate(kind='assign', target='flag', value=1)
rule2 = SimpleRule(state_conditions=[cond_state_gte], updates=[update_flag])

rules = [rule1, rule2]

# Output rule: if flag is 1, return 100
output_cond = SimpleCondition(kind='state_eq', target='flag', value=1)
output_rule = SimpleOutputRule(conditions=[output_cond], value=100)
output_rules = [output_rule]

program = SimpleProgram(
    state=state_vars,
    rules=rules,
    output_rules=output_rules,
    default_output=0
)

# Create tokens and real_to_abstract mapping
tokens = [5, 5, 5, 3, 7]
real_to_abstract = {5: 5, 3: 3, 7: 7}

ARGS = {
    'program': program,
    'tokens': tokens,
    'real_to_abstract': real_to_abstract
}
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

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Mechanistic interpretability typically discovers circuits and then argues what they do from examples and ablations. We introduce Verifiable Transformers, a framework for turning tasklocalized circuits into bounded, solver-checkable claims: projected functional equivalence, taskrelevant invariance, edge necessity, and robustness to continuous final-residual perturbations. At small scale, we directly verify all four properties for quote-closing and bracket-type circuits, including program-mediated circuits whose attention selection is entirely symbolic. At GPT-2 scale, we remove LayerNorm from a sparsemax/LeakyReLU model after training with a +0.0087 OpenWebText loss increase, replace retained attention heads with synthesized restricted-DSL programs, and calibrate only program-local readouts while freezing and hashing every other parameter. The resulting three-edge quote circuit (embedding → MLP 0 → program head → logits) verifies all four properties over a hash-pinned 1,280-prompt domain in linear real arithmetic: 1,280/1,280 equivalence and invariance, 640 edge-necessity witnesses per edge, and robustness at ϵ = 0.01 with minimum certified radius 0.01515. For two alphabet variants of the same opener-detection/copy-type task, untouched gates expose a localization frontier: bracket-type extraction is exact only with all 144 heads, while the constructed quote artifact verifies with three edges. Naive discovery-based verification failed for measured reasons; at scale, we find we must build the object we can verify. The verified object is a calibrated artifact, not the unmodified model, and all claims are bounded to declared domains.

For agents

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

get_harvested_code_for_paper("2605.24033")
get_code_for_paper("2605.24033")
have("2605.24033")

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

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

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

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

Connect an agent — have() is free.