Status: Canonical theoretical reference Version: 0.0.3.3 Date: March 2026
Number theory can be formulated within the TNFR framework when the nodal equation
is applied to a network whose nodes are natural numbers and whose edges encode arithmetic relationships (divisibility, common factors). In this setting:
This document formalizes these observations, expresses the arithmetic constants as canonical units (only is a genuine structural scale), and maps the theory to its implementations in the repository.
| Layer | Description | Source |
|---|---|---|
| Primality | Deterministic prime detection via | primality-test/, src/tnfr/mathematics/number_theory.py |
| Factorization | Spectral factor discovery via Paley-Jacobi graphs | factorization-lab/ |
| Riemann program | Prime path spectral operators and critical parameter convergence | src/tnfr/riemann/ |
All three layers share the same canonical constants, structural fields, and grammar constraints (U1-U6).
A TNFR arithmetic network is a directed graph where:
Each node is assigned the structural triad (EPI, , ) and a phase derived from its arithmetic properties.
Efficient computation uses a Lowest Prime Factor (LPF) sieve:
From the LPF array, factorization of any is , enabling computation of all arithmetic functions (, , ) for the entire network in sieve time plus factorization time.
Each node receives a phase derived from its position in the arithmetic structure:
Phase compatibility () governs coupling operations (U3), ensuring that arithmetic relationships respect the resonant coupling constraint.
The structural triad specializes the general TNFR triad (EPI, , ) to arithmetic:
The Primary Information Structure of a natural number measures its overall arithmetic complexity:
where:
Physical interpretation: EPI(n) is the structural form of the number, analogous to the configuration of an oscillator. Primes have the simplest forms; highly composite numbers have the richest.
The reorganization capacity of a number measures how rapidly its structural form could evolve:
where:
Physical interpretation: is the capacity lever in the nodal equation. Numbers with rich divisor structures have slightly higher reorganization capacity, but this is irrelevant for primes because the pressure lever vanishes.
The structural pressure equation is the central result of arithmetic TNFR:
where is the prime factor count with multiplicity, the divisor count, and the divisor sum. The coefficients are canonically (unit weights; see §5).
Physical interpretation: is the pressure lever — how much reorganization the arithmetic structure of demands. It quantifies the structural distance from primality.
From the pressure, local coherence is derived:
Primes have (perfect coherence); composites have , decreasing with structural complexity.
Theorem (TNFR Primality Criterion): For any integer :
Proof: Each pressure component vanishes independently for primes and is strictly positive for composites:
Factorization component: for all primes , so . For composites, , giving .
Divisor component: for all primes (divisors: 1 and ), so . For composites, , giving .
Abundance component: For primes, , so , making . For composites with a proper divisor , , giving and thus .
Since all three terms vanish iff is prime, and all are non-negative, the equivalence holds.
Structural interpretation: The theorem states that primes are the unique zero-pressure fixed points of the arithmetic structural manifold. Under the nodal equation, at primes, regardless of . Primes are structurally inert — they require no reorganization.
The primality criterion is independent of the coefficient values , provided all three are positive. Each component vanishes individually for primes. The coefficients affect only the relative weighting of pressure components for composites — the landscape of the structural manifold, not its fixed points.
| Property | Value |
|---|---|
| Determinism | 100% (no probabilistic component) |
| Time complexity | per number (trial division for , , ) |
| Space complexity | basic; with memoization |
| Sieve mode | for all primes up to |
| Verified range | exhaustive, selective |
| Accuracy | 100% — 0 false positives, 0 false negatives |
Per AGENTS.md §3 the only genuine structural constant is ; , and are not structural scales. Earlier versions wrote the triad weights as combinations, but that was a post-hoc notational overlay fitted to approximate empirical values (, , ) — not a derivation.
By the Coefficient Independence theorem (§4.2) the primality criterion holds for any positive coefficients. The arithmetic pressures carry no phase/geometric content, so even has no role; the canonical choice therefore introduces no constant at all — all weights are unity, and the structural content lives entirely in the arithmetic invariants .
The three pressure channels weigh equally: the factorization excess , the divisor excess and the abundance excess each contribute on the same unit scale. This is the canonical, parameter-free form — every coefficient is forced by the §4.2 coefficient-independence theorem rather than fitted.
| Parameter | Value | Physical meaning |
|---|---|---|
| Factorization complexity weight | ||
| Divisor logarithmic weight | ||
| Abundance deviation weight |
| Parameter | Value | Physical meaning |
|---|---|---|
| Base structural frequency | ||
| Divisor density modulation | ||
| Factorization modulation |
Primality is detected by the exact criterion (§4.1); the only threshold is the floating-point zero tolerance.
| Threshold | Value | Purpose |
|---|---|---|
| Primality tolerance | Floating-point zero detection of |
Any wider "significance band" is an operational convenience, not a structural constant — only is a genuine structural scale (§5.1).
The 9 dynamical arithmetic parameters (3 pressure + 3 EPI + 3 frequency) are positive operational weights applied to arithmetic functions (canonical units; the prime ⟺ ΔNFR = 0 criterion is coefficient-independent, §4.2). The structural-field thresholds are the same canonical π-derived bounds as any TNFR network — only π is a genuine structural scale (per-node , drift ; see §7.5 and FUNDAMENTAL_THEORY.md §4). An earlier φ/γ/e "arithmetic recalibration" was removed (audit 2026); no domain-specific tuning remains.
The equation decomposes structural pressure into three independent channels, each measuring a distinct aspect of compositeness:
Measures the total prime factor count with multiplicity. This is the most direct measure of compositeness: primes have , semiprimes have , prime powers have .
| Factorization | |||
|---|---|---|---|
| 7 (prime) | 1 | 0 | |
| 15 | 2 | 1 | |
| 8 | 3 | 2 | |
| 30 | 3 | 2 | |
| 360 | 6 | 5 |
Measures the richness of the divisor lattice. Primes have exactly 2 divisors; highly composite numbers have many.
| 7 (prime) | 2 | 0 |
| 15 | 4 | 2 |
| 8 | 4 | 2 |
| 30 | 8 | 6 |
| 360 | 24 | 22 |
Measures the deviation of the divisor sum ratio from the prime pattern. This is the most sensitive to the internal structure of divisors.
| 7 (prime) | 0 | ||
| 15 |
The three pressure channels are algebraically independent — no linear combination of two can reproduce the third for all . This makes the decomposition minimal and complete for characterizing compositeness through the three canonical arithmetic functions (, , ).
As grows, the expected pressure for a "random" composite scales as:
by the Erdős-Kac theorem () and divisor function asymptotics. Primes remain at exactly zero regardless of magnitude.
When the arithmetic network is constructed, the structural field tetrad (, , , ) can be computed using the centralized physics modules:
where is the graph distance in the arithmetic network. Primes, being zero-pressure nodes, act as sinks in the potential field — they attract nearby composites toward equilibrium.
Threshold: (π-derived, quarter phase-wrap — see FUNDAMENTAL_THEORY.md §4); the arithmetic network uses this same canonical π-derived bound (§7.5).
where are the neighbors of in the arithmetic network. High phase gradient indicates local desynchronization — composites with many diverse factors show elevated gradients.
Threshold: (heuristic early-warning, kinematic bound ) for stable operation; arithmetic recalibration gives .
where is the circular mean of neighbor phases. Elevated curvature flags numbers at structural boundaries — e.g., the transition between prime-rich and composite-rich regions.
Threshold: ; arithmetic recalibration gives .
The coherence length measures how far structural correlations propagate through the arithmetic network. Near critical points (e.g., twin primes, prime gaps), diverges — a signature of long-range correlation in the prime distribution.
The arithmetic network uses the same canonical, π-derived structural-field tetrad thresholds as any TNFR network — only π is a genuine structural scale:
| Field | Threshold | Source |
|---|---|---|
| π/4 ≈ 0.785 (per-node), π/2 ≈ 1.571 (drift) | PHI_S_VON_KOCH_THRESHOLD, U6_STRUCTURAL_POTENTIAL_LIMIT | |
| $ | \nabla\phi | $ |
| < 0.9·π ≈ 2.827 (phase-wrap safety) | K_PHI_CANONICAL_THRESHOLD | |
| spectral gap (ξ_C ∝ 1/√λ₂) | Computed per network |
An earlier "arithmetic recalibration" introduced topology-specific thresholds expressed as φ/γ/e combinations (e.g. a threshold of 3.2275 that exceeded the π phase-wrap bound and was therefore unreachable). Those values were not structural scales and have been removed (audit 2026): the arithmetic network is governed by the same π-bounded phase sector as every other TNFR network.
The arithmetic network is itself a Fractal-Resonant Node (NFR; TNFR.pdf
§1.4.1) — a region of structural coherence coupled by divisibility/GCD.
ArithmeticTNFRNetwork.nfr() surfaces the joint read-out of its three emergent
facets:
equilibrium_fraction is the prime density and the mean per-node coherence
measures distance from this attractor.classify_nodal_topology from the structural-potential geometry, is
multinodal — its centers are the highly-composite / abundant numbers
(6, 12, 24, 30, 36, …), the hubs of the divisibility lattice.The same nodal dynamics generates an emergent geometry (AGENTS.md §4),
exposed by conservation() and symplectic_substrate(), which delegate to the
canonical Structural Conservation Theorem and symplectic-substrate machinery
applied to the divisibility network:
The emergent geometry is thus potential-dominated: the arithmetic structure (factorization pressure) drives the structural-potential geometry, while phase is the secondary size grading.
Applying the nodal equation to the arithmetic network:
This decomposes structural evolution into two independent levers:
For primes: regardless of .
This is a structurally stable fixed point: perturbations to do not affect the equilibrium. The prime's structural form is frozen by the absence of pressure, not by the absence of capacity.
For composites: .
The composite's structure is under active reorganization pressure. The rate depends on , but the direction (toward simpler structure) is determined by the positive pressure.
Operator-tetrad synergy experiments (examples 37-39) confirmed:
Given a composite with , factorization is the process of decomposing the structural pressure into coherent sub-modes, each corresponding to a prime factor.
Physical analogy: A composite number is like a coupled oscillator system with multiple resonant frequencies. Factorization identifies the individual frequencies (prime factors) from the combined signal.
The implementation uses Paley graphs — algebraic constructions from quadratic residues:
Graph construction: For modulus (chosen near ), build the Paley graph where nodes are and edges connect quadratic residues.
Spectral decomposition: Compute the spectrum of the emergent structural-diffusion operator (the canonical ΔNFR EPI channel; _laplacian_eigenvalues routes through structural_diffusion_operator). On the residue/Paley graph, which is regular, shares eigenvectors with the classical Laplacian and the eigenvalues differ only by the degree (), so the Fiedler-gap → prime-size map (a Paley Gauss-sum fact) is preserved while the operator provenance is the emergent TNFR transport operator.
Tetrad proxies (HONEST SCOPE): the factorizer operates on the spectrum, not on a node-level ΔNFR field, so it uses scalar proxies of the tetrad — normalized edge density, (the emergent diffusion relaxation time). These are labelled proxies in code (, ); the genuine per-node tetrad () is measured by example 117 and is (§9.5) — the factor signal lives in the spectrum, which the proxies summarize.
Operator sequence: Apply the canonical decoder per partition:
Factor inference: Detect periodicities in the stabilized partitions that correspond to for candidate factors .
TNFR certification: Verify each candidate against 8 structural criteria (§9.3).
A factor candidate is TNFR-certified when of 8 criteria hold and of partition endorsements are positive:
| Criterion | Threshold | Physical basis |
|---|---|---|
| gain | drop | Nodal equation convergence |
| Coherence ratio | Structural similarity | |
| delta | U6 structural-potential confinement | |
| Gradient delta | Phase desynchronization limit | |
| Curvature delta | Geometric stability | |
| Periodicity confidence | Structural mode certainty | |
| Stabilized fraction | Multi-scale coherence (U5) | |
| Coverage fraction | Spatial completeness |
Setting TNFR_PURE_MODE=1 restricts factor certification to structural confidence () without arithmetic divisibility checks, isolating the TNFR-specific signal from classical shortcuts.
The factorization machinery (§9.1–9.4), the arithmetic primality criterion (§4), and the emergent-geometry program are one structure read in three sectors, not independent projects. Example 117_emergent_geometry_residue_graph.py measures all three with the emergent geometry used for everything (the structural-diffusion operator is exactly the canonical ΔNFR EPI channel), and benchmarks/primes_as_consequence.py (Camino 11) frames the trichotomy:
| Sector | Method | Input | Emergent? |
|---|---|---|---|
| A — Arithmetic | (§4) | (the factorization) | re-expression (primes-IN; exact but circular as a derivation) |
| B — Spectral | only | genuinely emergent (primes-OUT; non-circular) | |
| C — Representation | irreducibility (Schur ) | a finite group | refuted (the dim-4 mode of is irreducible yet ) |
The unification, stated honestly:
Sector B is the genuine emergence. The Paley gap selects the primes from the self-adjoint spectrum of the quadratic-residue graph alone — it never computes . Primality is, in part, a consequence of self-adjoint structure, not a primitive. This is the non-circular core that the arithmetic sector A (which consumes ) cannot claim.
The factor signal is spectral, not substrate. For a semiprime the factor appears as an exact Fourier/coset mode of the emergent diffusion spectrum (, collapsing under a node-label shuffle — example 117 Q2). But the residue graph is , so the emergent random-walk operator and the classical Laplacian : the coset signal is the residue-graph (CRT) structure re-expressed, something the emergent framing adds. The genuinely-emergent per-node symplectic substrate () is to the cosets ( — example 117 Q3), exactly as on the arithmetic network (examples 101/103/116). The substrate what lives in the spectrum; it does not independently discover the factor.
Both walls coincide. Sector B is partial: in the real/self-adjoint spectrum it detects only (misses and many ) — it reaches the support/scale, never the (§9.6 crosses precisely this restriction by going to the operator's complex spectrum, extending detection to all odd primes; the arg- phase still remains beyond reach). The residual is the same – / obstruction as the paused TNFR-Riemann program (; §10, TNFR_RIEMANN_RESEARCH_NOTES §13septies). Multiplication is the Fundamental Theorem re-expressed via UM/REMESH (, additive-in-log); addition (Goldbach) is to this multiplicative coherence () and would need a branch-B2 additive operator. The three number-theory questions (primality, factorization, the Riemann zeros) hit one obstruction, located precisely, not three.
Net: the optic-shift converts the imposed arithmetic carrier (sector A) into a partially emergent one (sector B) and pins the residual at the phase / the class. It SHARPENS the unification; it does not dissolve the wall. Genuine non-circular emergence exists in TNFR — but partial, spectral, and never in the per-node emergent substrate.
The "partial" limitation of sector B (only , §9.5) is not a wall of TNFR — it is an artefact of restricting to the real/self-adjoint spectrum. Example 119_phase_sector_directed_residue.py crosses it using the same canonical emergent operator on the directed residue graph.
The structural reason for the mod-4 split. For , is a quadratic residue, so the residue graph is symmetric: the canonical operator is self-adjoint and its spectrum is real. For , is not a residue, so the residue digraph is a Paley tournament (one directed edge per pair); the canonical operator is non-self-adjoint (a non-symmetric circulant, hence still normal) and its spectrum is complex — the arithmetic content lives in the phase (the imaginary part), which the real spectrum discards.
Doctrine compliance. This is the same structural_diffusion_operator (the literal ΔNFR EPI channel) applied directly to a networkx.DiGraph — verified identical to a hand-built operator (). Nothing ad-hoc; the complex spectrum is the canonical emergent geometry on a directed graph. Only arithmetic input: .
Measured (all reproducible in example 119):
Unified primality. "The directed emergent operator has exactly 3 distinct (complex) eigenvalues" is an odd prime — 58/58 correct over odd , zero mismatches. This extends Reading B from to all odd primes via the phase sector.
Prime powers resolved. The directed operator gives 4+ distinct eigenvalues for , , , — it primes from prime powers, which the real symmetric operator of example 117 could ( was rigid there, the honest §9.5 caveat). The phase channel removes that caveat.
The phase encodes . For primes the imaginary spectrum is the Paley-tournament eigenvalue structure on the adjacency; the diffusion operator's (ratio ) — a Gauss-sum fact carried in the .
Honest scope. A genuine, non-circular extension of Reading B to all odd primes (input only ), removing the prime-power caveat — a real improvement over §9.5. But it remains spectral and bounded by the same – / wall: it detects primality structurally, it does not factor, does not reach the continuous phase , and closes no open problem. The "3 distinct eigenvalues" rigidity is the doubly-regular-tournament signature (a known algebraic-graph fact), recovered as the canonical emergent operator's complex spectrum. The lesson: the phase sector is reachable — the complex field is the right object (AGENTS.md "Regime Correspondences") — but the continuous arg- phase of the Riemann residual still lies beyond this discrete-spectrum reach.
§9.6 detects primality in the global spectrum; §9.5 and examples 103/116 found the per-node symplectic substrate (, , ) blind to arithmetic. These look contradictory — the same canonical emergent operator on the same residue digraph. Example 120_symmetry_wall_substrate_vs_spectrum.py resolves the contradiction and unifies the arc with one structural mechanism: vertex-transitivity.
The mechanism. The residue digraph is a Cayley digraph of with connection set the quadratic residues. The translation preserves the difference , hence the QR edge set: it is always a graph automorphism (every , verified). The automorphism group acts transitively on nodes — every node is structurally equivalent. Consequence: the graph's arithmetic (which differences are QRs) is a property of the edge structure invariant under the node automorphism; it cannot label any individual node. So:
The double dissociation (measured). Compare the Paley residue digraph (QR structure) against a random regular tournament of the same out-degree, both seeded identically and evolved by the canonical nodal equation :
| Paley distinct eig. | random distinct eig. | Paley | random | |
|---|---|---|---|---|
| 11 | 3 | 11.0 | 0.400 | 0.366 |
| 23 | 3 | 23.0 | 0.587 | 0.618 |
| 47 | 3 | 47.0 | 0.998 | 0.938 |
Across odd the spectral test " distinct prime" is 18/18 correct, while grows monotonically with (graph size) and composites can exceed primes (e.g. vs ) — the substrate tracks size, not primality.
The unification (one wall, four domains). Vertex-transitivity confines arithmetic to the spectral / group-representation sector and leaves the per-node substrate in the symmetric sector , blind. This is the same structure as the paused TNFR-Riemann program, where the oscillatory residue lives in , unreachable by symmetric (-trapped) constructions (AGENTS.md "REMESH-∞ Closure"; TNFR_RIEMANN_RESEARCH_NOTES §13septies, §13sexagesima-octava Tetrad- Lemma). Physics (the symplectic substrate), number theory (Gauss sums, primality), emergent geometry (the canonical operator) and the Riemann residual hit one symmetry wall, located precisely: arithmetic is in the spectrum, the per-node substrate is in the fixed sector.
Honest scope. This explains the – / wall structurally (vertex-transitivity / representation theory); it does not cross it and closes no open problem. It confirms, with a measured double dissociation and an arithmetic-neutral control, that running the directed dynamics does not let the per-node substrate see arithmetic — the blindness is a symmetry constraint, not a dynamics artefact. The arithmetic remains spectral, bounded by the same wall as the paused Riemann program.
§9.7 located the wall at vertex-transitivity. The obvious next move is to break that symmetry canonically — the TNFR-Riemann program calls this candidate B2-P2 (NodeIndexedCouplingWeights). The analytical verdict is on record: AGENTS.md "B0★-β-P2 FAILS" (§13sexagesima-sexta) closes P2 at the slot level — the nodal equation has no per-node-weight slot; weights enter only as graph-level channel scalars (), so any per-node law needs an external rule-selection axiom not derivable from the catalog. Example 121_canonical_symmetry_break_negative.py measures this closure at the number-theory level.
The code fact (the missing slot). tnfr.dynamics.dnfr._configure_dnfr_weights produces ONE graph-level dict of channel weights, normalized once and reused for every node. There is no per-node weight in the canonical machinery; the only per-node levers are (a) the initial seed and (b) the per-node . Both are tested.
The three levers (measured).
| Lever | Result | Reading |
|---|---|---|
| D1 symmetric seed | (machine zero), prime & composite alike | the canonical dynamics ALONE makes zero per-node structure ( on a uniform field); all of §9.7's variation came from the random seed |
| D2 structure-derived | in/out-degree, triangle counts: exactly | every per-node structural invariant is constant on the vertex-transitive graph → any canonical structure-derived is uniform → no break |
| D3 arithmetic-injected | (0.96–1.05) |
Conclusion. There is no canonical (non-circular) per-node lever that breaks vertex-transitivity: the nodal equation has no per-node weight slot (code fact); structure-derived levers are uniform (D2); the symmetric dynamics makes no structure (D1); and the only lever that does break uniformity is an external arithmetic injection that the shuffled control reveals as echo (D3). This is the empirical, number-theory-level confirmation of the analytical B2-P2 closure. The wall of §9.7 is structural, not an artefact of which canonical knob was turned.
Honest scope. A clean measured negative: it confirms the analytical closure, it does not break the wall, and it closes no open problem. It is a re-expression of two known structural facts — no canonical per-node observable exists on a homogeneous (vertex-transitive) graph, and the nodal equation carries no per-node weight slot — measured here in TNFR's own substrate.
§9.6 (Reading B, real sector) recovered the factor coset of a semiprime as an Fourier mode of the emergent diffusion spectrum, but only partially: it missed the high-frequency factor modes of and . §9.6/§9.7 showed the missing content lives in the phase (the complex spectrum of the directed residue digraph). Example 122_factorization_phase_sector.py uses that phase sector to complete the factor-coset recovery.
The structural fact (CRT, present in both sectors). For the factor coset corresponds to the Fourier frequencies multiples of the cofactor . A pure Fourier mode with a multiple of is constant within each coset , hence an exact eigenvector of the emergent operator (a circulant / Cayley digraph) — verified to machine precision (eigenvector residual ) for BOTH the undirected (real) and directed (complex) residue operator. The factor coset is CRT/circulant structure (), present in both spectra.
Why the real sector misses 51 and 91. The undirected residue operator is symmetric: its eigenvalues come in degenerate pairs (). When the factor-coset frequency lands in a degenerate eigenspace, the eigensolver returns an arbitrary real combination that scrambles the coset structure, so the test fails (51, 91). The directed operator is non-symmetric (a non-self-adjoint circulant): its eigenvalues are complex Gauss sums, which are less degenerate and isolate the factor-coset mode — so the complex spectrum exposes precisely the modes the real sector loses.
Measured (the correct complex-mean ). (One must use complex means: a Fourier mode has flat magnitude, so a magnitude- is blind to the coset.)
| Sector | Factor recovery (scan prime , smallest with best ) |
|---|---|
| Real undirected | 8/10 — fails on exactly 51 and 91 (the §9.6 caveat) |
| Complex directed | 10/10 — recovers 51 and 91 via the phase |
The shuffle control collapses the factor-coset from to the random baseline (–): the signal is the CRT/circulant structure, not an artefact.
Honest scope. This re-expresses CRT / Fourier period structure (the content Shor's algorithm exploits via period finding) in the canonical emergent spectrum. It is not a new or fast factoring algorithm: the candidate scan is prime divisors — the same order as trial division, no speedup, and no cryptographic threat. The complex sector's only advantage is reduced eigenvalue degeneracy (a linear-algebra fact about circulant / Cayley digraphs), which isolates the factor-coset mode. The result completes §9.6's partial real-sector recovery () via the phase sector; it closes no open problem.
§9.7 located the residue-digraph wall at vertex-transitivity. Example 123_symmetry_sector_decomposition.py shows that is a special case of a general representation-theoretic principle of the canonical emergent operator — the single structure behind every wall in the §9.5–§9.9 arc (and the Riemann residual).
The principle (Schur, applied to the canonical emergent operator). For any graph with automorphism group , the canonical emergent operator is equivariant: it commutes with the permutation representation of every automorphism, for all . By Schur's lemma an equivariant operator block-diagonalizes by the isotypic components (irreps) of . The coarsest split is
where is the trivial isotypic component and the number of vertex orbits. preserves each block. Consequently any canonical per-node observable that is itself -invariant lands in — constant within each orbit, never resolving node-from-node inside an orbit — while all discriminating information lives in , the spectrum.
Measured (five symmetry groups — cyclic, full-symmetric, star, path, product).
| Graph | orbits | equivariance | preserves | ||
|---|---|---|---|---|---|
| cycle () | 16 | 1 | 1 |
The unification. The residue-digraph wall (§9.7), the substrate blindness (§9.5/ex 103/116), the spectral primality (§9.6), and the Riemann oscillatory residue are the same split for different symmetry groups. The star and path (non-vertex-transitive) sharpen the binary blind/sees of §9.7 to the full orbit structure: the substrate resolves the orbit partition and no finer.
Honest scope. This is the representation theory of graph automorphisms (Schur's lemma applied to an equivariant operator) re-expressed in the canonical emergent operator. It explains and unifies the arc's walls; it is not new mathematics and closes no open problem.
§9.6 established the measured signature " distinct eigenvalues odd prime" for the quadratic-residue () digraph. Example 153_structural_frequency_rank_cyclotomy.py generalizes it to the -th power residue network and measures the cyclotomy law . Unlike §9.5–§9.10 (all measured), this law is a theorem — it follows from classical Gauss-period theory, here proved for all and every odd prime .
Setup. Fix an odd prime and an integer ; let and . Because is cyclic of order , the nonzero -th power residues form the unique subgroup of index (the -th powers), with . The structural rank is the number of distinct eigenvalues of the canonical on ; since is an affine image of the circulant adjacency , with
Theorem (cyclotomy law). .
Proof.
Coset invariance. For , depends only on the coset : if with then (group closure), so . The cosets partition into classes, so over the value takes the Gauss periods (one per coset); the remaining value is . Hence .
The periods are distinct. The only -linear relation among is ; restricted to two -supported sums on , . Therefore fixes iff iff . So the stabilizer of is exactly : generates the unique degree- subfield , and its Galois conjugates are .
No period equals the rational . For : the Galois group permutes transitively (through ); if some then every conjugate would equal (Galois fixes ), contradicting distinctness. For : , so . Either way no equals .
Conclusion. The distinct values are exactly — of them — so .
Reading of the law. the number of -th power classes , the degree of the cyclotomic subfield carrying the periods. The maximal rank is attained splits completely in . The quadratic case is ( for every odd the uniform rank 3 of §9.6); the extreme () is the directed -cycle, all characters distinct, .
The even-modulus boundary (PROVED). The proof uses cyclicity of at exactly one point — that the -th powers form a single index- subgroup. This holds at every odd prime power (where is cyclic), giving the local quadratic factor and the conductor-annotated product theorem over odd moduli. It fails at the prime : is non-cyclic for (), so the squares form an index- (not index-) subgroup and the Gauss-sum stratification differs; already is degenerate (the sole unit is ). Measured (example 154 machinery): the conductor-annotated count at is for versus — agreeing only at by coincidence, while every odd prime power matches exactly. Hence the conductor-annotated product theorem and the cyclotomy law are genuinely odd-only, and is the arithmetic continuation, not a spectral count.
Honest scope. The cyclotomy law is classical Gauss-period / cyclotomy theory (the -th power Cayley eigenvalues are Gauss periods of degree ); the contribution is the TNFR structural-diffusion framing and the closed-form power_residue_rank — now a proved canonical fact, not a measured pattern. Verified computationally for across the primes (680 cases, 0 failures) and proved for all . It detects primality/cyclotomy structurally; it does not factor, does not reach the continuous arg- phase, and closes no open problem.
§9.5–9.7 answer "is primality emergent?" sector by sector. This subsection assembles them — together with the cardinal/operation emergence of the emergent-number arc — into the ontological position of a number: a ladder whose every rung is read from canonical TNFR structure/dynamics, measured in example 155_ontological_position_of_numbers.py.
| Layer | What is | Mechanism | Emergent? |
|---|---|---|---|
| 0 Substrate | — | continuum + (the one structural scale) | assumed |
| 1 Cardinal | a degeneracy irrep of | Laplacian multiplicity | ✅ |
| 2 Operations | graph products ( spectra, spectra) | ✅ | |
| 3 Primality | directed residue operator (§9.6) | ✅ (Sector B) | |
| 3′ Arithmetic | the factorization type () | the multiplicative rank | ✅ (this §) |
| 4 The wall | prime identities / phase |
The multiplicative spectral rank (Layer 3′, realizes the §9.7 PROVED law). The quadratic-residue spectral rank (the §9.6/§9.7 count of distinct diffusion eigenvalues) extends from primes to all via the proved conductor-annotated product law of §9.7: is multiplicative with prime-power factor depending only on the exponent (). The unannotated scalar rank realizes it at small exponents — (cyclotomy ), , — and is multiplicative there (, 0 exceptions over the demo range), faithfully encoding the factorization type: prime, , , , . The factorization and divisor channels of the triad (, ) are therefore read off the spectrum — from , never trial division. The arithmetic that sector A consumes (§9.5) genuinely emerges here.
The wall, located on the ladder. fixes the type, never the prime identities (); it is not globally injective on types ( is shared by and — a type collision) and the unannotated scalar rank aliases at high prime powers (the §9.7 / example 154 scalar CRT wall: gives scalar vs product ). Recovering the identities is the same – / residue (the continuous phase, §10) as every other sector. Net: the emergent ontology positions a number completely up to the prime-identity / phase wall — cardinal, operations, primality and factorization type all derive from structure; only the identities and the continuous phase remain. This is the precise sense in which "the arithmetic emerges from the canonical TNFR structure and dynamics."
The pulse read-out (the conservative face of the nodal dynamics, EMERGENT_ONTOLOGY.md §5.5) reads the resonant spectrum of the canonical . Applied to the arithmetic NFR — the residue Cayley network — its tone structure is exactly the PROVED cyclotomy law of §9.11. benchmarks/emergent_arithmetic_pulse.py measures it.
The pulse tone-count is the cyclotomy law. The number of distinct resonant
tones of the residue-NFR pulse is structural_frequency_rank (the distinct
eigenvalues of ), and on a prime this is
Measured exactly for across the primes (0 mismatches): the arithmetic pulse IS the cyclotomy law — the harmonic structure of a number's vibration is its cyclotomy degree.
A prime is the most degenerate chord. For the real Paley-NFR
pulse is the silent mode () plus exactly two resonant tones
, each with multiplicity — the pulse's own
spectral_multiplicity field reads exactly. A prime vibrates in the
simplest chord the arithmetic NFR allows, at any size; composites split the
chord into more tones, multiplicatively (, ),
so the tone-count encodes the factorization type — the multiplicative spectral
rank of the §9.8 ladder, now read as the chord size.
The pulse splits across the symmetry wall. The two scales of the pulse land on the two sides of the §9.7/§9.10 split: the per-NFR pulse is blind (the residue graph is vertex-transitive, so the per-node substrate is in ), while the collective pulse — the spectrum — carries the cyclotomy (). The real/phase split of §9.6 is inherited: the real conservative pulse reads the cyclotomy on the symmetric NFR (); the complex directed pulse extends it to all odd primes.
Honest scope. The tone-count is structural_frequency_rank (already the
documented cyclotomy diagnostic), and is the PROVED
classical Gauss-period fact of §9.11. The contribution is the conservative-pulse
reading — those distinct eigenvalues are the distinct resonant tones of the
arithmetic vibration, so a prime is a maximally-degenerate chord and the
factorization type is the chord size. It detects primality / factorization
type structurally; it does not factor, does not reach the prime
identities or the continuous phase (the same
wall, §10), and closes no open problem.
The TNFR-Riemann program constructs a family of operators on prime path graphs:
where:
The critical parameter is the value of at which the smallest eigenvalue of changes sign (spectral phase transition).
Main numerical result:
This convergence is:
At , the potential vanishes and reduces to the pure graph Laplacian. The spectral transition at provides structural coherence evidence for the critical line of the Riemann zeta function .
Status: The bridge from the discrete TNFR operator result to the classical Riemann Hypothesis remains an open conjecture (Conjecture 10.1 in the Riemann Research Notes). The framework constitutes a research program, not a closed proof.
From eigenpairs of :
Phase gradient (discrete):
Phase curvature (discrete):
Coherence length (from correlation decay):
These tetrad fields on the prime path link the arithmetic distribution of primes to the structural field theory.
The TNFR-Riemann program is paused at the Tetrad-Hilbert-Pólya (T-HP) conjecture on the self-adjoint prime-ladder operator P14 (src/tnfr/riemann/prime_ladder_hamiltonian.py). That route is walled by the Euler-Orthogonality Lemma (TNFR_RIEMANN_RESEARCH_NOTES §13vicies-novies.11): on the prime-ladder graph every canonical operator commutes with the prime-relabelling, so the spectrum lives in and is structurally blind to the Riemann residue .
The number-theory reframe (§9.6, §9.8) supplies a structurally different object for the same residue: the directed quadratic-residue diffusion operator on the Paley tournament (). It is
So the natural question is whether the attack should pivot from "build a self-adjoint operator with spectrum " to "read the residue off the non-self-adjoint phase operator".
The pre-registered falsifier (MEASURED). benchmarks/residue_phase_vs_riemann.py tests it on primes :
GAUSS_CONFIRMED_RIEMANN_REFUTED.Honest net. The non-self-adjoint phase operator does evade the Euler-Orthogonality wall and reaches arithmetic in the phase — a genuine structural advance and a more natural arena than the self-adjoint prime-ladder — but its phase content is Gauss sums, not . This is the §9.5 "both walls coincide" statement made operator-explicit: the residue-phase -zeros bridge is the same – / residue. The reframe relocates and sharpens the obstruction — from "find a self-adjoint with " to "connect the non-self-adjoint Gauss-sum phase () to the -zero phase ()" — but does not dissolve it. The program stays paused at T-HP; G4 = RH remains OPEN; this closes no open problem.
Structural triad: , , .
Interpretation: Zero pressure, perfect coherence, structural fixed point.
| Component | Calculation | Value |
|---|---|---|
| Factorization | 1 | |
| Divisor | 2 | |
| Abundance | 0.533 | |
| Total | 3.533 |
.
| Component | Calculation | Value |
|---|---|---|
| Factorization | 2 | |
| Divisor | 2 | |
| Abundance | 0.750 | |
| Total | 4.750 |
Using (with multiplicity) rather than (distinct primes) gives prime powers a strong pressure signal: registers , not .
| Component | Calculation | Value |
|---|---|---|
| Factorization | 2 | |
| Divisor | 6 | |
| Abundance | 1.367 | |
| Total | 9.367 |
Structural triad: , , .
| Module | Path | Scope |
|---|---|---|
| Arithmetic network | src/tnfr/mathematics/number_theory.py | ArithmeticTNFRNetwork, ArithmeticTNFRFormalism, PrimeCertificate |
| Primality testing | primality-test/tnfr_primality/core.py | Standalone ΔNFR computation, validation |
| Canonical constants | primality-test/tnfr_primality/constants.py | Arithmetic pressure coefficients (separate subproject) |
| Advanced integration | primality-test/tnfr_primality/advanced_core.py | Full repo infrastructure bridge |
| Optimized batch | primality-test/tnfr_primality/optimized.py | Caching, benchmarking, batch processing |
| Spectral factorization | factorization-lab/tnfr_factorization/spectral_paley.py | Paley-Jacobi spectral decoder |
| Factorization API | factorization-lab/tnfr_factorization/api.py | High-level factorize() function |
| Nodal-pulse foundation | src/tnfr/riemann/nodal_pulse.py | Emergent prime-NFR nodal pulse (; zeros as destructive interference) |
| Prime-ladder Hamiltonian | src/tnfr/riemann/prime_ladder_hamiltonian.py | Canonical prime-ladder (P14) |
| Canonical constants (repo) | src/tnfr/constants/canonical.py | Repository-wide canonical constant definitions |
| Example | Concept |
|---|---|
| 41_von_mangoldt_zeta_demo.py | Prime-ladder von Mangoldt series (P12) |
| 42_riemann_zeros_as_resonances.py | Riemann zeros as resonance poles (P13) |
| 43_prime_ladder_hamiltonian_demo.py | Canonical νf prime-ladder Hamiltonian (P14) |
| 31_mathematical_constants_basis.py | The structural scale π and the mathematical-constant basis |
| 40_arithmetic_number_theory.py | Primality, triad, component analysis |
| 94_generative_number_construction.py | Compositional generation from prime atoms; U5 fractality; grammar certification |
| 95_primes_from_spectral_waves.py | Prime staircase ψ(x) as spectral-wave superposition; spectral coherence ⟺ RH (honest scope) |
| 96_spectral_vibration_of_coherence.py | Oscillatory residue S(T) as prime-ladder vibration {k·log p}; why aggregate C(t) is blind (honest scope) |
| 97_goldbach_additive_multiplicative.py | Goldbach phase-matching: negative structural result; additive/multiplicative orthogonality; B2/B3 ontological note |
| 100_prime_families_orbits.py | Special prime families (twin, cousin, sexy, Sophie Germain, safe, Cunningham, Mersenne, constellations) as orbits and level-sets of arithmetic maps on the zero-pressure fixed-point set ; three generator classes; detection exact, infinitude open (honest scope) |
| 101_numbers_as_coupled_network.py | Numbers as a coupled TNFR network: grades both the per-node pressure and the divisibility/GCD transport centrality (–); primes (, ) are the transport periphery, large primes isolated; correspondence-through- not identity, not scale-free (honest scope) |
| 102_nodal_flow_primes_equilibria.py | The actual nodal flow on numbers: primes are EXACTLY the equilibria (§4 theorem in motion, frozen) while composites drift -graded; refines §7.1 — primes are static low- sinks but NOT dynamical attractors (diffusion flow pulls primes UP toward the composite bulk) |
| 146_primality_grammatical_inertness.py | Bridges the operator-grammar thread (examples 139-145) to number theory: every operator acts through the single nodal rule , so on arithmetic nodes (where is the §4 primality field) primes are the KERNEL of the capacity () lever — frozen under every grammatical program (the dual-lever, ex 37/130). prime (maximal coherence); composite drift pressure exactly; the U2 convergence target IS primality, decreasing monotonically with (coherence debt factorization complexity); a prime needs the EMPTY word (the identity of the star-free syntactic monoid, ex 145) — primality is grammatical inertness. Restates the §4 theorem through the grammar dynamics (grammar-lens reading); not new number theory (honest scope) |
| 147_numbers_as_free_monoid_words.py | Deepens 146 to its algebraic core, uniting physics + grammar + number theory. By the FTA the multiplicative monoid is the FREE COMMUTATIVE MONOID on the primes — numbers are words (primes = letters, = empty word, = word length, = concatenation). The coherence debt splits by COMPOSITION LAW: the factorization channel is ADDITIVE (a monoid homomorphism, exact — the free-monoid backbone), while the divisor and abundance channels are MULTIPLICATIVE (the divisor lattice). Multiplying by a prime is the unit destabilizer ( per letter); the additive channel ALONE detects primality ( prime). The DUAL-LEVER (ex 37/130) restricted to arithmetic IS the two canonical additive gradings of the free monoid: count ( pressure) and size ( capacity, ex 94). Fixes the dictionary physics dual-lever free-monoid gradings primality; classical multiplicative number theory restated through the lens (honest scope) |
| 148_capacity_arm_carries_von_mangoldt.py | Answers which dual-lever arm carries the Riemann difficulty (and why the substrate is blind). The CAPACITY arm exactly (Möbius-inverse ), so von Mangoldt — and , the Chebyshev staircase carrying (ex 96) — sits on the capacity (, ex 147) arm. The Riemann ZEROS are the POLES of the capacity Dirichlet series (P12; measured simple pole residue 1 at ), while has in the numerator (zeros invisible to the PRESSURE arm). The pressure arm is smooth (Erdős–Kac Gaussian CLT); the per-node substrate encodes pressure (), so it is structurally BLIND to the capacity/von-Mangoldt arm where the zeros live — the blindness of ex 103/116/120, now located on the dual-lever axis. Classical identities read through the lens; does not advance RH (G4 open, program paused at T-HP) (honest scope) |
| 149_p14_is_the_capacity_arm_operator.py | Identifies the canonical TNFR-Riemann Hamiltonian P14 as EXACTLY the capacity-arm operator of the dual-lever — the structural reason it sees the primes while the pressure substrate is blind (closes the loop of ex 148). Every P14 node carries (CAPACITY, 20/20 exact) and (PRESSURE neutral), so P14 puts all structural information on the capacity lever — the axis (log ) carrying von Mangoldt + the zeros (ex 148). Inter-prime orthogonality (disconnected ladders, independent invariant subspaces) IS the Euler product at the operator level the free-monoid freedom (ex 147). The weighted trace reproduces to machine precision (certificate ), and the zeros are its poles. Unifies physics -capacity free-monoid size-grading the prime-ladder Hamiltonian; no new operator, does not advance RH (G4 open, program paused at T-HP) (honest scope) |
| 153_structural_frequency_rank_cyclotomy.py | The canonical structural-diffusion operator (the EPI channel, structural_diffusion_operator) on arithmetic Cayley networks has a structural-frequency RANK that unifies three modules. (M1) TWO-ARM PRIMALITY: primality is a simultaneous fixed point of BOTH dual-lever arms — per-node pressure (§4) AND global spectral rank (ex 119), 0 disagreements; both GROW with factorization complexity (corr), bridging §4 ex 119. (M2) CYCLOTOMY LAW: (measured, 0 fails , ); the maximal rank is reached splits completely in (0 mismatches); QR is the case. (M3) FREE-MONOID EXPONENTIAL GRADING: on squarefree the rank is (per-prime rank) — QR , unitary/Ramanujan — the EXPONENTIAL reading of the word length (ex 147) whose pressure counterpart is the LINEAR . Underneath = classical Gauss periods/cyclotomy; NEW = the unified TNFR structural-diffusion framing; no open problem advanced (honest scope) |
| Test area | Location |
|---|---|
| Primality validation (10k range) | primality-test/test_installation.py |
| Arithmetic network construction | tests/ (number_theory tests) |
| Factorization spectral decoder | factorization-lab/tests/test_spectral_paley.py |
| Factorization verification | factorization-lab/tests/test_verification_robustness.py |
| Riemann operator spectral | tests/ (riemann tests) |
Version: 0.0.3.3 | Status: Canonical | Authority: AGENTS.md
| 0.533 |
| 8 | 0.750 |
| 30 | 1.367 |
_structural_potential_coherence_lengthtnfr.physics.canonical| injecting does break uniformity, but a shuffled control with the same multiset (QR labels destroyed) gives identical dispersion → the substrate echoes the injected multiset, not the arithmetic (§9.5/ex 116 mechanism), and is circular |
| complete () | 720 | 1 | 1 |
| star () | 120 | 2 | 2 |
| path () | 2 | 3 | 3 |
| torus | 72 | 1 | 1 |
| ❌ (open) |