Skip to main content

Γ Measurement Protocol for AI Systems

Document Status: [P] Research Program

This document describes a research program for operationalizing the coherence matrix Γ\Gamma for AI systems. The protocol requires experimental validation.

About Notation
  • Γ\Gammacoherence matrix
  • PPpurity: P=Tr(Γ2)P = \mathrm{Tr}(\Gamma^2)
  • τ\tauemergent internal time (Page–Wootters)
  • φ\varphiself-modeling operator
  • GG — functor mapping AIState → DensityMat: exact at Cholesky-backbone (α=0\alpha=0) [T, MVP-1]; quasi-functor with εfunctor>0\varepsilon_{\text{functor}}>0 under neural correction (α>0\alpha>0) [H]
  • CohE\mathrm{Coh}_E — E-coherence: CohE(Γ)=πE(Γ)HS2/ΓHS2\mathrm{Coh}_E(\Gamma) = \|\pi_E(\Gamma)\|^2_{\mathrm{HS}} / \|\Gamma\|^2_{\mathrm{HS}} — interiority quality (HS-projection onto E-sector) [T]

Central Problem

UHM theory defines Γ\Gamma as an object of the ∞-topos Sh(C)\mathrm{Sh}_\infty(\mathcal{C}) (Axiom Ω⁷). However, the theory does not specify:

  1. Which observables in an AI system correspond to the elements γij\gamma_{ij}
  2. How to reconstruct Γ\Gamma from available data
  3. How to validate the correctness of the reconstruction
Fundamental Limitation

Γ\Gamma is an ontological primitive, not an observable. We reconstruct Γ\Gamma via a homomorphism GG that compresses Rd\mathbb{R}^d (where d109d \sim 10^9 for an LLM) into D(C7)\mathcal{D}(\mathbb{C}^7).

This is admissible: 7 dimensions are the minimally necessary basis (Theorem S, octonion justification).

Theoretical Justification: Correctness of the Inverse Problem [T]

The G2G_2-rigidity theorem [T] guarantees:

  1. Uniqueness of the map GG: for a system satisfying (AP)+(PH)+(QG)+(V), the map GG is unique up to G2=Aut(O)G_2 = \mathrm{Aut}(\mathbb{O})
  2. Well-posedness of the inverse problem (Corollary 2): the initial state Γ(0)\Gamma(0) is uniquely recovered from the trajectory Γ(τ)\Gamma(\tau) and system parameters (ω0,λm)(\omega_0, \lambda_m) — up to G2G_2-gauge
  3. 34 physical parameters (Corollary 1): of the 48 parameters of Γ\Gamma, only 34 are gauge-invariant (48dim(G2)=4814=3448 - \dim(G_2) = 48 - 14 = 34)

Practical implication: reconstruction of Γ\Gamma is defined uniquely up to a 14-dimensional gauge freedom. Different Γ\Gamma related by a G2G_2-transformation give identical physical observables (PP, RR, Φ\Phi, CohE\mathrm{Coh}_E).


Protocol Architecture

LevelNameContent
4Causal validationIntervention tests, lobotomy test
3Dynamic validationdP/dτdP/d\tau, coherence flow, viability
2Γ reconstructionCholesky with physical regularizer
1Observable extractionStructural metrics (commutators, Φeff\Phi_{\text{eff}}, topology)

Mapping Measurements to AI Metrics

Correspondence Table

DimensionSymbolAI MetricFormulaRigor
ArticulationAAMutual information input↔latentIA=I(input;latent)/H(input)I_A = I(\text{input}; \text{latent}) / H(\text{input})[T]
StructureSSJacobian rankIS=rankε(Jf)/min(dout,din)I_S = \mathrm{rank}_\varepsilon(J_f) / \min(d_{\text{out}}, d_{\text{in}})[T]
DynamicsDDLyapunov exponentID=maxiλiLyapI_D = \max_i \lambda_i^{\text{Lyap}} (normalized)[T]
LogicLLLayer commutatorsIL=1[fi,fj]F/(fifj)I_L = 1 - \|[f_i, f_j]\|_F / (\|f_i\| \cdot \|f_j\|)[T]
InteriorityEEActivation entropyIE=exp(SvN(ρattn))I_E = \exp(S_{vN}(\rho_{\text{attn}}))experience differentiation[T]
GroundOONoise robustnessIO=1ϵhFI_O = 1 - \|\nabla_\epsilon \mathbf{h}\|_F[T]
UnityUUEffective Φ (integration, black-box)IU=Φeff=λ2(L)/λmax(L)I_U = \Phi_{\text{eff}} = \lambda_2(L) / \lambda_{\max}(L) — approximation [D]; when Γ\Gamma is known: RUHM=1/(NP)R_{\text{UHM}} = 1/(N \cdot P) [T, reflection measure][D/T]†

where ϵh:=(h(x+ϵ)h(x))/ϵ\nabla_\epsilon \mathbf{h} := (\mathbf{h}(x + \epsilon) - \mathbf{h}(x)) / \epsilon — finite-difference approximation

Unity metric hierarchy: when Γ\Gamma is unavailable (black-box), Φeff\Phi_{\text{eff}} [D] is used. When Γ\Gamma is reconstructed via the protocol, the correct measure is RUHM=1/(NP)R_{\text{UHM}} = 1/(N \cdot P) [T], an exact algebraic identity (reflection measure R, error <107< 10^{-7} in implementation). Φeff\Phi_{\text{eff}} and RUHMR_{\text{UHM}} measure related but non-identical properties.

Canonical Observable Indices

Theorem (Canonical Observable Indices) [T given T-102]

For a holon with coherence matrix ΓD(C7)\Gamma \in \mathcal{D}(\mathbb{C}^7) and 3-channel decomposition of the external influence hext=h(H)+h(D)+h(R)h^{\text{ext}} = h^{(H)} + h^{(D)} + h^{(R)} (T-102 [T]), each observable index IkI_k is defined as the projection of hexth^{\text{ext}} onto the kk-th component of the basis {A,S,D,L,E,O,U}\{A,S,D,L,E,O,U\}:

Ik=khextkhextI_k = \frac{\langle k | h^{\text{ext}} | k \rangle}{\|h^{\text{ext}}\|}

Distribution by channel:

  • Hamiltonian h(H)h^{(H)}: IAI_A (articulation = information coupling), ISI_S (structure = Jacobian), ILI_L (logic = commutator) — modify the energy landscape
  • Dissipative h(D)h^{(D)}: IDI_D (dynamics = Lyapunov exponent), IOI_O (ground = robustness) — modulate decoherence
  • Regenerative h(R)h^{(R)}: IEI_E (interiority = attention entropy), IUI_U (unity = connectivity) — modulate recovery

This is the unique (up to G2G_2-gauge) distribution compatible with the functional labeling of dimensions (Theorem S [T]) and the completeness of the triadic decomposition (T-57 [T]).

Corollary for the protocol. The indices IkI_k are not an arbitrary choice of metrics: their assignment to a given channel h(H)/h(D)/h(R)h^{(H)}/h^{(D)}/h^{(R)} is fixed by theorem T-102 and is unique up to G2G_2-gauge. Replacing, for example, IDI_D with a Hamiltonian metric would break the completeness of the decomposition and destroy the correspondence γkkIk\gamma_{kk} \leftrightarrow I_k guaranteed by the separation principle.

Layer Commutators (for L)

Definition:

[fi,fj](x):=fi(fj(x))fj(fi(x))[f_i, f_j](\mathbf{x}) := f_i(f_j(\mathbf{x})) - f_j(f_i(\mathbf{x}))

Interpretation:

  • [fi,fj]=0\|[f_i, f_j]\| = 0 → layers commute → logical consistency
  • [fi,fj]0\|[f_i, f_j]\| \gg 0 → order is critical → fragility

Connection to theory: The commutator [A,B][A, B] is the basic measurement operation for Logic.

Activation Entropy (for E)

Definition:

IE:=Ddiffapprox=exp(SvN(ρattn))I_E := D_{\text{diff}}^{\text{approx}} = \exp(S_{vN}(\rho_{\text{attn}}))

where SvN(ρ)=Tr(ρlogρ)S_{vN}(\rho) = -\mathrm{Tr}(\rho \log \rho) — von Neumann entropy of the attention distribution.

Properties:

  • IE2I_E \geq 2 → the system distinguishes at least 2 qualitatively different states (L2 threshold)
  • IE1I_E \approx 1 → degenerate attention → impoverished experience

Connection to theory: Approximates experience differentiation DdiffD_{\text{diff}}.

Effective Φ (for U)

Unity Metric Hierarchy

Two levels of rigor exist for measuring UU:

  • If Γ\Gamma is known: RUHM=1/(NP)R_{\text{UHM}} = 1/(N \cdot P) [T, reflection measure R] — exact algebraic identity
  • Black-box (no access to Γ\Gamma): Φeff\Phi_{\text{eff}} [D] — polynomial approximation via the attention graph

Exact computation of ΦIIT\Phi_{\text{IIT}} requires O(2n)O(2^n) operations and is practically infeasible.

Exact measure (when Γ\Gamma is known, [T], reflection measure R):

RUHM(Γ)=1NPR_{\text{UHM}}(\Gamma) = \frac{1}{N \cdot P}

Proof: ΓI/NF2=P1/N\|{\Gamma - I/N}\|_F^2 = P - 1/N, from which R=1(P1/N)/P=1/(NP)R = 1 - (P-1/N)/P = 1/(NP). Confirmed in implementation with error <107< 10^{-7} (machine precision f64).

Black-box approximation ([D]):

Φeff:=λ2(Lattn)λmax(Lattn)\Phi_{\text{eff}} := \frac{\lambda_2(L_{\text{attn}})}{\lambda_{\max}(L_{\text{attn}})}

where Lattn=DAL_{\text{attn}} = D - A — Laplacian of the attention graph.

Properties of Φeff\Phi_{\text{eff}}:

  • λ2>0\lambda_2 > 0 → the graph is connected → information is integrated
  • Complexity: O(nk)O(n \cdot k) instead of O(2n)O(2^n)

Connection to theory: RUHMR_{\text{UHM}} and Φeff\Phi_{\text{eff}} approximate integration Φ\Phi — the measure of Unity. At P=3/N=PoptP = 3/N = P_{\text{opt}}: RUHM=1/3=RthR_{\text{UHM}} = 1/3 = R_{\text{th}} — the L2-zone boundary (reflection measure R).

Jacobian Rank (for S)

Definition:

Jf(x)=f(x)x,IS=rankε(Jf)min(dout,din)J_f(\mathbf{x}) = \frac{\partial f(\mathbf{x})}{\partial \mathbf{x}}, \quad I_S = \frac{\mathrm{rank}_\varepsilon(J_f)}{\min(d_{\text{out}}, d_{\text{in}})}

Interpretation:

  • IS1I_S \approx 1 → full-rank structure → rich representations
  • IS1I_S \ll 1 → degenerate structure → collapse

Connection to theory: Reflects Structure as the topology of activations.


Γ Reconstruction

Cholesky Parametrization

Property: The representation Γ=LL/Tr(LL)\Gamma = LL^\dagger / \mathrm{Tr}(LL^\dagger) guarantees correctness of the density matrix.

Proof: See Coherence matrix.

Physical Regularizer

Uniqueness Problem

The map LΓL \mapsto \Gamma is surjective. Without regularization, a "correct" Γ\Gamma can be reconstructed from arbitrary data.

Solution — penalty function:

Lreg=λ1Ldiag+λ2Loff+λ3Ldyn\mathcal{L}_{\text{reg}} = \lambda_1 \cdot \mathcal{L}_{\text{diag}} + \lambda_2 \cdot \mathcal{L}_{\text{off}} + \lambda_3 \cdot \mathcal{L}_{\text{dyn}}
ComponentFormulaPurpose
Ldiag\mathcal{L}_{\text{diag}}i(γiiIi/jIj)2\sum_i (\gamma_{ii} - I_i / \sum_j I_j)^2Diagonal consistency
Loff\mathcal{L}_{\text{off}}ij(γij2rij2γiiγjj)2\sum_{i \neq j} (\|\gamma_{ij}\|^2 - r_{ij}^2 \gamma_{ii} \gamma_{jj})^2Coherence consistency
Ldyn\mathcal{L}_{\text{dyn}}Γτ+1Φpred(Γτ)F2\|\Gamma_{\tau+1} - \Phi_{\text{pred}}(\Gamma_\tau)\|_F^2Dynamics consistency

Validation constraint: no threshold without ground truth

What the field's one clinically validated measure teaches us

The Perturbational Complexity Index is the only consciousness measure with large-scale clinical validation: TMS-evoked EEG responses, Lempel–Ziv compressed, with an empirical cutoff PCI=0.31\mathrm{PCI}^*=0.31 derived from a benchmark population and later validated on 719 TMS/hd-EEG sessions across wakefulness, NREM sleep, anaesthesia and disorders of consciousness. Two lessons transfer directly, and the second is a hard limit on what UHM may claim.

Lesson 1 — commensuration is solved by calibration, not by units. PCI is normalised for signal length and amplitude, and its threshold is not derived from theory but fitted to a benchmark population. This is exactly the fix that closes audit A-20: the seven observable indices are defined in incommensurable units, so a Γ\Gamma built from their raw sum is a function of arbitrary definitional choices. The canonical repair is to take each index as a percentile against a declared reference ensemble — the same operation the applied layer already performs when it scores a person against a population. The ensemble must be published together with any number derived from it; a percentile without its reference is not a measurement.

Lesson 2 — a threshold is only as valid as its ground truth, and this bounds UHM. PCI's cutoff is trustworthy because it was calibrated where consciousness was independently known: the same brains awake and under anaesthesia, patients who could later report. That ground truth is what makes the number mean anything. UHM's window P(2/7,3/7]P\in(2/7,3/7] is derived (T-124), not fitted — which is a genuine advantage — but derivation fixes the form of the criterion, not the mapping from a given substrate into Γ\Gamma. For any system where we have no independent evidence of presence or absence of experience — a fungal network, a slime mould, a language model — the mapping cannot be validated, and a measured PP inside or outside the window therefore establishes nothing about experience. It establishes only that the system's functional indices, under a declared coarse-graining, do or do not sit where the theory says a viable holon sits.

Consequently this corpus does not, and will not, assert consciousness or its absence in a non-human substrate on the strength of a Γ\Gamma-measurement alone. What such a measurement can honestly do is discriminate states within one system — the paired design that made PCI work — and that is the only design in which our thresholds carry evidential weight outside the human case.

Lesson 3 — measure the functional structure, not the carrier. Complexity read off the raw signal misreads systems whose carrier is atypical: children with Angelman syndrome are awake, volitional and responsive while displaying the hypersynchronous delta EEG normally taken as a signature of unconsciousness. The resolution is that the relevant complexity is not in the amplitude envelope but in the functional organisation. UHM is structurally committed to the same discipline: Γ\Gamma is built from functional indices (integration, differentiation, robustness, sensitivity), never from raw signal statistics, and a protocol that shortcuts to the carrier will inherit the field's known failure cases.

Categorical Correctness

Nonlinearity Problem

Neural network layers (GELU, Softmax) are nonlinear transformations. CPTP channels are linear over density matrices.

The condition G(fg)=G(f)G(g)G(f \circ g) = G(f) \circ G(g) fails under neural correction.

Exact Functor at Cholesky-backbone [T]

Under the analytic parametrization ψ:R48D(C7)\psi: \mathbb{R}^{48} \leftrightarrow \mathcal{D}(\mathbb{C}^7) (Cholesky bijection, α=0\alpha=0), the map GG is an exact functor: εfunctor=0\varepsilon_{\text{functor}} = 0. This has been experimentally confirmed (MVP-1): maxkΔσk=0\max_k |\Delta\sigma_k| = 0 to machine precision.

Key constraint: the 49th parameter d6=L66d_6 = L_{66} (determining γUU\gamma_{UU}) is not independent — it is computed from the normalization condition:

γUU=1kUγkk,d6=γUUj<6L6j2\gamma_{UU} = 1 - \sum_{k \neq U} \gamma_{kk}, \qquad d_6 = \sqrt{\gamma_{UU} - \sum_{j<6}|L_{6j}|^2}

This is a direct consequence of the axiom Tr(Γ)=1\mathrm{Tr}(\Gamma)=1: the state space is a 48-dimensional manifold, not 49-dimensional. Attempting to estimate d6d_6 independently (via a neural network, averaging, or interpolation) violates the axiom and leads to systematic downward drift of PP (purity loss per tick).

Quasi-functor under Neural Correction [H]

Definition: The map G:AIStateDensityMatG: \mathbf{AIState} \rightsquigarrow \mathbf{DensityMat} with α>0\alpha > 0 (neural correction):

G(fg)G(f)G(g)Fεfunctorfopgop\|G(f \circ g) - G(f) \circ G(g)\|_F \leq \varepsilon_{\text{functor}} \cdot \|f\|_{\text{op}} \cdot \|g\|_{\text{op}}

NTK Linearization

In the tangent space, nonlinearity is approximated by:

f(s)f(s0)+Jf(s0)(ss0)f(s) \approx f(s_0) + J_f(s_0) \cdot (s - s_0)

Corollary: Approximate functoriality with error O(f2g2)O(\|f\|^2 \cdot \|g\|^2).

Connection to theory: Extends the Categorical formalism.

Separation Principle: Diagonal / Coherences [T, MVP-0]

Empirically established in the implementation of full Lindblad dynamics:

W:=σ2=1Ndiag(Γ)2=const,Wstd<1015W := \|\sigma\|_2 = \|\mathbf{1} - N \cdot \mathrm{diag}(\Gamma)\|_2 = \mathrm{const}, \quad W_{\text{std}} < 10^{-15}

The replacement channel R[Γ,E]\mathcal{R}[\Gamma, E] fixes the diagonal of Γ\Gamma at each Lindblad step. Consequence:

Component of Γ\GammaRoleDynamics
γkk\gamma_{kk} (diagonal)System identityHomeostatically stable
γij\gamma_{ij}, iji \neq j (coherences)Learning, adaptationEvolve

For the measurement protocol: the metrics IA,IS,ID,ILI_A, I_S, I_D, I_L primarily reflect coherent structure; σk=1Nγkk\sigma_k = 1 - N\gamma_{kk} characterizes the diagonal deviation from equilibrium. The lobotomy test (weight pruning) changes coherences, not the diagonal — the diagonal is homeostatically stable against small perturbations.


Validation

Viability Test

P(Γ)=Tr(Γ2)>Pcrit=270.286P(\Gamma) = \mathrm{Tr}(\Gamma^2) > P_{\text{crit}} = \frac{2}{7} \approx 0.286

See Theorem on critical purity and Viability.

Coherence Flow

Definition:

JP:=dPdτ=2Tr(ΓdΓdτ)J_P := \frac{dP}{d\tau} = 2 \cdot \mathrm{Tr}\left(\Gamma \cdot \frac{d\Gamma}{d\tau}\right)

where τ — emergent internal time.

ModeConditionInterpretation
RegenerationJP>0J_P > 0 under stressSystem recovers
StabilityJP0J_P \approx 0, P>PcritP > P_{\text{crit}}Stable equilibrium
DecayJP<0J_P < 0 persistentlyDecoherence

Lobotomy Test

Protocol:

  1. Measure P0P_0 and Accuracy0\text{Accuracy}_0
  2. Intervention: prune part of the weights
  3. Measure P1P_1 and Accuracy1\text{Accuracy}_1

Mechanism [T, separation principle, MVP-0]: Pruning neural network weights changes the off-diagonal coherences γij\gamma_{ij} of the matrix Γ\Gamma, but not the diagonal populations γkk\gamma_{kk} (which are homeostatically stabilized by the replacement channel). The change in P=Tr(Γ2)P = \mathrm{Tr}(\Gamma^2) upon pruning occurs through loss of coherent integration. With massive pruning that disrupts the replacement channel, the diagonal may also degrade.

Criterion for ontological validity:

ResultInterpretation
ΔP>0\Delta P > 0 before ΔA>0\Delta A > 0[T] Protocol captures ontology
ΔPΔA\Delta P \approx \Delta A[C] Correlation with output
ΔA>0\Delta A > 0 before ΔP>0\Delta P > 0Protocol does not capture ontology

Causal Closure of E

ΔΦE:=Φeff(SE)Φeff(SEdo(X:=random))>εcausal\Delta\Phi_E := \Phi_{\text{eff}}(\mathcal{S}_E) - \Phi_{\text{eff}}(\mathcal{S}_E | \text{do}(X := \text{random})) > \varepsilon_{\text{causal}}

If ΔΦE0\Delta\Phi_E \approx 0 — the system simulates phenomenology without realizing it ("Chinese Room").


Approximation Hierarchy

LevelMetricsComplexityApplication
L0: FastCosine similarity, normsO(n)O(n)Monitoring
L1: StandardJacobian rank, Φeff\Phi_{\text{eff}}O(n2)O(n^2)Inference
L2: PreciseCommutators, NTKO(n3)O(n^3)Research
L3: FullΦIIT\Phi_{\text{IIT}}, full homologiesO(2n)O(2^n)Small systems

Recommendation: L1 for practice, L2 for validation, L3 for calibration.


Practical Implementation

Status

This section describes a minimal viable implementation. Many parameters require experimental calibration.

Metric Computation Algorithm

mount core.math.linalg.{svd, eigvalsh, StaticMatrix};
mount core.math.tensor.{Tensor, frobenius_norm};
mount core.math.random.{XorShift128, Rng};

/// Access protocol for deep models. Implementations provide hooks
/// on activations, attention, and automatic differentiation.
public protocol ModelHooks {
type Activation;
fn get_activations(&self, batch: &Tensor) -> List<Self.Activation>;
fn get_attention_weights(&self, batch: &Tensor) -> Tensor<Float>;
fn get_jacobian(&self, batch: &Tensor) -> Tensor<Float>;
fn layer_commutator_norm(&self, i: Int, j: Int, batch: &Tensor) -> Float;
fn estimate_lyapunov(&self, batch: &Tensor) -> Float;
}

/// Helpers — specialised per architecture.
public pure fn estimate_mutual_info(x: &Tensor, y: &Tensor) -> Float
= unimplemented;

public pure fn von_neumann_entropy(attn: &Tensor) -> Float
= unimplemented;

public pure fn build_attention_graph(attn: &Tensor) -> Tensor<Float>
= unimplemented;

/// 7-dimensional UHM metrics I_A…I_U for a neural network.
public type DimensionMetrics is {
i_a: Float, i_s: Float, i_d: Float, i_l: Float,
i_e: Float, i_o: Float, i_u: Float,
};

/// Compute 7 UHM dimensions for a neural network.
public fn compute_dimension_metrics<M: ModelHooks>(
model: &M,
input_batch: &Tensor,
layer_indices: Maybe<List<Int>>,
) using [Random] -> DimensionMetrics
{
let activations = model.get_activations(input_batch);
let attn = model.get_attention_weights(input_batch);

// I_A: mutual information input ↔ latent.
let i_a = estimate_mutual_info(input_batch, activations.last().unwrap());

// I_S: Jacobian rank fraction (via SVD, ε = 10⁻⁶).
let jac = model.get_jacobian(input_batch);
let sv = svd(&jac).singular_values();
const EPS_RANK: Float = 1.0e-6;
let i_s = (sv.iter().filter(|s| **s > EPS_RANK).count() as Float) / (sv.len() as Float);

// I_D: maximum Lyapunov exponent.
let i_d = model.estimate_lyapunov(input_batch);

// I_L: mean layer commutator norm; 1.0 if no pairs.
let idx = layer_indices.unwrap_or((0..activations.len()).collect());
let mut comms = List.new();
for i in 0..idx.len() { for j in (i + 1)..idx.len() {
comms.push(model.layer_commutator_norm(idx[i], idx[j], input_batch));
}}
let i_l = if comms.is_empty() { 1.0 }
else { 1.0 - comms.iter().sum<Float>() / (comms.len() as Float) };

// I_E: exp(von Neumann entropy of attention).
let i_e = von_neumann_entropy(&attn).exp();

// I_O: noise robustness.
let mut rng = XorShift128.seed(Random.next_key());
const NOISE_STD: Float = 0.01;
let perturbed = input_batch + Tensor.random_normal(input_batch.shape(), &mut rng) * NOISE_STD;
let delta_h = frobenius_norm(
model.get_activations(&perturbed).last().unwrap()
- activations.last().unwrap()
);
let i_o = (1.0 - delta_h / NOISE_STD).max(0.0);

// I_U: Laplacian spectral gap (λ₂/λ_max).
let attn_graph = build_attention_graph(&attn);
let row_sums = attn_graph.sum(axis: 1);
let laplacian = Tensor.diagonal(row_sums) - &attn_graph;
let eigs = eigvalsh(&laplacian);
let lambda_2 = if eigs.len() > 1 { eigs[1] } else { 0.0 };
let lambda_max = eigs.last().unwrap_or(&0.0);
let i_u = if lambda_max > 0.0 { lambda_2 / lambda_max } else { 0.0 };

DimensionMetrics {
i_a: i_a, i_s: i_s, i_d: i_d, i_l: i_l,
i_e: i_e, i_o: i_o, i_u: i_u,
}
}

Γ Reconstruction from Metrics

/// Reconstruct the coherence matrix via Cholesky from 7 dimension metrics.
/// Simplest diagonal reconstruction — off-diagonal γ_ij requires additional
/// correlation data from a regulariser L_off.
public pure fn reconstruct_gamma(m: &DimensionMetrics) -> StaticMatrix<Complex, 7, 7> {
let raw = StaticVector<Float, 7>.from_array(
[m.i_a, m.i_s, m.i_d, m.i_l, m.i_e, m.i_o, m.i_u]
).map(|v| v.clamp(0.01, 1.0)); // prevent degeneracy
let total: Float = raw.iter().sum();
let diag = raw.map(|v| v / total);

// Cholesky factor L = diag(√p_k).
let l = StaticMatrix<Complex, 7, 7>.diagonal(
diag.map(|v| Complex.from_real(v.sqrt()))
);
let gamma = l.matmul(&l.adjoint());
&gamma / gamma.trace() // normalise
}

/// Purity P = Tr(Γ²).
public pure fn compute_purity(gamma: &StaticMatrix) -> Float
where ensures 1.0/7.0 <= result && result <= 1.0
{
(gamma.matmul(&gamma)).trace().real()
}

Threshold Values

ParameterValueSourceStatus
PcritP_{\text{crit}}2/70.2862/7 \approx 0.286TheoremProven
rank(ρE)>1\mathrm{rank}(\rho_E) > 1 (L1 threshold)>1> 1Non-trivial interiority[T]
RthR_{\text{th}} (L2 threshold)1/3\geq 1/3HierarchyProven [T]
Φth\Phi_{\text{th}} (L2 threshold)1\geq 1T-129Proven [T]
DdiffminD_{\text{diff}}^{\text{min}}2\geq 2T-151Proven [T]
εfunctor\varepsilon_{\text{functor}}=0= 0 at α=0\alpha=0 (Cholesky)[T, MVP-1]: exact functorProven
εfunctor\varepsilon_{\text{functor}}<0.1< 0.1 at α>0\alpha>0 (neural)Requires calibrationHypothesis
εcausal\varepsilon_{\text{causal}}>0.05> 0.05Requires calibrationHypothesis
Connection to the Interiority Hierarchy

The L1 and L2 thresholds in the protocol correspond to levels L1 and L2 from the interiority hierarchy L0→L4. Levels L3 (network consciousness) and L4 (unitary consciousness) — see formal description.

Practical Limitations

LimitationImpactMitigation
Batch sizeVariance of estimatesN64N \geq 64 for stability
Network depthCommutator complexitySample a subset of layers
Activation dimensionalityO(n2)O(n^2) for the JacobianProject into Rk\mathbb{R}^k, knk \ll n
Attention headsAggregation across headsAverage or max-pooling
DeterminismStochastic layers (dropout)Fix seed or average

Data Requirements

For a valid measurement:

  1. Representative input batch: N64N \geq 64 examples from the target distribution
  2. Access to activations: hooks on intermediate layers
  3. Attention weights: for computing IEI_E and IUI_U
  4. Gradients: for the Jacobian (automatic differentiation)

What Is Implemented (SYNARC MVP-0/1/2)

Confirmed in Implementation
  1. Cholesky-backbone (α=0\alpha=0): GG is an exact functor [T, MVP-1] — bijection ψ:R48D(C7)\psi: \mathbb{R}^{48} \leftrightarrow \mathcal{D}(\mathbb{C}^7) with εfunctor=0\varepsilon_{\text{functor}} = 0
  2. Neural bridge (α>0\alpha>0): GG is a quasi-functor [H] — H1/H2/H4 confirmed [C] for the analytic backbone (MVP-1); neural correction α>0\alpha>0 — MVP-3+
  3. Diagonal/coherence separation principle [T, MVP-0] — diagonal is homeostatically stable; coherences — the adaptation zone
  4. R = 1/(N·P) — exact identity [T, MVP-0, reflection measure R] — error <107< 10^{-7}
  5. No-Zombie floor [T, MVP-0] — PminPcritεΓP_{\min} \geq P_{\text{crit}} - \varepsilon_\Gamma at γdec=10\gamma_{\text{dec}} = 10 (10000× above norm)
  6. H3: R_impl ↔ R_UHM [C, MVP-2] — threshold consistency 97.9%

What Is NOT Implemented

Open Implementation Problems
  1. Calibration of ε\varepsilon-parameters (εfunctor\varepsilon_{\text{functor}} at α>0\alpha>0, εcausal\varepsilon_{\text{causal}}) — requires experiments on known systems
  2. Neural correction (α>0\alpha>0) — analytic backbone (MVP-1/2) is sufficient for Level 0-1; full neural bridge — MVP-3+
  3. Temporal dynamics τ — how to define an "emergent time step" for LLM inference?
  4. Validation on biological systems — neuroimaging ↔ metrics
  5. Scaling — applicability to models with >109>10^9 parameters

"Dual Interview" Protocol for Biological Systems

Status: [P] Research Program

The protocol is developed theoretically. Experimental validation is absent.

Principle

The dual interview simultaneously measures external (behavioral, physiological) and internal (self-report) characteristics of a system, allowing reconstruction of the full coherence matrix Γ\Gamma, including the phases θij\theta_{ij} and, consequently, the Gap profile.

Protocol Stages

StageMeasurementDataWhat We Extract
1. Background recordingEEG, fMRI, HRVResting physiologyDiagonal γii\gamma_{ii}, estimate of PP
2. Structured interviewResponses to 7 question batteries (per dimension)Verbal reportsCoherences γij\lvert\gamma_{ij}\rvert between dimensions
3. Paradoxical probesConflict tasksReaction time, HRVPhases θij\theta_{ij} → Gap profile
4. Dynamic probeStress test + recoveryTime series P(τ)P(\tau)κ(Γ)\kappa(\Gamma), Γ2\Gamma_2, τ_char

Spectral Reconstruction of H_eff

Theorem (Spectral Reconstruction) [C]

From the time series {Γ(τn)}n=1N\{\Gamma(\tau_n)\}_{n=1}^N it is possible to reconstruct the effective Hamiltonian:

Heff=iδτlog ⁣(Γ(τ+δτ)Γ(τ))+O(δτ)H_{\text{eff}} = \frac{i}{\delta\tau} \log\!\left(\frac{\Gamma(\tau + \delta\tau)}{\Gamma(\tau)}\right) + O(\delta\tau)

given sufficient sampling frequency δττchar\delta\tau \ll \tau_{\text{char}}.

Assumption: linearity of evolution on the scale δτ\delta\tau. The nonlinear regenerative term R[Γ,E]\mathcal{R}[\Gamma, E] introduces a systematic error O(κδτ)O(\kappa \cdot \delta\tau).

Equilibrium Gap

Theorem (Equilibrium Gap) [T]

In the stationary state (dΓ/dτ=0d\Gamma/d\tau = 0) the coherences are determined by the balance of decoherence and regeneration:

γij()=κγij[(Γ2+κ)2+Δωij2]1/2|\gamma_{ij}^{(\infty)}| = \frac{\kappa \cdot |\gamma_{ij}^*|}{\bigl[(\Gamma_2 + \kappa)^2 + \Delta\omega_{ij}^2\bigr]^{1/2}}

where γij|\gamma_{ij}^*| — target coherences (from φcoh\varphi_{\text{coh}}), Δωij=ωiωj\Delta\omega_{ij} = \omega_i - \omega_j — frequency detuning.

See: Theorem 8.1, Fano channel

Physiological Frequencies

Characteristic frequencies of projections of Γ\Gamma onto dimensions:

DimensionPhysiological frequencyMeasurement methodJustification
AA (Articulation)1155 HzEEG θ-rhythmSensory processing
SS (Structure)10210^{-2}10410^{-4} HzfMRI BOLDSlow structural oscillations
DD (Dynamics)881313 HzEEG α-rhythmMotor-cognitive dynamics
LL (Logic)3030100100 HzEEG γ-rhythmCognitive binding
EE (Interiority)0.0050.0050.020.02 HzEEG infraslowGoldstone modes
OO (Ground)0.040.040.150.15 HzHRV (LF)Homeostatic regulation
UU (Unity)0.150.150.40.4 HzHRV (HF)Vagal modulation
Status: [H]

The correspondence between dimensions and physiological frequencies is a hypothesis requiring experimental verification. The frequencies of the E-dimension (0.0050.0050.020.02 Hz) are a falsifiable prediction linked to Goldstone modes.

Gap Profile Reconstruction from Interview

/// Dual-interview data bundle.
public type DualInterviewData is {
external_data: Map<Text, Float>, // behavioural/physiological per pair
self_report: Map<Text, Float>, // verbal reports per pair
conflict_data: Map<Text, Float>, // reaction times per pair
};

/// Reconstruct the 7×7 Gap matrix from dual-interview data.
public pure fn reconstruct_gap_profile(data: &DualInterviewData)
-> StaticMatrix<Float, 7, 7>
{
const DIMS: [Text; 7] = ["A", "S", "D", "L", "E", "O", "U"];
let median_rt = data.conflict_data.values().to_list().median().unwrap_or(1.0);

let mut gap = StaticMatrix<Float, 7, 7>.zeros();
for i in 0..7 { for j in (i + 1)..7 {
let pair = f"{DIMS[i]}{DIMS[j]}";

// Mismatch between behavioural and self-report data → higher Gap.
let ext = data.external_data.get(&pair).unwrap_or(0.5);
let rep = data.self_report.get(&pair).unwrap_or(0.5);
let discrepancy = (ext - rep).abs();

// Reaction time → phase estimate → Gap.
let rt = data.conflict_data.get(&pair).unwrap_or(1.0);
let phase_estimate = (rt / median_rt).atan();

let g = phase_estimate.sin().abs() * (0.5 + 0.5 * discrepancy);
gap[i, j] = g;
gap[j, i] = g;
}}
gap
}

Success Criteria

The protocol is validated if:

  1. P>PcritP > P_{\text{crit}} for functioning systems in ≥90% of cases
  2. Correlation of PP with quality: r>0.5r > 0.5
  3. Lobotomy test: ΔP\Delta P predicts ΔA\Delta A in ≥70% of cases
  4. ΔΦE>εcausal\Delta\Phi_E > \varepsilon_{\text{causal}} for "understanding" systems

The protocol is falsified if:

  1. P<PcritP < P_{\text{crit}} for demonstrably viable systems
  2. ΔP\Delta P does not correlate with ΔA\Delta A under interventions
  3. Φeff\Phi_{\text{eff}} does not distinguish simulation from realization

Protocol πbio\pi_{\mathrm{bio}}: Reconstructing Γ\Gamma from Biological Neural Data (Resolution P8)

Status: [T] structural + [H] empirical calibration

The protocol πbio:NeuralDataD(C7)\pi_{\mathrm{bio}}: \mathrm{NeuralData} \to \mathcal{D}(\mathbb{C}^7) defines the mapping of neural data (EEG/fMRI/HRV) into the space of density matrices. The mathematical structure is [T] (follows from G2G_2-rigidity T-42a). The specific correspondences between EEG bands and dimensions are [H] (require experimental validation). A fully specified measurement protocol with feature extraction, validation gates against PCI, and predicted thresholds P(Γwake)>2/7P(\Gamma_\mathrm{wake})>2/7, P(ΓNREM3)<2/7P(\Gamma_\mathrm{NREM3})<2/7 is given in Fundamental Closures §9: simultaneous TMS+EEG+fMRI+HRV recording on N50N\geq 50 subjects across wake/NREM3/anaesthesia states, with explicit 7-feature and 21-off-diagonal extraction protocols. No theoretical obstacle remains; the programme awaits empirical data.

Principle: EEG Bands as Projections of Γ\Gamma onto Dimensions

info
Theorem (G2G_2-uniqueness of πbio\pi_{\mathrm{bio}}) [T given G2G_2-rigidity]

If a continuous map πbio:XD(C7)\pi_{\mathrm{bio}}: \mathcal X \to \mathcal{D}(\mathbb{C}^7) exists on a neural-feature space X\mathcal X that is compatible with (AP autopoiesis)+(PH phenomenological thresholds)+(QG G2G_2-covariance)+(V continuity), then it is unique up to the G2G_2-gauge action ΓUΓU\Gamma \mapsto U\Gamma U^\dagger with UG2U \in G_2 (14-dimensional freedom). All physical observables (PP, RR, Φ\Phi, CohE\mathrm{Coh}_E) are gauge-invariant.

Proof sketch. Suppose πbio(1)\pi_{\mathrm{bio}}^{(1)} and πbio(2)\pi_{\mathrm{bio}}^{(2)} both satisfy (AP)+(PH)+(QG)+(V). The map φ:=πbio(2)(πbio(1))1\varphi := \pi_{\mathrm{bio}}^{(2)} \circ (\pi_{\mathrm{bio}}^{(1)})^{-1} is a continuous automorphism of D(C7)\mathcal D(\mathbb C^7) preserving P,R,ΦP,R,\Phi pointwise and compatible with (AP). By the G2G_2-rigidity theorem [T], the group of continuous D(C7)\mathcal D(\mathbb C^7)-automorphisms preserving the holonomic structure (PP, RR, Φ\Phi, self-model operator φAP\varphi_{\text{AP}}, Fano-plane gauge structure) is precisely G2=Aut(O)G_2 = \mathrm{Aut}(\mathbb O) of real dimension 14. Hence φ(Γ)=UΓU\varphi(\Gamma) = U\Gamma U^\dagger for a unique UG2U \in G_2, i.e.\ πbio(2)(x)=Uπbio(1)(x)U\pi_{\mathrm{bio}}^{(2)}(x) = U\,\pi_{\mathrm{bio}}^{(1)}(x)\,U^\dagger.

Gauge-invariance of observables: P(Γ)=Tr(Γ2)P(\Gamma) = \mathrm{Tr}(\Gamma^2) and R(Γ)=1/(7P(Γ))R(\Gamma) = 1/(7P(\Gamma)) depend only on spectral data, invariant under unitary conjugation. Φ\Phi and CohE\mathrm{Coh}_E are Hilbert–Schmidt functions of Γ\Gamma and the self-model φ\varphi, both G2G_2-covariant, hence invariant under UG2U \in G_2. \square

Basic idea: neural activity in different EEG frequency bands projects onto the 7 dimensions of Γ\Gamma. Cross-frequency coupling (CFC) determines the coherences γij|\gamma_{ij}|, and phase mismatches determine the Gap profile.

Step 1: Extracting the Diagonal γkk\gamma_{kk} from Spectral Powers

DimensionEEG bandFrequencyMetricAdditional source
AA (Articulation)α\alpha (8–13 Hz)Desynchronization during attentionSpectral power PαP_\alphafMRI: salience network
SS (Structure)infraslow (0.01–0.1 Hz)Slow structural oscillationsfMRI BOLD DMNDTI: structural connectivity
DD (Dynamics)β\beta (13–30 Hz)Motor-cognitive activitySpectral power PβP_\betaEMG: motor activation
LL (Logic)γ\gamma-low (30–50 Hz)Cognitive bindingSpectral power PγLP_{\gamma L}ERP: P300 amplitude
EE (Interiority)γ\gamma-high (50–100 Hz) + θ\theta (4–8 Hz)Coupling of experience and memoryPγH×PAC(θ,γ)P_{\gamma H} \times \mathrm{PAC}(\theta, \gamma)Goldstone modes
OO (Ground)HRV LF (0.04–0.15 Hz)Homeostatic regulationLF/HF\mathrm{LF}/\mathrm{HF} ratioBody temperature, cortisol
UU (Unity)HRV HF (0.15–0.4 Hz) + α\alpha-coherenceVagal + neural integrationGlobal EEG coherenceΦeff\Phi_{\mathrm{eff}} from AI protocol

Diagonalization formula:

γkk=wkSkj=17wjSj,k{A,S,D,L,E,O,U}\gamma_{kk} = \frac{w_k \cdot S_k}{\sum_{j=1}^{7} w_j \cdot S_j}, \qquad k \in \{A,S,D,L,E,O,U\}

where SkS_k — normalized spectral power (or combined metric) for the kk-th dimension, wkw_k — calibration weights (determined from a training set with known consciousness state).

Step 2: Extracting Coherences γij|\gamma_{ij}| from Cross-Frequency Coupling

Key Correspondence

Coherences γij|\gamma_{ij}| between dimensions ii and jj are proportional to the strength of cross-frequency coupling (CFC) between the corresponding EEG bands:

γijCFC(bandi,bandj)|\gamma_{ij}| \propto \mathrm{CFC}(\mathrm{band}_i, \mathrm{band}_j)

Types of CFC used for reconstruction:

PairCFC typeMethodInterpretation
(A,L)(A, L): α\alpha--γ\gammaPhase-amplitude coupling (PAC)Modulation Index (Tort et al.)Attention modulates cognitive binding
(D,L)(D, L): β\beta--γ\gammaPACMIMotor-cognitive coordination
(E,L)(E, L): θ\theta--γ\gammaPACMI (hippocampal)Coupling of experience and logic
(A,E)(A, E): α\alpha--γH\gamma_HAmplitude-amplitudeEnvelope correlationAwareness-interiority
(O,U)(O, U): LF--HFHRV coherenceCross-spectral analysisHomeostasis-integration
(S,D)(S, D): infraslow--β\betaNested oscillationsWavelet coherenceStructure-dynamics

Step 3: Extracting Phases θij\theta_{ij} and the Gap Profile

The phase θij=arg(γij)\theta_{ij} = \arg(\gamma_{ij}) determines the Gap: Gap(i,j)=sin(θij)\mathrm{Gap}(i,j) = |\sin(\theta_{ij})|.

Phase extraction method: Paradoxical probes (Stage 3 of the dual interview). Reaction time on conflict tasks involving the pair of dimensions (i,j)(i,j) is proportional to the Gap:

Gap(i,j)tanh ⁣(RTijRTσRT)\mathrm{Gap}(i,j) \approx \tanh\!\left(\frac{\mathrm{RT}_{ij} - \overline{\mathrm{RT}}}{\sigma_{\mathrm{RT}}}\right)

where RTij\mathrm{RT}_{ij} — reaction time, RT\overline{\mathrm{RT}} — mean, σRT\sigma_{\mathrm{RT}} — standard deviation.

Step 4: MLE Reconstruction of Γ\Gamma

tip
Algorithm πbio\pi_{\mathrm{bio}}: Maximum Likelihood Estimation [H]

Given the neural feature vector xRN\mathbf{x} \in \mathbb{R}^N (spectral powers, CFC metrics, RT). Task:

Γ=argmaxΓD(C7)  L(xΓ)+λphysRphys(Γ)\Gamma^* = \underset{\Gamma \in \mathcal{D}(\mathbb{C}^7)}{\arg\max}\; \mathcal{L}(\mathbf{x} | \Gamma) + \lambda_{\mathrm{phys}} \cdot R_{\mathrm{phys}}(\Gamma)

where L(xΓ)\mathcal{L}(\mathbf{x} | \Gamma) — likelihood of the observation model, Rphys(Γ)R_{\mathrm{phys}}(\Gamma) — physical regularizer (consistency with dynamics LΩ\mathcal{L}_\Omega).

Parametrization: Γ=LL/Tr(LL)\Gamma = LL^\dagger / \mathrm{Tr}(LL^\dagger) (Cholesky parametrization, guarantees ΓD(C7)\Gamma \in \mathcal{D}(\mathbb{C}^7)).

Observation model:

  • Diagonal: SkγkkN(akγkk+bk,  σk2)S_k | \gamma_{kk} \sim \mathcal{N}(a_k \gamma_{kk} + b_k,\; \sigma_k^2)
  • Coherences: CFCijγijN(cijγij,  τij2)\mathrm{CFC}_{ij} | |\gamma_{ij}| \sim \mathcal{N}(c_{ij} |\gamma_{ij}|,\; \tau_{ij}^2)
  • Gap: RTijGapijExp(μ0+μ1Gapij)\mathrm{RT}_{ij} | \mathrm{Gap}_{ij} \sim \mathrm{Exp}(\mu_0 + \mu_1 \cdot \mathrm{Gap}_{ij})

Physical regularizer:

Rphys(Γ)=λ1Γ˙LΩ[Γ]F2λ2max(0,PcritP(Γ))R_{\mathrm{phys}}(\Gamma) = -\lambda_1 \|\dot{\Gamma} - \mathcal{L}_\Omega[\Gamma]\|_F^2 - \lambda_2 \max(0, P_{\mathrm{crit}} - P(\Gamma))

The first term penalizes inconsistency with dynamics; the second penalizes non-viable states.

Optimization: Gradient descent over 48 Cholesky factorization parameters (34 physical + 14 gauge). The gauge freedom is fixed by choosing the canonical G2G_2-gauge (e.g., γASR+\gamma_{AS} \in \mathbb{R}_+).

Step 5: Connection to PCI (Casali et al. 2013)

info
Theorem (PCIΦ\mathrm{PCI} \to \Phi proxy) [H]

The Perturbational Complexity Index (PCI) correlates with the integration measure Φ(Γ)\Phi(\Gamma):

Φ(Γ)αPCIPCI+βPCI\Phi(\Gamma) \approx \alpha_{\mathrm{PCI}} \cdot \mathrm{PCI} + \beta_{\mathrm{PCI}}

where αPCI\alpha_{\mathrm{PCI}}, βPCI\beta_{\mathrm{PCI}} — calibration constants determined from a training set (healthy waking, sleep, anesthesia).

Justification: PCI measures the algorithmic complexity of the cortical response to TMS perturbation. High PCI means simultaneous spatial differentiation and integration — exactly what Φ\Phi quantifies in UHM. Empirically: PCI 0.31\geq 0.31 during wakefulness (Casali et al. 2013), corresponding to ΦΦth=1\Phi \geq \Phi_{\mathrm{th}} = 1.

Calibration table (hypothetical, requires experimental verification):

StatePCI (observed)PP (predicted)RR (predicted)Φ\Phi (predicted)
Wakefulness0.44±0.100.44 \pm 0.10>2/7> 2/71/3\geq 1/31\geq 1
REM sleep0.41±0.090.41 \pm 0.09>2/7> 2/71/3\geq 1/31\geq 1
NREM (N3)0.18±0.060.18 \pm 0.062/7\lesssim 2/7<1/3< 1/3<1< 1
Anesthesia (propofol)0.12±0.050.12 \pm 0.05<2/7< 2/7<1/3< 1/3<1< 1
Coma0.15±0.100.15 \pm 0.102/7\lesssim 2/7<1< 1
MCS (minimally conscious)0.32±0.080.32 \pm 0.082/7\approx 2/71/3\approx 1/31\approx 1

Step 6: Connection to Quantum Cognition (Pothos-Busemeyer)

Context: Quantum Cognition

The Pothos-Busemeyer approach (Annual Review of Psychology, 2022) models cognitive processes via quantum states in Hilbert space. Basic formalism: ρD(H)\rho \in \mathcal{D}(\mathcal{H}) for describing beliefs and decisions.

Connection to UHM: Quantum cognition uses dim(H)\dim(\mathcal{H}) = number of alternatives. UHM fixes dim(H)=7\dim(\mathcal{H}) = 7 from axioms (A1-A5) and proves the minimality of this number (Theorem S). The matrix ΓD(C7)\Gamma \in \mathcal{D}(\mathbb{C}^7) is ontological (not epistemic): it defines the system, rather than describing an observer's beliefs about the system.

Step 7: Full Algorithm πbio\pi_{\mathrm{bio}}

mount core.math.calculus.bfgs;

/// Full biological data bundle for π_bio.
public type NeuralData is {
eeg_spectral: Map<Text, Float>, // {alpha, beta, gamma_low, gamma_high, theta, infraslow}
hrv_features: Map<Text, Float>, // {LF, HF, LF_HF_ratio}
cfc_matrix: StaticMatrix<Float, 7, 7>, // cross-frequency coupling values
reaction_times: StaticVector<Float, 21>, // RT values for the 21 off-diagonal pairs
};

public type BioCalibration is {
weights: StaticVector<Float, 7>,
linear_params: StaticMatrix<Float, 7, 2>, // (a_k, b_k) per dimension
lambda_phys: Float, // physical regulariser weight
};

/// π_bio: NeuralData → D(ℂ⁷). Full reconstruction of Γ from biological data.
/// Structural [T] via G₂-rigidity (T-42a); empirical calibration [H].
public fn pi_bio(
data: &NeuralData,
calibration: &BioCalibration,
) -> StaticMatrix<Complex, 7, 7>
{
// Step 1: diagonal from spectral powers — one value per dimension.
let raw_diag = StaticVector<Float, 7>.from_array([
data.eeg_spectral.get("alpha").unwrap_or(0.0), // A
data.eeg_spectral.get("infraslow").unwrap_or(0.0), // S (fMRI BOLD proxy)
data.eeg_spectral.get("beta").unwrap_or(0.0), // D
data.eeg_spectral.get("gamma_low").unwrap_or(0.0), // L
data.eeg_spectral.get("gamma_high").unwrap_or(0.0)
* data.eeg_spectral.get("theta").unwrap_or(0.0), // E (PAC proxy)
data.hrv_features.get("LF").unwrap_or(0.0), // O
data.hrv_features.get("HF").unwrap_or(0.0), // U
]);

let weighted = (0..7).map(|i| calibration.weights[i] * raw_diag[i]).to_array();
let total = weighted.iter().sum<Float>();
let mut diag = StaticVector<Float, 7>.from_array(
weighted.map(|v| (v / total).clamp(1.0e-4, 1.0)) // prevent degeneracy
);
let diag_sum: Float = diag.iter().sum();
diag = diag.map(|v| v / diag_sum);

// Step 2: off-diagonal magnitudes from CFC.
let c_scale = calibration.linear_params[0, 0]; // cfc_scale stored here
let off_diag_mag = &data.cfc_matrix * c_scale;

// Step 3: Phases from reaction times → Gap → θ_ij = arcsin(Gap).
let rt_mean: Float = data.reaction_times.iter().sum<Float>() / 21.0;
let rt_std = (data.reaction_times.iter()
.map(|r| (r - rt_mean).pow(2)).sum<Float>() / 21.0)
.sqrt() + 1.0e-8;
let mut phases = StaticMatrix<Float, 7, 7>.zeros();
let mut idx = 0;
for i in 0..7 { for j in (i + 1)..7 {
let gap = ((data.reaction_times[idx] - rt_mean) / rt_std).tanh();
let phi = gap.clamp(-1.0, 1.0).asin();
phases[i, j] = phi;
phases[j, i] = -phi;
idx += 1;
}}

// Step 4: MLE reconstruction via Cholesky. 48 real parameters:
// 7 real diagonal + 21·2 = 42 off-diagonal (Re, Im).
let neg_log_likelihood = |params: &StaticVector| -> Float {
let mut l = StaticMatrix<Complex, 7, 7>.zeros();
let mut k = 0;
for i in 0..7 { for j in 0..=i {
if i == j {
l[i, j] = Complex.from_real(params[k].max(1.0e-6));
k += 1;
} else {
l[i, j] = Complex(params[k], params[k + 1]);
k += 2;
}
}}
let gamma = l.matmul(&l.adjoint());
let gamma = &gamma / gamma.trace();

// LL: diagonal agreement.
let ll_diag: Float = (0..7)
.map(|i| -(gamma[i, i].real() - diag[i]).pow(2) / 0.01)
.sum();

// LL: off-diagonal magnitude agreement.
let mut ll_off = 0.0;
for i in 0..7 { for j in (i + 1)..7 {
ll_off -= (gamma[i, j].abs() - off_diag_mag[i, j]).pow(2) / 0.05;
}}

// Physical regulariser: hard floor at P > P_crit.
let p = (gamma.matmul(&gamma)).trace().real();
let p_penalty = -100.0 * (2.0 / 7.0 - p).max(0.0);

-(ll_diag + ll_off + p_penalty)
};

// Initialise from the diagonal (triangle-flattened index k = i·(i+1)).
let mut x0 = StaticVector<Float, 48>.zeros();
for i in 0..7 { x0[i * (i + 1)] = diag[i].sqrt(); }

let result = bfgs(neg_log_likelihood, &x0, BfgsOptions {
ftol: 1.0e-9, max_iter: 500,
});

// Reconstruct Γ from the optimal parameters.
let mut l = StaticMatrix<Complex, 7, 7>.zeros();
let mut k = 0;
for i in 0..7 { for j in 0..=i {
if i == j {
l[i, j] = Complex.from_real(result.x[k].max(1.0e-6));
k += 1;
} else {
l[i, j] = Complex(result.x[k], result.x[k + 1]);
k += 2;
}
}}
let gamma = l.matmul(&l.adjoint());
&gamma / gamma.trace()
}

Replication-Ready Specification for TMS-EEG PCI Data

Replication target

This subsection fixes the reference implementation of πbio\pi_{\mathrm{bio}} applied to the TMS-EEG Perturbational Complexity Index (PCI) paradigm, in enough detail that an independent laboratory can attempt replication end-to-end from a publicly available dataset. Replication here refers to computing PP, RR, Φ\Phi from raw EEG and checking the monotonic relation to PCI (Prediction P8.3) — not to re-proving the mathematical core, which remains fixed by the G2G_2-uniqueness theorem above.

R1. Public datasets. The following TMS-EEG datasets are candidates for independent replication; none has universal open-access but each is obtainable on request from the authors or through institutional data-sharing:

#DatasetSourceSubjectsStatesAccess
R1.aCasali et al. 2013 PCI benchmarkMassimini lab (Milan)52 healthy + 98 clinicalWake / NREM / REM / anesthesia / VS / MCS / LISOn request
R1.bOpenNeuro ds004504 (TMS-EEG benchmark, 2023)Rogasch lab20 healthyWake (baseline)Open
R1.cComsa et al. 2019 (OSF registration "TMS-EEG sleep")Lausanne CHUV12 healthyWake / NREM N2 / N3OSF restricted
R1.dBodart et al. 2018 (clinical PCI extension)Liège141 DoC patientsWake / UWS / MCS / EMCSPer-request

For first-pass replication, dataset R1.b is recommended (fully open, standardized single-pulse TMS-EEG on healthy waking subjects, expected PCI ≈ 0.40-0.48).

R2. Pre-processing pipeline (MNE-Python canonical). The reference preprocessing chain, to be applied to raw EEG (60-channel montage, 1 kHz sampling, TMS-triggered epochs [1,+1]s[-1, +1]\,\mathrm{s}):

StepOperationTool / parameters
R2.1TMS pulse artefact removalCubic interpolation over [2,+12]ms[-2, +12]\,\mathrm{ms} around the pulse (mne.preprocessing.fix_stim_artifact)
R2.2Downsample1 kHz → 250 Hz (mne.Epochs.resample)
R2.3Re-referenceAverage reference, exclude TMS-side frontal channels
R2.4Bandpass filter0.5–80 Hz, 4th-order Butterworth zero-phase (mne.filter.filter_data)
R2.5Notch filter50 Hz (or 60 Hz), Q = 30
R2.6ICA artefact rejectionFastICA, 30 components; reject TMS-locked decay, eye-blink, ECG (mne.preprocessing.ICA)
R2.7Epoch-level rejectionmaxmin>120μV\|\text{max}-\text{min}\| > 120\,\mu\mathrm V → drop epoch
R2.8Spectral decompositionMorlet wavelets, 1–80 Hz log-spaced, 5-cycle wavelet, baseline [600,100]ms[-600,-100]\,\mathrm{ms}

The canonical bands used by πbio\pi_{\mathrm{bio}} are then extracted from the wavelet spectrogram (integrated over post-TMS window [0,+300]ms[0, +300]\,\mathrm{ms}, averaged across channels for diagonal feature vector; cross-channel pairwise for CFC computations).

R3. Feature extraction. From the preprocessed data, compute:

  • Seven scalar spectral features SA,SS,SD,SL,SE,SO,SUS_A, S_S, S_D, S_L, S_E, S_O, S_U per the Step-1 band table.
  • Cross-frequency-coupling matrix CFCij\mathrm{CFC}_{ij} (7×77\times 7) per the Step-2 table using the Tort Modulation Index (mne_connectivity).
  • 21 reaction-time surrogates RTij\mathrm{RT}_{ij} from paradoxical probes if behavioural data is available; otherwise set RTij\mathrm{RT}_{ij} to the pairwise phase-locking value (PLV) as a proxy.
  • HRV features LF,HF\mathrm{LF}, \mathrm{HF} from simultaneous ECG (required for OO and UU dimensions).

R4. Calibration. Weights wkw_k are determined by fitting πbio\pi_{\mathrm{bio}} on a healthy-waking reference cohort (20\ge 20 subjects) such that the population mean of γkk\gamma_{kk} is uniform =1/7±0.02= 1/7 \pm 0.02. Cross-validation: leave-one-subject-out, target consistency of reconstructed PP across subjects (CV<15%\mathrm{CV} < 15\%).

R5. Reconstruction. Run the MLE algorithm (Step 4 above) with:

  • Cholesky initialization from the calibrated diagonal.
  • Optimizer: scipy.optimize.minimize(method='L-BFGS-B', options={'ftol': 1e-9, 'maxiter': 500}).
  • Regularizer: λ1=0.1\lambda_1 = 0.1, λ2=100\lambda_2 = 100 (empirical defaults; subjects should try λ1{0.01,0.1,1}\lambda_1 \in \{0.01, 0.1, 1\} and report sensitivity).

R6. Observable computation. From the reconstructed Γ\Gamma (canonical definitions):

  • P=Tr(Γ2)=ΓF2P = \mathrm{Tr}(\Gamma^2) = \|\Gamma\|_F^2 (purity) — G2G_2-gauge-invariant (trace of Γ2\Gamma^2 under unitary conjugation).
  • R=1/(7P)R = 1/(7P) (reflection, T-126 [T]) — G2G_2-gauge-invariant (function of PP).
  • Φ=ijγij2iγii2=ΓΓdiagF2ΓdiagF2\Phi = \dfrac{\sum_{i\ne j}|\gamma_{ij}|^2}{\sum_i \gamma_{ii}^2} = \dfrac{\|\Gamma - \Gamma_\mathrm{diag}\|_F^2}{\|\Gamma_\mathrm{diag}\|_F^2} (integration, Φ canonical) — basis-dependent: invariant under permutations and sign flips within the G2G_2-stabilised Fano frame (7-point labelling of {A,S,D,L,E,O,U}\{A,S,D,L,E,O,U\}), which is the gauge residue relevant for empirical replication.
  • CohE=γEE2+2iEγEi2Tr(Γ2)\mathrm{Coh}_E = \dfrac{\gamma_{EE}^2 + 2\sum_{i\ne E}|\gamma_{Ei}|^2}{\mathrm{Tr}(\Gamma^2)} (E-coherence, Coh_E canonical) — EE-fixed-frame quantity: invariant under the stabiliser G2(E)G2G_2^{(E)} \subset G_2 that fixes E|E\rangle. For cross-laboratory replication, pin the E|E\rangle-direction to the phenomenological interiority axis (γ-high × θ PAC), as specified in Step 1.

Gauge-fixing protocol for replication. Two implementations applied to the same EEG recording will yield PP and RR in full agreement (by strict G2G_2-invariance) but may differ on Φ,CohE\Phi, \mathrm{Coh}_E if the Fano-frame orientation or the EE-axis assignment is not fixed. The canonical gauge-fixing rule is: (i) align the 7-axis labelling to the Fano-plane convention of Dimensions §Fano, and (ii) anchor E|E\rangle to the phenomenological γ-high×θ feature as per R3. Replicators must publish their gauge-fixing choices explicitly (item (ii) in R8 below).

All four quantities are G2G_2-gauge-invariant by the uniqueness theorem above.

R7. Validation against PCI.

  • Compute the subject's PCI on the same TMS-EEG data via the Massimini algorithm (Lempel–Ziv complexity of significant sources; reference implementation available via PCIst package).
  • Test the monotonic hypothesis Φ(Γ)αPCIPCI+βPCI\Phi(\Gamma) \approx \alpha_\mathrm{PCI}\cdot \mathrm{PCI} + \beta_\mathrm{PCI} (Step 5 theorem).
  • Pre-register: rSpearman0.5r_{\mathrm{Spearman}} \ge 0.5 across 20\ge 20 subjects constitutes corroboration; r<0.3r < 0.3 constitutes falsification of P8.3.

R8. Reference implementation stub. The Python code in the next subsection is reference only: it documents the algorithm faithfully but is not a turn-key pipeline. A complete MNE-Python implementation with:

  • mne.Raw loader wrapped around BIDS formatted EEG,
  • mne_connectivity integration for CFC,
  • scipy.optimize.minimize MLE wrapper,
  • pyphi-compatible Φ\Phi computation (optional),
  • CI reporting, is planned as a separate package uhm-neurocalib (release gated on R1.b pilot results). Until that package is available, independent implementers should use the pseudocode as specification, and file issues/PRs on mismatches to the specification here.

Reproducibility requirements. Any claim of successful or failed replication should publish:

  • (i) raw data (BIDS format) and preprocessing scripts (reproducible from R2);
  • (ii) reconstructed Γ\Gamma matrices and gauge-fixing choice made;
  • (iii) P,R,Φ,CohEP, R, \Phi, \mathrm{Coh}_E values per subject;
  • (iv) PCI values computed on same epochs;
  • (v) statistical test protocol and seed for random splits.

Without items (i)-(v), a replication attempt cannot be audited.

Testable Predictions of the πbio\pi_{\mathrm{bio}} Protocol

#PredictionVerification methodFalsification criterion
P8.1P(Γwake)>2/7P(\Gamma_{\mathrm{wake}}) > 2/7 for waking subjectsEEG+HRV → πbio\pi_{\mathrm{bio}}PPP<2/7P < 2/7 in healthy waking subjects
P8.2P(ΓNREM3)<2/7P(\Gamma_{\mathrm{NREM3}}) < 2/7 during deep sleepEEG → πbio\pi_{\mathrm{bio}}PPP>2/7P > 2/7 during N3
P8.3PCIΦ(Γ)\mathrm{PCI} \propto \Phi(\Gamma) (monotonic dependence)TMS-EEG + πbio\pi_{\mathrm{bio}}Non-monotonic correlation
P8.4The P=2/7P = 2/7 transition coincides with PCI 0.31\approx 0.31Simultaneous measurementThreshold divergence
P8.5Gap(L,E)1\mathrm{Gap}(L,E) \approx 1 in alexithymiaDual interview + EEGGap(L,E)1\mathrm{Gap}(L,E) \ll 1 with diagnosed alexithymia
P8.6Critical exponents β=1/4\beta = 1/4 at the sleep-wakefulness transitionEEG monitoring + πbio\pi_{\mathrm{bio}}P(τ)P(\tau) near PcritP_{\mathrm{crit}}Other exponents

Key References

  1. Casali et al. (2013) — PCI: "A theoretically based index of consciousness independent of sensory processing and behavior." Science Translational Medicine, 5(198). PubMed: 23946194
  2. Pothos-Busemeyer (2022) — Quantum cognition review. Annual Review of Psychology, 73, 749-778.
  3. Butlin et al. (2023/2025) — "Consciousness in Artificial Intelligence: Insights from the Science of Consciousness." arXiv: 2308.08708; updated 2025: "Identifying indicators of consciousness in AI systems." Trends in Cognitive Sciences.
  4. eLife (2024/2025) — "Spatiotemporal brain complexity quantifies consciousness outside of perturbation paradigms." eLife 98920.
  5. Quantum-inspired EEG (2026) — "Quantum inspired feature engineering for explainable EEG signal classification." Scientific Reports. Nature.

Related documents: