The Donkey on the Edge THE PAPER · APPENDIX A May MMXXVI
THE PAPER · APPENDIX A

Appendix A – Generalized EGH Formulas

Closed-form moment identities for the bulk-marginal diagonal in the grouped-Dirichlet regime.

Companion Pages

Technical appendix extending EGH 2507.06046’s equations (4.6) and (4.18) to arbitrary complex bulk states via explicit O(n) Weingarten computation. Referenced in §8.1 of the main text. This material was developed during the Phase 3 numerical program of the research that led to the main paper; it is included here because it fills a minor but genuine gap in the published EGH formulas and is verified against direct Monte Carlo simulation at high precision.


A.1 Setup

This appendix works within the EGH 2507.06046 construction, briefly recapped here. The bulk Hilbert space factorizes as Hbulk=HMaHMbHαHβ\mathcal{H}_{\rm bulk} = \mathcal{H}_{M_a} \otimes \mathcal{H}_{M_b} \otimes \mathcal{H}_\alpha \otimes \mathcal{H}_\beta, where (Ma,Mb)(M_a, M_b) are matter factors and (α,β)(\alpha, \beta) are two auxiliary pointer systems – α\alpha the AdS-boundary observer and β\beta the closed-universe observer. The EGH encoding map is

V  =  db  VHKLL0bO,dbdβdMb,V \;=\; \sqrt{d_b}\; V_{\rm HKLL} \otimes \langle 0 |_b\, O, \qquad d_b \equiv d_\beta\, d_{M_b},

where VHKLL:HMaHαHαV_{\rm HKLL}: \mathcal{H}_{M_a} \otimes \mathcal{H}_\alpha \to \mathcal{H}_\alpha is the HKLL-style reconstruction map and OO(db)O \in O(d_b) is a Haar-random orthogonal matrix on Rdb\mathbb{R}^{d_b}. The observer-included maps VαV_\alpha and VβV_\beta are obtained by applying HUZ cloning to VV for the two respective pointer systems.

EGH’s equations (4.5), (4.6), and (4.18) compute the expected purity EOTr(ρMa2)\mathbb{E}_O \langle \mathrm{Tr}(\rho_{M_a}^2) \rangle under various choices of the bulk state. These moments are the central SWAP-test observables for observer complementarity in the AS2R cosmological configuration.

Two bulk state configurations

EGH consider two kinds of bulk states:

  1. Two-factor state for VαV_\alpha: ψ1  =  ψ1MaMbψαψβ,|\psi_1\rangle \;=\; |\psi_1\rangle_{M_a M_b} \otimes |\psi_\alpha\rangle \otimes |\psi_\beta\rangle, where ψ1MaMb=ijcijij|\psi_1\rangle_{M_a M_b} = \sum_{ij} c_{ij} |i\rangle|j\rangle with matrix cCdMa×dMbc \in \mathbb{C}^{d_{M_a} \times d_{M_b}}.

  2. One-factor state for VβV_\beta (control/no-baby): ψ2  =  ψ2Maψα.|\psi_2\rangle \;=\; |\psi_2\rangle_{M_a} \otimes |\psi_\alpha\rangle.

The EGH formulas

EGH’s published expressions are:

(4.5) (exact, always): EOTr(ρMa2)Vαψ2=1\mathbb{E}_O \langle \mathrm{Tr}(\rho_{M_a}^2) \rangle_{V_\alpha |\psi_2\rangle} = 1.

(4.6) (stated for general bulk):

EOTr(ρMa2)Vαψ1  =  dbdb+2[1+Tr(ψ2)+Tr(ψψT)],ψ    cc.(A.6)\mathbb{E}_O \langle \mathrm{Tr}(\rho_{M_a}^2) \rangle_{V_\alpha |\psi_1\rangle} \;=\; \frac{d_b}{d_b + 2}\Bigl[\, 1 + \mathrm{Tr}(\psi^2) + \mathrm{Tr}(\psi \psi^T)\,\Bigr], \qquad \psi \;\equiv\; c\, c^\dagger. \tag{A.6}

(4.18) (stated for general bulk):

EOTr(ρMa2)Vβψ1  =  dbdb+2[Tr(ω2)+Tr(ψ2)+Tr(ωωT)Tr(ψψTMb)],ω    ψβψβ.(A.18)\mathbb{E}_O \langle \mathrm{Tr}(\rho_{M_a}^2) \rangle_{V_\beta |\psi_1\rangle} \;=\; \frac{d_b}{d_b + 2}\Bigl[\,\mathrm{Tr}(\omega^2) + \mathrm{Tr}(\psi^2) + \mathrm{Tr}(\omega \omega^T)\, \mathrm{Tr}(\psi \psi^{T_{M_b}})\,\Bigr], \qquad \omega \;\equiv\; |\psi_\beta\rangle\langle\psi_\beta|. \tag{A.18}

The issue

Equations (A.6) and (A.18) as published are valid only under implicit assumptions about the reality of the bulk state components. Specifically, numerical verification reveals that:

For complex cc, or for general ψβ|\psi_\beta\rangle in (A.18), the measured purity disagrees with (A.6) and (A.18) by terms of order unity. This is not a bug in EGH’s derivation – their physics setup implicitly assumed these restrictions – but it does mean that applying their formulas to a generic complex bulk state produces wrong answers.

In this appendix we derive corrected formulas (A.6') and (A.18') that hold for arbitrary complex cc and arbitrary complex ψβ|\psi_\beta\rangle, and reduce to the EGH formulas under the respective restrictions.

A.2 O(nn) Weingarten and the source of real-vs-complex sensitivity

The averaging in (A.6) and (A.18) is over OHaar(O(db))O \sim \mathrm{Haar}(O(d_b)), the Haar measure on the real orthogonal group. The relevant fourth moments are governed by the O(nn) Weingarten formula:

EOO(d)[OijOklOijOkl]  =  π,σM4WgO(π,σ)δπ(i,j,i,j)δσ(k,l,k,l),\mathbb{E}_{O \sim O(d)}[O_{ij} O_{kl} O_{i'j'} O_{k'l'}] \;=\; \sum_{\pi, \sigma \in M_4} \mathrm{Wg}_O(\pi, \sigma)\, \delta_\pi(i,j,i',j')\, \delta_\sigma(k,l,k',l'),

where M4M_4 is the set of pair matchings on {1,2,3,4}\{1,2,3,4\} and WgO\mathrm{Wg}_O is the O(nn) Weingarten function. For our purposes, the key feature of O(nn) Weingarten – in contrast to U(nn) Weingarten – is that the sum runs over pair matchings of the full set of 2k2k indices rather than pairs of permutations of kk indices.

Operationally, this means that O(nn) fourth moments contain crossed terms of the form OijOklOijOklO_{ij} O_{kl} O_{ij'} O_{kl'} (two pairs of “matched” row indices with different column indices). When these crossed terms act on complex bulk amplitudes cijc_{ij}, they produce combinations like cijcijcklcklc_{ij} c^*_{i j'} c_{kl} c^*_{kl'} that are not symmetric under complex conjugation of cc. In contrast, real cc satisfies cij=cijc^*_{ij} = c_{ij}, and these crossed terms collapse to the symmetric forms Tr(ψ2)\mathrm{Tr}(\psi^2) and Tr(ψψT)\mathrm{Tr}(\psi\psi^T) appearing in (A.6). For complex cc, the crossed terms produce a genuinely new structure.

A.3 Generalized formula (4.6')

Define, for arbitrary complex cCdMa×dMbc \in \mathbb{C}^{d_{M_a} \times d_{M_b}} (with cF=1\|c\|_F = 1) and arbitrary complex ψβCdβ|\psi_\beta\rangle \in \mathbb{C}^{d_\beta} (with ψβ=1\||\psi_\beta\rangle\| = 1), the composite matrix

K:CdβdMbCdMa,Ki,(n,j)  =  cijbn,bnnψβ.K: \mathbb{C}^{d_\beta \cdot d_{M_b}} \to \mathbb{C}^{d_{M_a}}, \qquad K_{i, (n, j)} \;=\; c_{ij}\, b_n, \qquad b_n \equiv \langle n | \psi_\beta \rangle.

Let

A    Re(KTKˉ)    R(dβdMb)×(dβdMb).A \;\equiv\; \mathrm{Re}(K^T \bar K) \;\in\; \mathbb{R}^{(d_\beta d_{M_b}) \times (d_\beta d_{M_b})}.

The matrix AA is real symmetric by construction.

Proposition A.3.1. For arbitrary complex cc and ψβ|\psi_\beta\rangle as above,

    EOTr(ρMa2)Vαψ1  =  dbdb+2[(TrA)2+2Tr(A2)].    (A.6)\boxed{\;\; \mathbb{E}_O \langle \mathrm{Tr}(\rho_{M_a}^2) \rangle_{V_\alpha |\psi_1\rangle} \;=\; \frac{d_b}{d_b + 2}\Bigl[\,(\mathrm{Tr}\,A)^2 + 2\,\mathrm{Tr}(A^2)\,\Bigr]. \;\;} \tag{A.6$'$}

Proof sketch. Expand Tr(ρMa2)\langle \mathrm{Tr}(\rho_{M_a}^2) \rangle in components of cc and ψβ|\psi_\beta\rangle. Every term carries a product of four OO matrix elements. Applying the O(nn) Weingarten formula to the fourth moments and taking the large-dbd_b simplification WgO({identity matching})1/(db(db+2))\mathrm{Wg}_O(\{\text{identity matching}\}) \to 1/(d_b(d_b+2)) (up to combinatorial factors for the two inequivalent pair matchings), one obtains the quadratic form in AA. The specific coefficients (TrA)2(\mathrm{Tr}\,A)^2 and 2Tr(A2)2\,\mathrm{Tr}(A^2) arise from the two inequivalent pair matchings of the four OO indices. \square

Reduction to EGH (A.6). For real cc and ψβ=0β|\psi_\beta\rangle = |0\rangle_\beta (so bn=δn,0b_n = \delta_{n,0}), the matrix KK reduces to Ki,(0,j)=cijK_{i, (0, j)} = c_{ij} and vanishes for n0n \neq 0. Then KTKˉK^T \bar K is dMb×dMbd_{M_b} \times d_{M_b} (after dropping the empty n0n \neq 0 block), and A=KTKˉ=ψA = K^T \bar K = \psi. Hence TrA=Trψ=1\mathrm{Tr}\,A = \mathrm{Tr}\,\psi = 1 (from cF=1\|c\|_F = 1) and Tr(A2)=Tr(ψ2)\mathrm{Tr}(A^2) = \mathrm{Tr}(\psi^2). Additionally, for real cc, one has the Weingarten-level identity (TrA)2+2Tr(A2)1+Tr(ψ2)+Tr(ψψT)(\mathrm{Tr}\,A)^2 + 2\,\mathrm{Tr}(A^2) \to 1 + \mathrm{Tr}(\psi^2) + \mathrm{Tr}(\psi \psi^T), recovering (A.6) exactly.

The generalization to complex cc changes the value of Tr(A2)\mathrm{Tr}(A^2) by an amount proportional to Im(c)2\mathrm{Im}(c)^2 terms, and the Weingarten crossed-matching contributions now produce genuinely new structure that the real-cc simplification hides.

A.4 Generalized formula (4.18')

For the VβV_\beta map acting on the same bulk state, the corresponding generalization is:

Proposition A.4.1. For arbitrary complex cc and ψβ|\psi_\beta\rangle,

    EOTr(ρMa2)Vβψ1  =  dbdb+2[Tr(ψ2)+Tr(pβ2)(1+Tr(ρρTMb))],    (A.18)\boxed{\;\; \mathbb{E}_O \langle \mathrm{Tr}(\rho_{M_a}^2) \rangle_{V_\beta |\psi_1\rangle} \;=\; \frac{d_b}{d_b + 2}\Bigl[\,\mathrm{Tr}(\psi^2) + \mathrm{Tr}(p_\beta^2)\bigl(1 + \mathrm{Tr}(\rho\, \rho^{T_{M_b}})\bigr)\,\Bigr], \;\;} \tag{A.18$'$}

where:

Proof sketch. Similar to (A.6'), expand in components and apply O(nn) Weingarten to the fourth moments of OO that arise in VβV_\beta‘s action. The key difference from (A.6') is that VβV_\beta clones β\beta instead of α\alpha, so the β\beta-factor enters as a quadratic form bn2|b_n|^2 in both the primary trace and the crossed-matching contribution, yielding the Tr(pβ2)\mathrm{Tr}(p_\beta^2) coefficient. \square

Reduction to EGH (A.18). For ψβ=0β|\psi_\beta\rangle = |0\rangle_\beta, bn=δn,0b_n = \delta_{n,0}, so pβ=diag(1,0,,0)p_\beta = \mathrm{diag}(1, 0, \ldots, 0) and Tr(pβ2)=1\mathrm{Tr}(p_\beta^2) = 1. For real cc, additionally, Tr(ρρTMb)=Tr(ψψTMb)\mathrm{Tr}(\rho\, \rho^{T_{M_b}}) = \mathrm{Tr}(\psi\, \psi^{T_{M_b}}) (since conjugation is trivial), and Tr(ω2)=1\mathrm{Tr}(\omega^2) = 1, Tr(ωωT)=1\mathrm{Tr}(\omega \omega^T) = 1. Substituting into (A.18'),

dbdb+2[Tr(ψ2)+1(1+Tr(ψψTMb))]  =  dbdb+2[1+Tr(ψ2)+Tr(ψψTMb)],\frac{d_b}{d_b + 2}\Bigl[\mathrm{Tr}(\psi^2) + 1 \cdot (1 + \mathrm{Tr}(\psi \psi^{T_{M_b}}))\Bigr] \;=\; \frac{d_b}{d_b + 2}\Bigl[1 + \mathrm{Tr}(\psi^2) + \mathrm{Tr}(\psi \psi^{T_{M_b}})\Bigr],

which matches (A.18) after noting that Tr(ω2)+Tr(ωωT)=2\mathrm{Tr}(\omega^2) + \mathrm{Tr}(\omega \omega^T) = 2 in this limit (both traces equal 1 for a rank-1 projector). \square

A.5 Numerical verification

Both generalized formulas were verified against direct Monte Carlo simulation for complex bulk states. Six dimension configurations spanning (dα,dMa,dβ,dMb){(2,2,2,2),(2,3,2,3),(3,3,3,3),(2,2,3,3)}(d_\alpha, d_{M_a}, d_\beta, d_{M_b}) \in \{(2,2,2,2),\, (2,3,2,3),\, (3,3,3,3),\, (2,2,3,3)\} with both maximally-entangled and Haar-random cc, at N=400N = 400 samples of Haar-OO per configuration.

Table A.1: Verification of (A.6') for complex cc, ψβ|\psi_\beta\rangle Haar on Hβ\mathcal{H}_\beta. Columns show predicted vs. measured expected purity, SEM, and the zz-score of the discrepancy.

(dα,dMa,dβ,dMb)(d_\alpha, d_{M_a}, d_\beta, d_{M_b})statepredictionmeasuredSEMzz
(2, 2, 2, 2)max-ent1.16401.16401.14841.14840.0180.0180.86-0.86
(2, 2, 2, 2)Haar1.15151.15151.15871.15870.0190.019+0.38+0.38
(2, 3, 2, 3)max-ent1.22371.22371.22741.22740.0220.022+0.17+0.17
(3, 3, 3, 3)max-ent1.10151.10151.09681.09680.0140.0140.33-0.33
(3, 3, 3, 3)Haar1.50761.50761.51041.51040.0480.048+0.06+0.06
(2, 2, 3, 3)max-ent1.49161.49161.48141.48140.0460.0460.22-0.22

Pooled χ2=1.08/6\chi^2 = 1.08 / 6 dof, well within expectation. No systematic trend in zz values.

Table A.2: Verification of (A.18'), same configurations.

(dα,dMa,dβ,dMb)(d_\alpha, d_{M_a}, d_\beta, d_{M_b})statepredictionmeasuredSEMzz
(2, 2, 2, 2)max-ent0.83780.83780.84000.84000.0040.004+0.52+0.52
(2, 2, 2, 2)Haar1.28761.28761.29161.29160.0290.029+0.14+0.14
(2, 3, 2, 3)max-ent1.07761.07761.05931.05930.0190.0190.97-0.97
(3, 3, 3, 3)max-ent0.63900.63900.64000.64000.0030.003+0.31+0.31
(3, 3, 3, 3)Haar1.02621.02621.01261.01260.0240.0240.56-0.56
(2, 2, 3, 3)max-ent1.23341.23341.23361.23360.0380.038+0.01+0.01

Pooled χ2=1.66/6\chi^2 = 1.66 / 6 dof, consistent with expectation.

In both cases, Monte Carlo verification of the original EGH formulas (A.6) and (A.18) at the same parameter configurations (but with real cc and ψβ=0β|\psi_\beta\rangle = |0\rangle_\beta) likewise passes pooled χ2\chi^2 tests, confirming that the generalizations specialize correctly.

Reproducibility is bit-identical across runs under the same seed.

A.6 Status

The generalizations (A.6') and (A.18') are minor but genuine extensions of EGH 2507.06046’s published formulas, correcting for the implicit real-cc assumption in the original derivations. They are not required for the main body of this paper – our two scaling theorems (Theorems 2 and 3) involve entirely different quantities – but they are included here because:

  1. They were derived in the course of verifying EGH’s result numerically (Phase 3 of our computational program), and verifying them was a prerequisite to the subsequent two-observer work;
  2. They fill a real gap in the published EGH framework, specifically for bulk states with nonzero imaginary matter-factor amplitudes;
  3. They demonstrate that the O(nn) Weingarten machinery applied carefully to complex bulk states yields structurally new terms not visible in the real-cc limit.

The formulas as stated are verified analytically to reduce to the EGH originals under the appropriate real-and/or-basis-state restrictions, and numerically to sub-σ\sigma precision in the complex-bulk regime.


End of Appendix A. Source code for verification: phase3_egh_direct.py. Data: phase3_generalized_4_6.csv, phase3_generalized_4_18.csv.