---
title: Rainbow Diagrams in Multiple Disciplines
url: https://www.emergentmind.com/topics/rainbow-diagrams
type: topic
---

# Rainbow Diagrams in Multiple Disciplines

“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 [2605.26148] [1711.03772] [1703.04983] [2106.03384] [1509.05145].

## 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-\(N\) 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 \(M\)–\(\rho_c\) and \(M\)–\(R\) 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, \(i\) is the angle between the incident ray and the local surface normal at the entry point, \(r\) is the refracted angle inside water, and \(k\) is the number of internal reflections. The total deviation from the original direction is
\[
D_k(i,\lambda)=2i-2r+k\big(180^\circ-2r\big),
\]
with wavelength dependence entering through Snell’s law,
\[
n(\lambda)=\frac{\sin i}{\sin r}.
\]
The rainbow occurs at the minimum of \(D_k\), which is obtained from
\[
(1+k)\cos i=n(\lambda)\cos r.
\]
For the observer, the ring radii are
\[
R_1=180^\circ-D_1,\qquad R_2=D_2-180^\circ.
\]

This minimum-deviation construction reproduces the standard primary and secondary bows. For the primary rainbow, \(k=1\), the minimum total deviation is near \(D_{1,\min}\approx 137\text{–}139^\circ\), so the observed cone radius is \(R_1\approx 42^\circ\). The color order is outer-to-inner as red \(\rightarrow \cdots \rightarrow\) violet because \(n(\lambda)\) is smaller for red than violet, giving larger \(R\) for red. For the secondary rainbow, \(k=2\), the minimum deviation is near \(D_{2,\min}\approx 231\text{–}234^\circ\), so \(R_2\approx 50\text{–}54^\circ\); 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 \(\approx 0.076\) 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 \(40.2^\circ \pm 0.05\) at 405 nm, \(41.4^\circ \pm 0.06\) at 532 nm, and \(42.4^\circ \pm 0.05\) at 635 nm, compared with theoretical values \(40.7^\circ\), \(41.2^\circ\), and \(42.3^\circ\). For the secondary rainbow the measured values are \(53.7^\circ \pm 0.26\), \(52.5^\circ \pm 0.28\), and \(50.5^\circ \pm 0.31\), compared with \(53.4^\circ\), \(52.4^\circ\), and \(50.6^\circ\). The reported agreement is within about \(0.2\text{–}1\%\), and the classroom method avoids the need for a Cauchy-type dispersion model when only three wavelengths are used [2605.26148].

## 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 \(k\)-bounded if every color appears at most \(k\) times at each vertex, and globally \(k\)-bounded if every color appears at most \(k\) 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 \(\overleftrightarrow{K_n}\), every properly edge-coloured \(\overleftrightarrow{K_n}\) contains a rainbow path forest of length \(n-O(n^{2/3})\) and a directed rainbow cycle of length \(n-O(n^{4/5})\). An explicit quantitative form yields, for sufficiently large \(n\), a directed rainbow cycle of length at least \((1-25n^{-1/5})n\), that is, \(n-25n^{4/5}\). 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 \(H\) is built by independently selecting each color class with probability \(p=6n^{-1/5}\). With high probability, all vertices in \(H\) have in- and out-degree \((1-o(1))np\), and for sufficiently large disjoint sets \(A,B\), one has \(e_H(A,B)\approx p|A||B|\). Second, in the complement \(G=\overleftrightarrow{K_n}\setminus H\), a directed Andersen-type lemma yields a directed rainbow path forest \(\mathcal{P}\) with at most \(\gamma n\) paths and at least \((1-3\delta)n\) edges whenever the minimum in-degree is at least \((1-\delta)n\). In the application, \(\delta=7n^{-1/5}\) and \(\gamma=n^{-3/5}\), yielding \(r\le n^{2/5}\) paths and at least \((1-21n^{-1/5})n\) edges. Third, a rotation-augmentation lemma uses the expansion of \(H\) 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 \(\alpha,\beta>0\) such that if \(T\) is a tree on \(n\) vertices with maximum degree \(\Delta_T\le \beta n/\log n\), and \(K_n\) is properly edge-colored with each color appearing at most \(\alpha n\) times, then \(T\) has a rainbow embedding into \(K_n\). 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 \(\alpha n\)-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 \(O(n^{4/5})\) error terms and analogues for tournaments [1711.03772].

## 4. Large-\(N\) 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-\(N\) expansion because index contractions are forced to be strictly color-consistent. For rank \(D\) tensors, the symmetry is promoted to a product of unitary groups, one \(U(N_a)\) for each color. For \(D=3\), there are six colors—red, orange, yellow, green, blue, and violet—and four tensor fields \(A,B,C,D\), each transforming under a product of three \(U(N_a)\)’s. The interaction is a tetrahedron, or starfish, vertex, written compactly as \(\mathrm{Tr}\,ABCD\) 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 \(N\). 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-\(N\) dynamics therefore dresses propagators only; vertices remain undressed.

This produces a closed system of Schwinger–Dyson equations. If \(G_I\) is the dressed two-point function of field \(I\) and \(\Sigma_I\) its self-energy, then
\[
G_I^{-1}=G_{0,I}^{-1}-\Sigma_I.
\]
In the melonic limit,
\[
\Sigma_I \sim g^2\Big(\prod_{a\in \text{colors in melon}} N_a\Big)\prod_{J\neq I} G_J.
\]
For \(D=3\), a typical example is
\[
\Sigma_A=\alpha_A\,G_B\,G_C\,G_D.
\]
In a normalized two-flavor toy model, the equations become
\[
G_1=1-\alpha_1 G_1G_2,\qquad G_2=1-\alpha_2 G_1G_2.
\]
The paper emphasizes that the large-\(N\) limit depends non-analytically on ratios of the \(N_a\)’s through the \(\alpha_I\)’s, with branches and multicritical lines when \(\alpha_1=\alpha_2\).

Because vertices are undressed at leading order, higher-point correlators are assembled from propagators and melonic insertions only. The large-\(N\) 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 [1703.04983].

## 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
\[
\mathcal{L}_{\mathrm{EDM}}=-\frac{i}{2}\,d_f\,\overline{\psi}\,\sigma^{\mu\nu}\gamma_5\,\psi\,F_{\mu\nu},
\]
and the static EDM is extracted from the electromagnetic vertex form factor through
\[
d_f=\frac{e}{2m_f}F_3(0).
\]
The key organizing principle is the Ward–Takahashi identity,
\[
q_\mu\,\Lambda^\mu(k_1,k_2)=\Sigma(\slashed{k}_1)-\Sigma(\slashed{k}_2),
\]
which ties the longitudinal part of the vertex correction to the momentum derivative of the self-energy. The self-energy is parameterized by
\[
\Sigma_{ji}(\slashed{k})=A_{ji}^{L}(k^2)\slashed{k}P_L+A_{ji}^{R}(k^2)\slashed{k}P_R+B_{ji}^{L}(k^2)P_L+B_{ji}^{R}(k^2)P_R,
\]
with the chirality-flipping information residing in the scalar form factors \(B_{ji}^{L,R}(k^2)\). The transverse vertex is expanded on an eight-vector basis; for EDM purposes, the CP-odd structures are those multiplying the form factors \(C_6^{L,R}\) and \(C_7^{L,R}\).

The cited reduction formulas show that the EDM-relevant content of a rainbow diagram is exhausted by the combination
\[
Q_\psi\,\frac{d\tilde{B}_{ji}}{dk^2}+k^2\tilde{C}_{ji}(k^2)+\tilde{D}_{ji}(k^2),
\]
where \(d\tilde{B}_{ji}/dk^2\) comes from chirality-flipping self-energy terms and \(\tilde{C}_{ji},\tilde{D}_{ji}\) are transverse vertex form factors. If this combination vanishes, then the EDM vanishes. This is precisely what happens for the Standard Model two-loop \(W\)-exchange rainbow diagrams: the \(W\) couples purely left-chirally, so \(B_{ji}(k^2)=0\), and the transverse CP-odd vertex structures \(\tilde{C}_{ji}(k^2)\) and \(\tilde{D}_{ji}(k^2)\) 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 \(SU(2)_L\)-triplet scalar \(\Phi\), where new Yukawa-type couplings induce non-zero \(B_{ji}\) and \(D_{ji}\). The resulting electron EDM can reach the \(10^{-30}\) cm level for TeV-scale masses and \(O(1)\) 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 [2106.03384].

## 6. Structural diagrams in gravity’s rainbow

In gravity’s rainbow, “rainbow diagrams” refers to the neutron-star structural curves \(M\)–\(\rho_c\) and \(M\)–\(R\), computed from a rainbow-deformed hydrostatic equilibrium equation. The deformation begins from the modified dispersion relation
\[
E^2L^2(\varepsilon)-p^2H^2(\varepsilon)=m^2,\qquad \varepsilon=\frac{E}{E_P}\le 1,
\]
with \(\lim_{\varepsilon\to 0}L=1=\lim_{\varepsilon\to 0}H\). For a static, spherically symmetric star in \(3+1\) dimensions, the metric ansatz is
\[
ds^2=\frac{f(r)}{L^2(\varepsilon)}\,dt^2-\frac{1}{H^2(\varepsilon)}\left(\frac{dr^2}{g(r)}+r^2\,d\Omega^2\right).
\]
The effective mass is
\[
M_{\text{eff}}(r;\varepsilon)=\int_0^r \frac{4\pi r'^2\rho(r')}{H^2(\varepsilon)}\,dr',
\]
and the modified TOV equation can be written as
\[
\frac{dP}{dr}
=-\frac{(\rho c^{2}+P)\,\mathcal{N}(r;H,\Lambda)}{\mathcal{D}(r;H,\Lambda)},
\]
with
\[
\mathcal{N}=3c^{2}G\,M_{\text{eff}}\,H^{2}(\varepsilon)+r^{3}\left(\Lambda c^{4}+12\pi G\,P\right),
\]
\[
\mathcal{D}=c^{2}r\left[6G\,M_{\text{eff}}\,H^{2}(\varepsilon)-c^{2}r\left(\Lambda r^{2}+3H^{2}(\varepsilon)\right)\right].
\]

Three rainbow-function models are tested. In Case I,
\[
L(\varepsilon)=1,\qquad H(\varepsilon)=\sqrt{1-\eta\varepsilon^n}.
\]
In Case II,
\[
L(\varepsilon)=\frac{e^{\beta\varepsilon}-1}{\beta\varepsilon},\qquad H(\varepsilon)=1,
\]
and the TOV equation becomes independent of the rainbow functions, so there is no effect on stellar structure. In Case III,
\[
L(\varepsilon)=H(\varepsilon)=\frac{1}{1-\lambda\varepsilon}.
\]
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
\[
P(\rho)=\sum_{i=1}^{7}\mathcal{A}_{i}\rho^{7-i}.
\]
Integration starts from \(P(0)=P_c\) and \(M_{\text{eff}}(0)=0\) and stops at \(P(R)=0\), generating the structural sequences.

The \(M\)–\(\rho_c\) and \(M\)–\(R\) diagrams shift systematically with \(H(\varepsilon)\). Increasing \(H(\varepsilon)\) shifts the curves upward and to larger radii; decreasing \(H(\varepsilon)\) reduces both \(M_{\max}\) and \(R\). Representative values are \(M_{\max}=1.68\,M_\odot\) and \(R=8.42\) km for \(H=1.00\), \(M_{\max}=2.02\,M_\odot\) and \(R=10.10\) km for \(H=1.20\), and \(M_{\max}=2.87\,M_\odot\) and \(R=14.32\) km for \(H=1.70\). The paper identifies a consistency window \(0.6<H(\varepsilon)\le 1.67\), because for \(H(\varepsilon)\lesssim 0.6\) the average density exceeds the central density. Within the adopted equation of state, the global upper limit is \(M_{\max}\lesssim 2.81\,M_\odot\) at \(H\simeq 1.67\).

A positive cosmological constant shifts the \(M\)–\(R\) and \(M\)–\(\rho_c\) diagrams downward. For \(H=1\), increasing \(\Lambda\) from \(10^{-16}\,\mathrm{m}^{-2}\) to \(10^{-12}\,\mathrm{m}^{-2}\) changes \(M_{\max}\) from \(1.68\,M_\odot\) to \(1.56\,M_\odot\) and reduces the radius from \(8.42\) km to \(8.25\) km; for \(H=1.5\) and \(\Lambda=10^{-12}\,\mathrm{m}^{-2}\), the corresponding values are \(M_{\max}=2.34\,M_\odot\) and \(R=12.38\) km. By contrast, the cosmological value \(\Lambda\sim 10^{-52}\,\mathrm{m}^{-2}\) has no discernible effect. The paper also reports rainbow dependence in the Schwarzschild radius, average density, compactness, and surface redshift, with typical redshifts \(z\approx 0.56\), and establishes dynamical stability through the Chandrasekhar criterion
\[
\gamma=\frac{\rho c^{2}+P}{c^{2}P}\frac{dP}{d\rho}>\frac{4}{3}.
\]
In this usage, rainbow diagrams are not Feynman graphs or ray pictures but deformation-sensitive structural plots encoding how \(H(\varepsilon)\) and \(\Lambda\) modify neutron-star equilibrium and stability [1509.05145].

Source: https://www.emergentmind.com/topics/rainbow-diagrams