SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1907.10662 · 2019

ART: Abstraction Refinement-Guided Training for Provably Correct Neural Networks

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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 6 have no contract verdict; 0 failures of our instrument; 0 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/1907.10662.json · badge: /api/ran/1907.10662.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
XuankangLin/ART canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
bisect_by Ran
ran on a synthesized input
XuankangLin/ART/art/bisecter.py
code served (permissive licence) · get_code("3b00f72cc7812cbc")
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 torch
from torch import Tensor

torch.manual_seed(0)

# Create small tensors for testing
# lb and ub should have the same shape: (batch, dims)
batch_size = 2
num_dims = 4

lb = torch.randn(batch_size, num_dims)
ub = lb + torch.abs(torch.randn(batch_size, num_dims))  # ensure ub >= lb

# idxs should be indices from torch.max(), shape (batch,)
# Values should be in range [0, num_dims)
idxs = torch.tensor([1, 2], dtype=torch.long)

# extra should be a bit vector with same shape as lb/ub, or None
extra = torch.randint(0, 2, (batch_size, num_dims), dtype=torch.uint8)

ARGS = {
    'lb': lb,
    'ub': ub,
    'idxs': idxs,
    'extra': extra
}
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 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
by_smear Ran
ran on a synthesized input
XuankangLin/ART/art/bisecter.py
code served (permissive licence) · get_code("9c2243488b652398")
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 torch
import numpy as np

torch.manual_seed(0)

# Construct valid arguments for by_smear function
# The function expects:
# - new_rem_lb: Tensor, lower bounds, shape (batch, dims)
# - new_rem_ub: Tensor, upper bounds, shape (batch, dims)
# - new_rem_extra: Optional[Tensor], bit vector for constraints
# - new_rem_grad: Tensor, gradients, shape (batch, dims)
# - tiny_width: Optional[float], threshold for tiny widths

batch_size = 2
num_dims = 4

# Lower bounds tensor
new_rem_lb = torch.randn(batch_size, num_dims)

# Upper bounds tensor (must be >= lower bounds for the width calculation)
new_rem_ub = new_rem_lb + torch.abs(torch.randn(batch_size, num_dims)) + 1.0

# Extra tensor: bit vector showing which properties each piece should obey
new_rem_extra = torch.randint(0, 2, (batch_size, num_dims)).byte()

# Gradient tensor
new_rem_grad = torch.randn(batch_size, num_dims)

# tiny_width parameter (optional float)
tiny_width = 0.1

ARGS = {
    'new_rem_lb': new_rem_lb,
    'new_rem_ub': new_rem_ub,
    'new_rem_extra': new_rem_extra,
    'new_rem_grad': new_rem_grad,
    'tiny_width': tiny_width
}
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, 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
empty_like Ran
ran on a synthesized input
XuankangLin/ART/art/bisecter.py
code served (permissive licence) · get_code("4fa5918c9f444bcd")
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 Tensor, ndim 1, dtype family float, shape (0,) 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
from torch import Tensor

torch.manual_seed(0)

# Create a simple tensor with a specific device (CPU)
input_tensor = torch.randn(2, 4, device='cpu')

ARGS = {
    't': input_tensor
}
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 Tensor, ndim 1, dtype family float, shape (0,) — shape (0,) 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
empty_like Ran
ran on a synthesized input
XuankangLin/ART/art/cluster.py
code served (permissive licence) · get_code("f2c7993a5b36988a")
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 Tensor, ndim 1, dtype family float, shape (0,) 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
from torch import Tensor

torch.manual_seed(0)

# Create a small tensor with distinct dimensions
input_tensor = torch.randn(2, 4, device='cpu')

ARGS = {
    't': input_tensor
}
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 Tensor, ndim 1, dtype family float, shape (0,) — shape (0,) 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
gen_vtx_points Ran
ran on a synthesized input
XuankangLin/ART/art/utils.py
code served (permissive licence) · get_code("86b5c6a8b28d2de9")
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 torch

torch.manual_seed(0)

# Construct small tensors for base_lb and base_ub
# base_lb and base_ub are batched tensors
# Each element represents lower/upper bounds for a hyper-rectangle
# Let's use batch_size=2, state_dim=4
batch_size = 2
state_dim = 4

base_lb = torch.randn(batch_size, state_dim)
base_ub = base_lb + torch.abs(torch.randn(batch_size, state_dim)) + 1.0

# Construct extra tensor - optional, batched
# Looking at the code: extra.unsqueeze(dim=1).expand(*new_size)
# This suggests extra has shape (batch_size, ...) and gets expanded
# Let's make it (batch_size, extra_dim)
extra_dim = 3
extra = torch.randn(batch_size, extra_dim)

ARGS = {
    "base_lb": base_lb,
    "base_ub": base_ub,
    "extra": extra,
}
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 — 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
lbub_exclude Ran
ran on a synthesized input
XuankangLin/ART/art/prop.py
code served (permissive licence) · get_code("445c01e778a86a83")
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 torch
import numpy as np

torch.manual_seed(0)

# The function lbub_exclude takes:
# - lb1, ub1, lb2, ub2: non-batched tensors (1D)
# - accu_lb, accu_ub: batched tensors (2D, initially empty)
# - eps: float

# From the function body:
# - Tensors are indexed by dimension (e.g., lb1[i], lb2[i])
# - clone() is called on tensors
# - unsqueeze(dim=0) is called to add batch dimension
# - torch.cat() is used to concatenate along dim=0
# - abs() and comparison operations are used
# - The function is recursive

# Create 1D tensors of dimension 4
lb1 = torch.tensor([0.0, 1.0, 2.0, 3.0])
ub1 = torch.tensor([5.0, 6.0, 7.0, 8.0])

# lb2 and ub2 should be within [lb1, ub1]
lb2 = torch.tensor([1.0, 2.0, 3.0, 4.0])
ub2 = torch.tensor([4.0, 5.0, 6.0, 7.0])

# Initialize empty batched tensors (shape [0, 4])
accu_lb = torch.empty((0, 4))
accu_ub = torch.empty((0, 4))

# Epsilon for numerical tolerance
eps = 1e-6

ARGS = {
    "lb1": lb1,
    "ub1": ub1,
    "lb2": lb2,
    "ub2": ub2,
    "accu_lb": accu_lb,
    "accu_ub": accu_ub,
    "eps": eps
}
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, 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

Also present in other papers' code

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

Artificial Neural Networks (ANNs) have demonstrated remarkable utility in various challenging machine learning applications. While formally verified properties of their behaviors are highly desired, they have proven notoriously difficult to derive and enforce. Existing approaches typically formulate this problem as a post facto analysis process. In this paper, we present a novel learning framework that ensures such formal guarantees are enforced by construction. Our technique enables training provably correct networks with respect to a broad class of safety properties, a capability that goes well-beyond existing approaches, without compromising much accuracy. Our key insight is that we can integrate an optimization-based abstraction refinement loop into the learning process and operate over dynamically constructed partitions of the input space that considers accuracy and safety objectives synergistically. The refinement procedure iteratively splits the input space from which training data is drawn, guided by the efficacy with which such partitions enable safety verification. We have implemented our approach in a tool (ART) and applied it to enforce general safety properties on unmanned aviator collision avoidance system ACAS Xu dataset and the Collision Detection dataset. Importantly, we empirically demonstrate that realizing safety does not come at the price of much accuracy. Our methodology demonstrates that an abstraction refinement methodology provides a meaningful pathway for building both accurate and correct machine learning networks.

For agents

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

get_harvested_code_for_paper("1907.10662")
get_code_for_paper("1907.10662")
have("1907.10662")

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

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

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

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

Connect an agent — have() is free.