Jose-dev/graphkind-universos
Español · Page (ES) · Page (EN) · Paper · Proof · Reproduce Abstract We classify the operators under which the color refinement (1-WL) profile of a graph is invariant, inside a parametric family of observation universes (f, ι) — f compresses neighborhood counts and ι is an involution. The engine proposed and verified that the color refinement partition is complement-invariant (call it T4; the conjecture mechanism was human-built), verified it on 2,131… See the full description on the dataset page: https://huggingface.co/datasets/Jose-dev/graphkind-universos.
<p align="center"> <img src="assets/banner.png" width="100%" alt="GraphKind — Universes of color refinement"> </p>
<p align="center"> <a href="https://github.com/cripto-bot/graphkind-universos-v2/actions"><img src="https://github.com/cripto-bot/graphkind-universos-v2/actions/workflows/ci.yml/badge.png" alt="CI"></a> <img src="https://img.shields.io/badge/status-preprint-0b6b3a" alt="preprint"> <img src="https://img.shields.io/badge/verification-V1%E2%80%93V12%20asserts-26557a" alt="verifications"> <img src="https://img.shields.io/badge/proof-(%E2%87%90)%20proved%20%C2%B7%20(%E2%87%92)%20verified-9a7b1f" alt="proof status"> </p>
<p align="center"> <a href="README.es.md">Español</a> · <a href="index.html">Page (ES)</a> · <a href="index.en.html">Page (EN)</a> · <a href="paper/PAPER.md">Paper</a> · <a href="paper/PRUEBA-CARACTERIZACION.md">Proof</a> · <a href="reproduce.sh">Reproduce</a> </p>
Abstract
We classify the operators under which the color refinement (1-WL) profile of a graph is invariant, inside a parametric family of observation universes (f, ι) — f compresses neighborhood counts and ι is an involution. The engine proposed and verified that the color refinement partition is complement-invariant (call it T4; the conjecture mechanism was human-built), verified it on 2,131,019 exhaustive graphs (n≤7, 100.0000%) plus 19,407 adversarial ones, and a written proof was produced (injectivity of the neighborhood-multiset subtraction). Parameterizing the universe, the data — not the authors — selected the count law T4 ⟺ f(1) ≠ f(2) (34/34 and 102/102), and further probing produced a characterization:
$$ T4(\iota, f)\ \text{holds} \iff \iota \in Sn \cdot K \quad\text{and}\quad \bigl(\iota\ \text{changes the pair} \implies f(1) \neq f(2)\bigr), \qquad K = \{\mathrm{id},\ \mathrm{comp\dir},\ \mathrm{transp},\ \mathrm{comp\transp}\} \cong \mathbb{Z}2 \times \mathbb{Z}_2 . $$
The forward direction is proved (count mechanism); the converse is verified exhaustively in n=4 (96 exact survivors, zero outside), targeted in n=5 (6,424 witnesses), and on real data (molecules 100/100, CST 94/94). Changing the type of the invariant — partition → orbit → distribution → observer — T4 dies in a deterministic Z₃ universe, dies under process randomness, survives under object randomness, and is inherited by the whole k-FWL hierarchy (≡ (k+1)-WL; 51/51). Every claim is reproducible with one command, each verification carrying an assert with the exact number. Limits are declared; five of our own bugs were caught by controls and are documented, not deleted.
Contributions
- T4, proposed and verified by the engine:
CR_k(G) = CR_k(Ḡ)as partitions (not merely equal multisets of class sizes) — with a written proof. - The count law
f(1) ≠ f(2), selected by the data after two human hypotheses were refuted by the table. - The characterization
Sₙ·Kwith (⇐) proved and (⇒) verified; the missing piece — uniformity — identified by falsification. - The type change: T4 across deterministic, dynamic, probabilistic and observer universes.
- Method: freeze-before-interpret, negative controls, and five own bugs caught and recorded.
1. The theorem (T4)
Let G = (V, E) be a finite simple graph, Ḡ its complement, and CR_k(G) the partition of V induced by round k of color refinement with initial colors f(type, degree).
Theorem (EXP-086). For everyGand everyk ≥ 0: $$CRk(G) = CRk(\bar G)$$ as partitions of the same vertex setV(color names differ; the classes are identical). Corollary (T4). The multisets of class sizes of the stable partitions ofCR(G)andCR(Ḡ)coincide, and they coincide at every round.
<p align="center"> <img src="assets/g-vs-gbar.png" width="720" alt="G and its complement share the same partition"> </p>
<p align="center"> <img src="assets/t4-particion.png" width="820" alt="Real data: Q3 and its complement, colored by WL class — the same partition"> <br><em>Real data: Q₃ and its complement, vertices colored by WL class — the partition is identical (T4).</em> </p> <p align="center"> <img src="assets/t4-evolucion.png" width="100%" alt="T4 round by round: G and its complement, colored by WL class at k=0..3"> <br><em>Real data: the WL refinement round by round (k=0…3) — G and its complement keep the same classes at every level.</em> </p>
Proof (sketch). Base. In Ḡ, deg_Ḡ(v) = n−1−deg_G(v); since d ↦ n−1−d is a bijection of degrees, the relation "same color" is the same in G and Ḡ. Step. Assume CR_k(G) = CR_k(Ḡ) =: P_k. For v ∈ V, the closed neighborhood in Ḡ is N_Ḡ[v] = V ∖ N_G(v), and its round-k color multiset is
$$M'k(v) = Tk - \bigl(Mk(v) - [\mathrm{color}k(v)]\bigr), \qquad Tk := \text{total color multiset of } Pk .$$
Since T_k is fixed, the map M_k(v) ↦ M'_k(v) is injective: u, v have the same closed-neighborhood multiset in G iff they do in Ḡ. Because color_{k+1}(v) is a deterministic function of (color_k(v), M_k(v)), the relation "same color" is preserved, hence CR_{k+1}(G) = CR_{k+1}(Ḡ). ∎
Status: written proof (one page), verified on 2,131,019 exhaustive graphs (n≤7), 19,407 adversarial, and 688/688 compatibility pairs; external review pending. Full text: `paper/PRUEBA-T4.md` · cycle: `paper/TEOREMA-UNIVERSOS.md`.
2. The count law
In the standard universe with an involution that changes the connected pair:
$$ T4\ \text{holds} \iff f(1) \neq f(2). $$
Mechanism. In the complement, a vertex with 1 neighbor in a class gets |c|−1 (which may be 2): if f collapses 1 and 2, the duality dies. What f does with 3, 4, 5… is irrelevant. Verified 34/34 (17 functions × 2 involutions, n≤6) and shielded 102/102 (formal definition of dual-global, 6 involutions × 17 functions).
<p align="center"> <img src="assets/universos-mapa.png" width="700" alt="The 34 universes of EXP-102: T4 holds iff f(1) != f(2)"> <br><em>Real data: the 34 universes (17 functions × 2 involutions) — T4 holds exactly when f(1) ≠ f(2).</em> </p>
3. The characterization
<p align="center"> <img src="assets/klein.png" width="720" alt="The Klein group: two halves, two conditions"> </p>
Forward direction (proved). For ι = σ∘s∘c:
The non-obvious piece is uniformity: preserving the pair is not enough if the action is not uniform (flip_inc0 preserves the pair and dies 0/24). Outside Sₙ·K, everything dies.
Converse (verified).
<p align="center"> <img src="assets/caracterizacion.png" width="620" alt="Real data: of the 528 induced iotas at n=4, exactly the 96 uniform ones survive"> <br><em>Real data: of the 528 induced iotas at n=4, exactly the 96 uniform ones survive (= 24·4).</em> </p>
Autonomous search. Given a language of 11 primitives + 3 combinators (~400 recipes) and a rate/MDL criterion, the engine found that the best valid witness is the cycle (99.63%, complexity 1) — better than the human construction (97.8%). No valid recipe reaches 100%.
4. From conjecture to theorem candidate
<p align="center"> <img src="assets/pipeline.png" width="100%" alt="From autonomous conjecture to theorem candidate"> </p>
5. The type change
<p align="center"> <img src="assets/universos.png" width="100%" alt="The invariant changes type"> </p>
<p align="center"> <img src="assets/cascada.png" width="720" alt="Observer cascade: 26 to 0"> </p>
6. Method
- Freeze before interpreting: every experiment freezes
results_frozen.jsonfirst. - Negative controls: the check that caught the false "proof" (52/104 uniform failures) and the wrongly built Shrikhande (
is_isomorphic = True). - Five own bugs caught and recorded (not deleted):
The method is part of the result.
7. Reproduce
git clone https://github.com/cripto-bot/graphkind-universos-v2
cd graphkind-universos-v2
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
bash reproduce.sh # V1–V12 (~10-15 min)
bash reproduce.sh --rapido # V1, V3, V5, V8, V10, V11 (~3 min)Every verification carries an assert with the exact number from the paper: if anything does not match, it fails. CI runs the fast subset on every push and the full suite on demand.
7b. Corrections (2026-09-13)
Independent verification (EXP-159 of the lab) found a naming error and two certificates were added:
- k-FWL, not "k-WL" (D-005). The kernel implemented in
codigo/wl.pyis the correlated one (folklore, k-FWL), equivalent to (k+1)-WL. The plain name "k-WL" is the standard variant (position- separated multisets), which is strictly weaker: standard 3-WL does NOT separate Rook from Shrikhande; 3-FWL (≡ 4-WL) does. The code, docstrings and prints now sayk-FWL (≡ (k+1)-WL). V3/V5 are unchanged numerically. - V10 — hash certificate: the 12-hex hash does not alter any partition (12-hex partition == 64-hex partition over 74 graphs × 17 f).
- V11 — convergence certificate: the refinement reaches its stable partition within the n+2 cap (stable == fixed n+2 rounds over 1098 graphs × 17 f);
wl_sym/wl_k_colorsnow stop at convergence. - V12 — classification scope:
clasificar_involucionclassifies on one graph; V12 verifies that the class is constant across all graphs n=4 for the tested (ι, f). The universal statement remains the open direction of the paper.
The numerical results of the paper are unchanged; the naming and the certificates are the corrections.
7c. The universe arc (v2, EXP-162 → 169)
The v2 adds the universe arc (multilayer, matrix, hypergraphs, arities, dual), with its freezes in resultados/ and V13–V16 in codigo/verificaciones_v2.py:
<p align="center"> <img src="assets/multicapa-ley.png" width="760" alt="Multilayer law"> <br><em>The multilayer coherence law (EXP-162/163): total holds, per-layer dies in the canonical variant.</em> </p>
<p align="center"> <img src="assets/escalera-kstar.png" width="760" alt="k ladder"> <br><em>The k\(L) ladder is flat and corrects EXP-162's k\*=2.</em> </p>
Results: (1) multilayer — the coherence law: total holds (1298/1298, 1404/1404), per-layer dies only in the canonical variant (6.9%/7.4%); the preserving group is exactly the uniform one; the k* ladder is flat (corrects EXP-162's k*=2); (⇐) proved, (⇒) open. (2) matrix — the frontier moves with the observer, not with typing. (3) hypergraphs — prediction registered and correct (1831/1831). (4) arities — the ladder holds; the per-arity transplant fails (the law is of channels). (5) per-arity dual — assimilated: partition 100%, saving 14.37% vs 10.26%.
<p align="center"> <img src="assets/matriz-universo-observador.png" width="860" alt="Matrix"> <br><em>The frontier moves with the observer, not with typing.</em> </p>
<p align="center"> <img src="assets/hipergrafos-aridades.png" width="820" alt="Hypergraphs"> <br><em>Prediction correct (1831/1831) and the arity transplant that fails.</em> </p>
<p align="center"> <img src="assets/dual-aridad.png" width="760" alt="Dual"> <br><em>Per-arity dual: 14.37% saving with guaranteed partition.</em> </p>
<p align="center"> <img src="assets/trayectoria-refinamiento.png" width="840" alt="Trajectory"> <br><em>The refinement trajectory: T4 and the multilayer divergence.</em> </p>
<p align="center"> <img src="assets/aridades.png" width="840" alt="Arities"> <br><em>The arity ladder and the failing transplant.</em> </p>
7d. The Holy Grail (SG-01→03)
- Completeness in the class: the minimal family is {WL, 2-WL, 3-WL} with C_8 = 0 over 76,205,685 pairs (n≤8); leave-one-out: k-WL 3 does the work; the n=16 frontier (Rook/Shri) is separated only by the full family. Freeze:
resultados/SG-01_results_frozen.json.
<p align="center"> <img src="assets/frontera-Cn.png" width="760" alt="Frontier C_n"> <br><em>The frontier curves per observer (SG-01/03, EXP-119).</em> </p>
- The price of T4: the complete invariant is not complement-invariant; the quotient
G~Ḡmerges 6,168 pairs. - Individualization: *i\=1 at n≤8 (13,597 graphs); i\=2* at Rook/Shrikhande (IR1 no, IR2 yes). The IR↔k-WL lattice: at n≤9 the complete ones collapse (vacuous equivalence); anchors A/B, C not observed. Freezes:
SG-02,SG-03.
<p align="center"> <img src="assets/santo-grial.png" width="820" alt="Holy Grail"> <br><em>Completeness, T4's price and i\*.</em> </p>
- The multilayer proof ships in
paper/PRUEBA-MULTICAPA.md((⇐) proved, (⇒) open) and the transversal patterns +DECISION_LOG(D-001→D-017) inpaper/DECISION_LOG.md.
7e. SG-04: the door (n=10 exhaustive)
- 0 collisions over 12,005,168 exhaustive n=10 graphs (KW3/IR1p, 11.1 h) → the first incompleteness is not at n=10.
- Directed: 9 regular combos n=11–15 (cap 5,000) + 10 Cayley/Paley/Q4 pairs → 0 failures.
- The first known failure remains at n=16 (Rook/Shri): separated by elementary descriptors (SNFL, AUT, CICLOS, LOCAL, HOM2) + KF3/IR2p. Freeze:
resultados/SG-04_results_frozen.json(certificate V19). - Registered correction:
geng -d 3(separated) fails; it is-d3.
8. Repository structure
paper/PAPER.md the paper (bilingual abstract, method, results, §12 v2 arc)
paper/TEOREMA-UNIVERSOS.md the full cycle EXP-099→119
paper/PRUEBA-CARACTERIZACION.md the (⇐) proof and the status of (⇒)
codigo/universos.py the law inside the engine (t4_garantizado, oracle)
codigo/wl.py symmetric WL + correlated k-FWL (≡ (k+1)-WL)
codigo/verificaciones.py V1–V12 with asserts of the exact numbers
paper/PRUEBA-MULTICAPA.md (⇐) proved, (⇒) open (EXP-162)
paper/DECISION_LOG.md laboratory decisions D-001→D-017
resultados/*.json original freezes (EXP-102..169 + SG-01..04)
resultados/atlas/*.json the atlas: 15 universes (EXP-105)
assets/*.svg figures
index.html · index.en.html presentation pages (ES/EN)9. Limits and open problems
- (⇒) for all n: open. Verified in n≤4 exhaustive, n=5 targeted, and real data; the ∀n argument is the remaining step.
- Sufficiency of `f(1)≠f(2)` for arbitrary `f`: verified in the catalogs; general proof open.
- The full affine space n≥5 is intractable (involutions of S₂₀); the tested space is the induced one plus random affine.
- T4: written proof, external review pending; Lean formalization not available in the environment.
- Universes: our own definitions, declared; the space is open.
- Data: ChEMBL (CC-BY 4.0), CodeSearchNet, UniProt, Pfam — cited; fixed samples by seed.
10. References (selection)
- Weisfeiler, Leman (1968). A reduction of a graph to a canonical form…
- Morgan (1965); Rogers, Hahn (2010). Extended-connectivity fingerprints.
- Dvořák (2010); Dell, Arvind, Larsson (2018). Homomorphisms and 1-WL.
- Babai (2016). Graph isomorphism in quasipolynomial time.
- Xu et al. (2019). How powerful are graph neural networks?
- Morris et al. (2019). Weisfeiler and Leman go neural.
- Zamfirescu (1980). Non-traceable 3-connected planar cubic graphs.
- Lovász (1970). Problem on vertex-transitive graphs.
11. The laboratory behind this result
This paper is one thread of a 120-experiment laboratory (EXP-000 → EXP-120; 26,384 lines of run.py; 321 KB of frozen results) spanning six arcs. Every number here is anchored to a frozen artifact, and a meta-experiment (EXP-120) verifies the laboratory's key claims: 26/26 hits.
Transversal patterns: freeze before interpreting · negative controls (single-pass shuffle is not evidence: it varies 0.05–0.84) · five of our own bugs caught and recorded, not deleted · four types of result: kinds → laws → theorems → universes.
Full map: `paper/MAPA-DEL-LABORATORIO.md`.
12. The engine: how it works and its measured power
<p align="center"> <img src="assets/motor-como-funciona.png" width="100%" alt="How it works: iterative 1-WL refinement on a real 8-node example"> <br><em>The engine pipeline: data → graph → label₀ → round → STOP → kinds; the example shows rounds 3 → 5 → 5 → 5 up to the stable partition.</em> </p>
<p align="center"> <img src="assets/motor-potencia.png" width="100%" alt="The engine's power, in real numbers"> <br><em>Measured power: parity with Morgan (AUC 0.9608 vs 0.9541), compression 3.00× (molecules) and 187.5× (code), <code>refine_dual</code> 10.3×, dual-normalization saving 40.5%, universe oracle 87/87, engine tests 104/104, T4 bank 2.13M.</em> </p>
<p align="center"> <sub>© 2026 Juri (cripto-bot) · preprint · <a href="LICENSE">CC-BY-4.0</a> license (attribution required).<br> This document claims no priority over open problems: it reports a verified characterization in a bounded domain.<br> Cite as: Argaña Silguero, J. (2026). <em>GraphKind — Universes v2</em> [software and data]. Zenodo. <a href="https://doi.org/10.5281/zenodo.22747350">10.5281/zenodo.22747350</a> (concept DOI; v2.0.0: <a href="https://doi.org/10.5281/zenodo.22747351">10.5281/zenodo.22747351</a>) · see <a href="CITATION.cff">CITATION.cff</a>.</sub> </p>
