TNFR Logo
TheoryLearnSoftwareResearch

On this page

TNFR

Resonant Fractal Nature Theory — a mathematical framework for coherent patterns on graph-coupled networks.

About
  • Project history
  • Editorial policy
  • Contact
Resources
  • GitHub
  • PyPI
  • DOI · Zenodo
Legal
  • MIT License
  • Citation
© 2026 TNFR project — MIT licensed.DOI 10.5281/zenodo.17602860
docs
grammar
PHYSICS_VERIFICATION.md
API_CONTRACTS.mdCANONICAL_OZ_SEQUENCES.mdEMPIRICAL_CONFRONTATION_EEG.mdREADME.mdSTRUCTURAL_FIELDS_TETRAD.mdSTRUCTURAL_INTERFACE_THEORY.md
theory
APPLIED_STRUCTURAL_ANALYSIS.mdCATALOG_TYPE_HYGIENE_PROGRAMME.mdDISSIPATIVE_AND_OPEN_SYSTEMS.mdEMERGENT_ONTOLOGY.mdEXTENDED_FIELDS_AND_DERIVED_QUANTITIES.mdFUNDAMENTAL_THEORY.mdGAUGE_SYMMETRY_AND_UNIFICATION.mdGLOSSARY.mdMATHEMATICAL_DYNAMICS_BASIS.mdMINIMAL_STRUCTURAL_DEGREES.mdNUCLEUS_A_PRIME_LADDER_ATLAS.mdNUCLEUS_B_EQUIVARIANCE_OBSTRUCTIONS.mdPHYSICAL_REGIME_CORRESPONDENCES.mdREADME.mdREMESH_INFINITY_DERIVATION.mdSTRUCTURAL_CONSERVATION_THEOREM.mdSTRUCTURAL_OPERATORS.mdSTRUCTURAL_STABILITY_AND_DYNAMICS.mdTNFR_BSD_RESEARCH_NOTES.mdTNFR_HODGE_RESEARCH_NOTES.mdTNFR_NAVIER_STOKES_RESEARCH_NOTES.mdTNFR_NUMBER_THEORY.mdTNFR_P_VS_NP_RESEARCH_NOTES.mdTNFR_RIEMANN_RESEARCH_NOTES.mdTNFR_VARIATIONAL_PRINCIPLE.mdTNFR_YANG_MILLS_RESEARCH_NOTES.mdTNFR.pdfUNIFIED_GRAMMAR_RULES.md
factorization-lab
analysis
analyze_patterns.pycertificate_manifest.py
benchmarks
benchmark_analysis.pybenchmark_expansion_suite.pyfull_spectrum_factorization.pypaley_gap_extended.pypaley_gap_smoke.pytest_benchmark_suite.py
demos
experiment_contexts
exp_0b1663cd19b7.jsonexp_0bf0054b7474.jsonexp_75a4c8ca616a.jsonexp_848ee0fd1857.jsonexp_f6fe00562193.jsonexp_fdf3da424e1e.json
failure_telemetry_batch.pyfeedback_integration_demo.pyintegration_demo_snapshots.dbseed_management_integration_demo.pysnapshot_integration_demo.pytrajectory_143.jsontrajectory_77.jsontrajectory_89.jsontrajectory_91.jsontrajectory_97.json
docs
FACTORING_PLAYBOOK.mdFALSE_POSITIVE_TEST_SUITE.mdOPERATOR_CERTIFICATES.mdROADMAP.mdSPECTRAL_ROUTE.md
experiment_contexts
exp_cebe1d9e7d8e.json
notebooks
spectral_history.ipynb
scripts
run_false_positive_tests.py
tests
run_false_positive_test_suite.pytest_cli.pytest_false_positive_methodology.pytest_false_positive_verifier.pytest_feedback_integration.pytest_partitioning.pytest_seed_management.pytest_self_opt_support.pytest_snapshot_system.pytest_spectral_paley.pytest_verification_robustness.py
tnfr_factorization
__init__.pyapi.pycli.pyfailure_telemetry.pyfeedback_adapter.pyfeedback_integration.pypartitioning.pyself_opt_support.pyspectral_paley.py
demo_snapshots.dbLICENSE_SNAPSHOT.mdPACKAGE_SUMMARY.mdREADME.mdseed_management.pysnapshot_system.pytest_certificate_hashing.pytest_installation.pyverification_trajectory_77.json
benchmarks
analyze_tetrad_universality.pyb0star_alpha_canonical_product_graphs.pybenchmark_optimization_tracks.pybenchmark_utils.pyboundary_vibration.pybridge_primes_riemann.pychiral_involution.pycli_utils.pycoherence_projector_sense_index.pycommutant_bridge.pycomposition_arithmetic.pyconfinement_zones_test.pyconservation_law_validation.pydirected_paley_bridge.pyemergent_arithmetic_pulse.pyemergent_atom_dynamics.pyemergent_atomic_shells.pyemergent_base_dimension.pyemergent_dimension_dynamics.pyemergent_fractal_pulse.pyemergent_fractal_simplex_dimension.pyemergent_integers_symmetry.pyemergent_musical_nfr.pyemergent_nfr_geometry.pyemergent_nfr_where.pyemergent_rationals.pyemergent_rhythm.pyemergent_screening.pyemergent_shell_cardinals.pyemergent_shell_ordering.pyemergent_simplex_dimension.pyemergent_substrate_symmetry.pyequivariance_wall.pyexternal_phase_gate_validation.pyfield_methods_battery.pygolden_residue_remesh_bridge.pyintegrated_force_regime_study.pyinverse_spectrum_to_symmetry.pyk_phi_safety_demo.pykuramoto_farey_bridge.pymissing_piece_bridge.pymultichannel_interface_benchmark.pynavier_stokes_recipe_bridge.pynodal_propagator_residue_bridge.pyns_moment_hierarchy_cascade.pyoperational_irreducibility.pypaley_bridge.pyphase_curvature_investigation.pyphase_wall.pyphi_s_confinement_investigation.pyprimes_as_consequence.pypulse_phase_coherence_budget.pyREADME.mdremesh_infinity_riemann_baseline.pyremesh_infinity_riemann_composed.pyremesh_infinity_riemann_modified_graph.pyremesh_infinity_riemann_operator.pyremesh_infinity_riemann_spectral_basis.pyremesh_infinity_riemann_spectral_robustness.pyremesh_infinity_riemann_spectral.pyresidue_phase_vs_riemann.pystructural_interface_benchmark.pytemporal_interface_benchmark.pytetrad_results_aggregate.pyu2_destabilization_irreversibility.pyuniversality_clusters.pyxi_c_fast_experiment.py
primality-test
benchmarks
comprehensive_benchmark.py
docs
ADVANCED_INTEGRATION.mdmathematical_foundation.mdperformance_analysis.md
examples
advanced_examples.pybasic_usage.py
tnfr_primality
__init__.py__main__.pyadvanced_cli.pyadvanced_core.pycli.pyconstants.pycore.pyoptimized.py
MANIFEST.inPACKAGE_SUMMARY.mdREADME.mdRELEASE_NOTES_v1.0.mdsetup.pytest_installation.py
tests
core_physics
__init__.pytest_conservation_laws.pytest_delta_nfr_computation_paths.pytest_delta_nfr.pytest_dispersion_coherence_sign_invariance.pytest_emergent_constants_guard.pytest_lyapunov_operators.pytest_nodal_equation.pytest_structural_triad.py
data
replay_manifests
sample_run
_manifest_summary.json_manifest.json_partition_files.txt.gz
self_opt_validation
seed_alpha
paley.json
seed_beta
integration.json
seed_gamma
unknown.json
self_optimization
test_run
partitioned
test_run
test_run_p0.jsontest_run_p1.json
_manifest_summary.json_manifest.json
engines
test_pattern_discovery_manifest.pytest_self_optimization_engine.py
mathematics
__init__.pytest_autodiff.pytest_backends.pytest_dissipative_dynamics.pytest_epi.pytest_factory_patterns.pytest_metrics.pytest_navier_stokes_refounded.pytest_number_theory_canonical.pytest_operators.pytest_residue_networks.pytest_riemann_nodal_pulse.pytest_riemann_pulse_coherence.pytest_spaces.pytest_transforms.pytest_validator.py
operators
test_canonical_operators_modern.pytest_grammar_canon.pytest_grammar_canonical_consistency.pytest_grammar_dynamics.pytest_operator_contracts.pytest_operator_strategies.py
parallel
test_fractal_partition_manifest.py
physics
test_conservation_gauge_unification.pytest_dissipative_conservation.pytest_emergent_chemistry.pytest_field_cache_invalidation.pytest_gauge.pytest_phase_transition.pytest_signatures.pytest_spectral_conservation.pytest_structural_diffusion.pytest_structural_integrity.pytest_symplectic_substrate.pytest_tetrad_bounds.pytest_variational.pytest_yang_mills_closure.pytest_yang_mills_derivability.pytest_yang_mills_scaling.pytest_yang_mills_structural_gap.pytest_yang_mills_u6_sweep.py
scripts
test_run_self_opt_validation.pytest_run_self_optimization.py
sdk
__init__.pytest_simple_advanced.py
__init__.pyconftest.pyREADME.mdtest_breast_cancer_phase_gate_demo.pytest_classical_mechanics.pytest_distributed_fft.pytest_external_phase_gate_validation.pytest_factorization_entrypoint.pytest_multichannel_interface.pytest_nodal_optimizer.pytest_phase_gate_api.pytest_replay_register_manifest.pytest_signal_confrontation.pytest_structural_interface_api.pytest_structural_interface_baselines.pytest_structural_interface_benchmark.pytest_temporal_interface.pytest_vectorized_coherence_length_regression.pytest_wine_quality_phase_gate_demo.pyutils.py
examples
01_foundations
01_hello_world.py02_musical_resonance.py03_network_formation.py04_operator_sequences.py05_coherence_evolution.py06_network_topologies.py07_phase_transitions.py08_emergent_phenomena.py09_visualization_suite.py10_simplified_sdk_showcase.py
02_physics_regimes
11_classical_limit_comparison.py115_operator_contract_audit.py12_classical_mechanics_demo.py13_quantum_mechanics_demo.py14_uncertainty_and_interference.py15_train_crossing_demo.py17_conservation_law_demo.py26_gauge_structure_demo.py27_variational_principle_demo.py28_dissipative_systems_demo.py29_lyapunov_stability_demo.py30_self_optimization_demo.py31_mathematical_constants_basis.py33_complex_field_unification.py34_conservation_protocol_suite.py35_tetrad_irreducibility.py36_grammar_violation_detector.py37_operator_tetrad_synergy.py38_grammar_energy_landscape.py39_nodal_equation_decomposition.py
03_riemann_zeta
157_nodal_pulse_phase_attack.py41_von_mangoldt_zeta_demo.py42_riemann_zeros_as_resonances.py43_prime_ladder_hamiltonian_demo.py44_weil_explicit_formula_demo.py45_li_keiper_demo.py46_weil_tnfr_positivity_demo.py47_alpha_sweep_demo.py48_admissible_family_sweep_demo.py49_nodeaware_gauge_sweep_demo.py50_uniform_coercivity_demo.py51_adaptive_coercivity_demo.py52_paley_gap_coercivity_demo.py53_lyapunov_spectral_positivity_demo.py54_hilbert_polya_demo.py55_structural_zero_density_demo.py56_spectral_emergence_demo.py57_admissible_rescaling_demo.py58_oscillatory_correction_demo.py
04_riemann_L_twisted
59_dirichlet_l_function_demo.py60_dirichlet_l_continuation_demo.py61_dirichlet_l_hamiltonian_demo.py62_dirichlet_weil_explicit_formula_demo.py63_dirichlet_li_keiper_demo.py64_twisted_weil_positivity_demo.py65_twisted_alpha_sweep_demo.py66_twisted_admissible_family_sweep_demo.py67_twisted_nodeaware_gauge_sweep_demo.py68_twisted_hermite_family_demo.py69_twisted_coercivity_uniform_demo.py70_twisted_paley_gap_coercivity_demo.py71_twisted_lyapunov_spectral_demo.py72_twisted_hilbert_polya_demo.py73_twisted_structural_zero_density_demo.py74_twisted_spectral_emergence_demo.py75_twisted_admissible_rescaling_demo.py76_twisted_oscillatory_correction_demo.py
05_type_hygiene
77_remesh_infinity_residue_split_demo.py78_nuf_type_signature_demo.py79_epi_type_signature_demo.py80_phi_type_signature_demo.py81_dnfr_type_signature_demo.py82_remesh_window_type_signature_demo.py83_delta_phi_max_type_signature_demo.py84_coupling_weights_type_signature_demo.py85_tetrad_closure_signature_demo.py86_currents_closure_signature_demo.py87_aggregates_closure_signature_demo.py88_urules_consistency_signature_demo.py89_operator_catalog_discipline_signature_demo.py
06_navier_stokes
158_navier_stokes_two_face_refounded.py
07_number_theory
100_prime_families_orbits.py101_numbers_as_coupled_network.py102_nodal_flow_primes_equilibria.py116_nuf_emergent_prime_visibility.py146_primality_grammatical_inertness.py147_numbers_as_free_monoid_words.py148_capacity_arm_carries_von_mangoldt.py149_p14_is_the_capacity_arm_operator.py153_structural_frequency_rank_cyclotomy.py40_arithmetic_number_theory.py94_generative_number_construction.py95_primes_from_spectral_waves.py96_spectral_vibration_of_coherence.py97_goldbach_additive_multiplicative.pyemergent_chemistry_particles_demo.py
08_emergent_geometry
103_emergent_substrate_meets_riemann.py106_per_node_polarization_geometry.py107_orthogonal_structure_emergent_geometry.py108_emergent_field_generating_structure.py112_structure_predicts_coherence_flow.py113_overdamped_projection_bridge.py114_substrate_conserved_quantities.py117_emergent_geometry_residue_graph.py118_emergent_vs_classical_operator.py119_phase_sector_directed_residue.py120_symmetry_wall_substrate_vs_spectrum.py121_canonical_symmetry_break_negative.py122_factorization_phase_sector.py123_symmetry_sector_decomposition.py124_emergent_metric_fractal_consistency.py125_node_is_the_emergent_substrate.py126_two_layers_base_fiber.py127_base_is_emergent_not_imposed.py128_base_substrate_coemergence.py129_spectral_gap_base_fiber_clock.py130_operators_break_substrate_charges.py131_coemergent_loop_convergence.py132_geometric_phase_holonomy.py133_psi_topological_defects.py134_spectral_dimension_heat_kernel.py135_arrow_of_time_h_theorem.py136_heat_kernel_coefficients.py137_synchronization_transition.py138_structure_frequency_synchronization.py139_grammar_formal_language.py140_grammar_automaton.py141_grammar_rule_decomposition.py142_grammar_operator_quotient.py143_glyphic_function_sublanguage.py144_branching_combinator.py145_syntactic_monoid_starfree.py150_emergent_grammatical_pattern_parry.py151_grammar_in_emergent_geometry.py152_operator_contract_tetrahedron.py154_conductor_annotated_qr_spectrum.py155_ontological_position_of_numbers.py156_emergence_directness_law.py98_emergent_symplectic_substrate.py99_structural_diffusion.pyunified_fields_showcase.py
09_millennium
109_p_vs_np_coherence_synthesis.py110_bsd_rank_structural_pressure.py111_hodge_discrete_and_honest_gap.py
10_applications
159_empirical_confrontation_pipeline.py90_phase_gate_monitor_demo.py91_breast_cancer_phase_gate_demo.py92_wine_quality_phase_gate_demo.py93_structural_interface_demo.pypytorch_cuda_demo.py
README.md
scripts
replay
__init__.pyregister_manifest.py
__init__.pyREADME.mdrebuild_failure_manifest.pyrun_reproducible_benchmarks.pyrun_self_opt_validation.pyrun_self_optimization.pytnfr_is_prime.pyvalidate_conservation_law.pyverify_internal_references.py
src
core
__init__.pyevaluation.py
tnfr
backends
__init__.pyjax_backend.pynumpy_backend.pyoptimized_numpy.pyREADME.mdtorch_backend.py
cli
__init__.py__init__.pyiarguments.pyarguments.pyiexecution.pyexecution.pyiinteractive_validator.pyREADME.mdutils.pyutils.pyi
compat
__init__.pydataclass.pyjsonschema_stub.pymatplotlib_stub.pynumpy_stub.pyREADME.md
config
__init__.py__init__.pyiconstants.pyconstants.pyidefaults_core.pydefaults_init.pydefaults_metric.pydefaults.pyfeature_flags.pyfeature_flags.pyiglyph_constants.pyoperator_names.pyoperator_names.pyiphysics_derivation.pyprecision_modes.pypresets.pypresets.pyiREADME.mdsecurity.pythresholds.pytnfr_config.py
constants
__init__.py__init__.pyialiases.pyaliases.pyicanonical.pymetric.pymetric.pyioperational.py
core
__init__.pycontainer.pydefault_implementations.pyexceptions.pyinterfaces.pyREADME.md
dynamics
__init__.py__init__.pyiadaptation.pyadaptation.pyiadaptive_sequences.pyadaptive_sequences.pyiadelic.pyadvanced_cache_optimizer.pyadvanced_fft_arithmetic.pyaliases.pyaliases.pyibifurcation.pycache_aware_fft_engine.pycanonical.pycanonical.pyicomputational_hub.pycoordination.pycoordination.pyidistributed_fft.pydnfr.pydnfr.pyidynamic_limits.pyemergent_centralization.pyemergent_integration_engine.pyfeedback.pyfeedback.pyifft_backend.pyfft_cache_coordinator.pyfft_dispatchers.pyfft_engine.pyfft_workers.pyfused_dnfr.pyhomeostasis.pyhomeostasis.pyiintegrators.pyintegrators.pyilearning.pylearning.pyimetabolism.pymulti_modal_cache.pynbody_tnfr.pynbody.pynodal_optimizer.pyoptimization_orchestrator.pypropagation.pyREADME.mdruntime.pyruntime.pyisampling.pysampling.pyiselectors.pyselectors.pyiself_optimizing_engine.pyspectral_structural_fusion.pystructural_cache.pystructural_clip.pysymplectic.pyunified_backend.pyunified_mathematical_cache_orchestrator.py
engines
computation
__init__.pyfft_engine.pyunified_fft_engine.pyunified_gpu_system.py
constants
__init__.pycanonical.pyoperational.py
integration
__init__.pyemergent_integration.py
pattern_discovery
__init__.pymathematical_patterns.pymulti_modal_cache.py
self_optimization
__init__.pyengine.py
__init__.pyREADME.md
errors
__init__.pycontextual.py
factorization
__init__.py
flatten
README.md
gamma
README.md
glyph_history
README.md
glyph_runtime
README.md
immutable
README.md
initialization
README.md
io
README.md
math
__init__.pyfields_symbolic.pygrammar_validators.pyoptimizer.pyREADME.mdsymbolic.py
mathematics
__init__.pybackend.pybackend.pyidynamics.pydynamics.pyiepi.pyepi.pyigenerators.pygenerators.pyiliouville.pymetrics.pymetrics.pyinumber_theory.pyoperators_factory.pyoperators_factory.pyioperators.pyoperators.pyioptimized_primality.pyprojection.pyprojection.pyiREADME.mdruntime.pyruntime.pyispaces.pyspaces.pyispectral.pytransforms.pytransforms.pyiunified_cache.pyunified_numerical.pyzeta.py
metrics
__init__.py__init__.pyibuffer_cache.pybuffer_cache.pyicache_utils.pycoherence.pycoherence.pyicommon.pycommon.pyicore.pycore.pyidiagnosis.pydiagnosis.pyiemergence.pyexport.pyexport.pyiglyph_timing.pyglyph_timing.pyilearning_metrics.pylearning_metrics.pyilocal_coherence.pyphase_coherence.pyphase_compatibility.pyREADME.mdreporting.pyreporting.pyisense_index.pysense_index.pyitelemetry.pytetrad.pytrig_cache.pytrig_cache.pyitrig.pytrig.pyi
multiscale
__init__.pyhierarchical.pyREADME.md
navier_stokes
__init__.pyconservative_face.pyoperator.py
node
README.md
observers
README.md
operators
network_analysis
__init__.pysource_detection.py
postconditions
__init__.pymutation.py
preconditions
__init__.pycoherence.pydissonance.pyemission.pymutation.pyreception.pyresonance.py
strategies
__init__.pydefaults.pygpu_strategies.pystrategy.py
__init__.py__init__.pyialgebra.pycanonical_patterns.pycascade.pycoherence.pycontraction.pycoupling.pycycle_detection.pydefinitions_base.pydefinitions.pydefinitions.pyidissonance.pyemission.pyexpansion.pygrammar_application.pygrammar_canon.pygrammar_context.pygrammar_core.pygrammar_dynamics.pygrammar_error_factory.pygrammar_memoization.pygrammar_patterns.pygrammar_telemetry.pygrammar_types.pygrammar_u6.pygrammar_validate.pygrammar.pygrammar.pyihamiltonian.pyhealth_analyzer.pyintrospection.pyjitter.pyjitter.pyilifecycle.pymetabolism.pymetrics_basic.pymetrics_core.pymetrics_network.pymetrics_structural.pymetrics_u6.pymetrics.pymutation.pynodal_equation.pyoperator_contracts.pypattern_detection.pypatterns.pyREADME.mdreception.pyrecursivity.pyregistry.pyregistry.pyiremesh.pyremesh.pyiresonance.pyself_organization.pysilence.pystructural_units.pytransition.py
parallel
__init__.pyauto_scaler.pydistributed.pyengine.pymonitoring.pypartitioner.pyREADME.md
performance
guardrails.py
physics
__init__.py_helpers.pycalibration.pycanonical.pycell.pyclassical_mechanics.pyconservation_gauge_unification.pyconservation.pydissipative_conservation.pyemergent_chemistry.pyemergent_particles.pyextended.pyfields.pygauge.pyintegrity.pyinteractions.pylife.pylyapunov.pypatterns.pyphase_transition.pyquantum_mechanics.pyREADME.mdsignatures.pyspectral_conservation.pyspectral_metrics.pystructural_diffusion.pysymplectic_substrate.pytelemetry.pyunified.pyvariational.pyvectorized_ops.py
primality
__init__.py
recipes
__init__.pycookbook.pyREADME.md
riemann
__init__.pyadmissible_family_sweep.pyadmissible_rescaling.pyaggregates_closure_signature.pyalpha_sweep.pyanalytic_continuation_dirichlet.pyanalytic_continuation.pycoercivity_uniform.pycoupling_weights_type_signature.pycurrents_closure_signature.pydelta_phi_max_type_signature.pydirichlet_l.pydnfr_type_signature.pyepi_type_signature.pyhilbert_polya.pyli_keiper.pylyapunov_spectral_positivity.pynodal_pulse.pynodeaware_gauge_sweep.pynuf_type_signature.pyoperator_catalog_discipline_signature.pyoperator.pyoscillatory_correction.pypaley_gap_coercivity.pyphi_type_signature.pyprime_ladder_hamiltonian.pypulse_coherence.pyremesh_infinity_residue_split.pyremesh_window_type_signature.pyspectral_emergence.pystructural_zero_density.pytelemetry.pytetrad_closure_signature.pytwisted_admissible_family_sweep.pytwisted_admissible_rescaling.pytwisted_alpha_sweep.pytwisted_coercivity_uniform.pytwisted_hermite_family.pytwisted_hilbert_polya.pytwisted_li_keiper.pytwisted_lyapunov_spectral_positivity.pytwisted_nodeaware_gauge_sweep.pytwisted_oscillatory_correction.pytwisted_paley_gap_coercivity.pytwisted_prime_ladder_hamiltonian.pytwisted_spectral_emergence.pytwisted_structural_zero_density.pytwisted_weil_explicit_formula.pytwisted_weil_positivity.pyurules_consistency_signature.pyvon_mangoldt.pyweil_explicit_formula.pyweil_positivity.py
schemas
__init__.pygrammar.jsonREADME.md
sdk
__init__.py__init__.pyiadaptive_system.pyadaptive_system.pyibuilders.pybuilders.pyifluent.pyfluent.pyiREADME.mdself_opt.pysimple.pytemplates.pytemplates.pyiutils.py
security
__init__.pycrypto.pydatabase.pyREADME.mdsubprocess.pyvalidation.py
sequencing
__init__.pypatterns.pyREADME.md
services
__init__.pyorchestrator.pyREADME.md
sparse
__init__.pyREADME.mdrepresentations.py
structural
README.md
telemetry
__init__.pycache_metrics.pycache_metrics.pyiconstants.pynu_f.pynu_f.pyiREADME.mdunified_telemetry_system.pyverbosity.pyverbosity.pyi
tools
__init__.pydomain_templates.pyREADME.mdsequence_generator.pytnfr_is_prime_cli_optimized.pytnfr_is_prime_cli.py
topology
__init__.pyasymmetry.pyREADME.md
utils
cache_layers.pycache.pycache.pyicallbacks.pycallbacks.pyichunks.pychunks.pyidata.pydata.pyifast_diameter.pygraph.pygraph.pyiinit.pyinit.pyiio.pyio.pyinumeric.pynumeric.pyiREADME.mdtopology.pyunified_cache.py
validation
__init__.py__init__.pyiaggregator.pybase.pycompatibility.pycompatibility.pyiconfig.pygraph.pygraph.pyihealth.pyinput_validation.pyinterface_baselines.pyinvariants.pymultichannel_interface.pyphase_gate.pyREADME.mdrules.pyrules.pyiruntime.pyruntime.pyisequence_validator.pysignal_confrontation.pysoft_filters.pysoft_filters.pyispectral.pyspectral.pyistructural_interface.pytemporal_interface.pyunified_validation_system.pyvalidator.pywindow.pywindow.pyi
visualization
__init__.pycascade_viz.pyhierarchy.pyREADME.mdsequence_plotter.py
yang_mills
__init__.pyclosure.pyderivability.pyscaling.pystructural_gap.pyu6_sweep.py
__init__.py__init__.pyi_compat.py_version.py_version.pyialias.pyalias.pyibackend_config.pycache.pycache.pyiexecution.pyexecution.pyiflatten.pyflatten.pyigamma.pygamma.pyiglyph_history.pyglyph_history.pyiglyph_runtime.pyglyph_runtime.pyiimmutable.pyimmutable.pyiinitialization.pyinitialization.pyiio.pyio.pyilocking.pylocking.pyinode.pynode.pyiobservers.pyobservers.pyiontosim.pyontosim.pyipy.typedrng.pyrng.pyisecure_config.pyselector.pyselector.pyisense.pysense.pyistructural.pystructural.pyitokens.pytokens.pyitrace.pytrace.pyitypes.pytypes.pyiunits.pyunits.pyi
tetrad_evaluator.py
.pre-commit-config.yaml.semgrep.yaml.zenodo.jsonARCHITECTURE.mdbandit.yamlCHANGELOG.mdCITATION.cffCONTRIBUTING.mdEMERGENT_CANON_AUDIT.mdEMERGENT_DERIVATION_PLAN.mdLICENSE.mdMakefileMANIFEST.inpyproject.tomlpyrightconfig.jsonPYTORCH_CUDA_INTEGRATION.mdREADME.mdSECURITY.mdTESTING.mdTNFR_Website_Content_Brief.md
FILE: theory/GLOSSARY.md

GLOSSARY.md

TNFR Glossary

Purpose: Operational quick reference for the Resonant Fractal Nature Theory (TNFR)
Status: Canonical reference, aligned with the current engine and TNFR.pdf
Version: 0.0.3.5 (June 2026)
Authority: AGENTS.md is the single source of truth; this glossary mirrors it API-first

Scope: API-focused definitions for developers implementing TNFR networks — the nodal equation, the structural triad and the fractal-resonant node (NFR), the structural-field tetrad, the 13 operators and the unified grammar (U1–U6). For full derivations see AGENTS.md, FUNDAMENTAL_THEORY.md and UNIFIED_GRAMMAR_RULES.md.


Core Variables

Fractal-Resonant Node (NFR)

What: Nodo Fractal Resonante — a region of structural coherence coupled to a network (TNFR.pdf §1.4.1), the fundamental entity of TNFR. The structural triad (EPI, νf, φ) defines it; it is read out as a whole by Network.nfr().
Properties: multiscalar (an NFR can nest other NFRs — operational fractality), autopoietic (emerges by local reorganization, no external support), relational (exists only by coupling) and temporal (persists while it reorganizes its coherence).
Nodal topology: radial (one central nucleus), annular (passive center, peripheral ring) or multinodal (several centers), classified from the structural-potential geometry by classify_nodal_topology(G).
Equilibrium: ΔNFR = 0 is not an NFR but its resonant-coherence attractor (C → 1); under canonical relaxation the EPI channel diffuses to a uniform field, so a fully relaxed network is one uniform NFR. Scale-relative: a single node is a micro-NFR, a coherent region a macro-NFR.
API: tnfr.physics.fields.classify_nodal_topology, tnfr.sdk.simple.Network.nfr, tnfr.structural.create_nfr
Theory: AGENTS.md §2 (The fractal-resonant node), TNFR.pdf §1.4.1

Primary Information Structure (EPI)

Code: G.nodes[n]['EPI'], ALIAS_EPI
Symbol: (\text{EPI}) or (E)
What: Coherent structural form of a node
Space: (B_{\text{EPI}}) (Banach space)
Rules: Modified only via structural operators, never directly
API: tnfr.structural operators
Math: FUNDAMENTAL_THEORY.md §2.2 (Structural Triad — Banach space B_EPI)

Structural Frequency (νf)

Code: G.nodes[n]['vf'], ALIAS_VF
Symbol: (\nu_f)
Units: Hz_str (structural hertz)
Range: (\mathbb{R}^+) (positive reals; node collapse when (\nu_f \to 0))
What: Rate of structural reorganization
API: adapt_vf_by_coherence(), operators
Math: FUNDAMENTAL_THEORY.md §2 (Governing Dynamics)

Internal Reorganization Operator (ΔNFR)

Code: G.nodes[n]['dnfr'], ALIAS_DNFR
Symbol: (\Delta\text{NFR})
What: Structural reorganization pressure — the gradient driving evolution.
Four gradient channels: (\Delta\text{NFR} = w_\phi,\partial\phi + w_E,\partial\text{EPI} + w_{\nu},\partial\nu_f + w_\tau,\partial\text{topo}) (phase desync, EPI gradient, νf gradient, topology). Operational default weights (tunable, free parameters) DNFR_WEIGHTS = {phase ≈ 0.737, epi ≈ 0.155, vf ≈ 0.090, topo = 0.0} in config/defaults_core.py; normalized and applied by _configure_dnfr_weights in dynamics/dnfr.py.
EPI channel = graph diffusion (KEY): the EPI channel is exactly the random-walk graph Laplacian, (\Delta\text{NFR}\text{epi}(i) = \overline{\text{EPI}}{\mathcal{N}(i)} - \text{EPI}(i) = -(L_\text{rw},\text{EPI})(i)), so (\partial\text{EPI}/\partial t = -\nu_f L_\text{rw},\text{EPI}) is the discrete diffusion (heat) equation with diffusivity νf — eigenmode decay (e^{-\nu_f \lambda_k t}), conserved degree-weighted total, equilibrium ⟺ uniform field.
Sign: positive = expansion, negative = contraction.
Compute: default_compute_delta_nfr hook, automatic in step().
Math: FUNDAMENTAL_THEORY.md §2.1, AGENTS.md §2 (Transport content), src/tnfr/physics/structural_diffusion.py

Phase (φ, θ)

Code: G.nodes[n]['theta'], collect_theta_attr()
Symbol: (\theta) or (\phi)
Range: ([0, 2\pi)) or ([-\pi, \pi)) radians
What: Network synchrony parameter (relative timing)
Phase difference: (\Delta\theta = \theta_i - \theta_j)
API: Phase adaptation in dynamics
Math: FUNDAMENTAL_THEORY.md §2.2 (Structural Triad — phase)

Total Coherence (C(t))

Code: compute_coherence(G) → float ∈ [0,1]; per-node kernel structural_coherence(dnfr, depi)
Symbol: (C(t))
Formula: (C(t) = 1/(1 + \overline{|\Delta\text{NFR}|} + \overline{|d\text{EPI}|})) (canonical; derived from the nodal equation — equilibrium (\Delta\text{NFR}\to 0 \wedge d\text{EPI}\to 0 \Rightarrow C\to 1))
Range: ([0, 1]) where 1 = perfect coherence, 0 = total fragmentation
What: Global stability measure (recorded in history['C_steps']). Dual status: beyond a telemetry read-out, its per-node kernel structural_coherence (= (1/(1+|\Delta\text{NFR}|+|d\text{EPI}|))) is the single constitutive coherence map every domain reads (graph, arithmetic, chemical) — an NFR is a region of structural coherence, so (C) measures the coherence that defines NFR-hood. compute_coherence delegates to this kernel.
Thresholds: strong (C > \pi/(\pi+1) \approx 0.7585); fragmentation risk (C < 1/(\pi+1) \approx 0.2415) (the coherence band; π the sole structural scale).
Code: src/tnfr/metrics/common.py (compute_coherence, structural_coherence)
Math: FUNDAMENTAL_THEORY.md §5.1, AGENTS.md §7

Structural Equilibrium (ΔNFR = 0)

Code: is_structural_equilibrium(dnfr, depi=0, *, eps_dnfr, eps_depi) → bool
What: The canonical fixed-point predicate of the nodal equation: a node sits at the resonant-coherence attractor when (|\Delta\text{NFR}| \le) eps_dnfr and (|d\text{EPI}| \le) eps_depi (default EPS_DNFR_STABLE = 1e-3). This is the ONE deep invariant recurring fractally across TNFR: a relaxed graph node, a structural prime ((\Delta\text{NFR}\text{arith} = 0)) and a noble-gas element ((\Delta\text{NFR}\text{chem} = 0)) are the same fixed point under a domain-specific ΔNFR. The tolerance is a per-domain numerical scale (1e-12 for exact integer arithmetic), not a different logic.
Code: src/tnfr/metrics/common.py (is_structural_equilibrium)
Theory: AGENTS.md §2, §7

Coherence Operator (Ĉ)

Code: coherence_matrix(G) → (nodes, W)
Symbol: (\hat{C})
Matrix element: (w_{ij} \approx \langle i | \hat{C} | j \rangle)
Properties: Hermitian ((\hat{C}^\dagger = \hat{C})), positive semi-definite
What: Operator measuring structural stability between nodes
Math: src/tnfr/metrics/coherence.py (coherence_matrix)

Sense Index (Si)

Code: G.nodes[n]['Si'], ALIAS_SI, compute_Si_node()
Symbol: (\text{Si}) (global) or (S_i) (node i)
Formula: (\text{Si} = \alpha \cdot \nu_{f,\text{norm}} + \beta \cdot (1 - \text{disp}\theta) + \gamma \cdot (1 - |\Delta\text{NFR}|{\text{norm}}))
Range: ([0, 1^+]) typically, higher = more stable reorganization
What: Reorganization-capacity predictor. Unlike C(t), Si is a heuristic composite (weighted νf, phase sync, (|\Delta\text{NFR}|)) — predictive/diagnostic, not constitutive of NFR-hood. Si > 0.8 excellent; Si < 0.4 bifurcation-prone.
Weights: operational defaults (\alpha \approx 0.737), (\beta \approx 0.155), (\gamma_w \approx 0.114) (SI_WEIGHTS in config/defaults_core.py; free parameters, sum (\approx 1))
Math: Mathematical Foundations - Metrics

Phase Gradient (|∇φ|) - CANONICAL

Code: compute_phase_gradient(G) → Dict[NodeId, float]
Symbol: (|\nabla\phi|(i))
Formula: (|\nabla\phi|(i) = \text{mean}_{j \in N(i)} |\theta_i - \theta_j|) (circular mean)
What: Local phase desynchronization / stress proxy field
Status: CANONICAL (Nov 2025)
Physics: Captures dynamics C(t) misses due to scaling invariance
Threshold: Kinematic bound |∇φ| ≤ π (phase wrap — same as K_φ); ≈ 0.18 is only a heuristic early-warning level, NOT a derived bound (measured sync-onset ≈ 0.29, σ-dependent)
API: tnfr.physics.fields.compute_phase_gradient()
Usage: Stress detection, local instability prediction
Documentation: docs/STRUCTURAL_FIELDS_TETRAD.md

Phase Curvature (K_φ) - CANONICAL

Code: compute_phase_curvature(G) → Dict[NodeId, float]
Symbol: (K_\phi(i))
Formula: (K_\phi = \text{wrap_angle}(\phi_i - \text{circular_mean}(\text{neighbors})))
What: Phase torsion and geometric confinement field
Status: CANONICAL (Nov 2025)
Physics: Flags mutation-prone loci via geometric constraints
Threshold: Classical bound |K_φ| < 2.8274 (90% of π theoretical maximum)
API: tnfr.physics.fields.compute_phase_curvature()
Usage: Geometric confinement monitoring, bifurcation prediction
Documentation: docs/STRUCTURAL_FIELDS_TETRAD.md

Coherence Length (ξ_C) - CANONICAL

Code: estimate_coherence_length(G) → float
Symbol: (\xi_C)
Formula: Spatial correlation function (C(r) = A \exp(-r/\xi_C))
What: Spatial correlation scale of local coherence
Status: CANONICAL (Nov 2025)
Physics: Critical phenomena and finite-size scaling analysis
Thresholds:

  • Critical: ξ_C > 1.0 × diameter (finite-size scaling dominates)
  • Watch: ξ_C > π ≈ 3.14 × mean_distance (RG scaling)
  • Stable: ξ_C < mean_distance (bulk behavior)
    API: tnfr.physics.fields.estimate_coherence_length()
    Usage: Critical point detection, correlation analysis
    Documentation: docs/STRUCTURAL_FIELDS_TETRAD.md

Structural Potential (Φ_s) - CANONICAL

Code: compute_structural_potential(G, alpha=2.0) → Dict[NodeId, float]
Symbol: (\Phi_s(i))
Formula: (\Phi_s(i) = \sum_{j \neq i} \frac{\Delta\text{NFR}_j}{d(i,j)^\alpha}) where (\alpha = 2)
What: Global structural potential field from ΔNFR distribution
Status: CANONICAL (Nov 2025)
Validation: 1,599 tests across 5 topologies
Physics: Passive equilibrium confinement landscape
Grammar: U6 STRUCTURAL POTENTIAL CONFINEMENT (Δ Φ_s < π/2 ≈ 1.571 confinement bound, half phase-wrap; ceiling 2.0 binary escape)
API: tnfr.physics.fields.compute_structural_potential()
Threshold: Per-node bound |Φ_s| < π/4 ≈ 0.785 (quarter phase-wrap; π-derived, tied to the one genuine structural scale π)
Documentation: docs/STRUCTURAL_FIELDS_TETRAD.md

  • src/tnfr/physics/fields.py - Implementation

Interpretation:

  • Φ_s minima = passive equilibrium states
  • Δ Φ_s < π/2 ≈ 1.571 = confinement (safe regime, half phase-wrap)
  • Δ Φ_s ≥ 2.0 = binary escape threshold (fragmentation risk)
  • Valid sequences: Δ Φ_s ≈ 0.6 (≈ 38% of the π/2 bound)
  • Violations: Δ Φ_s ≈ 3.9 (≈ 248% of the π/2 bound)

Mechanism: Grammar U1-U5 acts as passive confinement (NOT active attractor). Reduces escape drift by 85%.


The Nodal Equation

The fundamental equation of TNFR governs structural evolution:

[ \frac{\partial \text{EPI}}{\partial t} = \nu_f \cdot \Delta\text{NFR}(t) ]

Where:

  • (\frac{\partial \text{EPI}}{\partial t}): Rate of change of structure
  • (\nu_f): Structural frequency (reorganization rate) in Hz_str
  • (\Delta\text{NFR}(t)): Reorganization gradient (driving pressure)

Interpretation:

  • Structure changes only when both (\nu_f > 0) (capacity) and (\Delta\text{NFR} \neq 0) (pressure) exist
  • Rate of change is proportional to both frequency and gradient
  • When (\nu_f \to 0), evolution freezes (node collapse)
  • When (\Delta\text{NFR} = 0), structure reaches equilibrium

Implementation: See src/tnfr/dynamics/ for numerical integration
Theory: Nodal equation §2


Structural Diffusion & Spectral Parameters

The EPI channel of ΔNFR makes the nodal equation a graph diffusion, so the dynamics are governed by the spectrum of the graph Laplacian. These are the factors that set how fast a network relaxes and toward what pattern.

FactorSymbolMeaningAPI
Diffusivityνfreorganization rate / mobility (Hz_str)structural_diffusivity(G)
Spectral gap (Fiedler value)λ₂smallest non-zero Laplacian eigenvalue; sets the slowest relaxation and the synchronization tendencyrelaxation_spectrum(G)
Relaxation rater_k = νf·λ_kdecay rate of eigenmode k (amplitude ∝ e^{−r_k t})relaxation_spectrum(G)
Critical rater_c = νf·λ₂spectral form of grammar U2: below r_c only the uniform mode survives; above it the Fiedler mode grows → fragmentation—
Coherence lengthξ_Ccorrelation range, ξ_C ∝ 1/√λ₂estimate_coherence_length(G)
Fiedler partition—the first structural pattern to emerge (the network's natural 2-cut)fiedler_partition(G)
Structural rank—number of distinct relaxation frequenciesstructural_frequency_rank(G)
Conserved EPI totalΣ deg·EPIthe EPI-channel invariant (L_rw left-null vector = degree vector)degree_weighted_total(G)
Pulse resonanceω_k = √λ_kthe conservative-face standing-wave frequencies — the rhythm the substrate plays (collective)compute_emergent_pulse(G) / net.rhythm()
Per-NFR pulse(νf_i, φ_i)each NFR a phase oscillator; resonance (local_phase_sync, Kuramoto R) couples them into the collective rhythmcompute_nodal_pulse(G) / net.resonance()
Relaxation windowmin{n : qⁿ < 1/(π+1)}discrete steps for a |ΔNFR| perturbation to relax into the coherence band — the derived U4b / repeat-avoidance window = 3derive_bifurcation_window_from_physics()
Debt capacity⌊1/(1−q)⌋geometric relaxation-absorption of sustained destabilization — the derived U2 debt threshold = 2derive_u2_debt_capacity_from_physics()
  • The conservative pulse. The substrate vibrates at ω_k = √λ_k; the ΔNFR = 0 equilibria are the beats. The grammar temporal windows are derived from this relaxation: with q = 1 − νf·dt·ρ (ρ = trace(L_rw)/N = 1, exact), the U4b / repeat window (= 3) is the relaxation time to the band 1/(π+1) and the U2 debt (= 2) is the relaxation absorption capacity ⌊1/(1−q)⌋ — a time and a capacity from the same q. No e (the canonical relaxation is the discrete geometric decay qⁿ, not the continuous exponential).
  • λ₁ = 0 is the conserved uniform mode; the degree-weighted total Σ deg·EPI is invariant (degree_weighted_total). This EPI-channel conservation is distinct from the tetrad Noether charge Q = Σ(Φ_s + K_φ) (compute_noether_charge) — TNFR carries two conservation laws (EPI field vs tetrad fields).
  • A fully relaxed network is one uniform NFR; differentiated nodal topology (radial/annular/multinodal) lives off-equilibrium.
  • API: src/tnfr/physics/structural_diffusion.py, src/tnfr/physics/conservation.py.

Key Parameters & Factors

The quantities that govern TNFR dynamics, with their canonical status.

ParameterSymbolDefault / valueRoleStatus
Structural frequencyνfℝ⁺ (Hz_str)reorganization capacity = diffusivity/mobility; νf→0 inactivatesstate
Reorganization pressureΔNFRℝdrive (4 channels); ΔNFR=0 = equilibriumstate
Phaseφ, θ[0, 2π)synchronizationstate
Phase-coupling toleranceΔφ_maxπ/2 ≈ 1.5708 rad (90°)U3 admissible coupling |φᵢ−φⱼ| ≤ Δφ_maxderived bound
Mutation thresholdξZHIR_THRESHOLD_XI = 0.1ZHIR transforms θ when dEPI/dt > ξ (bifurcation)heuristic
Equilibrium toleranceeps_dnfr / eps_depiEPS_DNFR_STABLE = 1e-3is_structural_equilibrium cut (1e-12 for exact arithmetic)numerical scale
Spectral gapλ₂graph-dependentslowest relaxation; ξ_C ∝ 1/√λ₂; r_c = νf·λ₂structural
Phase scaleπexactthe one genuine structural constant: bounds |∇φ| and |K_φ|genuine
Non-structural parameters—free / derivedoperator gains, clamps, dt, coupling rates — derived from the dynamics or free operational parametersoperational

Only π is a genuine structural constant (the phase-wrap bound). φ, γ, e are not structural scales and no longer appear in the engine; every parameter other than π is derived from the nodal dynamics / spectral gap (e.g. ξ_C ∝ 1/√λ₂, the π-derived ΔΦ_s bound π/2) or is a free operational parameter (e.g. the ≈ 0.18 |∇φ| early-warning level).


Structural Operators

The 13 canonical operators are the only way to modify nodes in TNFR. They're not arbitrary functions—they're resonant transformations with rigorous physics.

For complete specifications with physics derivations, contracts, and usage examples, see AGENTS.md § The 13 Canonical Operators.

Quick Reference

SymbolNamePhysicsGrammar SetsWhen to Use
ALEmissionCreates EPI from vacuum via resonant emissionGenerator (U1a)Starting new patterns, initializing from EPI=0
ENReceptionCaptures and integrates incoming resonance-Information gathering, listening phase
ILCoherenceStabilizes form through negative feedbackStabilizer (U2)After changes, consolidation
OZDissonanceIntroduces controlled instabilityDestabilizer (U2), Bifurcation trigger (U4a), Closure (U1b)Breaking local optima, exploration
UMCouplingCreates structural links via phase synchronizationRequires phase verification (U3)Network formation, connecting nodes
RAResonanceAmplifies and propagates patterns coherentlyRequires phase verification (U3)Pattern reinforcement, spreading coherence
SHASilenceFreezes evolution temporarily (νf → 0)Closure (U1b)Observation windows, pause for synchronization
VALExpansionIncreases structural complexity (dim ↑)Destabilizer (U2)Adding degrees of freedom
NULContractionReduces structural complexity (dim ↓)-Simplification, dimensionality reduction
THOLSelf-organizationSpontaneous autopoietic pattern formationStabilizer (U2), Handler (U4a), Transformer (U4b)Emergent organization, fractal structuring
ZHIRMutationPhase transformation at thresholdBifurcation trigger (U4a), Transformer (U4b)Qualitative state changes
NAVTransitionRegime shift, activates latent EPIGenerator (U1a), Closure (U1b)Switching between attractor states
REMESHRecursivityEchoes structure across scalesGenerator (U1a), Closure (U1b)Multi-scale operations, memory

Operator Composition

Operators combine into sequences that implement complex behaviors:

  • Bootstrap = [Emission, Coupling, Coherence]
  • Stabilize = [Coherence, Silence]
  • Explore = [Dissonance, Mutation, Coherence]
  • Propagate = [Resonance, Coupling]

Critical: All sequences must satisfy unified grammar (U1-U6).

API:

  • tnfr.structural.<OperatorName>() - Individual operators
  • run_sequence(G, node, ops) - Execute operator sequences
  • validate_sequence(ops) - Check grammar compliance

Grammar: See UNIFIED_GRAMMAR_RULES.md for complete rules
Detailed Specs: See AGENTS.md § The 13 Canonical Operators
Math: Mathematical Foundations


Canonical Invariants (Optimized Set)

From AGENTS.md - Optimized from 10 to 6 invariants based on mathematical derivation:

  1. Nodal Equation Integrity: EPI evolution only via ∂EPI/∂t = νf · ΔNFR(t)
  2. Phase-Coherent Coupling: |φᵢ - φⱼ| ≤ Δφ_max required for resonant operations
  3. Multi-Scale Fractality: Operational fractality and nested EPIs maintained
  4. Grammar Compliance: All operator sequences must satisfy U1-U6 validation
  5. Structural Metrology: Units consistency (νf in Hz_str) and telemetry exposure
  6. Reproducible Dynamics: Deterministic evolution with seed-based control

Quick Reference Tables

Variable Summary

SymbolMathematicalCode AttributeUnitsRangeType
(\text{EPI})Primary Information Structure'EPI'dimensionless(B_{\text{EPI}})Coherent form
(\nu_f)Structural frequency'vf'Hz_str(\mathbb{R}^+)Reorganization rate
(\Delta\text{NFR})Reorganization operator'dnfr'dimensionless(\mathbb{R})Evolution gradient
(\theta), (\phi)Phase angle'theta'radians([0, 2\pi))Network synchrony
(C(t))Total coherencecompute_coherence()dimensionless([0, 1])Global stability
(\text{Si})Sense Index'Si'dimensionless([0, 1^+])Reorganization stability

Common API Patterns

python
# Access node attributes
epi = G.nodes[node_id]['EPI']
vf = G.nodes[node_id]['vf']
theta = G.nodes[node_id]['theta']

# Compute metrics
C_t = compute_coherence(G)
nodes, W = coherence_matrix(G)
Si = compute_Si_node(G, node_id)

# Apply operators
from tnfr.structural import Emission, Coherence, Resonance
run_sequence(G, node_id, [Emission(), Coherence(), Resonance()])

# Evolution step
from tnfr.dynamics import step
step(G, use_Si=True, apply_glyphs=True)

# Canonical fixed point (per-node kernel + equilibrium predicate)
from tnfr.metrics.common import structural_coherence, is_structural_equilibrium
C_node = structural_coherence(G.nodes[node_id]['dnfr'])
at_equilibrium = is_structural_equilibrium(G.nodes[node_id]['dnfr'])

# Whole-NFR read-out (region) + nodal topology (radial/annular/multinodal)
from tnfr.sdk import TNFR
net = TNFR.create(20).ring().evolve(5)
nfr = net.nfr()  # topology, centers, coherence, equilibrium_fraction, coherence_length

Telemetry & Traces

Expose in telemetry:

  • C(t) - Total coherence
  • νf per node - Structural frequency
  • phase per node - Synchrony state
  • Si per node/network - Sense index
  • ΔNFR per node - Reorganization gradient
  • Operator history - Applied transformations
  • Events - Birth, bifurcation, collapse

API: tnfr.utils.callback_manager, history tracking in G.graph['_hist']


Domain Neutrality & the Two-Layer Ontology

TNFR is domain-neutral: the structural operators apply to any graph-coupled network, with no built-in domain assumptions. The genuinely canonical invariant — derivable directly from the nodal equation — is the fixed point ΔNFR = 0 (structural equilibrium / resonant-coherence attractor); every domain realizes its own ΔNFR but shares this one fixed point, read through the single kernel structural_coherence and the predicate is_structural_equilibrium. Around that invariant the read-outs span a spectrum of emergence, contrasted as two layers:

  • Physical layer — particles (direct emergence): the integer winding W ∈ ℤ is a topological invariant of the phase field — its integrality emerges (any single-valued phase field on a loop has integer winding; nothing imposes it). The class (boson/fermion/composite) is an output of measuring W, not an imposed label (tnfr.physics.emergent_particles).
  • Symbolic / informational layer — numbers, chemistry (projection of the same fixed point): a structural prime is ΔNFR_arith = 0 and a noble gas is ΔNFR_chem = 0. The per-node arithmetic/chemical ΔNFR consumes its domain data (divisibility τ/σ/ω; the aufbau order) — the informational shadow of the structural grammar, not a direct topological emergence.

Refinement — emergence is a spectrum, not a clean binary. The symbolic layer is not uniformly "consuming". Per TNFR_NUMBER_THEORY.md §9.5, primality has three sectors: A (arithmetic ΔNFR = 0, what the SDK primes()/primality() expose) is an exact but circular re-expression that consumes Ω/τ/σ; B (spectral — the Paley/residue Fiedler gap, input only x² mod n) is genuinely emergent (primes-OUT, non-circular); C (representation-theoretic irreducibility) is refuted. So numbers do carry a non-circular emergent core, but it is spectral, partial (the real spectrum reaches only n ≡ 1 (mod 4)), and never lives in the per-node substrate — the residual is the same Fix(G)^⊥ obstruction as the paused TNFR-Riemann program. The two-layer split is the SDK-level contrast; the trichotomy is the precise account.

Only the equilibrium criterion (is_structural_equilibrium) and the coherence kernel (structural_coherence) are shared; each domain realizes its own ΔNFR.

Guideline: avoid domain-specific hard-coding in the core engine; be honest about the emergence spectrum (direct topological / spectral-emergent / divisibility-consuming) per read-out.


Reproducibility

All simulations must be:

  1. Seeded: Explicit RNG seeds
  2. Traceable: Log operators, parameters, states
  3. Deterministic: Same seed → same trajectory

Tools: RNG scaffolding, structural history, telemetry caches


Unified Grammar Terms

Unified Grammar

The consolidated TNFR grammar system (U1-U6) that replaces the old C1-C3 and RC1-RC4 systems.

Source of Truth: UNIFIED_GRAMMAR_RULES.md
Quick Reference: AGENTS.md § Unified Grammar (U1-U6)
Implementation: src/tnfr/operators/grammar.py

Grammar Completeness: The canonical TNFR grammar consists of exactly six rules (U1-U6) and is COMPLETE. No additional rules (U7, U8, etc.) are required or planned. Extended dynamics (flux fields) add telemetry, not prescriptive constraints.

Six Canonical Constraints:

RuleNamePhysics BasisRequirementCanonicity
U1STRUCTURAL INITIATION & CLOSURE∂EPI/∂t undefined at EPI=0Start with generator {AL, NAV, REMESH}, End with closure {SHA, NAV, REMESH, OZ}ABSOLUTE
U2CONVERGENCE & BOUNDEDNESS∫νf·ΔNFR dt must convergeIf destabilizer {OZ, ZHIR, VAL}, then include stabilizer {IL, THOL}ABSOLUTE
U3RESONANT COUPLINGPhase compatibility required for resonanceIf coupling {UM, RA}, verify |φᵢ - φⱼ| ≤ Δφ_maxABSOLUTE
U4BIFURCATION DYNAMICSZHIR mutates θ when dEPI/dt > ξ; bifurcations need controlTriggers {OZ, ZHIR} need handlers {THOL, IL}; Transformers need a recent destabilizer (ZHIR also a prior IL)STRONG
U5MULTI-SCALE COHERENCEHierarchical coupling + chain ruleNested EPIs require stabilizers {IL, THOL} at each levelABSOLUTE
U6STRUCTURAL POTENTIAL CONFINEMENTEmergent Φ_s field: Φ_s(i) = Σ ΔNFR_j/d(i,j)²Monitor Δ Φ_s < π/2 ≈ 1.571 (half phase-wrap); ceiling 2.0STRONG

Canonicity Levels:

  • ABSOLUTE: Mathematical necessity (direct consequence of nodal equation)
  • STRONG: Strong empirical/theoretical support (1,599 tests for U6)

Recent Updates:

  • U5 added 2025-11-10 (hierarchical REMESH stabilization)
  • U6 promoted to canonical 2025-11-11 (Φ_s field validation complete)
    • Replaces experimental "Temporal Ordering" research proposal
    • Validated across 5 topologies: ring, scale_free, small-world, tree, grid
    • Correlation: corr(Δ Φ_s, ΔC) = -0.822 (R² ≈ 0.68)
  • 2025-11-15: Grammar declared COMPLETE (U1-U6) - no U7/U8 required

Not Part of Grammar (telemetry/dynamics, NOT rules):

  • Structural Field Hexad: Tetrad (Φ_s, |∇φ|, K_φ, ξ_C) + Flux Pair (J_φ, ∇·J_ΔNFR)
  • "Proposed U7": Historical research direction (Temporal Ordering) - NOT canonical, NOT implemented

See Also:

  • UNIFIED_GRAMMAR_RULES.md - Complete derivations from physics
  • AGENTS.md § Unified Grammar - Quick reference
  • docs/grammar/U6_STRUCTURAL_POTENTIAL_CONFINEMENT.md - U6 complete specification
  • docs/grammar/U6_STRUCTURAL_FIELD_TETRAD.md - Why no U7/U8
  • STRUCTURAL_FIELDS_TETRAD.md - U6 validation details
  • src/tnfr/physics/fields.py - Φ_s implementation

Generator Operator

Operator that can create EPI from null/dormant states.

Set: GENERATORS = {emission, transition, recursivity}

Physics: Only these operators can initialize when EPI=0

Grammar Rule: U1a (STRUCTURAL INITIATION)

See: UNIFIED_GRAMMAR_RULES.md § U1a


Closure Operator

Operator that leaves system in coherent attractor state.

Set: CLOSURES = {silence, transition, recursivity, dissonance}

Physics: Terminal states preserving coherence

Grammar Rule: U1b (STRUCTURAL CLOSURE)

See: UNIFIED_GRAMMAR_RULES.md § U1b


Stabilizer Operator

Operator that provides negative feedback for convergence.

Set: STABILIZERS = {coherence, self_organization}

Physics: Ensures ∫νf·ΔNFR dt converges (bounded evolution)

Grammar Rule: U2 (CONVERGENCE & BOUNDEDNESS)

See: UNIFIED_GRAMMAR_RULES.md § U2


Destabilizer Operator

Operator that increases |ΔNFR| through positive feedback.

Set: DESTABILIZERS = {dissonance, mutation, expansion}

Physics: Without stabilizers, leads to divergence

Grammar Rule: U2 (CONVERGENCE & BOUNDEDNESS)

See: UNIFIED_GRAMMAR_RULES.md § U2


Coupling/Resonance Operator

Operators that require phase verification for valid coupling.

Set: COUPLING_RESONANCE = {coupling, resonance}

Physics: Resonance requires |φᵢ - φⱼ| ≤ Δφ_max

Grammar Rule: U3 (RESONANT COUPLING)

See: UNIFIED_GRAMMAR_RULES.md § U3


The Structural-Field Tetrad

Theory: The four structural fields are the minimal derivative tower (DERIVED). Only π is a genuine structural scale (the phase-wrap bound shared by |∇φ| and K_φ).

The one structural scale

Only π is a genuine structural scale — it bounds the phase sector (|∇φ| ≤ π and |K_φ| ≤ π). φ, γ, e are not structural scales and no longer appear in the engine; the coherence length is set by the spectral gap (ξ_C ∝ 1/√λ₂) and the Φ_s confinement bound is π-derived. Every other parameter is derived from the nodal dynamics or is a free operational parameter.

Structural Fields and their bounds

  1. Φ_s (0th order): π-derived confinement Δ Φ_s < π/2 ≈ 1.571 (half phase-wrap; per-node |Φ_s| < π/4 ≈ 0.785)
  2. |∇φ| (1st order): bound |∇φ| ≤ π (phase wrap); γ/π ≈ 0.184 is a heuristic early-warning only
  3. K_φ (2nd order): bound |K_φ| < 0.9×π ≈ 2.827 (phase wrap — GENUINE); K_φ = L_rw·φ
  4. ξ_C (correlation): scale set by the spectral gap, ξ_C ∝ 1/√λ₂ (not base e)

Documentation: Structural-field tetrad


Flux Fields & the Emergent Symplectic Substrate

The tetrad has two conjugate flux fields that complete it into a symplectic structure (the field hexad). They are the currents paired with the static fields.

  • Phase current J_φ — geometric, phase-driven transport; conjugate to curvature K_φ. Compute: compute_phase_current(G).
  • ΔNFR flux J_ΔNFR — potential-driven reorganization transport; conjugate to the potential Φ_s. Compute: compute_dnfr_flux(G).
  • API: tnfr.physics.extended (compute_phase_current, compute_dnfr_flux).

Emergent symplectic substrate. The dynamics generate a symplectic phase space \(\mathbb{R}^{4N}\) with two canonical conjugate pairs per node — geometric \((K_\phi, J_\phi)\) and potential \((\Phi_s, J_{\Delta\text{NFR}})\) — with brackets \(\{K_\phi, J_\phi\} = \{\Phi_s, J_{\Delta\text{NFR}}\} = 1\) and Hamiltonian \(H_\text{sub} = \tfrac{1}{2}\sum(K_\phi^2 + J_\phi^2 + \Phi_s^2 + J_{\Delta\text{NFR}}^2)\). The flow is a symplectomorphism (Liouville: phase volume preserved), so the 13 operators are canonical volume-preserving transforms. The complex coordinate \(\Psi = K_\phi + i\,J_\phi\) carries a U(1) gauge symmetry; the substrate further carries a U(2) polarization symmetry (per-node Poincaré sphere, classical Stokes texture — not a quantum state). The nodal equation is the overdamped projection of this Hamiltonian flow.

API: tnfr.physics.symplectic_substrate, Network.symplectic_substrate().
Documentation: AGENTS.md §4 (Emergent geometry), src/tnfr/physics/symplectic_substrate.py


Bifurcation Trigger

Operators that may trigger phase transitions.

Set: BIFURCATION_TRIGGERS = {dissonance, mutation}

Physics: ZHIR (Mutation) is the canonical bifurcation operator — it transforms θ when the structural change rate crosses the mutation threshold, dEPI/dt > ξ.

Grammar Rule: U4a (requires handlers)

See: UNIFIED_GRAMMAR_RULES.md § U4a


Bifurcation Handler

Operators that manage structural reorganization during bifurcations.

Set: BIFURCATION_HANDLERS = {self_organization, coherence}

Physics: Provide stability during phase transitions

Grammar Rule: U4a (BIFURCATION DYNAMICS)

See: UNIFIED_GRAMMAR_RULES.md § U4a


Transformer Operator

Operators that perform threshold-crossing structural phase transitions.

Set: TRANSFORMERS = {mutation, self_organization}

Physics: Require recent destabilizer for threshold energy

Grammar Rule: U4b (requires context + prior IL for ZHIR)

See: UNIFIED_GRAMMAR_RULES.md § U4b


Related Documentation

Core References (Essential)

  • AGENTS.md ⭐ - Single source of truth for TNFR agent guidance, invariants, and philosophy
  • UNIFIED_GRAMMAR_RULES.md ⭐ - Grammar single source of truth (U1-U6 complete derivations)
  • Mathematical Foundations ⭐ - SINGLE SOURCE FOR ALL MATH (formalization, proofs, spectral theory)

Theory & Physics

  • TNFR.pdf - Original theoretical companion (paradigm, nodal equation, foundational physics)
  • docs/grammar/U6_STRUCTURAL_POTENTIAL_CONFINEMENT.md - U6 complete specification
  • STRUCTURAL_FIELDS_TETRAD.md - Structural fields validation (Φ_s, phase gradients)

Implementation & API

  • ARCHITECTURE.md - System design and architecture patterns
  • Foundations - Runtime/API guide
  • API Overview - Package architecture
  • Structural Operators - Operator implementation details
  • Examples - Runnable scenarios across domains

Grammar & Migration

  • docs/grammar/ - Grammar documentation directory (U6, fundamental concepts, etc.)

Testing & Development

  • TESTING.md - Test conventions and invariant verification
  • CONTRIBUTING.md - Detailed contribution guidelines
  • REPRODUCIBILITY.md - Determinism requirements

Cross-References and Documentation Hub

Primary Sources:

  • AGENTS.md - Single source of truth for TNFR theory
  • UNIFIED_GRAMMAR_RULES.md - Complete U1-U6 grammar derivations
  • Structural Fields and the Tetrad - Mathematical foundations

Implementation References:

  • src/tnfr/physics/fields.py - Unified Structural Field Tetrad (Canonical)
  • src/tnfr/dynamics/self_optimizing_engine.py - Self-optimization & auto-optimization
  • docs/STRUCTURAL_FIELDS_TETRAD.md - Technical field specifications
  • docs/grammar/PHYSICS_VERIFICATION.md - Grammar physics verification

Development Resources:

  • src/tnfr/sdk/ - Simplified & Fluent API
  • examples/ - Complete tutorial suite
  • ARCHITECTURE.md - System design patterns

Molecular Chemistry from TNFR

Technical approach: chemistry on atomic-scale graph networks — the symbolic-layer read-out of the nodal fixed point. A closed shell is ΔNFR_chem(Z) = 0 (is_structural_equilibrium), the chemical mirror of the primality criterion; the magic numbers (noble-gas Z) combine genuinely-emergent subshell capacities 2l+1 (manifold eigenmode degeneracies) with an assumed (n+l) aufbau order. See src/tnfr/physics/emergent_chemistry.py (classify_element, emergent_magic_numbers) and the SDK TNFR.element(Z) / TNFR.magic_numbers().

Element Signatures

Code: tnfr.physics.signatures
What: Structural field-based classification of coherent patterns
Metrics: ξ_C, |∇φ|, |K_φ|, ΔΦ_s drift, stability classification
API: compute_element_signature(G), compute_au_like_signature(G)
Physics: Elements as coherent attractors in structural space

Au-like Patterns

Symbol: Au (from Latin 'aurum')
What: Complex coherent patterns exhibiting metallic properties
Criteria: Extended ξ_C, phase synchrony (|∇φ| < 2.0), evolution stability
Detection: compute_au_like_signature()["is_au_like"]
Physics: Optimal multi-scale coordination under nodal dynamics

Chemical Bonds (TNFR Structural Analogy)

Traditional: Force between atoms
TNFR: Phase synchronization with U3 verification: |φᵢ - φⱼ| ≤ Δφ_max
API: Coupling operators with phase compatibility check
Strength: Determined by phase coherence and coupling stability

Chemical Reactions (TNFR Structural Analogy)

Traditional: Collision/transition state theory
TNFR: Operator sequences: [Dissonance→Mutation→Coupling→Coherence]
Grammar: Must satisfy U1-U6 constraints
API: Sequence validation via grammar.py
Example: Bond formation = [OZ, ZHIR, UM, IL] sequence

Molecular Geometry (TNFR Structural Analogy)

Traditional: VSEPR, orbital hybridization
TNFR: ΔNFR minimization in coupled network topology
Prediction: Stable configurations minimize reorganization pressure
API: Network topology analysis after coupling sequences

Implementation: src/tnfr/physics/emergent_chemistry.py, src/tnfr/physics/signatures.py

Self-Optimizing Engine

Self-Optimization: The TNFR engine includes self-optimization capabilities using unified field telemetry.

Core Components

TNFRSelfOptimizingEngine: src/tnfr/dynamics/self_optimizing_engine.py
Purpose: Closes feedback loop via unified field monitoring
Monitors: Complex Geometric Field (Ψ), Chirality (χ), Symmetry Breaking (𝒮), Coherence Coupling (𝒞)
Detects: Inefficiencies via tensor invariants (Energy Density ℰ, Topological Charge 𝒬)
Usage: engine = TNFRSelfOptimizingEngine(G); success, metrics = engine.step(node_id)

Auto-Optimization API

Fluent Integration: TNFRNetwork(G).focus(node).auto_optimize().execute()
Field Analysis: analyze_optimization_potential(G) - Mathematical structure analysis
Strategy Recommendations: recommend_field_optimization_strategy(G) - Optimization strategies
Automatic Execution: auto_optimize_field_computation(G) - Self-optimizing computation

Unified Field Framework (Nov 2025)

Mathematical Unification: Discovery of complex field relationships and conservation laws.

Complex Geometric Field (Ψ)

Definition: Ψ = K_φ + i·J_φ (unifies geometry + transport)
Evidence: r(K_φ, J_φ) = -0.854 to -0.997 (near-perfect anticorrelation)
API: compute_complex_geometric_field(G)
Usage: Unified geometry-transport analysis

Emergent Fields

Chirality (χ): χ = |∇φ|·K_φ - J_φ·J_ΔNFR - Handedness detection
Symmetry Breaking (𝒮): Phase transition indicator
Coherence Coupling (𝒞): Multi-scale connector field
API: compute_emergent_fields(G)

Tensor Invariants

Energy Density (ℰ): ℰ = Φ_s² + |∇φ|² + K_φ² + J_φ² + J_ΔNFR²
Topological Charge (𝒬): 𝒬 = |∇φ|·J_φ - K_φ·J_ΔNFR
Conservation Law: ∂ρ/∂t + ∇·𝐉 = S_grammar where S_grammar → 0 under U1-U6
API: compute_tensor_invariants(G)

Unified Telemetry: compute_unified_telemetry(G) - Complete dual-face field suite: the dissipative read-out (canonical tetrad + coherence, relaxes to the ΔNFR=0 attractor) plus the conservative pulse (the resonant rhythm ω_k=√λ_k, dominant beat, vibration energy; does not saturate)


Operator-Tetrad Synergies (Experimental, March 2026)

Six experimentally validated results connecting canonical operators to the structural field tetrad. Reference: STRUCTURAL_OPERATORS.md §17, examples 37-39.

Dual-Lever Structure (channel partition)

What: Each operator's primary effect lands on exactly one nodal channel — the partition is simultaneously the dual-lever (capacity νf vs pressure ΔNFR), the tetrad driver and the number-theory grading (AGENTS.md §5):

  • νf (capacity): Silence (SHA), Expansion (VAL), Contraction (NUL).
  • ΔNFR (pressure): Coherence (IL), Dissonance (OZ), Self-organization (THOL), Transition (NAV).
  • θ (phase): Coupling (UM), Mutation (ZHIR).
  • EPI (written directly): Emission (AL), Reception (EN), Resonance (RA), Recursivity (REMESH).

Source of truth: src/tnfr/operators/operator_contracts.py. Evidence: examples/02_physics_regimes/39_nodal_equation_decomposition.py.

Operator-Tetrad Fingerprint Matrix

What: Each operator produces a unique signature across the four tetrad fields. The fingerprint matrix tabulates relative changes (dPhi_s, d|grad_phi|, dK_phi, dxi_C) per operator. Example: UM modifies all four fields (strongest Phi_s at -73.7%); SHA is tetrad-neutral. Evidence: examples/02_physics_regimes/37_operator_tetrad_synergy.py.

IL-OZ Tetrad Symmetry

What: Coherence (IL) and Dissonance (OZ) produce identical tetrad perturbation magnitudes and identical energy changes (dE = -0.011) despite opposite physics. They share the same |d(DNFR)| = 0.0096, differing only in sign. Interpretation: IL and OZ are structural mirrors on the energy manifold, explaining U2 balancing.

Linear Response of Phi_s

What: Phi_s responds linearly to DNFR perturbations with |r| = 1.000 (Pearson correlation). This confirms its 0th-order position in the operator-derivative tower. Contrast: xi_C transitions to strongly nonlinear behaviour above DNFR ~ 0.3. Evidence: examples/02_physics_regimes/39_nodal_equation_decomposition.py.

Complete Causal Chain

What: The information flow is strictly unidirectional: Operator -> (vf, DNFR) -> dEPI/dt -> Tetrad -> (E, Q). Tetrad fields are diagnostic outputs, not independent dynamical variables. They are fully determined by the nodal equation state.

Grammar-Energy Landscape

What: Lyapunov contractivity (cumulative multiplier Pi < 1) is sufficient but not necessary for energy descent. Experimentally: lambda = 1.288 (non-contractive) yet net dE = -9.59 (energy descent). Interpretation: The Lyapunov bound is conservative; actual grammar-compliant sequences may descend more steeply than the bound predicts. Evidence: examples/02_physics_regimes/38_grammar_energy_landscape.py.


Structural Conservation Theorem

Main Result: Grammar symmetry (U1-U6) implies an approximate Noether-like structural conservation law.

Charge Density: ρ = Φ_s + K_φ (potential + geometric sectors)
Current: 𝐉 = (J_φ, J_ΔNFR) (transport channels)
Conservation: ∂ρ/∂t + ∇·𝐉 = S_grammar where S_grammar → 0 under U1-U6
Two Sectors: Potential (Φ_s ↔ J_ΔNFR) and Geometric (K_φ ↔ J_φ), coupled through Ψ = K_φ + i·J_φ
Lyapunov: E = ½Σ(Φ_s² + |∇φ|² + K_φ² + J_φ² + J_ΔNFR²) ≥ 0 with dE/dt ≤ 0 observed under grammar (proof sketch; complete proof open)
Validation: 62 tests, charge drift < 0.03% across tested topologies and seeds
API: tnfr.physics.conservation — Noether charge Q, energy functional E, Ward identities, spectral decomposition
Documentation: theory/STRUCTURAL_CONSERVATION_THEOREM.md


Integrity Monitor

What: Closed-loop postcondition verification ensuring all 13 canonical operators satisfy their structural contracts after execution.
API: tnfr.physics.integrity
Coverage: 13/13 operators verified — monotonicity (IL), ΔNFR increase (OZ), phase preservation (SHA), EPI creation (AL), coupling validity (UM/RA), etc.
Usage: Automatic contract verification in apply_glyph_with_grammar() pipeline.
Documentation: src/tnfr/physics/integrity.py


Grammar-Aware Dynamics

What: Incremental U1-U6 enforcement during step-by-step operator selection, bridging grammar validation with the dynamic operator selection layer.
API: tnfr.operators.grammar_dynamics.GrammarAwareDynamics
Checks: U1a initiation, U2 destabilizer/stabilizer debt tracking, U3 phase compatibility for UM/RA, U4a/U4b bifurcation context
Physics: Proactive enforcement prevents grammar violations before they corrupt graph state.
Documentation: src/tnfr/operators/grammar_dynamics.py


Grammar Application

What: Pre-validated, grammar-enforced operator application at runtime.
API: tnfr.operators.grammar_application.apply_glyph_with_grammar()
Pipeline: Grammar check → operator application → postcondition verification (integrity monitor)
Physics: Ensures every structural mutation passes U1-U6 before modifying graph state.
Documentation: src/tnfr/operators/grammar_application.py


Per-Node Φ_s Threshold

Value: PHI_S_VON_KOCH_THRESHOLD = π/4 ≈ 0.785
What: Per-node safety threshold for structural potential |Φ_s|.
Derivation: π-derived — a quarter phase-wrap, tying the bound to the one genuine structural scale (π). The constant name retains "VON_KOCH" for code-compatibility only; there is no golden-ratio or von-Koch content (the earlier empirical 0.7711 / Γ(4/3)/Γ(1/3) framing is superseded).
Usage: |Φ_s(i)| < π/4 ≈ 0.785 indicates safe per-node structural potential.
API: tnfr.constants.canonical.PHI_S_VON_KOCH_THRESHOLD
Relation to U6: Part of three-tier Φ_s monitoring: π/4 ≈ 0.785 (per-node) → π/2 ≈ 1.571 (drift confinement, half phase-wrap) → 2.0 (escape ceiling).


Regime Correspondences

Theory: The single nodal dynamics produces two empirically-anchored regimes. The external labels "classical"/"quantum-like" are comparisons only, not TNFR primitives.

Smooth-Trajectory / Overdamped-Drift Regime (High Coherence)

Condition: C(t) → 1, |∇φ| → 0
Correspondence: first order in time, q̇ = νf·F — drift velocity ∝ force, so νf is mobility (Stokes/Einstein), not inverse mass; F = ΔNFR (force ↔ structural pressure). The inertial (second-order) regime lives in the conservative symplectic substrate, not here.
API: tnfr.physics.structural_diffusion, tnfr.physics.classical_mechanics

Discrete-Mode Regime (High Dissonance)

Condition: |∇φ| ~ π, near phase singularities
Emergent: on a bounded graph the diffusion operator has a discrete spectrum of orthonormal standing-wave eigenmodes (vibrating-string / Chladni analogue), with nodal-domain ordering (Courant); uncertainty (Fourier ΔEPI·Δνf ≥ K), superposition.
API: tnfr.physics.structural_diffusion, tnfr.physics.quantum_mechanics


TNFR-Riemann Program

What: A structural attack surface relating discrete TNFR operators to the Riemann zeta function. Not a proof of RH — the bridge is the open conjecture T-HP (gap G4).
Core Operator: H^(k)(σ) = L_k + V_σ where L_k = graph Laplacian, V_σ = diagonal potential
Numerical result: the critical parameter σ_c^(k) → 1/2 as k → ∞, verified across topologies (σ_c^(k) = 1/2 + O(log⁻¹ k)).
Honest scope: TNFR-internal structural results and numerical evidence; no classical open problem is closed.
Implementation: src/tnfr/riemann/
Documentation: theory/TNFR_RIEMANN_RESEARCH_NOTES.md


Key Canonical Thresholds

Quick reference for canonical threshold values from src/tnfr/constants/canonical.py:

ThresholdValueDerivationUsage
PHI_S_VON_KOCH_THRESHOLDπ/4 ≈ 0.785π-derived (quarter phase-wrap)Per-node Φ_s safety
PHASE_GRADIENT_THRESHOLD≈ 0.18Heuristic early-warning, operational (not derived; bound is π)|∇φ| stability
K_PHI_CANONICAL_THRESHOLD0.9×π ≈ 2.827490% of wrap_angle π bound (genuine)K_φ fault zone detection
U6 canonical confinementπ/2 ≈ 1.571π-derived (half phase-wrap)ΔΦ_s drift safety
STRUCTURAL_ESCAPE_THRESHOLDe^ln(2) = 2.0Binary escape theoryΔΦ_s absolute ceiling
MIN_BUSINESS_COHERENCE≈ 0.75Operational (free parameter)Business-health cut (the canonical strong-coherence gate is the emergent π/(π+1) ≈ 0.7585)
THOL_MIN_COLLECTIVE_COHERENCE1/(π+1) ≈ 0.2415Geometric series boundFragmentation risk threshold

Contributing Guidelines

When adding new functionality:

  1. Verify theoretical foundation: Align with AGENTS.md physics
  2. Preserve canonical invariants: Follow optimized 6-invariant set
  3. Use established terminology: Reference this glossary for consistency
  4. Map to canonical operators: All functions must correspond to 13 canonical operators
  5. Validate grammar compliance: Ensure U1-U6 satisfaction
  6. Maintain English-only policy: All documentation in English for canonical terminology
  7. Write comprehensive tests: Cover invariants and operator contracts

Development Workflow:

  1. Read AGENTS.md completely - SINGLE SOURCE OF TRUTH
  2. Study UNIFIED_GRAMMAR_RULES.md for physics foundations
  3. Follow CONTRIBUTING.md for detailed guidelines
  4. Test with TESTING.md requirements

Version: 0.0.3.5 (June 2026)
Status: Canonical operational reference, aligned with the current engine, AGENTS.md and TNFR.pdf
Language: English only (canonical documentation policy)