DS
Under Construction — Draft Page
← THESE 7
Extension · Toroidal Manifolds
चक्र ज्यामिति

Toroidal Geometry

Extensions · Higher Dimensions · The Torus in Mind
— Dileep Saxena
Scroll to explore
I

The Torus Revisited

Neural Coding · Grid Cells · Head Direction · Key Experimental Evidence

In 2005, Hafting et al. (Nature, 436:801–806) described grid cells in rat medial entorhinal cortex (MEC) layer II — neurons whose spatial firing fields tile the environment in a regular hexagonal lattice with spacings of 30–100 cm. Each grid cell fires at multiple locations arranged on the vertices of a triangular grid, producing 6-fold rotational symmetry when autocorrelated.

Head direction (HD) cells, first characterised by Taube, Muller & Ranck (1990, J. Neurosci., 10:420–435) in the rat anterodorsal thalamic nucleus (ADN), fire as a function of the animal's head orientation in the horizontal plane. Each HD cell has a single preferred firing direction, and the population uniformly tiles the full 360° azimuthal range. The representation wraps: 359° and 1° are adjacent in the neural code, forming a topological circle S¹.

Gardner, Hermansen et al. (2022, Nature, 602:123–128) combined two-photon calcium imaging of 10,000+ neurons in mouse MEC with topological data analysis (TDA). By computing persistent cohomology (Betti numbers β₁ = 2 for the joint grid × HD population), they demonstrated that the population activity manifold is T² = S¹ × S¹ — a 2-torus. This toroidal structure persisted during REM sleep, when no external spatial input was present, indicating it is maintained by internal attractor dynamics rather than sensory drive.

Independently, Chaudhuri et al. (2019, Nature Neurosci., 22:1512–1520) showed a ring (S¹) attractor topology in the Drosophila ellipsoid body for head direction, using whole-brain calcium imaging. Toroidal coding thus appears conserved across phyla — insects and mammals arrived at the same topological solution separated by ~600 million years of evolution.

[IMAGE PLACEHOLDER: Persistent cohomology analysis from Gardner et al. 2022 — Betti numbers revealing T² topology in MEC population]
II

Why a Torus?

Periodic Boundary Conditions · Continuous Attractor Networks · Mathematical Constraints

The torus T² arises inevitably when a neural population encodes two independent circular (periodic) variables. Head direction is inherently circular: 0° = 360°. Grid phase is likewise periodic: as the animal translates through space, grid cell activity cycles through its spatial period λ and returns to the same phase. Each circular variable maps to S¹; the product of two independent circles is S¹ × S¹ = T².

From a network perspective, continuous attractor neural network (CANN) models predict toroidal topology. Burak & Fiete (2009, PLoS Comput. Biol., 5:e1000291) showed that a network with periodic boundary conditions and local excitation / global inhibition self-organises into a bump attractor on a torus. The key parameter is the ratio of excitatory footprint σ_E to inhibitory range σ_I: when σ_E/σ_I < 1 and connections wrap periodically, the network's stable states form a continuous manifold homeomorphic to T².

Computationally, a toroidal code has major advantages. Fiete et al. (2008, J. Neurosci., 28:6858–6871) demonstrated that a modular grid code on T² achieves exponential capacity: with M modules of N neurons each, the number of discriminable positions scales as N^M, whereas a place-cell code scales linearly. A rat with ~10 modules of ~40,000 grid cells per module can uniquely encode ~10^46 positions — far exceeding any ecological requirement, but explaining the system's extraordinary noise robustness and resolution (~1 cm in a 1-metre arena).

The absence of boundaries is also critical. On a flat plane, neural representations must deal with edges; at the boundary, the code breaks down. On a torus, there are no boundaries — the manifold is compact and without edge. This allows the network to represent an arbitrarily large environment by path integration (velocity integration modulo the grid period), with the torus handling the modular arithmetic automatically.

• Vedantic aside: the torus — finite yet boundaryless — echoes अनन्त (ananta, "the boundless") and पूर्णम् (pūrṇam, "the complete").
III

Higher-Dimensional Tori

T³ · T⁴ and Beyond · Joint Coding of Multiple Cyclic Variables

The navigational state of a rodent involves more than two cyclic variables. Grid phase has two independent components (x-phase and y-phase of the hexagonal grid, each periodic with period λ). Combined with head direction, this yields T³ = S¹ × S¹ × S¹. Adding the phase of the hippocampal theta oscillation (6–10 Hz), which is known to modulate grid cell firing through phase precession (O'Keefe & Recce, 1993, Hippocampus, 3:317–330), yields T⁴.

Experimental evidence for T³ is emerging. Hermansen et al. (preprint, 2024) applied cohomological analysis to large MEC recordings and found β₁ = 3 in combined grid × HD populations, consistent with a 3-torus. The fundamental group π₁(T^n) = ℤ^n, so each additional cyclic variable adds an independent winding number. On T⁴, a trajectory is characterised by four integers (n₁, n₂, n₃, n₄), massively expanding the space of topologically distinct paths.

Stachenfeld, Botvinick & Gershman (2017, Nature Neurosci., 20:1643–1653) proposed that hippocampal representations approximate the eigenvectors of the successor representation (SR) matrix. On a toroidal environment, the SR eigenvectors are exactly the Fourier modes of T², producing sinusoidal spatial tuning — consistent with grid cell periodicity. For T^n, the eigenvectors generalise to n-dimensional Fourier modes, providing a principled computational framework for higher-dimensional toroidal coding.

The capacity implications are dramatic. Fiete's exponential-capacity argument generalises: with n cyclic variables each discretised into k levels, the coding space is k^n. For n = 5 and k = 20 (a conservative estimate), this yields 20⁵ = 3.2 million distinct states — more than sufficient to uniquely encode every episode in a rodent's lifetime as a unique coordinate on T⁵.

[IMAGE PLACEHOLDER: Schematic of T³ topology from three independent cyclic variables — grid x-phase, y-phase, head direction]
IV

The Torus in Memory

Persistent Homology · Replay Topology · Topological Invariants in Hippocampal Data

Persistent homology — a method from topological data analysis (TDA) — quantifies the "holes" (topological features) in a dataset across multiple spatial scales. The key output is a persistence barcode: long bars indicate robust features (genuine topology), short bars indicate noise. Rybakken et al. (2019, PNAS, 116:13138–13143) applied persistent homology to simulated grid cell populations and demonstrated that the Betti-1 barcode reliably detects the toroidal structure: two persistent 1-cycles corresponding to the two non-contractible loops of T².

Crucially, Gardner et al. (2022) showed that the toroidal topology persists during sleep replay. When hippocampal sharp-wave ripples (SWRs) trigger replay sequences in MEC, the replayed activity traces trajectories on the same torus measured during waking. The first homology group H₁(T²) ≅ ℤ × ℤ defines two independent winding numbers. Replay trajectories have specific winding numbers — they don't wander randomly on the torus but retrace specific paths, consistent with memory consolidation of particular spatial experiences.

This suggests a topological framework for memory encoding: a memory corresponds to a specific trajectory on the toroidal manifold, characterised by its homotopy class (set of winding numbers). Topological invariants are robust to continuous deformations — meaning that noise, partial neural loss, or synaptic drift cannot change the winding number of a trajectory unless the perturbation is severe enough to tear the manifold. This may explain the remarkable stability of spatial memories despite ongoing synaptic turnover.

Curto & Itskov (2008, Bull. Math. Biol., 70:1972–1992) formalised the idea that place field combinatorics constrain the topology of the represented space. Their "convexity theorem" proves that if place fields are convex and cover the environment, the nerve complex of the cover has the same homology as the environment. Applied to grid cells on T², this guarantees that the population code's combinatorial structure faithfully preserves the toroidal topology — the neural code is a topologically faithful map.

[IMAGE PLACEHOLDER: Persistence barcodes from Rybakken et al. 2019 — two long H₁ bars indicating T² topology in grid cell data]
V

Toroidal Attractors and Neural Dynamics

Attractor Manifolds · Limit Cycles · Recurrent Dynamics in MEC and ADN

The toroidal manifold in MEC is maintained by recurrent attractor dynamics, not sensory input. Evidence: (1) the torus persists during sleep (Gardner et al. 2022); (2) grid patterns persist in darkness (Hafting et al. 2005); (3) pharmacological inactivation of hippocampal input (muscimol in CA1) does not destroy the grid pattern (Bonnevie et al. 2013, Nature Neurosci., 16:309–317), though it introduces drift. The network is a continuous attractor — a dynamical system whose stable states form a continuous manifold (the torus), and whose dynamics evolve on that manifold.

Yoon et al. (2013, Nature Neurosci., 16:1077–1084) recorded from large populations in the ADN and showed that the head direction ring attractor has a characteristic time constant of ~80 ms — the system returns to the S¹ manifold within ~80 ms after perturbation. For the full T² attractor in MEC, the relaxation time is estimated at 100–200 ms based on bump-attractor network models (Couey et al. 2013, Nature Neurosci., 16:318–324).

A closed trajectory on the torus — one where the system returns to its starting state — corresponds to a periodic orbit in neural state space. In continuous attractor networks, such orbits arise naturally when the velocity input (from self-motion) drives the bump around the torus. If the velocity input has two incommensurate components (as during random foraging), the trajectory densely covers the torus without repeating — an ergodic orbit. If the components are rationally related, the trajectory closes, producing a limit cycle.

The distinction matters for neural coding. Ergodic trajectories visit every state, maximising the information the code can carry about spatial position. Periodic orbits visit only a subset of states, potentially corresponding to habitual routes or stereotyped behaviours. The winding number (p,q) ∈ ℤ² of a closed orbit determines its topological complexity: simple loops have (1,0) or (0,1); complex orbits have higher winding numbers like (3,2).

• Yogic parallel: वृत्ति (vṛtti), the "turnings" of mind described in Patañjali's sūtras, may map to closed orbits on neural attractor manifolds — periodic neural patterns the system cannot escape.
VI

Clifford Torus and the 4th Dimension

Flat Torus in ℝ⁴ · Isometric Embedding · Neural Population Geometry

The standard embedding of T² in ℝ³ (a doughnut) has nonzero Gaussian curvature: positive on the outer rim, negative on the inner rim. This means the metric is distorted — distances on the inner surface are compressed relative to the outer surface. For a neural code, metric distortion means unequal information density: some regions of the torus carry less information per unit area than others.

The Clifford torus eliminates this distortion. Defined as the set {(cos θ, sin θ, cos φ, sin φ) / √2 : θ, φ ∈ [0, 2π)} in ℝ⁴, the Clifford torus is flat — zero Gaussian curvature everywhere. It is the unique flat torus that can be isometrically embedded in S³ ⊂ ℝ⁴. The Nash embedding theorem (1956) guarantees that any flat torus admits an isometric embedding in ℝ⁴, and the Clifford torus is the canonical realisation.

Gardner et al. (2022) examined the curvature of the neural torus and found it to be approximately flat — the population activity vectors were roughly uniformly distributed on the manifold, with no systematic compression at the inner rim. This is consistent with the neural population geometry being closer to a Clifford torus in ℝ⁴ than to a standard doughnut in ℝ³. If confirmed, this implies that the effective dimensionality of the neural computation is at least 4, even though the represented space (2D position × 1D direction) is only 3-dimensional.

Chung, Lee & DiCarlo (2024, preprint) developed methods to measure the intrinsic curvature of neural manifolds from population recordings. Applied to MEC data, their analysis yielded curvature estimates κ ≈ 0 ± 0.02 rad⁻², consistent with a flat embedding. A ℝ³-embedded torus would show curvature varying from +1/R² to −1/r² (where R and r are the major and minor radii). The near-zero measured curvature supports a higher-dimensional flat embedding — the neural torus lives in a space of dimension ≥ 4.

[IMAGE PLACEHOLDER: Stereographic projection of the Clifford torus from S³ to ℝ³ — showing uniform metric on the surface]
VII

The Torus in Physics and Cosmology

Plasma Confinement · Cosmological Topology · Toroidal Structures Across Scales

Tokamak plasma confinement: In magnetic confinement fusion, plasma is confined in a toroidal vacuum vessel (major radius R₀ ≈ 6.2 m, minor radius a ≈ 2.0 m in ITER). The toroidal geometry is dictated by the requirement that magnetic field lines close on themselves: a straight solenoid has field-line losses at the ends, but bending it into a torus eliminates end losses. The safety factor q = rB_t / (R₀B_p) describes how many toroidal transits a field line makes per poloidal transit; rational q leads to magnetic islands, irrational q to ergodic field lines (Wesson, Tokamaks, 4th ed., 2011). The parallel to neural coding is precise: periodic boundary conditions on a compact manifold, with dynamics governed by winding numbers.

Cosmic topology: The Friedmann-Lemaître-Robertson-Walker (FLRW) metric describes a spatially homogeneous, isotropic universe with curvature k = −1, 0, or +1. For k = 0 (flat), the spatial topology is not uniquely determined — it can be ℝ³ (infinite) or T³ (flat 3-torus, finite). Luminet et al. (2003, Nature, 425:593–595) proposed a Poincaré dodecahedral space model. Cornish, Spergel & Starkman (2004, Phys. Rev. Lett., 92:201302) searched for matched circles in WMAP CMB data — the signature of a toroidal universe. They found no statistically significant matches for a T³ with identification length L < 24 Gpc, but larger tori remain unconstrained. Planck collaboration (2016, A&A, 594:A18) confirmed: T³ with L > 1.03 × diameter of the last scattering surface cannot be excluded.

Cross-scale comparison: The mathematical similarity between tokamak field-line topology, neural attractor topology, and candidate cosmic topology is not coincidental. All three systems require: (1) a compact manifold without boundary; (2) periodic boundary conditions; (3) dynamics characterised by winding numbers on that manifold. The torus T^n is the simplest compact flat manifold meeting all three requirements — a result formalised by the Bieberbach theorem (1911), which classifies all compact flat Riemannian manifolds as quotients of ℝ^n by crystallographic groups.

• In Vedantic cosmology, ब्रह्माण्ड (brahmāṇḍa, "cosmic egg") describes a self-contained, finite-yet-complete universe — a compact manifold without boundary.
VIII

Open Questions

Research Frontier · Testable Predictions · Methodological Challenges

Dimensionality detection: Current persistent homology methods reliably detect T² (β₁ = 2) but struggle with T^n for n ≥ 3 due to exponential growth of simplicial complex size. Luo, Henle & Bhatt (2024) proposed sheaf-theoretic methods for scalable high-dimensional TDA. Applied to large-scale Neuropixels recordings (~5,000 simultaneous MEC neurons), these methods may determine whether the true manifold dimensionality is 2, 3, or higher.

Universality beyond navigation: Recent work suggests toroidal topology in non-spatial domains. Nieh et al. (2021, Nature, 595:80–86) found circular topology in mouse retrosplenial cortex encoding abstract task variables. Low et al. (2021, preprint) reported T²-like structure in prefrontal cortex during a dual-rule task. If confirmed across species and tasks, toroidal coding may be a general principle of cortical computation — not specific to spatial navigation.

Pathological disruption: Alzheimer's disease (AD) prominently affects entorhinal cortex, with grid cell dysfunction reported in MEC layer II before clinical symptoms (Kunz et al. 2015, Science, 350:430–433). The prediction: AD should manifest as a measurable change in the persistent homology of MEC population activity — specifically, shortening of H₁ persistence bars indicating degradation of the toroidal manifold. This is testable with current TDA methods applied to fMRI or iEEG data from AD patients performing virtual navigation tasks.

Evolution of the torus: Grid cells have been found in rodents (Hafting et al. 2005), bats (Yartsev et al. 2011, Nature, 479:103–107), non-human primates (Killian et al. 2012, PNAS, 109:19839–19844), and HD cells in Drosophila (Seelig & Jayaraman 2015, Nature, 521:186–191). The torus thus predates the mammalian radiation (~160 Mya). Whether the insect and mammalian implementations share a common genetic basis (e.g., conserved CAN network motifs) or represent convergent evolution on the same topological solution is an open comparative neurobiology question.

Curvature measurement: Definitive evidence for the Clifford torus (vs. a curved ℝ³ embedding) requires precise curvature estimation from neural population data. The Fisher information metric on the neural manifold provides one approach: if the Fisher information matrix is position-independent on the torus, the manifold is flat. This requires simultaneous recording of ≥500 neurons with uniform coverage of the toroidal state space — achievable with current Neuropixels technology.