SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.15374 · 2022

Verification and search algorithms for causal DAGs

arXiv · PDF · Open in the Atlas

Code that ran

5 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 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/2206.15374.json · badge: /api/ran/2206.15374.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
cxjdavin/verification-and-search-algorithms-for-causal-dags canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 1 no recorded run
FunctionStatusWhere it lives
compute_covered_edges Ran
ran; our contract draft was wrong, not the code
cxjdavin/verification-and-search-algorithms-for-causal-dags/our_code/verify.py
code served (permissive licence) · get_code("59fa4f921007e606")
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 set. 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 networkx as nx

# Create a directed graph with edges where we can test the covered_edges logic
G = nx.DiGraph()

# Add nodes
G.add_nodes_from([0, 1, 2, 3, 4])

# Add edges to create a scenario where some edges are "covered"
# An edge (u, v) is covered if u and v have the same parents (except u itself for v)
# Example: if nodes 0 and 1 both point to 2, and 0 points to 1,
# then (0, 1) might be covered depending on their parents

# Create structure: 
# 0 -> 1, 0 -> 2
# 1 -> 2
# Here (0, 1) is not covered because 1's parent set {0} != 0's parent set {}
# (0, 2) is not covered because 2's parents {0, 1} != 0's parents {}
# (1, 2) is not covered because 2's parents {0} != 1's parents {0}

G.add_edge(0, 1)
G.add_edge(0, 2)
G.add_edge(1, 2)

# Add another structure where edges might be covered:
# 3 -> 4, 2 -> 4
# Then check if (3, 4) or (2, 4) could be covered

G.add_edge(2, 4)
G.add_edge(3, 4)

ARGS = {
    "G": G
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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
compute_minimum_vertex_cover Ran
ran; our contract draft was wrong, not the code
cxjdavin/verification-and-search-algorithms-for-causal-dags/our_code/verify.py
code served (permissive licence) · get_code("cd77c6a358553aea")
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) and returned set. 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 networkx as nx
from networkx.algorithms import bipartite

# Create a small bipartite graph for testing
# A bipartite graph has two disjoint sets of vertices
# We'll create a simple bipartite graph with two connected components

H = nx.Graph()

# First connected component: bipartite with partition {0, 1} and {2, 3}
H.add_edges_from([
    (0, 2),
    (0, 3),
    (1, 2),
    (1, 3)
])

# Second connected component: bipartite with partition {4} and {5, 6}
H.add_edges_from([
    (4, 5),
    (4, 6)
])

# Verify the graph is bipartite
assert bipartite.is_bipartite(H), "Graph must be bipartite"

ARGS = {
    "H": H
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
networkx — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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_adj_list Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from cxjdavin/subset-verification-and-search-algorithms-for-causal-dags
pointer only · get_code("240897eb9d12e903")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

is_vertex_cover Ran
ran; our contract draft was wrong, not the code
cxjdavin/verification-and-search-algorithms-for-causal-dags/our_code/verify.py
code served (permissive licence) · get_code("f48242a57f021060")
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 bool, 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 networkx as nx

# Create a small graph
G = nx.Graph()
G.add_edges_from([(0, 1), (1, 2), (2, 3)])

# Create a valid vertex cover (must include at least one endpoint of each edge)
vc = {1, 2}

ARGS = {
    "G": G,
    "vc": vc,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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
verification Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from cxjdavin/subset-verification-and-search-algorithms-for-causal-dags
pointer only · get_code("df94980154fcbc1c")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

compute_minimum_vertex_cover Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from cxjdavin/subset-verification-and-search-algorithms-for-causal-dags
pointer only · get_code("3f45d429b6f29f13")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

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, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 later) and 2 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
compute_minimum_vertex_cover 1 other paper
1 later
2301.03180 (2023-01)
Subset verification and search algorithms for causal DAGs
get_adj_list 1 other paper
1 later
2301.03180 (2023-01)
Subset verification and search algorithms for causal DAGs
verification 1 other paper
1 later
2301.03180 (2023-01)
Subset verification and search algorithms for causal DAGs

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

We study two problems related to recovering causal graphs from interventional data: (i) $\textit{verification}$, where the task is to check if a purported causal graph is correct, and (ii) $\textit{search}$, where the task is to recover the correct causal graph. For both, we wish to minimize the number of interventions performed. For the first problem, we give a characterization of a minimal sized set of atomic interventions that is necessary and sufficient to check the correctness of a claimed causal graph. Our characterization uses the notion of $\textit{covered edges}$, which enables us to obtain simple proofs and also easily reason about earlier known results. We also generalize our results to the settings of bounded size interventions and node-dependent interventional costs. For all the above settings, we provide the first known provable algorithms for efficiently computing (near)-optimal verifying sets on general graphs. For the second problem, we give a simple adaptive algorithm based on graph separators that produces an atomic intervention set which fully orients any essential graph while using $\mathcal{O}(\log n)$ times the optimal number of interventions needed to $\textit{verify}$ (verifying size) the underlying DAG on $n$ vertices. This approximation is tight as $\textit{any}$ search algorithm on an essential line graph has worst case approximation ratio of $Ω(\log n)$ with respect to the verifying size. With bounded size interventions, each of size $\leq k$, our algorithm gives an $\mathcal{O}(\log n \cdot \log k)$ factor approximation. Our result is the first known algorithm that gives a non-trivial approximation guarantee to the verifying size on general unweighted graphs and with bounded size interventions.

For agents

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

get_harvested_code_for_paper("2206.15374")
get_code_for_paper("2206.15374")
have("2206.15374")

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

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

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

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

Connect an agent — have() is free.