Rainbow Diagrams in Multiple Disciplines
- Rainbow diagrams are context-dependent constructs that define layered, color-structured representations in fields from optics to tensor models and graph theory.
- In geometrical optics, they quantify primary and secondary rainbows through precise ray refraction, reflection, and dispersion calculations matching experimental ring radii.
- In graph theory, tensor models, and EDM computations, rainbow diagrams reveal nested substructures, enhanced color symmetries, and specific cancellation mechanisms that drive key results.
“Rainbow diagrams” is a context-dependent term used in several technically distinct literatures. In geometrical optics it denotes ray diagrams for primary and secondary rainbows formed by refraction, dispersion, and internal reflection in water; in graph theory it denotes subgraphs whose edges have pairwise distinct colors; in tensor models it denotes nested melonic dressings of propagators enforced by enhanced color symmetry; in electric-dipole-moment calculations it denotes multi-loop topologies attached to a single fermion line; and in gravity’s rainbow it denotes the mass–central density and mass–radius structural curves of neutron stars computed from rainbow-deformed hydrostatic equilibrium equations (Sarkar et al., 23 May 2026, Benzing et al., 2017, Itoyama et al., 2017, Fujiwara et al., 2021, Hendi et al., 2015).
1. Terminological scope
The term is therefore not a single universal diagrammatic object. Its meaning is fixed by the host discipline and by the role played by “color,” “arc-like layering,” or “rainbow deformation.”
| Area | Meaning of “rainbow diagrams” | Governing structure |
|---|---|---|
| Geometrical optics | Ray diagrams for rays entering, reflecting inside, and emerging from water droplets | Wavelength-dependent refraction and minimum deviation |
| Edge-coloured graphs | Paths, cycles, trees, or other subgraphs with pairwise distinct edge colors | Proper coloring, local/global boundedness |
| Tensor models | Nested, non-crossing melonic dressings of propagators | Enhanced color symmetry and large- melonic dominance |
| EDM calculations | Multi-loop topologies with sequential gauge-boson exchanges on one fermion line | Ward–Takahashi identity and chirality structure |
| Gravity’s rainbow | Structural – and – curves for neutron stars | Rainbow-deformed TOV equations |
A plausible implication is that “rainbow” functions less as a single formal notion than as a family resemblance. In the optics and graph-theoretic usages, the term is tied directly to visible or abstract color ordering. In the tensor-model and EDM usages, it refers to the topology of nested or arced insertions. In gravity’s rainbow, it refers to deformation by rainbow functions and to the resulting structural diagrams.
2. Geometrical optics: primary and secondary rainbow construction
In optics, rainbow diagrams quantify how rays refract into, reflect inside, and emerge from water droplets. In the plane of incidence, is the angle between the incident ray and the local surface normal at the entry point, is the refracted angle inside water, and is the number of internal reflections. The total deviation from the original direction is
with wavelength dependence entering through Snell’s law,
The rainbow occurs at the minimum of 0, which is obtained from
1
For the observer, the ring radii are
2
This minimum-deviation construction reproduces the standard primary and secondary bows. For the primary rainbow, 3, the minimum total deviation is near 4, so the observed cone radius is 5. The color order is outer-to-inner as red 6 violet because 7 is smaller for red than violet, giving larger 8 for red. For the secondary rainbow, 9, the minimum deviation is near 0, so 1; the color order reverses, the bow is fainter, and the gap between the bows is Alexander’s dark band.
A notable feature of the cited experiment is that a water-filled cylindrical glass reproduces the spherical-droplet rainbow geometry in two dimensions. For a horizontally propagating laser beam intersecting a water-filled right circular cylinder, the ray remains in a single vertical plane, and the intersection of that plane with the cylinder is a circle. The in-plane geometry is therefore identical to the great-circle cross-section of a spherical drop. Using graph paper, a clear cylindrical glass tumbler, and three low-power semiconductor laser pointers at 405 nm, 532 nm, and 635 nm, the experiment identifies the minimum deviation by the stationary cusp of the emergent ray as the glass is translated. With a 1 mm wall, the estimated lateral ray separation is 2 cm, comparable to the beam width, so it does not change the measured minimum deviation materially.
The measured ring radii closely match theory. For the primary rainbow the measured values are 3 at 405 nm, 4 at 532 nm, and 5 at 635 nm, compared with theoretical values 6, 7, and 8. For the secondary rainbow the measured values are 9, 0, and 1, compared with 2, 3, and 4. The reported agreement is within about 5, and the classroom method avoids the need for a Cauchy-type dispersion model when only three wavelengths are used (Sarkar et al., 23 May 2026).
3. Edge-coloured graphs and digraphs
In graph theory, a subgraph of an edge-coloured graph or digraph is called rainbow if all of its edges have pairwise distinct colors. Proper edge-coloring means that no two edges sharing a vertex have the same color in an undirected graph, and in the directed setting that all outgoing arcs from any vertex have distinct colors and all incoming arcs to any vertex have distinct colors. Two additional notions structure the theory: a coloring is locally 6-bounded if every color appears at most 7 times at each vertex, and globally 8-bounded if every color appears at most 9 times in total.
The cited work proves a directed analogue of long rainbow cycles in properly edge-colored complete digraphs. For the complete directed graph 0, every properly edge-coloured 1 contains a rainbow path forest of length 2 and a directed rainbow cycle of length 3. An explicit quantitative form yields, for sufficiently large 4, a directed rainbow cycle of length at least 5, that is, 6. The result is not proved for tournaments, and the tournament case is left as an open problem.
The proof proceeds in three stages. First, a pseudorandom directed expander 7 is built by independently selecting each color class with probability 8. With high probability, all vertices in 9 have in- and out-degree 0, and for sufficiently large disjoint sets 1, one has 2. Second, in the complement 3, a directed Andersen-type lemma yields a directed rainbow path forest 4 with at most 5 paths and at least 6 edges whenever the minimum in-degree is at least 7. In the application, 8 and 9, yielding 0 paths and at least 1 edges. Third, a rotation-augmentation lemma uses the expansion of 2 to glue path segments and obtain one very long rainbow path, then closes it to a cycle.
The same paper also proves a rainbow spanning-tree theorem. There exist constants 3 such that if 4 is a tree on 5 vertices with maximum degree 6, and 7 is properly edge-colored with each color appearing at most 8 times, then 9 has a rainbow embedding into 0. The proof has a random greedy embedding of the highest-degree quarter of the tree, followed by a Lopsided Local Lemma argument in the Lu–Székely framework for random injections. The global 1-boundedness assumption is essential: the paper gives counterexamples based on 1-factorizations and on Maamoun–Meyniel colorings.
These results sit in the broader landscape connecting Euler’s work on Latin squares and transversals, Hahn’s conjecture on rainbow Hamilton paths, canonical Ramsey theory in the Erdős–Rado sense, and recent work on rainbow Hamilton cycles and bounded-degree tree embeddings. The cited theorems sharpen the directed picture while leaving several natural extensions open, including better than 2 error terms and analogues for tournaments (Benzing et al., 2017).
4. Large-3 tensor models and extreme melonic dominance
In the rainbow tensor model, rainbow diagrams are the nested, non-crossing melonic dressings of propagators that dominate the large-4 expansion because index contractions are forced to be strictly color-consistent. For rank 5 tensors, the symmetry is promoted to a product of unitary groups, one 6 for each color. For 7, there are six colors—red, orange, yellow, green, blue, and violet—and four tensor fields 8, each transforming under a product of three 9’s. The interaction is a tetrahedron, or starfish, vertex, written compactly as 0 and its conjugate, with color lines routed so that every color appears exactly twice per interaction.
The central structural claim is that all planar diagrams are melonic. In ordinary tensor models, non-melonic planar graphs are suppressed by extra negative powers of 1. In the rainbow model, many non-melonic planar fat graphs are not merely suppressed; they cannot be colored consistently at all. The cited paper illustrates this with planar non-melonic configurations whose internal lines cannot be assigned a consistent color. Consequently, among planar diagrams, only melons survive. The leading large-2 dynamics therefore dresses propagators only; vertices remain undressed.
This produces a closed system of Schwinger–Dyson equations. If 3 is the dressed two-point function of field 4 and 5 its self-energy, then
6
In the melonic limit,
7
For 8, a typical example is
9
In a normalized two-flavor toy model, the equations become
0
The paper emphasizes that the large-1 limit depends non-analytically on ratios of the 2’s through the 3’s, with branches and multicritical lines when 4.
Because vertices are undressed at leading order, higher-point correlators are assembled from propagators and melonic insertions only. The large-5 factorization pattern familiar from matrix models persists in tensor form, but the usual spectral-curve technology does not. The cited work therefore points instead to Ward identities, diffeomorphisms in coupling space, the Bogoliubov–Zimmermann forest formula, and Connes–Kreimer Hopf-algebraic control of melonic insertions. In this setting, recursion is “graft-a-melon” over propagators rather than topological recursion on a non-trivial spectral curve. The term “rainbow” thus refers both to the enhanced color structure and to the layered, non-crossing nesting of melons around a propagator core (Itoyama et al., 2017).
5. Rainbow-type diagrams in electric dipole moment calculations
In two-loop EDM calculations, rainbow-type diagrams are multi-loop topologies in which an external fermion line carries sequential gauge-boson exchanges forming an arc-like “rainbow” attached to that single line. Their defining structural property is that the inner sub-diagrams are the fermion self-energy and the electromagnetic vertex correction of the same internal fermion. This distinguishes them from Barr–Zee-type diagrams, where a heavy boson loop generates an effective CP-odd coupling to the photon through a separate loop.
For a Dirac fermion, the EDM operator is
6
and the static EDM is extracted from the electromagnetic vertex form factor through
7
The key organizing principle is the Ward–Takahashi identity,
8
which ties the longitudinal part of the vertex correction to the momentum derivative of the self-energy. The self-energy is parameterized by
9
with the chirality-flipping information residing in the scalar form factors 00. The transverse vertex is expanded on an eight-vector basis; for EDM purposes, the CP-odd structures are those multiplying the form factors 01 and 02.
The cited reduction formulas show that the EDM-relevant content of a rainbow diagram is exhausted by the combination
03
where 04 comes from chirality-flipping self-energy terms and 05 are transverse vertex form factors. If this combination vanishes, then the EDM vanishes. This is precisely what happens for the Standard Model two-loop 06-exchange rainbow diagrams: the 07 couples purely left-chirally, so 08, and the transverse CP-odd vertex structures 09 and 10 are absent. The result is the exact cancellation associated with the classic Shabalin result. The paper also notes that photon attachment to the outer loop cancels by flavor antisymmetry involving the Jarlskog invariant.
Non-vanishing rainbow EDMs require chirality flipping in the internal loop, transverse CP-odd vertex structures, and complex phases in the couplings. The cited example is a singlet–triplet fermion model extended by a real 11-triplet scalar 12, where new Yukawa-type couplings induce non-zero 13 and 14. The resulting electron EDM can reach the 15 cm level for TeV-scale masses and 16 couplings. The same reduction logic also extends to chromo-EDMs, with the Abelian Ward–Takahashi identity replaced by the background-field version appropriate to gluons (Fujiwara et al., 2021).
6. Structural diagrams in gravity’s rainbow
In gravity’s rainbow, “rainbow diagrams” refers to the neutron-star structural curves 17–18 and 19–20, computed from a rainbow-deformed hydrostatic equilibrium equation. The deformation begins from the modified dispersion relation
21
with 22. For a static, spherically symmetric star in 23 dimensions, the metric ansatz is
24
The effective mass is
25
and the modified TOV equation can be written as
26
with
27
28
Three rainbow-function models are tested. In Case I,
29
In Case II,
30
and the TOV equation becomes independent of the rainbow functions, so there is no effect on stellar structure. In Case III,
31
The matter model is neutron-star matter composed of neutrons, protons, electrons, and muons in charge neutrality and beta equilibrium, with an AV18-based microscopic equation of state fitted by
32
Integration starts from 33 and 34 and stops at 35, generating the structural sequences.
The 36–37 and 38–39 diagrams shift systematically with 40. Increasing 41 shifts the curves upward and to larger radii; decreasing 42 reduces both 43 and 44. Representative values are 45 and 46 km for 47, 48 and 49 km for 50, and 51 and 52 km for 53. The paper identifies a consistency window 54, because for 55 the average density exceeds the central density. Within the adopted equation of state, the global upper limit is 56 at 57.
A positive cosmological constant shifts the 58–59 and 60–61 diagrams downward. For 62, increasing 63 from 64 to 65 changes 66 from 67 to 68 and reduces the radius from 69 km to 70 km; for 71 and 72, the corresponding values are 73 and 74 km. By contrast, the cosmological value 75 has no discernible effect. The paper also reports rainbow dependence in the Schwarzschild radius, average density, compactness, and surface redshift, with typical redshifts 76, and establishes dynamical stability through the Chandrasekhar criterion
77
In this usage, rainbow diagrams are not Feynman graphs or ray pictures but deformation-sensitive structural plots encoding how 78 and 79 modify neutron-star equilibrium and stability (Hendi et al., 2015).