SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.19379 · 2024

Automated conjecturing with \emph{TxGraffiti}

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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; 9 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/2409.19379.json · badge: /api/ran/2409.19379.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
RandyRDavila/TxGraffiti_APP canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
conjecture_to_dict Ran
ran; our contract draft was wrong, not the code
RandyRDavila/TxGraffiti_APP/txgraffiti_app.py
code served (permissive licence) · get_code("04f9d2145f6783ae")
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 fractions import Fraction

class Statement:
    def __init__(self, statement):
        self.statement = statement

class Hypothesis:
    def __init__(self):
        self.statement = "x > 0"

class Conclusion:
    def __init__(self):
        self.lhs = "f(x)"
        self.inequality = ">="
        self.slope = Fraction(3, 2)
        self.rhs = "g(x)"
        self.intercept = Fraction(1, 4)

class Conjecture:
    def __init__(self):
        self.hypothesis = Hypothesis()
        self.conclusion = Conclusion()
        self.symbol = "C1"
        self.touch = False

conjecture = Conjecture()

ARGS = {
    'conjecture': conjecture
}
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 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
filter_by_inequalities Ran
ran; our contract draft was wrong, not the code
RandyRDavila/TxGraffiti_APP/functions/filters.py
code served (permissive licence) · get_code("8709b32a9a3226e1")
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 torch
import numpy as np

# Stand-in class for conjecture objects
class Conjecture:
    def __init__(self, conclusion):
        self.conclusion = conclusion
    
    def __repr__(self):
        return f"Conjecture({self.conclusion})"

# Create sample conjectures with different conclusions
conj1 = Conjecture("a + b > c")
conj2 = Conjecture("x < y")
conj3 = Conjecture("p >= q")
conj4 = Conjecture("m + n > o")

conjectures = [conj1, conj2, conj3, conj4]

# Create known_inequalities set with some overlapping inequality strings
known_inequalities = {
    "a + b > c",
    "x < y",
    "other inequality"
}

ARGS = {
    "conjectures": conjectures,
    "known_inequalities": known_inequalities
}
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 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
filter_false_conjectures Ran
ran; our contract draft was wrong, not the code
RandyRDavila/TxGraffiti_APP/functions/filters.py
code served (permissive licence) · get_code("5988414f428b4a7c")
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 torch
import pandas as pd


class MockConjecture:
    """Stand-in conjecture class with false_graphs method."""
    def __init__(self, has_false_graphs=False):
        self.has_false_graphs = has_false_graphs
    
    def false_graphs(self, df):
        """Return empty DataFrame if conjecture is valid, non-empty if false."""
        if self.has_false_graphs:
            return pd.DataFrame({'graph': [1, 2]})
        else:
            return pd.DataFrame()


# Create a mock dataframe (used by conjectures)
mock_df = pd.DataFrame({
    'id': [1, 2, 3],
    'value': [10, 20, 30]
})

# Create conjectures: some valid (empty false_graphs), some invalid
conjectures = [
    MockConjecture(has_false_graphs=False),  # Valid
    MockConjecture(has_false_graphs=True),   # Invalid
    MockConjecture(has_false_graphs=False),  # Valid
]

ARGS = {
    'conjectures': conjectures,
    'df': mock_df
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas, 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 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
fraction_to_str Ran
ran; our contract draft was wrong, not the code
RandyRDavila/TxGraffiti_APP/txgraffiti_app.py
code served (permissive licence) · get_code("bdb963e670bbc9e2")
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.

from fractions import Fraction

ARGS = {
    'fraction': Fraction(3, 4)
}
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
read_invariants Ran
ran; our contract draft was wrong, not the code
RandyRDavila/TxGraffiti_APP/make_edgelists.py
code served (permissive licence) · get_code("87a71d935a00fb9a")
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 tempfile
import os

# Create a temporary file with some invariant data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("invariant_1: x > 0\n")
temp_file.write("invariant_2: y < 100\n")
temp_file.write("invariant_3: z == 5\n")
temp_file.close()

file_path = temp_file.name

ARGS = {
    "file_path": file_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 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
sort_conjectures Ran
ran; our contract draft was wrong, not the code
RandyRDavila/TxGraffiti_APP/functions/heuristics.py
code served (permissive licence) · get_code("aefbe03d3525b220")
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 torch
import numpy as np

class Conjecture:
    def __init__(self, touch):
        self.touch = touch

# Create a list of conjecture objects with different touch values
conjectures = [
    Conjecture(touch=0.5),
    Conjecture(touch=0.8),
    Conjecture(touch=0.3),
    Conjecture(touch=0.9),
    Conjecture(touch=0.1),
]

ARGS = {
    "conjectures": conjectures,
    "filter_touch": 0.2,
}
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 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
str_to_fraction Ran
ran; our contract draft was wrong, not the code
RandyRDavila/TxGraffiti_APP/txgraffiti_app.py
code served (permissive licence) · get_code("250892d68763ca68")
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 Fraction. 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 fractions import Fraction

ARGS = {
    "string": "3/4"
}
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 Fraction — a Fraction output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Fraction 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
theo Ran
ran; our contract draft was wrong, not the code
RandyRDavila/TxGraffiti_APP/functions/heuristics.py
code served (permissive licence) · get_code("87e58d671609060c")
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.

class Conjecture:
    def __init__(self, conclusion, hypothesis):
        self.conclusion = conclusion
        self.hypothesis = hypothesis
    
    def __eq__(self, other):
        if not isinstance(other, Conjecture):
            return False
        return self.conclusion == other.conclusion and self.hypothesis == other.hypothesis
    
    def __gt__(self, other):
        # hypothesis is a set; > means superset
        return self.hypothesis > other.hypothesis
    
    def __repr__(self):
        return f"Conjecture(conclusion={self.conclusion}, hypothesis={self.hypothesis})"


# Create test conjectures
# conj_one: conclusion="P", hypothesis={1, 2, 3, 4}
# conj_two: conclusion="P", hypothesis={1, 2} (redundant - less general)
# conj_three: conclusion="Q", hypothesis={1, 2}
# conj_four: conclusion="P", hypothesis={5, 6} (different conclusion pattern)

conjectures = [
    Conjecture(conclusion="P", hypothesis={1, 2, 3, 4}),
    Conjecture(conclusion="P", hypothesis={1, 2}),
    Conjecture(conclusion="Q", hypothesis={1, 2}),
    Conjecture(conclusion="P", hypothesis={5, 6}),
]

ARGS = {
    "conjectures": conjectures
}
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 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
weak_dalmatian Ran
ran; our contract draft was wrong, not the code
RandyRDavila/TxGraffiti_APP/functions/heuristics.py
code served (permissive licence) · get_code("5b99d3e7a8615b04")
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 torch
import numpy as np

class Conjecture:
    def __init__(self, sharps):
        self.sharps = sharps

# Create conjectures with different sets of "sharps"
conj1 = Conjecture(sharps={1, 2, 3})
conj2 = Conjecture(sharps={2, 3, 4})
conj3 = Conjecture(sharps={5, 6})
conj4 = Conjecture(sharps={1, 2})

conjectures = [conj1, conj2, conj3, conj4]

ARGS = {
    "conjectures": conjectures
}
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 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
get_user_input Not yet run
unverified (harvested, no recorded run)
RandyRDavila/TxGraffiti_APP/functions/ui_functions.py
code served (permissive licence) · get_code("2d6bbb99133e1f97")
How it ran

no invocation recorded.

Also present in other papers' code

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

\emph{TxGraffiti} is a data-driven, heuristic-based computer program developed to automate the process of generating conjectures across various mathematical domains. Since its creation in 2017, \emph{TxGraffiti} has contributed to numerous mathematical publications, particularly in graph theory. In this paper, we present the design and core principles of \emph{TxGraffiti}, including its roots in the original \emph{Graffiti} program, which pioneered the automation of mathematical conjecturing. We describe the data collection process, the generation of plausible conjectures, and methods such as the \emph{Dalmatian} heuristic for filtering out redundant or transitive conjectures. Additionally, we highlight its contributions to the mathematical literature and introduce a new web-based interface that allows users to explore conjectures interactively. While we focus on graph theory, the techniques demonstrated extend to other areas of mathematics.

For agents

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

get_harvested_code_for_paper("2409.19379")
get_code_for_paper("2409.19379")
have("2409.19379")

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

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

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

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

Connect an agent — have() is free.