soft3/tru/docs/explanation/tri-kernel.md

The Tri-Kernel Architecture

Why three operators -- diffusion, springs, heat -- are the minimal, sufficient basis for collective intelligence on authenticated graphs.


The Discovery: Elimination Under Locality

The tri-kernel was discovered through systematic elimination. Beginning with a comprehensive taxonomy of graph ranking algorithms, a single hard constraint was applied: locality.

For planetary-scale networks ($10^{15}$ nodes), any algorithm requiring global recomputation for local changes is physically impossible. Light-speed delays across Earth (and eventually Mars at 3-22 minute delays) make global synchronization infeasible.

An operator is h-local if the value at node $i$ depends only on nodes within $h$ hops. An operator family is eventually local if it admits h-local approximations with error $\varepsilon$ using $h = O(\log(1/\varepsilon))$.

Applying this filter to the full taxonomy of graph ranking algorithms:

algorithm local? status
PageRank (power iteration) global eliminated
Personalized PageRank (truncated) yes survives
HITS global eliminated
Eigenvector centrality global eliminated
SpringRank (global solve) global eliminated
Screened Laplacian (local CG) yes survives
Heat kernel (full matrix exp) global eliminated
Heat kernel (Chebyshev) yes survives
Belief propagation yes survives locality, fails below

Belief propagation passes the locality filter -- each node communicates only with neighbors. It fails the remaining requirements: no convergence guarantee on graphs with loops (which the cybergraph has densely), no uniqueness (result depends on message initialization and update schedule), wrong representation ($O(|E|)$ messages vs $O(|V|)$ scores), and no natural place to inject token economics.

After applying all required properties (locality, convergence, uniqueness, verifiability, token-weightability), exactly three families of local operators remained:

The tri-kernel is what remains after impossibility eliminates everything else.


What Each Operator Does

Diffusion: Curiosity

The exploration force -- a gas wandering, sampling connections.

The diffusion operator runs a random walk on the graph. Probability mass flows along edges, spreading outward from wherever it starts. The teleport parameter $\alpha$ ensures the walk occasionally jumps back to a baseline, preventing it from getting trapped. The stationary distribution of this walk is the answer to "where does probability end up if you follow the links?"

Diffusion is curiosity. It finds what is connected. It rewards nodes that sit at the crossroads of many paths. It is restless, always spreading, always exploring.

Springs: Stability

The structure force -- an elastic lattice that holds things in place.

The springs operator solves a screened Laplacian system. Imagine every edge as a spring: connected nodes pull toward each other, and the screening parameter $\mu$ acts as friction anchoring each node to a reference position. The solution is the configuration where all structural tensions balance.

Springs encode hierarchy and coherence. They answer "what arrangement satisfies the constraints?" Nodes that violate structural expectations (connected to high-rank nodes but ranked low, or vice versa) feel a restoring force. Springs resist disruption. They are the skeleton of the graph.

Heat: Patience

The adaptation force -- metabolism, phase changes, the ability to shift.

The heat kernel smooths the graph at a given resolution $\tau$. Low $\tau$ is fine-grained: only immediate neighbors matter. High $\tau$ is coarse-grained: distant neighborhoods blend together. The heat kernel is a thermostat -- it controls the scale at which the system operates.

Heat is patience. At high temperature, the system explores broadly (annealing). At low temperature, it commits to a configuration (crystallization). The ability to adjust $\tau$ lets the tri-kernel operate across multiple scales simultaneously, seeing both the forest and the trees.


Universal Patterns

The three forces are not arbitrary. They appear across every domain where complex adaptive behavior emerges:

domain diffusion (explore) springs (structure) heat (adapt)
Physics gas wandering, sampling elastic lattice, tensegrity thermostat, phase changes
Biology synaptic chatter, neural noise skeleton, connective tissue metabolism, immune plasticity
Cosmology starlight, cosmic rays gravity, spacetime curvature cosmic temperature, entropy
Quantum probability waves, tunneling binding fields, molecular bonds decoherence, environment coupling
Ecology species dispersal, seed rain food webs, symbioses seasons, succession, disturbance
Psychology imagination, free association logic, cognitive constraints emotion as arousal thermostat
Music improvisation, melodic roaming harmony, voice-leading rhythm and tempo dynamics
Economics trade, migration, meme flow institutions, contracts, norms booms, busts, revolutions
Information entropy spread, random coding redundancy, error-correction adaptive compression
Mathematics random walk sampler constraints, Lagrange multipliers annealing, step-size schedule

This universality reflects structural necessity. Every domain achieving complex adaptive behavior implements these three forces because they are the only mechanisms that balance exploration, coherence, and adaptation under locality constraints.

Why These Three Are Fundamental

Diffusion and heat describe irreversible spreading -- entropy growth and the arrow of time. Springs describe reversible oscillation -- coherent energy and information storage. Together they form the simplest basis for the three families of linear PDEs: diffusion/heat (parabolic), oscillations/waves (hyperbolic), and steady states (elliptic).

Each conserves a different quantity: mass/probability (diffusion), potential/kinetic energy (springs), and thermal energy (heat). Each minimizes a different functional: entropy production, potential energy, free energy. Together they are Pareto-optimal: they explain the majority of natural transport, oscillation, and dissipation with minimal assumptions.

The Laplacian is the shared mathematical root. The graph Laplacian $L = D - A$ is the discrete form of the Laplace-Beltrami operator $\nabla^2$ on continuous manifolds. Newton's gravitational potential satisfies the Poisson equation $\nabla^2\Phi = 4\phi^* G\rho$ -- gravity is the springs kernel of the physical universe, with mass density as the source term. The screened form $(L + \mu I)$ in the tri-kernel corresponds to massive gravity theories where the graviton has effective range. On the cybergraph, tokens play the role of mass: they curve graph topology the way mass curves spacetime.

The Jeans instability illustrates the kernel interplay in cosmology: a gas cloud collapses into a star when gravitational potential (springs) overcomes thermal pressure (heat). This is a phase transition in the tri-kernel sense -- the moment $\lambda_s$ dominates $\lambda_h$.


Phase Transitions

The collective focus theorem predicts intelligence emergence through phase transitions:

phase dominant kernel what happens
Seed -> Flow $\lambda_d$ high network exploring, sampling connections
Cognition -> Understanding $\lambda_s$ activates structure crystallizing, hierarchies forming
Reasoning -> Meta $\lambda_h$ regulates adaptive balance, context-sensitive processing
Consciousness dynamic blend system learns its own blend weights

Adversarial Resistance

The three kernels provide orthogonal attack surfaces:

attack defense mechanism
focus manipulation teleport $\alpha$ ensures return to prior; multi-hop verification
equilibrium gaming springs encode correct structure; deviation detectable via residual
coalition manipulation spectral properties reveal anomalous clustering
temporal attacks memoized boundary flows prevent state-change-during-verification

An adversary optimizing against one kernel worsens their position against another.


The Friston Connection

The fixed point $\phi^*$ minimizes a free energy functional:

$$\mathcal{F}(\phi) = E_{\text{spring}}(\phi) + \lambda E_{\text{diffusion}}(\phi) - T S(\phi)$$

The equilibrium distribution follows a Boltzmann form:

$$p_i^* \propto \exp\big(-\beta [E_{\text{spring},i} + \lambda E_{\text{diffusion},i}]\big)$$

where $\beta = 1/T$. This is variational free energy minimization in the sense of Friston's free energy principle: the system performs inference by reducing prediction error (structural deviation) subject to complexity constraints (entropy). The tri-kernel is not merely inspired by the free energy principle -- it IS free energy minimization on an authenticated graph.

No tuning required -- the optimal focus vector is the unique minimum of a convex functional, matching how statistical mechanics derives equilibrium from energy and entropy.


The Architecture in One Sentence

A gas to explore, a lattice to hold, a thermostat to adapt. Each part is classical; the synthesis is the point.


See tri-kernel for the formal specification. See collective focus theorem for the convergence proofs. See focus flow computation for the full computation pipeline.

References:

  1. Legg & Hutter. "Universal Intelligence: A Definition of Machine Intelligence." arXiv:0712.3329
  2. Friston. "The free-energy principle: a unified brain theory." Nature Reviews Neuroscience, 2010
  3. Kirkpatrick et al. "Optimization by simulated annealing." Science 1983
  4. Woolley et al. "Evidence for a collective intelligence factor." Science 2010
  5. Hong & Page. "Groups of diverse problem solvers can outperform groups of high-ability problem solvers." PNAS 2004

Homonyms

cybics/crystal/tri-kernel
Tri-Kernel Specification formal definition of the three local operators whose fixed point is cyberank. part of the cyber/core specification 1. The Three Primitives 1.1 Primitive M: Markov/Diffusion The transition matrix M = D⁻¹A (or column-stochastic P = AD⁻¹) governs probability flow:…
soft3/tru/specs/tri-kernel
Tri-Kernel Specification Formal definition of the three local operators whose fixed point is cyberank. The convergence and uniqueness result in §3 is the collective focus theorem. Part of the tru specification. 1. The Three Operators 1.1 Diffusion (Markov) The transition matrix $P = D^{-1}A$ (or…

Graph