# Agent Report — The Dipole Is Distributed: Conditional Gap Ratio Shows Ordering, Not Local Structure

**Date**: 2026-04-15 03:30
**Piano**: 39
**Tension explored**: DUALITA_DIPOLARE_VS_ILLUSORIA (0.9) + GAP_ANTICORR (0.75) + POISSON_CONVERGENCE (0.9)

## Claim Under Test

> Two types of duality: (1) dipolar — generative, det=-1, (2) illusory — dispersive, det=+1. The anti-correlation in prime gaps should manifest as a local dipolar structure: conditioning on the previous gap should shift the gap ratio <r>.

## Question

Does <r> depend on the size of the previous gap? If the dipolar anti-correlation is local (adjacent triplets), conditioning on g_{i-1} should shift <r>_i = min(g_i,g_{i+1})/max(g_i,g_{i+1}). If it's distributed (global sequence property), conditioning should add little beyond the unconditional ordering effect.

## Experiment Design

- **Data**: 5.76M prime gaps (primes up to 10^8), normalized by local running mean (window=1000)
- **Metric**: gap ratio r_i conditioned on previous normalized gap g_{i-1}, binned by quintile
- **Null baseline**: 20 shuffled surrogates (same gap distribution, order destroyed)
- **Scale test**: 5 windows across ln(p) = 16.0 to 18.3, Q1 vs Q5 spread + 15 shuffled surrogates per window
- **Correlation**: Pearson corr(g_{i-1}, r_i) vs shuffled

## Results

### Conditional <r> by previous gap quintile

| Quintile      | <r>_prime | <r>_shuffle | z-score |
|---------------|-----------|-------------|---------|
| Q1 (smallest) | 0.4483    | 0.4610      | -60.4   |
| Q2            | 0.4496    | 0.4610      | -45.2   |
| Q3            | 0.4469    | 0.4610      | -59.0   |
| Q4            | 0.4458    | 0.4610      | -46.9   |
| Q5 (largest)  | 0.4466    | 0.4610      | -65.5   |

**Unconditional <r>**: primes = 0.4474, shuffle = 0.4610.

The prime-vs-shuffle gap (~0.014) is the same across all quintiles. Conditioning on the previous gap barely modulates <r>: the Q1-Q5 spread within primes is only -0.0017 — **10x smaller** than the unconditional ordering effect.

### Scale dependence (Q1 vs Q5 spread)

| ln(p) | <r>_Q1  | <r>_Q5  | spread  | z vs shuffle |
|--------|---------|---------|---------|--------------|
| 16.0   | 0.4535  | 0.4508  | -0.0027 | -4.1         |
| 17.1   | 0.4493  | 0.4473  | -0.0020 | -1.8         |
| 17.7   | 0.4475  | 0.4456  | -0.0019 | -2.3         |
| 18.0   | 0.4465  | 0.4455  | -0.0011 | -1.7         |
| 18.3   | 0.4459  | 0.4446  | -0.0013 | -3.1         |

The spread is always negative (after large gaps, <r> is slightly lower) and **weakens with scale**: from -0.0027 at ln(p)=16 to ~-0.0013 at ln(p)=18.3. Consistent with POISSON_CONVERGENCE — the local conditioning vanishes as primes decorrelate.

### Direct correlation

| Metric | Primes    | Shuffle       | z-score |
|--------|-----------|---------------|---------|
| corr(g_{i-1}, r_i) | -0.00273 | 0.00005 +/- 0.00032 | -8.8 |

Real but tiny. The dipolar anti-correlation *exists* as a local effect (z=-8.8), but it carries only ~1% of the total ordering signature.

## Key Findings

1. **The dipole is distributed, not local.** Shuffling destroys <r> by +0.014 (z=-60), but conditioning on the previous gap modulates <r> by only -0.002. The anti-correlation that makes primes unique in the spectral niche (<r>, acf1) is a *global sequence property* — it cannot be decomposed into pairwise local interactions.

2. **The conditional effect is real but marginal.** corr(g_{i-1}, r_i) = -0.003 at z=-8.8 — statistically significant, consistent with Hardy-Littlewood (large gaps tend to be followed by large-then-small pairs, lowering r). But 99% of the ordering signature comes from the collective sequence, not from adjacent conditioning.

3. **Both effects weaken with scale.** The unconditional <r> drifts from 0.454 to 0.445 (toward Poisson 0.386), and the conditional spread shrinks from -0.0027 to -0.0013. The distributed dipole decays slower than the local one — memory hierarchy confirmed: global structure is more robust than local conditioning.

## Verdict

**CONSTRAINT on DUALITA_DIPOLARE_VS_ILLUSORIA** — The dipolar duality in prime gaps is distributed (global sequence order), not local (adjacent conditioning). This constrains any model that places the det=-1 structure in pairwise interactions. The dipole lives in the *sequence as a whole* — destroying the order (shuffle = det=+1 operation) eliminates it, but conditioning within the ordered sequence barely reveals it. The illusory duality (shuffle) doesn't just lose amplitude — it loses a qualitatively different, collective structure.

**CONSTRAINT on GAP_ANTICORR** — The lag-1 anti-correlation (acf1 ~ -0.04) is real but accounts for only ~1% of the <r> ordering signature. The remaining 99% is in longer-range correlations — consistent with ACF_1K_LAW (1/k decay to lag 20+).

## Consecutio

The distributed nature of the dipole means: **what's the minimal subsequence length where the ordering signature appears?** If we take random contiguous windows of length L from the prime gap sequence, at what L does <r>_window significantly differ from <r>_shuffle? This would measure the *coherence length* of the dipolar structure — the scale below which primes look random and above which the collective anti-correlation emerges. The coherence length should grow with prime scale (toward Poisson).

## Files

- Script: /tmp/exp_conditional_r.py
- Data: tools/data/exp_conditional_r.json
- Report: tools/data/reports/agent_20260415_0330.md
