# Reverse-Engineering the Y-Theory Toroidal Mind

**Artifact status:** executable mathematical model and projection specification  
**Scope:** a rigorous geometry for the Y-Theory claim that local triadic recurrence, carried through whole-level return, has toroidal state-space  
**Important boundary:** the equations below define and test a Y-Theory model. Their internal identities are exact. Whether the same variables quantitatively model a particular brain, organism, society, or physical field requires a separate measurement map and experiment.

---

## 1. Source constraints the model must preserve

The source does not permit us to begin by drawing a doughnut and assigning meanings afterward. It requires the following order:

1. One originating differentiation has two non-identical polar expressions and their active relation.
2. Manifestation creates noncoincidence: expression and consequence do not occupy the same relational position.
3. Delay lets consequence arrive in a later state.
4. Residue makes the later state historically dependent on the earlier one.
5. Bounded restoring return creates a recurring identity-wave.
6. A complete lower relation can become one term in a wider relation.
7. Every active dimension of a complete Mind can carry difference through seven recursive depths.
8. Depth seven turns into a changed depth one.
9. Local depth-cycles converge into a whole-level observer-return.
10. The local cycle and the whole cycle remain distinct but mutually consequential.

The geometry must therefore encode **two recurrent relations** and a **history-bearing delayed coupling** between them.

---

## 2. One normalized triadic correlation is a circle

Let one local relational state be

$$
X_L=(I_L,O_L,\mathcal R_L),
$$

where $I_L$ and $O_L$ are complementary polar expressions and $\mathcal R_L$ is their active relation.

To obtain a dimensionless phase chart, choose the normalization

$$
I_L+O_L=1.
$$

Define the signed polarity coordinate

$$
p_L=O_L-I_L.
$$

Then

$$
I_L=\frac{1-p_L}{2},
\qquad
O_L=\frac{1+p_L}{2}.
$$

A bounded relational cycle is represented by

$$
p_L^2+\mathcal R_L^2=1.
$$

Therefore there is an angle $\theta$ such that

$$
p_L=\cos\theta,
\qquad
\mathcal R_L=\sin\theta.
$$

The complete normalized triad is

$$
\boxed{
X_L(\theta)=
\left(
\frac{1-\cos\theta}{2},
\frac{1+\cos\theta}{2},
\sin\theta
\right)
}
$$

and it satisfies exactly

$$
I_L+O_L=1,
\qquad
(O_L-I_L)^2+\mathcal R_L^2=1.
$$

This is the first circle $S^1_L$. It is not a claim that every unnormalised physical inside/outside amplitude always sums to one. It is a coordinate chart preserving three things: complementary polarity, active relation, and recurrent phase.

---

## 3. The relation of local relations is another triadic circle

The whole Mind has a second recurrent relation. Local dimensional consequences ascend, become integrated, and return to alter the next local condition.

Represent the whole-level triad by

$$
X_H(\phi)=
\left(
I_H(\phi),O_H(\phi),\mathcal R_H(\phi)
\right),
$$

with

$$
p_H=O_H-I_H=\cos\phi,
\qquad
\mathcal R_H=\sin\phi,
$$

and

$$
I_H=\frac{1-\cos\phi}{2},
\qquad
O_H=\frac{1+\cos\phi}{2}.
$$

This is the second circle $S^1_H$.

The state of the toroidal model is therefore not one angle but an ordered pair:

$$
(\theta,\phi)\in S^1_L\times S^1_H.
$$

Thus the intrinsic state-space is

$$
\boxed{\mathbb T^2=S^1_L\times S^1_H.}
$$

The torus appears because a **local relation cycles** while that entire local relation is **carried through a second whole-level cycle**.

---

## 4. Reverse-engineering the standard torus equation into triadic variables

Let $A>a>0$, where $A$ is the whole-ring radius and $a$ is the local-cycle radius.

Use the local polarity to change the distance from the whole axis:

$$
\rho=A+a p_L.
$$

Use the whole triad to orient that radius in the whole cycle:

$$
x=\rho p_H,
\qquad
y=\rho\mathcal R_H.
$$

Use the local relation as the vertical cross-sectional coordinate:

$$
z=a\mathcal R_L.
$$

Substituting the two triadic circles gives

$$
\boxed{
\mathbf T(X_L,X_H)=
\left(
(A+a(O_L-I_L))(O_H-I_H),
(A+a(O_L-I_L))\mathcal R_H,
a\mathcal R_L
\right)
}
$$

and, because $O-I=\cos$ phase and $\mathcal R=\sin$ phase,

$$
\boxed{
\mathbf T(\theta,\phi)=
\left(
(A+a\cos\theta)\cos\phi,
(A+a\cos\theta)\sin\phi,
a\sin\theta
\right).
}
$$

This is the usual ring-torus parameterization, now expressed as a relation between two normalized triadic identities.

It satisfies the implicit torus equation:

$$
\boxed{
\left(\sqrt{x^2+y^2}-A\right)^2+z^2=a^2.
}
$$

No part of the surface was hand-drawn. Every point is generated by substituting two triadic phase states into the embedding.

---

## 5. Every torus point can be decoded back into two triadic identities

Because $A>a$, every point on the ring torus has $\rho=\sqrt{x^2+y^2}>0$.

The local triad is recovered by

$$
p_L=\frac{\rho-A}{a},
\qquad
\mathcal R_L=\frac{z}{a},
$$

$$
I_L=\frac{1-p_L}{2},
\qquad
O_L=\frac{1+p_L}{2}.
$$

The whole triad is recovered by

$$
p_H=\frac{x}{\rho},
\qquad
\mathcal R_H=\frac{y}{\rho},
$$

$$
I_H=\frac{1-p_H}{2},
\qquad
O_H=\frac{1+p_H}{2}.
$$

Therefore a torus point is not merely a spatial dot. In this model it is an address for

$$
\boxed{
P\longleftrightarrow
\bigl(X_L(\theta),X_H(\phi)\bigr),
}
$$

meaning one local correlation-state inside one whole relation-of-relations state.

---

## 6. Numerical substitution

Choose

$$
A=3,
\qquad a=1,
\qquad \theta=\frac\pi3,
\qquad \phi=\frac\pi4.
$$

### Local triad

$$
p_L=\cos\frac\pi3=0.5,
\qquad
\mathcal R_L=\sin\frac\pi3\approx0.866025.
$$

Therefore

$$
I_L=\frac{1-0.5}{2}=0.25,
\qquad
O_L=\frac{1+0.5}{2}=0.75.
$$

### Whole triad

$$
p_H=\cos\frac\pi4\approx0.707107,
\qquad
\mathcal R_H=\sin\frac\pi4\approx0.707107.
$$

Therefore

$$
I_H\approx0.146447,
\qquad
O_H\approx0.853553.
$$

### Toroidal point

$$
\rho=3+1(0.5)=3.5,
$$

$$
\mathbf T\approx
(3.5\times0.707107,
3.5\times0.707107,
1\times0.866025),
$$

$$
\boxed{
\mathbf T\approx(2.474874,2.474874,0.866025).
}
$$

Substitution into the implicit equation gives

$$
\left(\sqrt{2.474874^2+2.474874^2}-3\right)^2+0.866025^2
\approx1=a^2.
$$

The point is therefore numerically on the equation-derived torus.

---

## 7. Seven recursive depth identities

For one active dimension $D_k$, let each recursive depth be a triadic phase identity

$$
X_{\ell,k}(t)=X_L\bigl(\theta_{\ell,k}(t)\bigr),
\qquad \ell=1,\ldots,7.
$$

Each phase is not a separate substance. It is the state of the same triadic operation at another relational order.

Let the predecessor of the first depth be the delayed whole return and the predecessor of every later depth be the delayed previous depth:

$$
P_1(t)=\phi(t-\tau_\downarrow),
$$

$$
P_\ell(t)=\theta_{\ell-1}(t-\tau_\ell),
\qquad2\leq\ell\leq7.
$$

A minimal delayed relational oscillator is

$$
\boxed{
\dot\theta_\ell
=
\omega_\ell
+\kappa_\ell\sin\bigl(P_\ell(t)-\theta_\ell(t)\bigr)
+\eta h_\ell(t).
}
$$

The sine term measures oriented phase mismatch. The retained mismatch evolves as

$$
\boxed{
\dot h_\ell
=-\gamma_\ell h_\ell
+\sin\bigl(P_\ell(t)-\theta_\ell(t)\bigr).
}
$$

This gives residue finite persistence rather than making it an eternal archive.

The deepest relation returns to the whole cycle:

$$
\boxed{
\dot\phi
=
\omega_H
+\kappa_\uparrow
\sin\bigl(\theta_7(t-\tau_\uparrow)-\phi(t)\bigr)
+\eta_H h_H(t),
}
$$

$$
\dot h_H
=-\gamma_H h_H
+\sin\bigl(\theta_7(t-\tau_\uparrow)-\phi(t)\bigr).
$$

The directed closure is

$$
\boxed{
\phi(t-\tau_\downarrow)
\rightarrow\theta_1
\rightarrow\theta_2
\rightarrow\cdots
\rightarrow\theta_7
\rightarrow\phi(t+\Delta t).
}
$$

This is the seven-depth return loop. Depth seven is the turn; it is not an eighth observer-object.

---

## 8. A relation of the seven relations becomes the local collective phase

Each layer is a unit phasor:

$$
z_\ell=e^{i\theta_\ell}.
$$

Relate the seven layer identities through a weighted circular closure:

$$
\boxed{
Z_L(t)=\sum_{\ell=1}^{7}w_\ell e^{i\theta_\ell(t)},
\qquad
\sum_{\ell=1}^{7}w_\ell=1.
}
$$

Its direction and coherence are

$$
\boxed{
\Theta(t)=\arg Z_L(t),
\qquad
C(t)=|Z_L(t)|,
\qquad0\leq C\leq1.
}
$$

$\Theta$ is the collective local phase used by the toroidal surface projection. $C$ tells how strongly the seven depth relations currently close into one directional relation.

The projected collective Mind trajectory is

$$
\boxed{
\mathbf P(t)=\mathbf T\bigl(\Theta(t),\phi(t)\bigr).
}
$$

The seven depth states can simultaneously be displayed as

$$
\boxed{
\mathbf P_\ell(t)=\mathbf T\bigl(\theta_\ell(t),\phi(t)\bigr).
}
$$

All seven points share the whole-return phase at that occurrence but occupy their own local recursive phases.

A useful optional **solid-torus coherence projection** is

$$
\mathbf P_C(t)=
\left(
(A+aC\cos\Theta)\cos\phi,
(A+aC\cos\Theta)\sin\phi,
aC\sin\Theta
\right).
$$

When $C<1$, the collective relation lies inside the solid torus; as the depth relations cohere, it approaches the surface. This is a visualization of closure strength, not a claim that coherence is literal physical radius.

---

## 9. Why this is a relation of relations

At depth $\ell$, the triad relates two polar expressions:

$$
X_\ell=(I_\ell,O_\ell,\mathcal R_\ell).
$$

The delayed relation from one depth becomes consequential input to the next:

$$
X_{\ell+1}=\mathcal Y\bigl(X_\ell(t-\tau_\ell),X_{\ell+1}(t),h_\ell(t)\bigr).
$$

The seven states are then related into $Z_L$. Their collective result is related to the whole-return phase $\phi$. Thus the toroidal address is structurally

$$
\boxed{
\text{relation}
\rightarrow
\text{relation among depth-relations}
\rightarrow
\text{relation between local closure and whole closure}.
}
$$

The torus is the geometric projection of that last two-phase relation.

---

## 10. Delay, rational winding, and non-identical return

Without coupling, let

$$
\Theta(t)=\omega_Lt+\Theta_0,
\qquad
\phi(t)=\omega_Ht+\phi_0.
$$

The winding ratio is

$$
\nu=\frac{\omega_L}{\omega_H}.
$$

- If $\nu=p/q$ is rational, the phase pair returns exactly after a finite number of turns and traces a closed torus knot.
- If $\nu$ is irrational, the ideal trajectory never returns to the exact same phase pair in finite time and becomes dense on the torus.
- With delayed coupling and residue, even a return near the same phase pair can carry a different full state.

The full state is

$$
\Sigma(t)=
\left(
\theta_1,\ldots,\theta_7,
\phi,
h_1,\ldots,h_7,h_H,
C
\right).
$$

Therefore

$$
(\Theta(t_2),\phi(t_2))\approx(\Theta(t_1),\phi(t_1))
$$

does not imply

$$
\Sigma(t_2)=\Sigma(t_1).
$$

That is the equation-level form of

$$
P\rightarrow Q\rightarrow P',
\qquad P'\neq P.
$$

---

## 11. A symmetric 4D representation and real observer projections

The intrinsic product of two circles can be embedded symmetrically as a Clifford torus in the unit 3-sphere:

$$
\boxed{
Q(\theta,\phi)=
\left(
a_c\cos\phi,
a_c\sin\phi,
b_c\cos\theta,
b_c\sin\theta
\right),
\qquad
a_c^2+b_c^2=1.
}
$$

It satisfies

$$
\|Q\|^2=1.
$$

A 4D observer-frame rotation $U\in SO(4)$ changes the coordinate viewpoint without changing intrinsic distances:

$$
Q'=UQ.
$$

Stereographic projection from the north pole gives a three-dimensional view:

$$
\boxed{
\Pi(Q')=
\frac{(q'_1,q'_2,q'_3)}{1-q'_4}.
}
$$

For the unrotated Clifford torus, the projected points obey

$$
\boxed{
\left(\sqrt{x^2+y^2}-\frac1{a_c}\right)^2+z^2
=
\left(\frac{b_c}{a_c}\right)^2.
}
$$

For the balanced choice $a_c=b_c=1/\sqrt2$, the 3D projection is a ring torus with

$$
A=\sqrt2,
\qquad a=1.
$$

The interactive application rotates $Q$ in 4D before projection. Each view is computed from the same $Q(\theta,\phi)$ states; it is not a separately invented picture.

---

## 12. What the simulator validates

The supplied implementation checks, to floating-point precision:

1. $I+O=1$ for every phase.
2. $(O-I)^2+\mathcal R^2=1$ for every triadic oscillator.
3. The triadic torus embedding equals the standard torus parameterization.
4. Every generated point satisfies the implicit torus equation.
5. Every Clifford point satisfies the unit-$S^3$ equation.
6. Its stereographic projection satisfies the derived torus equation.
7. Rational and irrational frequency ratios produce different winding behavior.
8. Delayed seven-layer recursion can revisit nearby projected phase coordinates while retaining a different residue-state.

The simulation does **not** by itself validate that a human brain uses these exact state variables or parameter values. It validates that the proposed Y-Theory relationships form a mathematically coherent toroidal dynamical model whose coordinates, inverse map, and projections are testable.

## 13. Standalone animated SVG

The file `exports/seven_depth_toroidal_loop.svg` is generated by `model/render_animated_svg.py`. It contains:

- the two exact triadic phase circles;
- an equation-sampled torus mesh;
- seven paths sampled from $\mathbf P_\ell(t)=\mathbf T(	heta_\ell(t),\phi(t))$;
- the collective path sampled from $\mathbf P(t)=\mathbf T(\Theta(t),\phi(t))$;
- ten looping SVG `animateMotion` elements;
- one numerical substitution and inverse check.

The SVG animation is therefore a moving presentation of the stored numerical solution, not an artist-authored motion path. Re-running the Python renderer after changing the equations changes the SVG geometry and motion.

## 14. Dynamic observer-frame video

The file `exports/observer_projection_4d_loop.mp4` keeps the intrinsic Clifford-torus states $Q(	heta,\phi)$ fixed and changes only the $SO(4)$ observer rotation $U(t)$ before applying $\Pi(UQ)$. The changing three-dimensional forms are therefore computed projections of one intrinsic field, not unrelated animations.
