Skip to content

Commit ebcc7f2

Browse files
committed
experiments: midnight exp23 outcomes + contrast/sign-structure scripts + Milestone R (radiation as PAC ledger severance)
Adds midnight journals (exp23 outcomes, balance-coherence-QBE synthesis), exploration scripts (contrast, inconclusiveness, sign structure), and the Milestone R experiment set (radiation = PAC ledger severance).
1 parent 1c2e5ed commit ebcc7f2

68 files changed

Lines changed: 18124 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

foundational/experiments/midnight/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- [2026-06-13 — Maximal Coherence as the Connection Primitive (theory note)](journals/2026-06-13_maximal-coherence-connection-primitive.md)
1515
- [2026-06-13 — exp_23 Within-Scope Local Coupling Law: pre-registration](journals/2026-06-13_exp23-preregistration.md)
1616
- [2026-06-13 — exp_23 outcomes (INCONCLUSIVE, suggestive; global→local correction works)](journals/2026-06-13_exp23-outcomes.md)
17+
- [2026-06-14 — Coherence as Balance: the QBE as the dynamics of the connection primitive (theory)](journals/2026-06-14_balance-coherence-qbe-synthesis.md)
1718

1819
---
1920

foundational/experiments/midnight/journals/2026-06-13_exp23-outcomes.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,49 @@ established.
9898
or rule touched).
9999
- Running Midnight meta-pattern intact: the **local/relational** form of a prediction carries
100100
signal; the **global/coordinate** form (exp_19/21) carried artifacts.
101+
102+
---
103+
104+
## Post-hoc diagnostic (2026-06-14): why inconclusive, and the corrected observable
105+
106+
Exploratory follow-up (`explore_inconclusiveness.py`, `explore_contrast.py`) — **post-hoc on the
107+
same data, hypothesis-generating, NOT a result**; the registered verdict above stands. Captured
108+
because it sharply reframes the next prediction.
109+
110+
**The inconclusiveness was structural + methodological, not low power.**
111+
- *Wrong test.* R1 tested a monotone IP-ordering, but leave-one-ion-out shows the "trend" is
112+
carried entirely by the two IP extremes (drop AlII or CIV → rho 0.43→0.09; drop any middle ion
113+
→ rho rises to 0.49–0.66). The middle (SiII, CII, SiIV: 8–34 eV) is a dead-flat plateau at
114+
c = −1.07 ± 0.03.
115+
- *Centering shadow.* That flat plateau is a mean-centering artifact: subtracting the scope mean
116+
imprints a common recoil slope on passive ions. Removing the centering (direct pairwise
117+
contrasts) dissolves the plateau and exposes the signal.
118+
119+
**The corrected picture — the carriers are CIV and MgII, not an IP class.**
120+
Centering-free, slope of (logN_hi − logN_lo) vs local cascade phase diseq:
121+
122+
| pair | n | slope | CI95 |
123+
|------|--:|------:|------|
124+
| CIV − AlII | 24 | +4.22 | [+2.47, +6.30]|
125+
| CIV − AlIII | 11 | +3.05 | [+0.55, +8.10]|
126+
| CIV − FeII | 28 | +2.35 | [+0.57, +4.70]|
127+
| **SiIV** − FeII | 19 | −0.88 | [−3.62, +1.52] |
128+
| CIV − **MgII** | 30 | −0.17 | flat |
129+
130+
- **CIV** swings hard against passive ions toward cascade transitions. **SiIV** (also IP > E_H)
131+
does **not** — so the E_H / IP-threshold split is the wrong axis.
132+
- **CIV − MgII is flat** → MgII swings *with* CIV. The active set is **CIV + MgII** — exactly the
133+
two clean resonance doublets the 2026-06-08 tapestry flagged (MgII p=10⁻¹¹, CIV p≈0; FeII the
134+
anomaly). Two independent analyses → the same ion set: corroboration, not coincidence.
135+
- AlII's strong negative coupling in the registered run was **centering recoil** (it is the most
136+
passive ion, so it recoils hardest against CIV's rise) — which is why CIV−AlII is the largest
137+
swing. The "sign-flip near E_H" reading is superseded by this.
138+
139+
**Caveats (post-hoc):** single dataset, active set found by inspection; slopes are extrapolated
140+
(diseq never exceeds 0.44 — never a real transition); small n per pair. The bootstrap CIs
141+
excluding zero are real but this is the *hypothesis*, not its confirmation.
142+
143+
**Next registered prediction (writes itself):** *the clean-doublet ions (CIV, MgII) swing in
144+
abundance/coherence relative to passive ions as a function of local cascade phase* — pre-register
145+
on **new data (DESI multi-ion absorbers), ideally reaching diseq > 0.7** (a real transition). The
146+
active-ion set is now independently motivated by the tapestry, so the grouping is non-circular.
Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
# Coherence as Balance: the QBE as the Dynamics of the Connection Primitive
2+
3+
**Date:** 2026-06-14
4+
**Status:** Working draft (confidence ~0.55) — theory consolidation, no result yet
5+
**Consolidates:** [2026-06-13 Maximal Coherence as the Connection Primitive](2026-06-13_maximal-coherence-connection-primitive.md)
6+
(the C functional, null-interval C=1, revivals) + the legacy **Quantum Balance Equation**
7+
(`legacy-cim-qbe-origins`, `qbe-pac-unification`) + the exp_23 sign-structure finding.
8+
**Origin:** Peter's reading that robustness *is* symmetry/balance, and that the deep
9+
phenomenon is the asymmetry between balance at *admission* (emission) and balance at
10+
*actualization* (absorption / now).
11+
12+
---
13+
14+
## 0. Purpose
15+
16+
The maximal-coherence note proposed that coherence *is* the connection primitive read as a
17+
magnitude `C`, with `C=1` the undeformed state, decoherence `dC/dτ < 0`, and revivals from
18+
redistribution. Its central open problem was: **write `C` and give it dynamics.** This note
19+
supplies the dynamics — they are the **Quantum Balance Equation** — and reframes the whole
20+
object around a single idea: **coherence is balance, and what we observe is balance frozen at
21+
admission and read at actualization.**
22+
23+
---
24+
25+
## 1. Thesis in one paragraph
26+
27+
A connection at full strength is two ledgers in **balanced correspondence**. Coherence `C` is
28+
that balance read as a magnitude: `C=1` is perfect shared balance (symmetry), `C<1` is
29+
imbalance accrued between the two loci. The Quantum Balance Equation governs how each locus
30+
relaxes toward its **own local** balance; that local balancing is precisely what erodes the
31+
**shared** balance that linked the two loci — so **decoherence is the triumph of local balance
32+
over shared balance**. Things are robust because they are momentarily in balance (symmetric),
33+
not by nature — and a configuration balanced at the moment of admission (emission) need not be
34+
balanced at the moment of actualization (absorption). The delta between admission-balance and
35+
actualization-balance is the deformation that proper time deposits — the **memory** — and it is
36+
what light carries to us.
37+
38+
---
39+
40+
## 2. The Quantum Balance Equation (restated)
41+
42+
```
43+
dI/dt + dE/dt = λ · QPL(t), QPL(t) = Q₀ · e^(−t/τ)
44+
```
45+
46+
The rate of change of information plus energy equals a coupling term that **decays
47+
exponentially**. Strict conservation is `dI/dt + dE/dt = 0`; the RHS is the *deviation from
48+
balance*, relaxing to zero over timescale `τ`. So a system left alone **relaxes toward its own
49+
balance**. Empirically QPL_damping = 0.02; PAC later derives the characteristic
50+
**0.020 Hz** through Ξ = γ + ln(φ) (`qbe-pac-unification`). The QBE is the original infodynamic
51+
balance law; PAC's `P + A + Δ = C` is its first-principles, per-ledger form (conservation =
52+
balance).
53+
54+
---
55+
56+
## 3. The synthesis — coherence is balance, the QBE is its dynamics
57+
58+
Three identifications turn the QBE into the dynamics the coherence note lacked.
59+
60+
### 3.1 `C` = shared balance
61+
For two loci `i, j`, let `C(i,j) ∈ [0,1]` measure how much their ledgers are in **balanced
62+
correspondence**`C=1` when their potential/actual books mirror each other with no net delta.
63+
This is "coherence is the connection magnitude" (the prior note) restated as balance: a
64+
connection at full strength *is* two ledgers in symmetric balance.
65+
66+
### 3.2 The QBE relaxes each locus to its **own** balance
67+
Each locus independently obeys the QBE: its imbalance source `QPL` decays, so it equilibrates
68+
toward its *local* balance over `τ`. This is the same move SEC makes — collapse relative to the
69+
**local** gradient (M13), the locality principle that rescued exp_23.
70+
71+
### 3.3 Decoherence = local balance defeating shared balance (the key step)
72+
Here is the reconciliation of an apparent paradox: the QBE says systems *relax toward* balance,
73+
yet coherence *decays*. Both are true because they are about **different balances**. As `i` and
74+
`j` each pursue their **own local** balance, they drift out of correspondence with **each
75+
other** — the shared/global balance that linked them erodes. So:
76+
77+
> **Decoherence is each ledger equilibrating to its local balance, at the cost of the shared
78+
> balance.** `C` falls not because balance is lost but because balance becomes *local* instead
79+
> of *shared*.
80+
81+
The decay rate is the QBE's `1/τ`; the characteristic coherence frequency is the Ξ-derived
82+
**0.020 Hz**. This gives `C(τ)` a concrete form (exponential envelope at the balance frequency)
83+
— the prior note's missing dynamics.
84+
85+
This is also the deepest statement of the **globalism→locality** lesson that has run through all
86+
of Midnight: the universe's default motion is *toward local balance*, which is why global/
87+
coordinate quantities decohere (die) and local/relational ones persist (survive). Decoherence
88+
*is* localization.
89+
90+
---
91+
92+
## 4. The three regimes, from balance
93+
94+
The prior note's discriminator (one `C` must yield null-link, decoherence, revival). Each now
95+
follows from balance:
96+
97+
- **Null interval → C = 1.** Zero proper time ⇒ no local relaxation has accrued between
98+
emission and absorption ⇒ the two endpoints never pursued separate local balances ⇒ shared
99+
balance intact ⇒ `C=1`. The photon's endpoints are one balanced connection. (Same conclusion
100+
as the prior note, now *because* no local balancing intervened.)
101+
- **Decoherence → dC/dτ < 0.** Local relaxation (QBE, rate 1/τ) erodes shared balance. The
102+
exponential `QPL` decay is the functional form.
103+
- **Revival → dC/dτ > 0.** The QBE is a **balance** (a signed sum), not a monotone; when the
104+
geometry brings two loci's local balances back into correspondence, shared balance *re-forms*.
105+
Revivals require no extra postulate — re-balancing is allowed by the same law. (The prior
106+
note's "redistribution permits revivals" is just balance restoring.)
107+
108+
---
109+
110+
## 5. The admission ↔ actualization asymmetry (the core phenomenon)
111+
112+
PAC's two moments: **admission** (potential declared / emission) and **actualization**
113+
(collapse / absorption / measurement / now). The QBE runs between them. A configuration may be:
114+
115+
- **balanced at admission, imbalanced at actualization** — it has relaxed locally in transit;
116+
we read a decohered version of a once-coherent emission;
117+
- **imbalanced at admission, balanced at actualization** — it has *found* balance since; we read
118+
coherence that wasn't there at emission.
119+
120+
So **robustness is not a property of a thing — it is a property of a moment.** A robust
121+
(symmetric) configuration now may have been unstable at admission; an unstable-looking ancient
122+
signal may be balanced now. **The asymmetry `Δ_balance = balance(actualization) −
123+
balance(admission)` is exactly the deformation proper time deposits — the memory** — and it is
124+
`1 − C` read from the receiver's frame (M13 parallax; M15: the observer supplies the frame /
125+
metric representative). Light is archaeology because it freezes the *admission* balance and we
126+
necessarily read it at *actualization*.
127+
128+
---
129+
130+
## 6. exp_23 through balance
131+
132+
The within-scope coupling result reads cleanly as balance:
133+
134+
- **Robust contrasts (CIV/AlII, CI excludes 0, 92% of scopes)** = configurations in shared
135+
balance *at the epoch observed* — robust because symmetric *now*, which (per §5) does not mean
136+
they always were.
137+
- **The coupling sign flips across IP near E_H ≈ 27 eV** = the **balance inversion point**.
138+
Below it the within-scope ledger tilts one way, above it the other. That the inversion sits at
139+
the **reservoir quantum E_H** — the same Ξ-scale where the QBE↔PAC bridge lives — suggests
140+
**E_H is the balance energy**: the scale at which admission and actualization balance meet.
141+
- **The MgII anomaly (positive coupling at low IP, jackknife-stable)** = an ion whose
142+
admission/actualization balance is offset by its multiplet structure — it reads "wrong-signed"
143+
because its local relaxation differs.
144+
145+
The cascade-phase dependence (p=0.049) is then the *shared* balance shifting as the cascade
146+
clock advances — the QBE running, observed.
147+
148+
---
149+
150+
## 7. The testable edge
151+
152+
If `1 − C` (the admission/actualization delta, the memory) accrues via the QBE, it must
153+
**scale with proper time** — i.e. with **lookback**. Concretely:
154+
155+
> **Older light carries systematically more admission/actualization offset.** The deformation
156+
> `Δ_balance(z)` should grow with redshift, at a rate set by the Ξ-derived balance frequency
157+
> (~0.020 Hz / the cascade clock).
158+
159+
exp_23 was a single-epoch snapshot, so it sees the balance *state* (the E_H inversion now) but
160+
not its *accrual*. The accrual is the deep, falsifiable form of photon archaeology and is what a
161+
**multi-epoch baseline (DESI DR1)** can test: does the coherence deficit — and the sign-flip
162+
energy — drift with lookback as the φ-cascade balance predicts? This is the natural next
163+
*registered* experiment, distinct from this consolidation.
164+
165+
---
166+
167+
## 8. Open problems (honest)
168+
169+
- **`C` still not written in closed form.** Two ingredients are now in hand — the M14
170+
orbit-Hilbert-space overlap (prior note's candidate for the *static* functional) and the QBE
171+
(this note's *dynamics*). Uniting them — showing the orbit-overlap evolves under the QBE as a
172+
balance — is the central piece of work.
173+
- **Phase.** `C` must be complex (decoherence kills the off-diagonal *magnitude*, interference
174+
lives in the *phase*); the QBE as written is real (I, E rates). The phase must come from SEC
175+
complexification (M14, A₁→SL(2,ℂ)). Showing QBE + complexification ⇒ complex `C` is open.
176+
- **The 0.020 Hz attractor is not fully derived** (naive Ξ gives 0.037 Hz; 0.020 is an
177+
attractor whose mechanism is open — `qbe-pac-unification`). If 0.020 Hz is the coherence
178+
frequency, this gap propagates here.
179+
- **"Shared balance" needs an operational measure** that reduces to the orbit-overlap and obeys
180+
the QBE — currently a concept, not yet a metric.
181+
182+
---
183+
184+
## 9. Placement
185+
186+
This sits at the M12 (connection primitive) ↔ M13 (proper time as deformation rate) ↔ M14
187+
(orbit Hilbert space) seam, with the **QBE** (legacy infodynamics) supplying the dynamics and
188+
**PAC** supplying the conservation. It does not introduce a new primitive; it identifies
189+
coherence with balance and hands the coherence functional its equation of motion. The immediate
190+
forward actions: (1) write `C` as orbit-overlap evolving under the QBE; (2) register the
191+
lookback-scaling test (§7) for DESI.
192+
193+
```
194+
QBE (balance law) → PAC (per-ledger conservation)
195+
└→ C = shared balance (this note + the maximal-coherence note)
196+
└→ decoherence = local balance defeating shared balance (QBE relaxation)
197+
└→ admission↔actualization asymmetry = memory = 1−C (M13 parallax, M15 frame)
198+
└→ exp_23: E_H = balance energy; next: lookback-scaling test (DESI)
199+
```
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
"""
2+
EXPLORATORY / post-hoc (context for the next registered prediction) — the FIXED exp_23 observable.
3+
4+
exp_23 (registered f1639e08, INCONCLUSIVE) tested the MEAN-CENTERED per-ion coupling for a
5+
MONOTONE IP-ordering. The diagnostic (explore_inconclusiveness.py) showed: the structure is an
6+
ENDPOINT CONTRAST (flat plateau + opposite-signed IP extremes), the flat middle is a
7+
mean-centering shadow, and the real signal is the HIGH-IP vs LOW-IP coupling contrast vs local
8+
cascade phase, measured CENTERING-FREE.
9+
10+
The fixed observable (principled, non-circular pivot = the Hartree reservoir quantum E_H):
11+
HIGH = ions with IP > E_H (27.2 eV) -- above the reservoir quantum (active)
12+
LOW = ions with IP < E_H -- below (settled)
13+
per scope: contrast = mean(logN_HIGH) - mean(logN_LOW) [within-frame difference: centering-free]
14+
test: does the contrast grow with local cascade phase diseq?
15+
16+
Balance reading: the contrast is the high/low IP imbalance; the prediction is that cascade
17+
transitions DRIVE that imbalance (the middle is the balance pivot, the extremes swing apart).
18+
19+
NOT registered. Post-hoc context to design the next pre-registered test (DESI / new data).
20+
"""
21+
22+
import numpy as np
23+
from scipy.stats import spearmanr, mannwhitneyu
24+
from exp_23_joint_coupling import load_xqr30_scopes
25+
from exp_19_ionization_coupling import ION_IP, n_at_z
26+
27+
E_H = 27.2
28+
def diseq(N): return max(0.0, 1.0 - 2.0 * abs(N - round(N)))
29+
rng = np.random.RandomState(20260614)
30+
scopes = load_xqr30_scopes()
31+
32+
33+
def boot_slope(D, Y, nb=5000):
34+
s = float(np.polyfit(D, Y, 1)[0])
35+
bs = []
36+
for _ in range(nb):
37+
idx = rng.randint(0, len(D), len(D))
38+
if len(np.unique(np.round(D[idx], 3))) >= 2:
39+
bs.append(np.polyfit(D[idx], Y[idx], 1)[0])
40+
return s, float(np.percentile(bs, 2.5)), float(np.percentile(bs, 97.5))
41+
42+
43+
def contrast(exclude=()):
44+
D, Y = [], []
45+
for d in scopes.values():
46+
hi = [v for i, v in d['ions'].items() if ION_IP[i] > E_H and i not in exclude]
47+
lo = [v for i, v in d['ions'].items() if ION_IP[i] < E_H and i not in exclude]
48+
if hi and lo:
49+
D.append(diseq(n_at_z(d['z']))); Y.append(np.mean(hi) - np.mean(lo))
50+
return np.array(D), np.array(Y)
51+
52+
53+
print("=" * 68)
54+
print("FIXED observable: HIGH(IP>E_H) - LOW(IP<E_H) logN contrast vs cascade phase")
55+
print("=" * 68)
56+
57+
for label, excl in [("all ions", ()), ("excl. MgII (confirmed anomaly)", ('MgII',))]:
58+
D, Y = contrast(exclude=excl)
59+
s, a, b = boot_slope(D, Y)
60+
rho, p = spearmanr(D, Y)
61+
# transition-vs-trough (avoids slope extrapolation; tapestry-style 2-sample)
62+
hiD, loD = Y[D > 0.3], Y[D <= 0.3]
63+
U, pu = mannwhitneyu(hiD, loD, alternative='greater')
64+
print(f"\n[{label}] n={len(D)} scopes")
65+
print(f" slope vs diseq = {s:+.3f} CI95=[{a:+.3f},{b:+.3f}]"
66+
f"{' ** excludes 0' if a > 0 or b < 0 else ''}")
67+
print(f" Spearman(diseq, contrast) rho={rho:+.3f} p={p:.4f}"
68+
f"{' ** p<0.05' if p < 0.05 else ''}")
69+
print(f" toward-transition (diseq>0.3, n={len(hiD)}) median={np.median(hiD):+.2f} "
70+
f"vs toward-trough (n={len(loD)}) median={np.median(loD):+.2f} "
71+
f"MannWhitney(greater) p={pu:.4f}{' ** p<0.05' if pu < 0.05 else ''}")
72+
73+
# pairwise: which HIGH-LOW pairs carry it (centering-free)
74+
print("\nPairwise high-low contrasts vs diseq (slope, CI95):")
75+
HIGH = [i for i in ION_IP if ION_IP[i] > E_H]
76+
LOW = [i for i in ION_IP if ION_IP[i] < E_H]
77+
rows = []
78+
for h in HIGH:
79+
for l in LOW:
80+
D, Y = [], []
81+
for d in scopes.values():
82+
if h in d['ions'] and l in d['ions']:
83+
D.append(diseq(n_at_z(d['z']))); Y.append(d['ions'][h] - d['ions'][l])
84+
D, Y = np.array(D), np.array(Y)
85+
if len(D) >= 8 and len(np.unique(np.round(D, 3))) >= 4:
86+
s, a, b = boot_slope(D, Y)
87+
rows.append((h, l, len(D), s, a, b, a > 0 or b < 0))
88+
for h, l, n, s, a, b, sig in sorted(rows, key=lambda r: -r[3]):
89+
print(f" {h:>4}-{l:<4} n={n:>2} slope={s:+.3f} CI95=[{a:+.3f},{b:+.3f}]"
90+
f"{' **' if sig else ''}")
91+
92+
print("\n(Exploratory/post-hoc. The significant centering-free contrast is the observable to")
93+
print(" PRE-REGISTER on new/held-out data — DESI multi-ion absorbers, ideally reaching diseq>0.7.)")

0 commit comments

Comments
 (0)