alphaFeedback

WorksMathematics

A counterexample to a conjecture of Graffiti.pc on the forest number

AI contributions
  • Anthropic Claude Code Opus 5.5 Ultracode
View details
Ancillary data
2 code links
View

Abstract

Conjecture 66 of Graffiti.pc bounds the order of a largest induced forest of a connected graph from below by the even mode of the degrees of its complement divided by its average degree. We show that it is false, under every reading of its definitions and by an unbounded margin.

Introduction

Graffiti.pc is a program written by DeLaViña [3] after Fajtlowicz’s Graffiti [5]; it proposes inequalities between graph invariants that hold on its database of graphs. DeLaViña’s list Written on the Wall II [4] records its conjectures with their status. Conjecture 66, generated on 25 March 2004, is still marked as open (in the version of 26 July 2026). This note shows that it is false. The proofs are by hand; as in [2], every finite statement is also re-checked by computer, and the counterexamples are also confirmed in the Lean proof assistant (§ 3 and Appendix § 4).

All graphs are finite and simple. For a graph GG with nn vertices and mm edges, deg⁡avg(G)=2m/n\operatorname{deg}_{\mathrm{avg}}(G)=2m/n is the average degree and G‾\overline{G} the complement, in which a vertex of degree dd in GG has degree n−1−dn-1-d. The forest number f(G)f(G) is the largest number of vertices of an induced subgraph of GG that is a forest. The list defines the even mode of a graph as “the most frequently occurring degree that is an even integer”, with even_mode⁡min⁡\operatorname{even\_mode}_{\min} the smallest one when several are equally frequent. We write em⁡(H)\operatorname{em}(H) for this number: among the even values in the degree sequence of HH, the most frequent one, and the smallest of these in case of a tie. Conjecture 66 reads as follows in [4].

Conjecture 66. If GG is a simple connected graph, then

f(G)≥2⌈em⁡(G‾)deg⁡avg(G‾)⌉f(G) \ge2\left\lceil\frac{\operatorname{em}(\overline{G})}{\operatorname{deg}_{\mathrm{avg}}(\overline{G})} \right\rceil

The definition of the even mode also admits a second reading: the smallest even value among the most frequent degrees, defined only when some most frequent degree is even. And while the statement uses ⌈⋅⌉\lceil\cdot\rceil, the definitions that the list attaches to it are those of ff, the even mode, the complement, the average degree, and the floor function ⌊⋅⌋\lfloor\cdot\rfloor. The list also records that in 2008 all 11,716,571 connected graphs with 10 vertices were added to the database of Graffiti.pc (see its notes to Conjectures 42 and 187). We show in § 3 that the printed conjecture fails on seven of these graphs, while the version with ⌊⋅⌋\lfloor\cdot\rfloor holds on all of them; so the floor may well be what the program meant. We therefore treat all four readings.

For c≥1c \ge1 let HcH_c be the graph made of cc disjoint copies Q1,…,QcQ_1,\ldots,Q_c of the complete graph K4K_4, with vertices xi,0,xi,1,xi,2,xi,3x_{i,0},x_{i,1},x_{i,2},x_{i,3} in QiQ_i, together with the c−1c-1 edges xi,1xi+1,0x_{i,1}x_{i+1,0} for 1≤i<c1 \le i < c (Figure 1.1).

Chains of complete graphs $Q_1,\ldots,Q_c$

Figure 1.1. The graph HcH_c: copies Q1,…,QcQ_1,\ldots,Q_c of K4K_4, each drawn as a tetrahedron, joined by the edges xi,1xi+1,0x_{i,1}x_{i+1,0}. The shaded vertices xi,2,xi,3x_{i,2},x_{i,3} induce a forest of order 2c2c.

Theorem 1.1. For every c≥1c \ge1, f(Hc)=2cf(H_c)=2c, and the right side of Conjecture 66 for HcH_c equals 2⌈qc⌉2\lceil q_c\rceil with

qc=8c(c−1)7c−1,q_c=\frac{8c(c-1)}{7c-1},

under both readings of the even mode. Consequently Conjecture 66 fails for HcH_c if and only if c≥8c \ge8, and the conjecture with ⌊⋅⌋\lfloor\cdot\rfloor in place of ⌈⋅⌉\lceil\cdot\rceil fails for HcH_c if and only if c≥14c \ge14. In both cases the right side exceeds f(Hc)f(H_c) by at least 2⌊(c−7)/7⌋2\lfloor(c-7)/7\rfloor, which tends to infinity.

Theorem 1.2. No connected graph with 2 to 9 vertices violates any of the four readings. Among the 11,716,571 connected graphs with 10 vertices, exactly 7 violate Conjecture 66 as printed, 5 violate it when the even mode is read in the second way, and none violates either reading with $\lfloor\cdot\rfloor.

The smallest member of the family that refutes all four readings, H14H_{14}, has 56 vertices. We did not determine the smallest counterexample to the readings with ⌊⋅⌋\lfloor\cdot\rfloor; the smallest one we found has 37 vertices (Remark 2.2).

The chains of complete graphs

Lemma 2.1. f(Hc)=2cf(H_c)=2c.

Proof. Three vertices of one QiQ_i induce a triangle, so an induced forest contains at most two vertices of each QiQ_i; since the QiQ_i partition the vertex set, it has at most 2c2c vertices. The 2c2c vertices xi,2,xi,3x_{i,2},x_{i,3} induce cc disjoint edges, which form a forest.

Lemma 2.2. HcH_c is connected, has 7c−17c-1 edges, and deg⁡avg(Hc)=(7c−1)/(2c)\operatorname{deg}_{\mathrm{avg}}(H_c)=(7c-1)/(2c). It has 2c+22c+2 vertices of degree 3 and 2c−22c-2 vertices of degree 4. In both readings the even mode of Hc‾\overline{H_c} equals 4c−44c-4.

Proof. The copies QiQ_i are connected and consecutive ones are joined by an edge, so HcH_c is connected; it has 6c6c edges inside the copies and c−1c-1 between them. Every vertex has degree 3 inside its copy, and the 2(c−1)2(c-1) endpoints xi,1x_{i,1} (i<ci<c) and xi,0x_{i,0} (i>1i>1) of the joining edges, which are distinct, have one more neighbour. In Hc‾\overline{H_c}, which has n=4cn=4c vertices, the degrees are therefore 4c−44c-4, which is even, taken 2c+22c+2 times, and 4c−54c-5, which is odd, taken 2c−22c-2 times. So 4c−44c-4 is the only even degree of Hc‾\overline{H_c}, and it is also its most frequent degree, because 2c+2>2c−22c+2>2c-2.

Lemma 2.3. Let c≥1c\geq1 and qc=8c(c−1)/(7c−1)q_c=8c(c-1)/(7c-1). Then ⌈qc⌉≥c+1\lceil q_c\rceil\geq c+1 if and only if c≥8c\geq8, and ⌊qc⌋≥c+1\lfloor q_c\rfloor\geq c+1 if and only if c≥14c\geq14. For c≥7c\geq7,

⌊qc⌋−c≥⌊c−77⌋.\lfloor q_c\rfloor-c\geq\left\lfloor\frac{c-7}{7}\right\rfloor.

Proof. We have

qc−c=8c2−8c−7c2+c7c−1=c(c−7)7c−1.q_c-c=\frac{8c^2-8c-7c^2+c}{7c-1}=\frac{c(c-7)}{7c-1}.

Since cc is an integer, ⌈qc⌉≥c+1\lceil q_c\rceil\geq c+1 if and only if qc>cq_c>c, that is, c>7c>7. Next, qc≥c+1q_c\geq c+1 if and only if c(c−7)≥7c−1c(c-7)\geq7c-1, that is, c2−14c+1≥0c^2-14c+1\geq0. The roots of t2−14t+1t^2-14t+1 are 7±487\pm\sqrt{48}, which lie in (0,1)(0,1) and (13,14)(13,14), so for positive integers cc this holds exactly when c≥14c\geq14. Finally, for c≥7c\geq7 we have c/(7c−1)≥1/7c/(7c-1)\geq1/7 and c−7≥0c-7\geq0, so qc−c≥(c−7)/7q_c-c\geq(c-7)/7, and taking integer parts gives the last claim.

Proof of Theorem 1.1. By Lemma 2.2, under either reading of the even mode,

em⁡(Hc‾)deg⁡avg(Hc)=(4c−4)⋅2c7c−1=qc.\frac{\operatorname{em}(\overline{H_c})}{\operatorname{deg}_{\mathrm{avg}}(H_c)} =\frac{(4c-4)\cdot2c}{7c-1}=q_c.

By Lemma 2.1, Conjecture 66 fails for HcH_c exactly when 2⌈qc⌉>2c2\lceil q_c\rceil>2c, and the version with the floor fails exactly when 2⌊qc⌋>2c2\lfloor q_c\rfloor>2c; Lemma 2.3 identifies these cases. The difference between the right side and f(Hc)f(H_c) is at least 2⌊qc⌋−2c≥2⌊(c−7)/7⌋2\lfloor q_c\rfloor-2c\geq2\lfloor(c-7)/7\rfloor.

For example, H8H_8 has 32 vertices, f(H8)=16f(H_8)=16 and q8=448/55≈8.15q_8=448/55\approx8.15, so the printed right side is 18. For H14H_{14}, with 56 vertices, f(H14)=28f(H_{14})=28 and q14=1456/97≈15.01q_{14}=1456/97\approx15.01, so the right side is 32 with ⌈⋅⌉\lceil\cdot\rceil and 30 with $\lfloor\cdot\rfloor.

Remark 2.1. The family is close to extremal in the following sense. Alon, Kahn and Seymour [1] proved that f(G)≥∑vmin⁡{1,2/(d(v)+1)}f(G)\geq\sum_v\min\{1,2/(d(v)+1)\}, with equality for disjoint unions of complete graphs. For a connected graph whose degrees are all close to dd, the right side of Conjecture 66 is at most about 2n/d2n/d while f(G)f(G) is at least about 2n/(d+1)2n/(d+1); a counterexample therefore needs the near-equality of disjoint cliques, a large even mode of the complement, and few extra edges to make the graph connected. The chains HcH_c have all three.

Remark 2.2. Let TT be the graph made of 12 disjoint triangles aibicia_i b_i c_i, the 11 edges biai+1b_i a_{i+1}, and one pendant vertex attached to a1a_1. It has 37 vertices and 48 edges, f(T)=25f(T)=25 (at most two vertices of each triangle, and the pendant vertex), and the only even degree of T‾\overline{T} is 34, taken by the 13 vertices of degree 2 in TT. With the first reading of the even mode, 34/deg⁡avg(T‾)=34⋅37/96≈13.1034/\operatorname{deg}_{\mathrm{avg}}(\overline{T})=34\cdot37/96\approx13.10, so the right side is 26 with ⌊⋅⌋\lfloor\cdot\rfloor and 28 with ⌈⋅⌉\lceil\cdot\rceil. The most frequent degree of T‾\overline{T} is the odd number 33, so TT says nothing about the second reading.

Small graphs

Let G10G_{10} be the graph obtained from a triangle t1t2t3t_1t_2t_3 and a complete graph on {q1,q2,q3,q4}\{q_1,q_2,q_3,q_4\} by adding the edge t1q1t_1q_1 and three pendant vertices ℓ1,ℓ2,ℓ3\ell_1,\ell_2,\ell_3, with ℓi\ell_i adjacent to qiq_i (Figure 3.1).

The graph $G_{10}$ with shaded vertices inducing a forest

Figure 3.1. The graph G10G_{10}. The shaded vertices induce a forest of order 7=f(G10)7=f(G_{10}).

Proposition 3.1. G10G_{10} is a counterexample to Conjecture 66 as printed, under both readings of the even mode: f(G10)=7f(G_{10})=7, while the right side is 8.

Proof. An induced forest contains at most two vertices of the triangle, at most two of the K4K_4, and the three pendant vertices, so f(G10)≤7f(G_{10})\leq7; the seven shaded vertices in Figure 3.1 induce the forest t2t3t_2t_3, ℓ2q2q3ℓ3\ell_2q_2q_3\ell_3, ℓ1\ell_1. The degrees of G10G_{10} are 5 (q1q_1), 4 (q2,q3q_2,q_3), 3 (t1,q4t_1,q_4), 2 (t2,t3t_2,t_3) and 1 (ℓ1,ℓ2,ℓ3\ell_1,\ell_2,\ell_3); so m=13m=13, degavg⁡(G10)=13/5\operatorname{degavg}(G_{10})=13/5, and the degrees of G10G_{10} are 4, 5, 5, 6, 6, 7, 7, 8, 8, 8. The value 8 occurs three times and every other value at most twice, so it is the even mode under both readings, and the right side is 2⌈8⋅5/13⌉=2⌈40/13⌉=82\lceil8\cdot5/13\rceil=2\lceil40/13\rceil=8.

With ⌊⋅⌋\lfloor\cdot\rfloor the right side for G10G_{10} is 2⌊40/13⌋=62\lfloor40/13\rfloor=6, and the inequality holds.

Theorem 1.2 comes from an exhaustive search. The connected graphs with at most 10 vertices were generated with geng from nauty [7], and for each of them the four right sides were computed in integer arithmetic (the quotient x/degavg⁡(G)x/\operatorname{degavg}(G) equals xn/(2m)xn/(2m)) and compared with the forest number, computed by branch and bound over vertex subsets. Table 3.1 gives the results. The seven counterexamples with 10 vertices all have 13 edges, three pendant vertices and forest number 7; their graph6 codes are I?ACJ@PqW (this is G10G_{10}), I?AACJafO, I?AACIdu_, I?AADJAfO, I?AADHQbW, I?ABAeKOw and I?`CR@PoW, and the last two violate only the first reading of the even mode.

nngraphsfirst, ⌈⋅⌉\lceil\cdot\rceilsecond, ⌈⋅⌉\lceil\cdot\rceilfirst, ⌊⋅⌋\lfloor\cdot\rfloorsecond, ⌊⋅⌋\lfloor\cdot\rfloor
2–812,1120000
9261,0800000
1011,716,5717500

Table 3.1. Counterexamples among the connected graphs with nn vertices. A dash means that no graph of that order has an even mode under the reading, or none violates it; the readings are the even mode as defined (first) or as the smallest even most frequent degree (second), each with ⌈⋅⌉\lceil\cdot\rceil or ⌊⋅⌋\lfloor\cdot\rfloor.

Verification

The proofs above use no computation. The computer checks the finite claims and the search of § 3, independently in C, C++, Bash, Python, Julia and Lean; all files are in the repository listed under Data and code availability, where scripts/run_all.sh runs them.

  1. C. wowii66.c performs the search of § 3 on graph6 input, and for c≤300c\leq300 builds HcH_c and checks Lemmas 2.1–2.3: the degrees, the even modes and both right sides, the partition into cliques and the explicit forest of order 2c2c, and f(Hc)=2cf(H_c)=2c by branch and bound for c≤6c\leq6.

  1. C++. wowii66.cpp repeats both computations with no shared code and a different method for ff (a greedy lower bound, and an exact value over all vertex subsets only when that bound is below the right side). Its output for all connected graphs with at most 10 vertices is identical, line for line, to that of the C program.

  1. Bash (shell integer arithmetic only): G10G_{10}, with f(G10)=7f(G_{10}) = 7 over all 1024 vertex subsets; HcH_c for c≤40c \le40; and the inequalities of Lemma 2.3 for c≤20000c \le20000.

  1. Python (exact rational arithmetic): G10G_{10} and the seven graphs of Table 3.1, with ff over all vertex subsets and a colour-refinement check that the seven are pairwise non-isomorphic; every labelled connected graph with at most 6 vertices; HcH_c for c≤60c \le60, with ff over all subsets for c≤4c \le4; and the inequalities of Lemma 2.3 for c≤105c \le10^{5}.

  1. Julia (exact rational arithmetic): the same graphs, HcH_c for c≤300c \le300, and f(Hc)=2cf(H_c) = 2c over all 24c2^{4c} vertex subsets for c≤5c \le5.

  1. Lean 4 [8]: a self-contained file without Mathlib computes, in the kernel, every quantity of Proposition 3.1 from the edge list of G10G_{10}, including f(G10)=7f(G_{10}) = 7 over all 1024 vertex subsets, and proves that Conjecture 66 fails for G10G_{10} under both readings; the proof depends only on the axiom propext.

  1. Lean 4 with Mathlib [6]: a second file defines the forest number, both readings of the even mode and the average degree for every finite simple graph, and proves for every cc that HcH_c is connected, that f(Hc)≤2cf(H_c) \le2c, the degrees of Hc‾\overline{H_c}, both even modes and both right sides. It concludes that HcH_c violates Conjecture 66 under both readings for every c≥8c \ge8, and the version with ⌊⋅⌋\lfloor\cdot\rfloor for every c≥14c \ge14. The proof uses only the standard axioms propext, Classical.choice and Quot.sound.

Declarations

Funding. No funding was received for conducting this study.

Competing interests. The author has no competing interests to declare that are relevant to the content of this article.

Data and code availability. The programs, their outputs and the Lean files are available at https://github.com/creelie/eConjectureWOWII66 and archived on Zenodo, https://doi.org/10.5281/zenodo.23254096.

Use of generative AI. The author used Claude (Anthropic) for programming, computation and drafting; the author checked the mathematics and takes full responsibility for the content.

References

  1. [1]N. Alon, J. Kahn, P. D. Seymour, Large induced degenerate subgraphs, Graphs Combin. 3 (1987) 203–211.DOI
  2. [2]D. Bhattacharjee, P. Mandal, U. Bhattacharya, Resolving Erdős–Ulam monochromatic union-closed family conjectures, preprint (2026), arXiv:2610.02833.
  3. [3]E. DeLaViña, Graffiti.pc: a variant of Graffiti, In: Graphs and Discovery, DIMACS Ser. Discrete Math. Theoret. Comput. Sci. 69, Amer. Math. Soc., Providence, 2005, pp. 71–79.
  4. [4]E. DeLaViña, Written on the Wall II (conjectures of Graffiti.pc), http://cms.uhd.edu/faculty/delavinae/research/wowII/; version of 26 July 2026 archived at https://web.archive.org/web/20260726061534/http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html.
  5. [5]S. Fajtlowicz, On conjectures of Graffiti, Discrete Math. 72 (1988) 113–118.
  6. [6]The matlab Community, The Lean mathematical library, In: Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, ACM, New York, 2020, pp. 367–381.
  7. [7]B. D. McKay, A. Piperno, Practical graph isomorphism, II, J. Symbolic Comput. 60 (2014) 94–112.
  8. [8]L. de Moura, S. Ullrich, The Lean 4 theorem prover and programming language, In: Automated Deduction – CADE 28, Lecture Notes in Comput. Sci. 12699, Springer, Cham, 2021, pp. 625–635.DOI

Paper details

vlnc:W_ycn3mbfd
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Mathematics

Anthropic Claude Code Opus 5.5 Ultracode · View statement →

Looking for related papers…
Contents