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: src/tnfr/riemann/__init__.py

__init__.py

TNFR-Riemann spectral analysis module.

Re-founded on the canonical EMERGENT nodal dynamics: the obsolete combinatorial-Laplacian Schrödinger operator H(σ) = L_k + V_σ (the P1–P11 track) has been eliminated. The attack is now anchored on the prime-NFR nodal pulse — each integer n is an NFR with canonical structural frequency νf = log n, and

text
ζ(1/2 + iT) = Σ_n n^{-1/2} e^{-i (log n) T}

is the superposition of the integer-NFR nodal pulses; the non-trivial zeros are the heights at which they destructively interfere (see :mod:nodal_pulse). The emergent structural operator on the prime graph is the random-walk Laplacian L_rw = I − D⁻¹W (:mod:tnfr.physics.structural_diffusion), never the imposed combinatorial D − A. See theory/TNFR_RIEMANN_RESEARCH_NOTES.md for the full theoretical background.

Sub-modules

nodal_pulse Canonical foundation: the prime-NFR nodal-pulse superposition, zero detection by destructive interference, prime structural frequencies νf = log p, the emergent prime-NFR graph (L_rw), and the reference Riemann ordinates. von_mangoldt P12 TNFR prime-ladder construction reproducing the von Mangoldt series -ζ'(s)/ζ(s) = Σ_n Λ(n) n^{-s}. analytic_continuation P13 analytic continuation of the prime-ladder vM zeta to the whole complex plane; Riemann zeros realised as resonance poles. prime_ladder_hamiltonian P14 self-adjoint prime-ladder Hamiltonian whose spectrum and weighted spectral trace reproduce the P12 prime-ladder data (operational closure of gap G1 in the TNFR-Riemann programme). weil_explicit_formula P15 numerical verification of the Weil-Guinand explicit formula using the P14 Hamiltonian for the prime side; operational closure of gap G3 (zeros↔spectrum bridge). li_keiper P16 Li-Keiper positivity criterion computed from the TNFR resonance spectrum (RH-equivalent diagnostic; not a new gap closure, but a TNFR-native witness for RH). weil_positivity P17 Weil-TNFR positivity bridge: tabulates the RH-equivalent Weil functional W[σ] = Σ_γ h_σ(γ) against the canonical TNFR Lyapunov energy E_TNFR[σ] across a Gaussian-width grid. Experimental research diagnostic (does NOT close gap G4 = RH). alpha_sweep P18 admissibility / gauge sweep of α(σ) = W[σ] / E_TNFR[σ]: dense σ-grid combined with a gauge family parameterising how h_σ is encoded into (ΔNFR, φ, EPI), reusing the gauge-invariant Weil functional. Stress-tests the P17 bridge against canonical-mapping ambiguity. admissible_family_sweep P19 admissible-family extension of P18: sweeps α over multiple Schwartz-even test families (not only Gaussian), together with gauge and σ grids. nodeaware_gauge_sweep P20 node-aware gauge extension: sweeps α with gauges depending on local structural frequency ν_f and node-weight channels. coercivity_uniform P22 empirical uniform-coercivity certificate over sigma intervals, combining P19 and P20 alpha surfaces with mesh-corrected lower bound diagnostics. P23 adds stratified and segment-local interval bounds; P24 adds adaptive sigma refinement that bisects worst segments under the local Lipschitz envelope to tighten interval_lb_local near the coercivity bottleneck. paley_gap_coercivity P25 Paley-gap coercivity diagnostic in the style of Martínez Gamo, Zenodo 10.5281/zenodo.17665853 v2 (2025). Defines three Paley-gaps between the P12 closed form, the P14 spectral trace, and the classical von Mangoldt truncation. The cross gap g_cross = |Z_P14 - Z_P12| collapses to machine precision at coupling = 0 (Paley-style identity between the closed-form construction and the self-adjoint operator realisation); at coupling > 0 it measures structural deformation. Consistency diagnostic; does NOT close gap G4. hilbert_polya P27 Hilbert-Polya scaffold. Constructs the reference operator T_HP = diag(gamma_1, ..., gamma_N) on ell^2_N(N) populated by the imaginary parts of the non-trivial Riemann zeros from mpmath.zetazero. Certifies self-adjointness, trace-class shifted resolvent, Weil-Guinand closure against P14, and quantifies the operator-level gap G4 via Wasserstein-1 distance between spec(P14) = {k log p} and spec(T_HP) = {gamma_n}. Does NOT prove RH: T_HP is populated by inputting the zeros, not derived from TNFR first principles. structural_zero_density P28 Structural derivation of the smooth Riemann zero density. Derives the n-th smooth zero position ~gamma_n by Newton-solving Backlund's smooth counting function bar N(T) = theta(T)/pi + 1, where theta(T) = Im log Gamma(1/4 + iT/2) - (T/2) log pi is the Riemann-Siegel theta function -- exactly the archimedean kernel of the Weil-Guinand formula already computed by P15. Constructs the structural Hilbert-Polya operator tilde T_HP = diag(~gamma_1, ..., ~gamma_N) using ONLY TNFR archimedean ingredients (no mpmath.zetazero on the derivation side) and shows that W_1(spec(tilde T_HP), spec(T_HP)) is orders of magnitude smaller than the P27 P14<->T_HP gap. The residuals r_n = gamma_n - ~gamma_n encode the oscillating part S(T) = (1/pi) arg zeta(1/2 + iT) -- the RH content. Closes the structural origin of the smooth zero density; does NOT close G4 (bounding S(T) is the open arithmetic problem). spectral_emergence P29 Spectral universality emergence under canonical UM+RA coupling. Sweeps three canonical inter-prime coupling laws (Kuramoto-U3, phi-multiscale THOL+REMESH, PNT-logarithmic RA) on the P14 prime-ladder Hamiltonian and measures the Kolmogorov-Smirnov distance of the resulting unfolded nearest-neighbour spacing distribution to the GUE Wigner surmise (the conjectural universality class of the Riemann zeros after Montgomery 1973 / Odlyzko 1987). Exploratory diagnostic; convergence to GUE under some canonical law would constitute structural-compatibility evidence; does NOT close gap G4 (RH localisation on Re(s)=1/2). lyapunov_spectral_positivity P26 Lyapunov-spectral positivity certificate for the P14 Hamiltonian. Combines (i) exact diagonal positivity at coupling=0 with explicit gap log(2), (ii) a quantitative Kato-Rellich perturbation envelope guaranteeing strict positivity for |J_0| * ||H_coupling|| < log(2), (iii) trace-class resolvent Schatten norms, and (iv) numerical certification of the unitary flow exp(-i t H). Closes the operator-level positivity question on the finite-dimensional prime-ladder Hilbert space; does NOT close gap G4 (RH localisation on Re(s)=1/2). admissible_rescaling P30 Candidate admissible spectral-rescaling operator F_cand built ONLY from canonical TNFR ingredients (P14 eigendata + P28 smooth zero positions + canonical constants phi, gamma, pi, e). Constructs the smooth half of F_cand as the explicit operator F_smooth = U * diag(sqrt(tilde_gamma_i / lambda_i)) * U^* in the P14 eigenbasis; verifies self-adjointness of F_smooth H_P14 F_smooth^* and that its spectrum equals {tilde_gamma_i} exactly. Lifts the P28 density-level closure of the smooth zero distribution to an operator-level explicit unitary-rescaling object. Tests one canonical oscillatory enrichment (phi-modulated multiplicative perturbation) and reports the W_1 gap to the true zeros honestly (typically NOT an improvement; structural evidence for branch B2 of section 13octies). Closes sub-problem (1) of Conjecture T-HP for the smooth half only; does NOT close gap G4 = RH. dirichlet_l P32 First L-function extension: chi-twisted TNFR prime-ladder spectrum reproducing the twisted von Mangoldt series -L'(s, chi) / L(s, chi) = Sum_n chi(n) Lambda(n) n^{-s} for any Dirichlet character chi mod q. Structural analogue of P12 with weights w_{p,k} = chi(p)^k log p; primes p | q drop out of the spectrum (chi(p) = 0). Provides canonical real-character builders chi mod 3, mod 4, mod 5 (recovering Dirichlet beta function as a special case). Structural extension of the canonical TNFR-Riemann representation catalog; does NOT advance the generalised Riemann Hypothesis (GRH is RH-equivalent in every L-function and inherits the same arithmetic obstruction as G4 for zeta). analytic_continuation_dirichlet P33 Analytic continuation of the chi-twisted prime-ladder L-series (structural analogue of P13 for general Dirichlet L-functions). Provides high-precision continuation of L(s, chi) and -L'(s, chi)/L(s, chi) to all of C via mpmath.dirichlet, plus a numerical certificate that the P32 chi-twisted prime ladder agrees with the continuation on Re(s) > 1 and a critical-line scan locating non-trivial zeros of L(s, chi) as resonance poles on Re(s) = 1/2. Tested against LMFDB-tabulated first zeros of L(s, chi_3) and L(s, chi_4) = Dirichlet beta(s) with exact agreement at three-decimal resolution. Structural extension of the P13 continuation construct; does NOT advance GRH (same arithmetic obstruction as G4 for zeta). twisted_prime_ladder_hamiltonian P34 Canonical TNFR Hamiltonian on the chi-twisted prime-ladder graph (structural analogue of P14 for general Dirichlet L-functions; operational closure of gap G1_chi). Instantiates the canonical InternalHamiltonian on the disjoint union of per-prime REMESH echo ladders for primes coprime to the conductor q, then exposes the diagonal chi-twisted weight operator W^(chi) with entries W[(p,k),(p,k)] = chi(p)^k log p (complex for non-real chi). In the decoupled limit the Hamiltonian spectrum matches the P32 chi-twisted prime-ladder eigenvalues exactly, and the chi-twisted weighted spectral trace Tr(W^(chi) exp(-s H_freq)) reproduces the P32 twisted Dirichlet trace -L'(s,chi)/L(s,chi) to machine precision. Does NOT advance G4 = RH or GRH (same arithmetic obstruction); does NOT establish the chi-twisted Weil-Guinand explicit formula (that is the future P35, G3_chi). twisted_weil_explicit_formula P35 Weil-Guinand explicit formula for general primitive Dirichlet L-functions L(s, chi) (structural analogue of P15; operational closure of gap G3_chi). Verifies the identity sum_gamma h(gamma) = -g(0) log(q/pi) + (1/2 pi) integral h(t) Re psi(1/4 + a/2 + i t/2) dt + (-2 Re sum_n chi(n) Lambda(n) / sqrt(n) g(log n)) using the P34 Hamiltonian for the prime side (-2 Re Tr(W^(chi) exp(-H/2) g(H))) and Hardy-Z bisection on the critical line for the zero side. Implemented for primitive real characters (chi_3, chi_4, chi_5). Closes G3_chi operationally for every Dirichlet L-function; does NOT advance G4 = RH or GRH (the identity holds for arbitrary zero locations on Re(s) = 1/2). twisted_li_keiper P36 chi-twisted Li-Keiper positivity criterion (structural analogue of P16 for primitive real Dirichlet L-functions; GRH_chi-equivalent diagnostic). Computes the twisted Li-Keiper coefficients lambda_n(chi) = sum_rho [1 - (1 - 1/rho)^n] where rho runs over non-trivial zeros of L(s, chi) on the critical line, sourced via the P35 Hardy-Z bisection enumerator (find_dirichlet_l_zeros). Checks positivity of every lambda_n(chi) for n = 1, ..., n_max -- Lagarias' generalisation of Li 1997 makes positivity GRH_chi-equivalent. Implemented for primitive real characters (chi_3, chi_4, chi_5). Provides a TNFR-native finite diagnostic witness for GRH on each L(s, chi); does NOT prove GRH (a finite positivity check is necessary but not sufficient) and does NOT advance G4 for zeta or the arithmetic obstruction of GRH. twisted_weil_positivity P37 chi-twisted Weil-TNFR positivity bridge (structural analogue of P17 for primitive real Dirichlet L-functions). Two operations: (1) chi-twisted Weil positivity certificate, computing W_chi[sigma] = 2 sum_{gamma > 0} h_sigma(gamma) over zeros of L(s, chi) two ways -- via the P35 Hardy-Z bisection enumerator (zero side) and via the chi-twisted Weil-Guinand explicit formula with the P34 chi-twisted prime-ladder Hamiltonian for the prime side -- and checking W_chi[sigma] >= 0; (2) chi-twisted TNFR Lyapunov bridge alpha_chi(sigma) := W_chi[sigma] / E_TNFR_chi[sigma] tabulated across a Gaussian width grid using a canonical structural test state on the P34 graph. Implemented for primitive real characters (chi_3, chi_4, chi_5). GRH_chi-equivalent diagnostic on a finite Gaussian grid; does NOT prove GRH for any L(s, chi) and does NOT advance G4 = RH. twisted_alpha_sweep P38 chi-twisted admissibility / gauge sweep of alpha_chi(sigma; g) = W_chi[sigma] / E_TNFR_chi[sigma; g] across a Gaussian width grid and the canonical six-gauge family DEFAULT_GAUGES inherited from the zeta-track P18 stress test. Structural analogue of P18 for primitive real Dirichlet L-functions: probes robustness of the P37 chi-twisted positivity bridge under canonical-mapping ambiguity by computing alpha_chi(sigma; g) over (sigma, gauge) and reporting aggregate flags (W_chi positivity, alpha_chi positivity, alpha_chi extrema). Implemented for primitive real characters (chi_3, chi_4, chi_5). Diagnostic only; does NOT prove GRH for any L(s, chi) and does NOT advance G4 = RH. twisted_admissible_family_sweep P39 chi-twisted admissible-family + gauge sweep of alpha_chi(sigma; f, g) = W_chi[sigma; f] / E_TNFR_chi[sigma; f, g] across the three admissible Schwartz-even families inherited from the zeta-track P19 (gaussian, gaussian_mixture, hermite2_gaussian) crossed with the six canonical structural gauges DEFAULT_GAUGES from P18. Structural analogue of P19 for primitive real Dirichlet L-functions: probes robustness of the P37 chi-twisted positivity bridge jointly under (i) canonical-mapping ambiguity (gauge sweep, P38) and (ii) test-profile ambiguity (admissible-family sweep, P19), producing a dense (family, gauge, sigma) certificate. Implemented for primitive real characters (chi_3, chi_4, chi_5). Diagnostic only; does NOT prove GRH for any L(s, chi) and does NOT advance G4 = RH. twisted_nodeaware_gauge_sweep P40 chi-twisted node-aware gauge sweep of alpha_chi(sigma; f, g) = W_chi[sigma; f] / E_TNFR_chi[sigma; f, g] where g varies over the node-aware gauges DEFAULT_NODEAWARE_GAUGES inherited unchanged from the zeta-track P20 (nuf_pressure, nuf_phase, weight_pressure, mixed_affine). Each gauge depends on the per-node normalised structural frequency hat nu_f(n) and normalised node-weight hat w(n) = log p / max log p of the P34 chi-twisted prime-ladder graph. Structural analogue of P20 for primitive real Dirichlet L-functions: probes robustness of the P37 chi-twisted positivity bridge under node-aware canonical- mapping ambiguity crossed with the admissible-family sweep (P19). Implemented for primitive real characters (chi_3, chi_4, chi_5). Diagnostic only; does NOT prove GRH for any L(s, chi) and does NOT advance G4 = RH. twisted_hermite_family P41 chi-twisted Hermite2-Gaussian eta-parameter sweep of alpha_chi(sigma; eta, g) = W_chi[sigma; h_{sigma,eta}] / E_TNFR_chi[sigma; eta, g] where h_{sigma,eta}(t) = (1 + eta (t/sigma)^2) exp(-t^2/(2 sigma^2)) is the second-order Hermite-Gaussian admissible profile inherited from the zeta-track P21 (admissible_family_sweep). P39 fixed eta = 0.25; P41 sweeps eta over DEFAULT_HERMITE2_ETAS = (0.0, 0.1, 0.25, 0.5, 1.0, 2.0) where eta = 0.0 recovers the pure Gaussian baseline. Structural analogue of P21 on the chi-twisted bundle: probes robustness of the P37 positivity bridge under polynomial-envelope deformation of the test profile. Implemented for primitive real characters (chi_3, chi_4, chi_5). Diagnostic only; does NOT prove GRH for any L(s, chi) and does NOT advance G4 = RH. twisted_coercivity_uniform P42 empirical interval-level chi-twisted uniform-coercivity certificate. Structural analogue of P22 / P23 / P24 on the chi-twisted bundle: samples alpha_chi(sigma; f, g) on a dense log-spaced sigma grid via P39 (scalar gauges) and P40 (node-aware gauges), computes a finite-difference Lipschitz proxy, and lifts pointwise positivity to three interval lower bounds (global, stratified, segment-local) with optional adaptive bisection of the worst segments. Implemented for primitive real characters (chi_3, chi_4, chi_5). Diagnostic only; does NOT prove GRH for any L(s, chi) and does NOT advance G4 = RH. twisted_paley_gap_coercivity P43 chi-twisted Paley-gap consistency diagnostic. Structural analogue of P25 on the chi-twisted bundle: compares three representations of -L'(s,chi)/L(s,chi) -- the P32 closed-form weighted spectrum, the P34 chi-twisted spectral trace, and the classical truncated Dirichlet series sum chi(n) Lambda(n)/n^s -- via three absolute Paley-gap quantities g_P32, g_P34, g_cross. The cross gap vanishes identically at coupling = 0 (Paley-style identity between closed-form and self-adjoint realisations); non-zero coupling exposes the deformation magnitude. Implemented for primitive real characters (chi_3, chi_4, chi_5). Diagnostic only; does NOT prove GRH for any L(s, chi) and does NOT advance G4 = RH. twisted_lyapunov_spectral_positivity P44 chi-twisted Lyapunov-spectral positivity certificate. L-track analogue of P26 on the chi-twisted prime-ladder Hamiltonian (P34): four-ingredient certificate (self-adjointness, strict positivity with explicit Kato-Rellich envelope, trace-class resolvent, unitary flow) on the finite-dimensional chi-twisted prime-ladder Hilbert space. The unperturbed gap is log(min prime not dividing q): log 2 for chi_3/chi_5, log 3 for chi_4. Implemented for primitive real characters (chi_3, chi_4, chi_5). Diagnostic only; does NOT prove GRH for any L(s, chi) and does NOT advance G4 = RH. twisted_hilbert_polya P45 chi-twisted Hilbert-Polya scaffold. L-track analogue of P27: builds the explicit reference operator T_HP^(chi) = diag(gamma_n) where gamma_n are positive zeros of L(s, chi) located by Hardy-Z bisection, and certifies self-adjointness, trace-class resolvent, chi-twisted Weil-Guinand consistency with P34, and Wasserstein-1 spectral gap against spec(P34 | primes_active). Implemented for primitive real characters (chi_3, chi_4, chi_5). Diagnostic only; does NOT prove GRH for any L(s, chi) and does NOT advance G4 = RH. twisted_structural_zero_density P46 chi-twisted structural zero density. L-track analogue of P28: derives the smooth zero positions tilde gamma_n^(chi) of L(s, chi) purely from the archimedean phase theta_chi(T) = Im log Gamma( (1/2+a)/2 + iT/2) + (T/2) log(q/pi) of the completed L-function, builds tilde T_HP^(chi) = diag(tilde gamma_n^(chi)), and quantifies the structural reduction W_1(spec(tilde T_HP^(chi)), spec(T_HP^(chi))) vs the P45 baseline W_1(spec(P34|p!|q), spec(T_HP^(chi))). Residuals r_n^(chi) = gamma_n - tilde gamma_n encode S_chi(T) = (1/pi) arg L(1/2 + iT, chi). Implemented for primitive real characters (chi_3, chi_4, chi_5). Diagnostic only; does NOT prove GRH for any L(s, chi) and does NOT advance G4 = RH. twisted_spectral_emergence P47 chi-twisted spectral emergence under canonical coupling. L-track analogue of P29: sweeps three canonical TNFR inter-prime coupling laws (kuramoto_u3, phi_multiscale, pnt_logarithmic) on the P34 chi-twisted prime-ladder Hamiltonian with explicit chi(p)chi(q) twist factors, then measures Kolmogorov-Smirnov distance of the unfolded nearest-neighbour spacing distribution to the GUE Wigner surmise (conjectural universality class of the non-trivial zeros of L(s, chi)). Diagnostic only; KS_GUE -> 0 would constitute structural-compatibility evidence; does NOT prove GRH for any L(s, chi) and does NOT close gap G4 = RH. twisted_admissible_rescaling P48 chi-twisted admissible spectral-rescaling operator. L-track analogue of P30: lifts the P46 chi-twisted smooth zero density from density level to operator level by constructing the canonical diagonal rescaling F^(chi)_smooth = U_P34 * diag(sqrt(tilde gamma_i^(chi) / lambda_i)) * U_P34^*. Verifies self-adjointness preservation and exact spectrum match against the P46 smooth targets, then measures W_1 gap to true chi-twisted L(s, chi) zeros and sweeps the three canonical oscillatory enrichments (phi_log, gamma_e, pi_density) honestly per character. Closes sub-problem (1) of Conjecture T-HP for the smooth half only, per primitive real character. G4 = RH and GRH_chi BOTH remain OPEN. oscillatory_correction P31 Branch B1 retry: prime-ladder oscillatory correction of the P28 / P30 smooth targets. Reconstructs S(T) = pi^{-1} arg zeta(1/2 + iT) from the canonical TNFR prime-ladder spectrum {(k log p, log p)} via the Riemann-von Mangoldt template, then applies the Newton step gamma_i = tilde gamma_i - S(tilde gamma_i) / bar N' (tilde gamma_i) on the canonical P28 smooth targets. Uses ONLY canonical TNFR ingredients (no mpmath.zetazero on the construction side). Reports the residual W_1 vs the true Riemann zeros honestly. Positive improvement is branch B1 evidence; negative improvement corroborates branch B2. Does NOT close gap G4 = RH, does NOT close sub-problems (2) and (3) of Conjecture T-HP. twisted_oscillatory_correction P49 chi-twisted prime-ladder oscillatory correction. L-track analogue of P31: reconstructs S_chi(T) = pi^{-1} arg L(1/2 + iT, chi) from the canonical P34 chi-twisted prime-ladder spectrum {(k log p, chi(p)^k log p)} via the chi-twisted Riemann-von Mangoldt template, then applies the Newton step gamma_n^(chi) = tilde gamma_n^(chi) - S_chi(tilde gamma_n^(chi)) / bar N'_chi( tilde gamma_n^(chi)) on the canonical P46 chi-twisted smooth targets per primitive real character. Uses ONLY canonical chi-twisted TNFR ingredients (no mpmath chi-zeros on the construction side). Reports the residual W_1 vs the true L(s, chi) zeros honestly per character. Positive improvement is branch B1 evidence at the L-track level; negative improvement corroborates branch B2. Closes the final ZETA/L attack-surface parity item (P31 -> P49): every canonical zeta-track operator from P12 through P31 now has a matching chi-twisted L-track counterpart. Does NOT close G4 = RH, does NOT prove GRH for any L(s, chi). remesh_infinity_residue_split P50 function-space diagnostic that lifts the N15 REMESH-infinity closure (theory/REMESH_INFINITY_DERIVATION.md) into the TNFR-Riemann program. Splits the canonical P31 oscillatory correction signal S_TNFR(T) into its projections on range(R_infinity) and ker(R_infinity) using the N15-resonant Fourier-mode mask at the canonical pair (tau_l, tau_g) = (4, 8). Pre-registered structural prediction: the prime-ladder spectrum has Fourier support exclusively at {k log p}, which by Baker's theorem on linear independence of logarithms of algebraic numbers is disjoint from the N15-resonant rational-multiple-of- pi lattice; therefore the canonical reconstruction must lie asymptotically in ker(R_infinity). Verdicts: RESIDUE_IN_KER_ONLY (branch B2 evidence at the function-space level; corroborates the section 13septies / 13nonies structural identification of the T-HP residual obstruction with the oscillatory half), RESIDUE_IN_RANGE_ONLY (would refute P31), RESIDUE_MIXED (gauge leak in P30 or boundary artefact). Does NOT advance G4 = RH; does NOT close T-HP; does NOT promote any new canonical operator beyond the 13-operator catalog. Complementary to the section 13vicies-novies graph-iteration- matrix tests (which act on EPI-history state vectors): P50 acts on a function in H^2(T-axis), a different mathematical object.

Source Code

python
"""TNFR-Riemann spectral analysis module.

Re-founded on the canonical EMERGENT nodal dynamics: the obsolete
combinatorial-Laplacian Schrödinger operator ``H(σ) = L_k + V_σ`` (the P1–P11
track) has been eliminated. The attack is now anchored on the prime-NFR
**nodal pulse** — each integer ``n`` is an NFR with canonical structural
frequency ``νf = log n``, and

    ζ(1/2 + iT) = Σ_n n^{-1/2} e^{-i (log n) T}

is the superposition of the integer-NFR nodal pulses; the non-trivial zeros are
the heights at which they destructively interfere (see :mod:`nodal_pulse`). The
emergent structural operator on the prime graph is the random-walk Laplacian
``L_rw = I − D⁻¹W`` (:mod:`tnfr.physics.structural_diffusion`), never the imposed
combinatorial ``D − A``.
See theory/TNFR_RIEMANN_RESEARCH_NOTES.md for the full theoretical background.

Sub-modules
-----------
nodal_pulse
    Canonical foundation: the prime-NFR nodal-pulse superposition, zero
    detection by destructive interference, prime structural frequencies
    ``νf = log p``, the emergent prime-NFR graph (``L_rw``), and the reference
    Riemann ordinates.
von_mangoldt
    P12 TNFR prime-ladder construction reproducing the von Mangoldt
    series  -ζ'(s)/ζ(s) = Σ_n Λ(n) n^{-s}.
analytic_continuation
    P13 analytic continuation of the prime-ladder vM zeta to the
    whole complex plane; Riemann zeros realised as resonance poles.
prime_ladder_hamiltonian
    P14 self-adjoint prime-ladder Hamiltonian whose spectrum and
    weighted spectral trace reproduce the P12 prime-ladder data
    (operational closure of gap G1 in the TNFR-Riemann programme).
weil_explicit_formula
    P15 numerical verification of the Weil-Guinand explicit formula
    using the P14 Hamiltonian for the prime side; operational
    closure of gap G3 (zeros↔spectrum bridge).
li_keiper
    P16 Li-Keiper positivity criterion computed from the TNFR
    resonance spectrum (RH-equivalent diagnostic; not a new gap
    closure, but a TNFR-native witness for RH).
weil_positivity
    P17 Weil-TNFR positivity bridge: tabulates the RH-equivalent
    Weil functional W[σ] = Σ_γ h_σ(γ) against the canonical TNFR
    Lyapunov energy E_TNFR[σ] across a Gaussian-width grid.
    Experimental research diagnostic (does NOT close gap G4 = RH).
alpha_sweep
    P18 admissibility / gauge sweep of α(σ) = W[σ] / E_TNFR[σ]:
    dense σ-grid combined with a gauge family parameterising how
    h_σ is encoded into (ΔNFR, φ, EPI), reusing the gauge-invariant
    Weil functional.  Stress-tests the P17 bridge against
    canonical-mapping ambiguity.
admissible_family_sweep
    P19 admissible-family extension of P18: sweeps α over multiple
    Schwartz-even test families (not only Gaussian), together with
    gauge and σ grids.
nodeaware_gauge_sweep
    P20 node-aware gauge extension: sweeps α with gauges depending on
    local structural frequency ν_f and node-weight channels.
coercivity_uniform
    P22 empirical uniform-coercivity certificate over sigma intervals,
    combining P19 and P20 alpha surfaces with mesh-corrected lower
    bound diagnostics. P23 adds stratified and segment-local interval
    bounds; P24 adds adaptive sigma refinement that bisects worst
    segments under the local Lipschitz envelope to tighten
    interval_lb_local near the coercivity bottleneck.
paley_gap_coercivity
    P25 Paley-gap coercivity diagnostic in the style of Martínez
    Gamo, Zenodo 10.5281/zenodo.17665853 v2 (2025). Defines three
    Paley-gaps between the P12 closed form, the P14 spectral trace,
    and the classical von Mangoldt truncation. The cross gap
    g_cross = |Z_P14 - Z_P12| collapses to machine precision at
    coupling = 0 (Paley-style identity between the closed-form
    construction and the self-adjoint operator realisation); at
    coupling > 0 it measures structural deformation. Consistency
    diagnostic; does NOT close gap G4.
hilbert_polya
    P27 Hilbert-Polya scaffold. Constructs the reference operator
    T_HP = diag(gamma_1, ..., gamma_N) on ell^2_N(N) populated by
    the imaginary parts of the non-trivial Riemann zeros from
    mpmath.zetazero. Certifies self-adjointness, trace-class
    shifted resolvent, Weil-Guinand closure against P14, and
    quantifies the operator-level gap G4 via Wasserstein-1
    distance between spec(P14) = {k log p} and spec(T_HP) =
    {gamma_n}. Does NOT prove RH: T_HP is populated by inputting
    the zeros, not derived from TNFR first principles.
structural_zero_density
    P28 Structural derivation of the smooth Riemann zero density.
    Derives the n-th smooth zero position ~gamma_n by Newton-solving
    Backlund's smooth counting function bar N(T) = theta(T)/pi + 1,
    where theta(T) = Im log Gamma(1/4 + iT/2) - (T/2) log pi is the
    Riemann-Siegel theta function -- exactly the archimedean kernel
    of the Weil-Guinand formula already computed by P15. Constructs
    the structural Hilbert-Polya operator tilde T_HP =
    diag(~gamma_1, ..., ~gamma_N) using ONLY TNFR archimedean
    ingredients (no mpmath.zetazero on the derivation side) and
    shows that W_1(spec(tilde T_HP), spec(T_HP)) is orders of
    magnitude smaller than the P27 P14<->T_HP gap. The residuals
    r_n = gamma_n - ~gamma_n encode the oscillating part
    S(T) = (1/pi) arg zeta(1/2 + iT) -- the RH content. Closes
    the structural origin of the smooth zero density; does NOT
    close G4 (bounding S(T) is the open arithmetic problem).
spectral_emergence
    P29 Spectral universality emergence under canonical UM+RA
    coupling. Sweeps three canonical inter-prime coupling laws
    (Kuramoto-U3, phi-multiscale THOL+REMESH, PNT-logarithmic RA)
    on the P14 prime-ladder Hamiltonian and measures the
    Kolmogorov-Smirnov distance of the resulting unfolded
    nearest-neighbour spacing distribution to the GUE Wigner
    surmise (the conjectural universality class of the Riemann
    zeros after Montgomery 1973 / Odlyzko 1987). Exploratory
    diagnostic; convergence to GUE under some canonical law would
    constitute structural-compatibility evidence; does NOT close
    gap G4 (RH localisation on Re(s)=1/2).
lyapunov_spectral_positivity
    P26 Lyapunov-spectral positivity certificate for the P14
    Hamiltonian. Combines (i) exact diagonal positivity at coupling=0
    with explicit gap log(2), (ii) a quantitative Kato-Rellich
    perturbation envelope guaranteeing strict positivity for
    |J_0| * ||H_coupling|| < log(2), (iii) trace-class resolvent
    Schatten norms, and (iv) numerical certification of the unitary
    flow exp(-i t H). Closes the operator-level positivity question
    on the finite-dimensional prime-ladder Hilbert space; does NOT
    close gap G4 (RH localisation on Re(s)=1/2).
admissible_rescaling
    P30 Candidate admissible spectral-rescaling operator
    F_cand built ONLY from canonical TNFR ingredients
    (P14 eigendata + P28 smooth zero positions +
    canonical constants phi, gamma, pi, e). Constructs the
    smooth half of F_cand as the explicit operator
    F_smooth = U * diag(sqrt(tilde_gamma_i / lambda_i)) * U^*
    in the P14 eigenbasis; verifies self-adjointness of
    F_smooth H_P14 F_smooth^* and that its spectrum equals
    {tilde_gamma_i} exactly. Lifts the P28 density-level
    closure of the smooth zero distribution to an
    operator-level explicit unitary-rescaling object. Tests
    one canonical oscillatory enrichment (phi-modulated
    multiplicative perturbation) and reports the W_1 gap to
    the true zeros honestly (typically NOT an improvement;
    structural evidence for branch B2 of section 13octies).
    Closes sub-problem (1) of Conjecture T-HP for the
    smooth half only; does NOT close gap G4 = RH.
dirichlet_l
    P32 First L-function extension: chi-twisted TNFR prime-ladder
    spectrum reproducing the twisted von Mangoldt series
    -L'(s, chi) / L(s, chi) = Sum_n chi(n) Lambda(n) n^{-s} for any
    Dirichlet character chi mod q. Structural analogue of P12 with
    weights w_{p,k} = chi(p)^k log p; primes p | q drop out of the
    spectrum (chi(p) = 0). Provides canonical real-character builders
    chi mod 3, mod 4, mod 5 (recovering Dirichlet beta function as a
    special case). Structural extension of the canonical TNFR-Riemann
    representation catalog; does NOT advance the generalised Riemann
    Hypothesis (GRH is RH-equivalent in every L-function and inherits
    the same arithmetic obstruction as G4 for zeta).
analytic_continuation_dirichlet
    P33 Analytic continuation of the chi-twisted prime-ladder L-series
    (structural analogue of P13 for general Dirichlet L-functions).
    Provides high-precision continuation of L(s, chi) and -L'(s,
    chi)/L(s, chi) to all of C via mpmath.dirichlet, plus a
    numerical certificate that the P32 chi-twisted prime ladder
    agrees with the continuation on Re(s) > 1 and a critical-line
    scan locating non-trivial zeros of L(s, chi) as resonance poles
    on Re(s) = 1/2. Tested against LMFDB-tabulated first zeros of
    L(s, chi_3) and L(s, chi_4) = Dirichlet beta(s) with exact
    agreement at three-decimal resolution. Structural extension of
    the P13 continuation construct; does NOT advance GRH (same
    arithmetic obstruction as G4 for zeta).
twisted_prime_ladder_hamiltonian
    P34 Canonical TNFR Hamiltonian on the chi-twisted prime-ladder
    graph (structural analogue of P14 for general Dirichlet
    L-functions; operational closure of gap G1_chi). Instantiates the
    canonical InternalHamiltonian on the disjoint union of per-prime
    REMESH echo ladders for primes coprime to the conductor q, then
    exposes the diagonal chi-twisted weight operator W^(chi) with
    entries W[(p,k),(p,k)] = chi(p)^k log p (complex for non-real
    chi). In the decoupled limit the Hamiltonian spectrum matches the
    P32 chi-twisted prime-ladder eigenvalues exactly, and the
    chi-twisted weighted spectral trace Tr(W^(chi) exp(-s H_freq))
    reproduces the P32 twisted Dirichlet trace -L'(s,chi)/L(s,chi)
    to machine precision. Does NOT advance G4 = RH or GRH (same
    arithmetic obstruction); does NOT establish the chi-twisted
    Weil-Guinand explicit formula (that is the future P35, G3_chi).
twisted_weil_explicit_formula
    P35 Weil-Guinand explicit formula for general primitive Dirichlet
    L-functions L(s, chi) (structural analogue of P15; operational
    closure of gap G3_chi). Verifies the identity
        sum_gamma h(gamma)
           = -g(0) log(q/pi)
             + (1/2 pi) integral h(t) Re psi(1/4 + a/2 + i t/2) dt
             + (-2 Re sum_n chi(n) Lambda(n) / sqrt(n) g(log n))
    using the P34 Hamiltonian for the prime side (-2 Re Tr(W^(chi)
    exp(-H/2) g(H))) and Hardy-Z bisection on the critical line for
    the zero side. Implemented for primitive real characters
    (chi_3, chi_4, chi_5). Closes G3_chi operationally for every
    Dirichlet L-function; does NOT advance G4 = RH or GRH (the
    identity holds for arbitrary zero locations on Re(s) = 1/2).
twisted_li_keiper
    P36 chi-twisted Li-Keiper positivity criterion (structural
    analogue of P16 for primitive real Dirichlet L-functions;
    GRH_chi-equivalent diagnostic). Computes the twisted Li-Keiper
    coefficients
        lambda_n(chi) = sum_rho [1 - (1 - 1/rho)^n]
    where rho runs over non-trivial zeros of L(s, chi) on the
    critical line, sourced via the P35 Hardy-Z bisection enumerator
    (find_dirichlet_l_zeros). Checks positivity of every
    lambda_n(chi) for n = 1, ..., n_max -- Lagarias' generalisation
    of Li 1997 makes positivity GRH_chi-equivalent. Implemented for
    primitive real characters (chi_3, chi_4, chi_5). Provides a
    TNFR-native finite diagnostic witness for GRH on each L(s, chi);
    does NOT prove GRH (a finite positivity check is necessary but
    not sufficient) and does NOT advance G4 for zeta or the
    arithmetic obstruction of GRH.
twisted_weil_positivity
    P37 chi-twisted Weil-TNFR positivity bridge (structural analogue
    of P17 for primitive real Dirichlet L-functions). Two operations:
    (1) chi-twisted Weil positivity certificate, computing
        W_chi[sigma] = 2 sum_{gamma > 0} h_sigma(gamma)
    over zeros of L(s, chi) two ways -- via the P35 Hardy-Z bisection
    enumerator (zero side) and via the chi-twisted Weil-Guinand
    explicit formula with the P34 chi-twisted prime-ladder
    Hamiltonian for the prime side -- and checking W_chi[sigma] >= 0;
    (2) chi-twisted TNFR Lyapunov bridge alpha_chi(sigma) :=
        W_chi[sigma] / E_TNFR_chi[sigma]
    tabulated across a Gaussian width grid using a canonical
    structural test state on the P34 graph. Implemented for primitive
    real characters (chi_3, chi_4, chi_5). GRH_chi-equivalent
    diagnostic on a finite Gaussian grid; does NOT prove GRH for any
    L(s, chi) and does NOT advance G4 = RH.
twisted_alpha_sweep
    P38 chi-twisted admissibility / gauge sweep of
        alpha_chi(sigma; g) = W_chi[sigma] / E_TNFR_chi[sigma; g]
    across a Gaussian width grid and the canonical six-gauge family
    DEFAULT_GAUGES inherited from the zeta-track P18 stress test.
    Structural analogue of P18 for primitive real Dirichlet
    L-functions: probes robustness of the P37 chi-twisted positivity
    bridge under canonical-mapping ambiguity by computing
    alpha_chi(sigma; g) over (sigma, gauge) and reporting aggregate
    flags (W_chi positivity, alpha_chi positivity, alpha_chi extrema).
    Implemented for primitive real characters (chi_3, chi_4, chi_5).
    Diagnostic only; does NOT prove GRH for any L(s, chi) and does
    NOT advance G4 = RH.
twisted_admissible_family_sweep
    P39 chi-twisted admissible-family + gauge sweep of
        alpha_chi(sigma; f, g) = W_chi[sigma; f] / E_TNFR_chi[sigma; f, g]
    across the three admissible Schwartz-even families inherited
    from the zeta-track P19 (gaussian, gaussian_mixture,
    hermite2_gaussian) crossed with the six canonical structural
    gauges DEFAULT_GAUGES from P18. Structural analogue of P19 for
    primitive real Dirichlet L-functions: probes robustness of the
    P37 chi-twisted positivity bridge jointly under (i)
    canonical-mapping ambiguity (gauge sweep, P38) and (ii)
    test-profile ambiguity (admissible-family sweep, P19),
    producing a dense (family, gauge, sigma) certificate.
    Implemented for primitive real characters (chi_3, chi_4, chi_5).
    Diagnostic only; does NOT prove GRH for any L(s, chi) and does
    NOT advance G4 = RH.
twisted_nodeaware_gauge_sweep
    P40 chi-twisted node-aware gauge sweep of
        alpha_chi(sigma; f, g) = W_chi[sigma; f] / E_TNFR_chi[sigma; f, g]
    where g varies over the node-aware gauges DEFAULT_NODEAWARE_GAUGES
    inherited unchanged from the zeta-track P20 (nuf_pressure,
    nuf_phase, weight_pressure, mixed_affine). Each gauge depends on
    the per-node normalised structural frequency hat nu_f(n) and
    normalised node-weight hat w(n) = log p / max log p of the P34
    chi-twisted prime-ladder graph. Structural analogue of P20 for
    primitive real Dirichlet L-functions: probes robustness of the
    P37 chi-twisted positivity bridge under node-aware canonical-
    mapping ambiguity crossed with the admissible-family sweep (P19).
    Implemented for primitive real characters (chi_3, chi_4, chi_5).
    Diagnostic only; does NOT prove GRH for any L(s, chi) and does
    NOT advance G4 = RH.
twisted_hermite_family
    P41 chi-twisted Hermite2-Gaussian eta-parameter sweep of
        alpha_chi(sigma; eta, g) = W_chi[sigma; h_{sigma,eta}]
            / E_TNFR_chi[sigma; eta, g]
    where h_{sigma,eta}(t) = (1 + eta (t/sigma)^2) exp(-t^2/(2 sigma^2))
    is the second-order Hermite-Gaussian admissible profile inherited
    from the zeta-track P21 (admissible_family_sweep). P39 fixed
    eta = 0.25; P41 sweeps eta over DEFAULT_HERMITE2_ETAS =
    (0.0, 0.1, 0.25, 0.5, 1.0, 2.0) where eta = 0.0 recovers the
    pure Gaussian baseline. Structural analogue of P21 on the
    chi-twisted bundle: probes robustness of the P37 positivity
    bridge under polynomial-envelope deformation of the test profile.
    Implemented for primitive real characters (chi_3, chi_4, chi_5).
    Diagnostic only; does NOT prove GRH for any L(s, chi) and does
    NOT advance G4 = RH.
twisted_coercivity_uniform
    P42 empirical interval-level chi-twisted uniform-coercivity
    certificate.  Structural analogue of P22 / P23 / P24 on the
    chi-twisted bundle: samples alpha_chi(sigma; f, g) on a dense
    log-spaced sigma grid via P39 (scalar gauges) and P40 (node-aware
    gauges), computes a finite-difference Lipschitz proxy, and lifts
    pointwise positivity to three interval lower bounds (global,
    stratified, segment-local) with optional adaptive bisection of
    the worst segments.  Implemented for primitive real characters
    (chi_3, chi_4, chi_5).  Diagnostic only; does NOT prove GRH for
    any L(s, chi) and does NOT advance G4 = RH.
twisted_paley_gap_coercivity
    P43 chi-twisted Paley-gap consistency diagnostic.  Structural
    analogue of P25 on the chi-twisted bundle: compares three
    representations of -L'(s,chi)/L(s,chi) -- the P32 closed-form
    weighted spectrum, the P34 chi-twisted spectral trace, and the
    classical truncated Dirichlet series sum chi(n) Lambda(n)/n^s --
    via three absolute Paley-gap quantities g_P32, g_P34, g_cross.
    The cross gap vanishes identically at coupling = 0 (Paley-style
    identity between closed-form and self-adjoint realisations);
    non-zero coupling exposes the deformation magnitude.  Implemented
    for primitive real characters (chi_3, chi_4, chi_5).  Diagnostic
    only; does NOT prove GRH for any L(s, chi) and does NOT advance
    G4 = RH.
twisted_lyapunov_spectral_positivity
    P44 chi-twisted Lyapunov-spectral positivity certificate.
    L-track analogue of P26 on the chi-twisted prime-ladder
    Hamiltonian (P34): four-ingredient certificate (self-adjointness,
    strict positivity with explicit Kato-Rellich envelope, trace-class
    resolvent, unitary flow) on the finite-dimensional chi-twisted
    prime-ladder Hilbert space.  The unperturbed gap is
    log(min prime not dividing q): log 2 for chi_3/chi_5, log 3 for
    chi_4.  Implemented for primitive real characters (chi_3, chi_4,
    chi_5).  Diagnostic only; does NOT prove GRH for any L(s, chi)
    and does NOT advance G4 = RH.
twisted_hilbert_polya
    P45 chi-twisted Hilbert-Polya scaffold.  L-track analogue of P27:
    builds the explicit reference operator T_HP^(chi) = diag(gamma_n)
    where gamma_n are positive zeros of L(s, chi) located by Hardy-Z
    bisection, and certifies self-adjointness, trace-class resolvent,
    chi-twisted Weil-Guinand consistency with P34, and Wasserstein-1
    spectral gap against spec(P34 | primes_active).  Implemented for
    primitive real characters (chi_3, chi_4, chi_5).  Diagnostic only;
    does NOT prove GRH for any L(s, chi) and does NOT advance G4 = RH.
twisted_structural_zero_density
    P46 chi-twisted structural zero density.  L-track analogue of P28:
    derives the smooth zero positions tilde gamma_n^(chi) of L(s, chi)
    purely from the archimedean phase theta_chi(T) = Im log Gamma(
    (1/2+a)/2 + iT/2) + (T/2) log(q/pi) of the completed L-function,
    builds tilde T_HP^(chi) = diag(tilde gamma_n^(chi)), and quantifies
    the structural reduction
    W_1(spec(tilde T_HP^(chi)), spec(T_HP^(chi))) vs the P45 baseline
    W_1(spec(P34|p!|q), spec(T_HP^(chi))).  Residuals r_n^(chi) = gamma_n
    - tilde gamma_n encode S_chi(T) = (1/pi) arg L(1/2 + iT, chi).
    Implemented for primitive real characters (chi_3, chi_4, chi_5).
    Diagnostic only; does NOT prove GRH for any L(s, chi) and does NOT
    advance G4 = RH.
twisted_spectral_emergence
    P47 chi-twisted spectral emergence under canonical coupling.
    L-track analogue of P29: sweeps three canonical TNFR inter-prime
    coupling laws (kuramoto_u3, phi_multiscale, pnt_logarithmic) on
    the P34 chi-twisted prime-ladder Hamiltonian with explicit
    chi(p)chi(q) twist factors, then measures Kolmogorov-Smirnov
    distance of the unfolded nearest-neighbour spacing distribution
    to the GUE Wigner surmise (conjectural universality class of the
    non-trivial zeros of L(s, chi)).  Diagnostic only; KS_GUE -> 0
    would constitute structural-compatibility evidence; does NOT
    prove GRH for any L(s, chi) and does NOT close gap G4 = RH.
twisted_admissible_rescaling
    P48 chi-twisted admissible spectral-rescaling operator.  L-track
    analogue of P30: lifts the P46 chi-twisted smooth zero density
    from density level to operator level by constructing the
    canonical diagonal rescaling F^(chi)_smooth = U_P34 *
    diag(sqrt(tilde gamma_i^(chi) / lambda_i)) * U_P34^*.  Verifies
    self-adjointness preservation and exact spectrum match against
    the P46 smooth targets, then measures W_1 gap to true chi-twisted
    L(s, chi) zeros and sweeps the three canonical oscillatory
    enrichments (phi_log, gamma_e, pi_density) honestly per
    character.  Closes sub-problem (1) of Conjecture T-HP for the
    smooth half only, per primitive real character.  G4 = RH and
    GRH_chi BOTH remain OPEN.
oscillatory_correction
    P31 Branch B1 retry: prime-ladder oscillatory correction of the
    P28 / P30 smooth targets. Reconstructs S(T) = pi^{-1} arg zeta(1/2
    + iT) from the canonical TNFR prime-ladder spectrum {(k log p,
    log p)} via the Riemann-von Mangoldt template, then applies the
    Newton step gamma_i = tilde gamma_i - S(tilde gamma_i) / bar N'
    (tilde gamma_i) on the canonical P28 smooth targets. Uses ONLY
    canonical TNFR ingredients (no mpmath.zetazero on the
    construction side). Reports the residual W_1 vs the true Riemann
    zeros honestly. Positive improvement is branch B1 evidence;
    negative improvement corroborates branch B2. Does NOT close gap
    G4 = RH, does NOT close sub-problems (2) and (3) of Conjecture
    T-HP.
twisted_oscillatory_correction
    P49 chi-twisted prime-ladder oscillatory correction.  L-track
    analogue of P31: reconstructs S_chi(T) = pi^{-1} arg L(1/2 + iT,
    chi) from the canonical P34 chi-twisted prime-ladder spectrum
    {(k log p, chi(p)^k log p)} via the chi-twisted Riemann-von
    Mangoldt template, then applies the Newton step gamma_n^(chi) =
    tilde gamma_n^(chi) - S_chi(tilde gamma_n^(chi)) / bar N'_chi(
    tilde gamma_n^(chi)) on the canonical P46 chi-twisted smooth
    targets per primitive real character.  Uses ONLY canonical
    chi-twisted TNFR ingredients (no mpmath chi-zeros on the
    construction side).  Reports the residual W_1 vs the true L(s,
    chi) zeros honestly per character.  Positive improvement is
    branch B1 evidence at the L-track level; negative improvement
    corroborates branch B2.  Closes the final ZETA/L attack-surface
    parity item (P31 -> P49): every canonical zeta-track operator
    from P12 through P31 now has a matching chi-twisted L-track
    counterpart.  Does NOT close G4 = RH, does NOT prove GRH for
    any L(s, chi).
remesh_infinity_residue_split
    P50 function-space diagnostic that lifts the N15 REMESH-infinity
    closure (theory/REMESH_INFINITY_DERIVATION.md) into the
    TNFR-Riemann program.  Splits the canonical P31 oscillatory
    correction signal S_TNFR(T) into its projections on
    range(R_infinity) and ker(R_infinity) using the N15-resonant
    Fourier-mode mask at the canonical pair (tau_l, tau_g) = (4, 8).
    Pre-registered structural prediction: the prime-ladder spectrum
    has Fourier support exclusively at {k log p}, which by Baker's
    theorem on linear independence of logarithms of algebraic
    numbers is disjoint from the N15-resonant rational-multiple-of-
    pi lattice; therefore the canonical reconstruction must lie
    asymptotically in ker(R_infinity).  Verdicts:
    RESIDUE_IN_KER_ONLY (branch B2 evidence at the function-space
    level; corroborates the section 13septies / 13nonies structural
    identification of the T-HP residual obstruction with the
    oscillatory half), RESIDUE_IN_RANGE_ONLY (would refute P31),
    RESIDUE_MIXED (gauge leak in P30 or boundary artefact).  Does
    NOT advance G4 = RH; does NOT close T-HP; does NOT promote any
    new canonical operator beyond the 13-operator catalog.
    Complementary to the section 13vicies-novies graph-iteration-
    matrix tests (which act on EPI-history state vectors): P50 acts
    on a function in H^2(T-axis), a different mathematical object.
"""

from .admissible_family_sweep import (  # P19: admissible-family sweep (family × gauge × sigma)
    DEFAULT_TEST_FAMILIES,
    AdmissibleFamilySweepCertificate,
    AdmissibleTestFunction,
    FamilyFactory,
    GaussianMixtureTestFunction,
    Hermite2GaussianTestFunction,
    build_test_state_from_test_function,
    gaussian_mixture_test_function,
    hermite2_gaussian_test_function,
    sweep_alpha_admissible_family,
)
from .admissible_rescaling import (  # P30: Candidate admissible spectral-rescaling operator
    AdmissibleRescalingCertificate,
    apply_rescaling,
    build_smooth_rescaling_operator,
    compute_admissible_rescaling_certificate,
    extract_positive_spectrum,
    oscillatory_correction_canonical,
    verify_self_adjointness_preserved,
    verify_spectrum_match,
)
from .aggregates_closure_signature import (  # §13quinquaginta-sexta: Aggregates-Closure Signature diagnostic (B9a)
    AggregatesClosureSignatureCertificate,
    compute_aggregates_closure_signature,
)
from .alpha_sweep import (  # P18: admissibility / gauge sweep for alpha(sigma)
    DEFAULT_GAUGES,
    AlphaSweepCertificate,
    GaugeFn,
    build_test_state_with_gauge,
    sweep_alpha,
)
from .analytic_continuation import (  # Continuation evaluator (P13); Agreement on Re(s) > 1; Pole detection on the critical line; Explicit-formula reconstruction of psi(x)
    ContinuationAgreement,
    CriticalLinePoleScan,
    ExplicitFormulaResult,
    fetch_riemann_zeros,
    reconstruct_psi_via_explicit_formula,
    scan_critical_line_for_poles,
    verify_continuation_agreement,
    von_mangoldt_zeta_continued,
)
from .analytic_continuation_dirichlet import (  # P33: Analytic continuation of chi-twisted prime-ladder L-series
    DirichletCriticalLinePoleScan,
    TwistedContinuationAgreement,
    dirichlet_l_continued,
    dirichlet_log_l_derivative_continued,
    scan_critical_line_for_l_poles,
    verify_twisted_continuation_agreement,
)
from .coercivity_uniform import (  # P22: empirical interval-level coercivity certificate
    UniformCoercivityCertificate,
    verify_uniform_coercivity_empirical,
)
from .coupling_weights_type_signature import (  # §13quadraginta-nona: Coupling-Weights-Type Signature diagnostic (B6a)
    CouplingWeightsTypeSignatureCertificate,
    compute_coupling_weights_type_signature,
)
from .currents_closure_signature import (  # §13quinquaginta-quarta: Currents-Closure Signature diagnostic (B8a)
    CurrentsClosureSignatureCertificate,
    compute_currents_closure_signature,
)
from .delta_phi_max_type_signature import (  # §13quadraginta-sexta: Delta-Phi-Max-Type Signature diagnostic (foundational sub-question)
    DeltaPhiMaxTypeSignatureCertificate,
    compute_delta_phi_max_type_signature,
)
from .dirichlet_l import (  # P32: Dirichlet L-function extension (chi-twisted prime ladder)
    DirichletCharacter,
    DirichletLReproductionResult,
    TwistedPrimeLadderSpectrum,
    build_twisted_prime_ladder_spectrum,
    classical_log_l_derivative,
    classical_log_l_derivative_matched,
    principal_character,
    real_character_mod_3,
    real_character_mod_4,
    real_character_mod_5,
    tnfr_log_l_derivative,
    verify_dirichlet_l_reproduction,
)
from .dnfr_type_signature import (  # §13quadraginta: DeltaNFR-Type Signature diagnostic (foundational sub-question)
    DnfrTypeSignatureCertificate,
    compute_dnfr_type_signature,
)
from .epi_type_signature import (  # §13triginta-quarta: EPI-Type Signature diagnostic (foundational sub-question)
    EpiTypeSignatureCertificate,
    compute_epi_type_signature,
)
from .hilbert_polya import (  # P27: Hilbert-Polya scaffold
    HilbertPolyaCertificate,
    build_hp_operator,
    compute_hilbert_polya_certificate,
    fetch_zero_imaginary_parts,
    hp_resolvent_schatten_norms,
    hp_zero_side_from_operator,
    structural_gap_p14_vs_hp,
    verify_hp_self_adjoint,
    wasserstein_1_distance,
)
from .li_keiper import (  # P16: Li-Keiper positivity criterion via TNFR resonance spectrum
    LiKeiperCertificate,
    li_coefficients_from_zeros,
    verify_li_keiper_criterion,
)
from .lyapunov_spectral_positivity import (  # P26: Lyapunov-spectral positivity certificate for P14
    LyapunovSpectralCertificate,
    compute_lyapunov_spectral_certificate,
    compute_spectrum,
    kato_rellich_lower_bound,
    operator_norm,
    resolvent_schatten_norms,
    verify_unitary_flow,
)
from .nodeaware_gauge_sweep import (  # P20: node-aware gauge sweep (nu_f + node weight)
    DEFAULT_NODEAWARE_GAUGES,
    NodeAwareGaugeFn,
    NodeAwareGaugeSweepCertificate,
    build_test_state_nodeaware,
    sweep_alpha_nodeaware,
)
from .nodal_pulse import (  # Canonical foundation: prime-NFR nodal pulse (re-founded)
    KNOWN_RIEMANN_ZEROS,
    NodalPulseCertificate,
    build_prime_nfr_graph,
    detect_zeros_by_interference,
    first_primes,
    nodal_pulse,
    nodal_pulse_magnitude,
    prime_structural_frequencies,
    verify_nodal_pulse,
)
from .pulse_coherence import (  # Pulse-phase / coherence attack-surface tooling
    PulseCoherenceCertificate,
    argument_fluctuation,
    coherence_defect,
    generalized_pulse,
    prime_side_fluctuation,
    rectified_pulse,
    verify_pulse_coherence,
    zero_count,
)
from .nuf_type_signature import (  # §13triginta-prima: νf-Type Signature diagnostic (foundational sub-question)
    NufTypeSignatureCertificate,
    compute_nuf_type_signature,
)
from .operator_catalog_discipline_signature import (  # §13sexagesima: Operator-Catalog Discipline Signature diagnostic (B11a)
    CANONICAL_CATALOG_SIZE,
    OperatorCatalogDisciplineSignatureCertificate,
    compute_operator_catalog_discipline_signature,
)
from .oscillatory_correction import (  # P31: Prime-ladder oscillatory correction (branch B1 retry)
    OscillatoryCorrectionCertificate,
    apply_oscillatory_correction,
    compute_oscillatory_correction_certificate,
    prime_ladder_oscillatory_sum,
)
from .paley_gap_coercivity import (  # P25: Paley-gap coercivity diagnostic (Zenodo 17665853 v2 style)
    PaleyGapSweep,
    paley_gap_cross,
    paley_gap_p12,
    paley_gap_p14,
    sweep_paley_gap,
)
from .phi_type_signature import (  # §13triginta-octava: phi-Type Signature diagnostic (foundational sub-question)
    PhiTypeSignatureCertificate,
    compute_phi_type_signature,
)
from .prime_ladder_hamiltonian import (  # Graph + weight operator (P14); Hamiltonian bundle; Spectral observable; Certificate
    PrimeLadderHamiltonian,
    PrimeLadderHamiltonianCertificate,
    build_prime_ladder_graph,
    build_prime_ladder_hamiltonian,
    build_prime_ladder_weight_operator,
    verify_hamiltonian_reproduces_prime_ladder,
    weighted_spectral_trace,
)
from .remesh_infinity_residue_split import (  # P50: R_infinity residue split of the P31 oscillatory correction
    ResidueSplitCertificate,
    build_resonant_bin_mask,
    compute_residue_split_certificate,
    split_residue_by_remesh_infinity,
)
from .remesh_window_type_signature import (  # §13quadraginta-tertia: REMESH-window-Type Signature diagnostic (foundational sub-question)
    RemeshWindowTypeSignatureCertificate,
    compute_remesh_window_type_signature,
)
from .spectral_emergence import (  # P29: Spectral universality emergence under canonical UM+RA coupling
    CANONICAL_COUPLING_LAWS,
    InterPrimeCoupling,
    SpectralEmergenceReport,
    build_inter_prime_coupling,
    compute_spectral_emergence_report,
    couple_prime_ladder_hamiltonian,
    ks_distance_to_gue,
    nearest_neighbour_spacings,
    sweep_coupling_strength,
    unfold_spectrum,
    wigner_surmise_gue_cdf,
)
from .structural_zero_density import (  # P28: Structural smooth zero density
    StructuralZeroDensityCertificate,
    build_structural_t_hp,
    compute_structural_zero_density_certificate,
    derive_smooth_zero_position,
    riemann_siegel_theta,
    smooth_zero_count,
    smooth_zero_density,
)
from .tetrad_closure_signature import (  # §13quinquaginta-secunda: Tetrad-Closure Signature diagnostic (B7a)
    TetradClosureSignatureCertificate,
    compute_tetrad_closure_signature,
)
from .twisted_admissible_family_sweep import (  # P39: chi-twisted admissible-family + gauge sweep (diagnostic)
    TwistedAdmissibleFamilySweepCertificate,
    build_twisted_test_state_from_test_function,
    sweep_twisted_admissible_family,
)
from .twisted_admissible_rescaling import (  # P48: chi-twisted admissible spectral-rescaling operator
    TwistedAdmissibleRescalingCertificate,
    compute_twisted_admissible_rescaling_certificate,
)
from .twisted_alpha_sweep import (  # P38: chi-twisted admissibility / gauge sweep (GRH_chi diagnostic)
    TwistedAlphaSweepCertificate,
    build_twisted_test_state_with_gauge,
    sweep_twisted_alpha,
)
from .twisted_coercivity_uniform import (  # P42: chi-twisted uniform-coercivity certificate (diagnostic)
    TwistedUniformCoercivityCertificate,
    verify_twisted_uniform_coercivity_empirical,
)
from .twisted_hermite_family import (  # P41: chi-twisted Hermite2 eta-parameter sweep (diagnostic)
    DEFAULT_HERMITE2_ETAS,
    TwistedHermite2EtaSweepCertificate,
    sweep_twisted_hermite2_eta,
)
from .twisted_hilbert_polya import (  # P45: chi-twisted Hilbert-Polya scaffold
    TwistedHilbertPolyaCertificate,
    compute_twisted_hilbert_polya_certificate,
    fetch_chi_zero_imaginary_parts,
    twisted_hp_zero_side_from_operator,
    twisted_structural_gap_p34_vs_hp,
)
from .twisted_li_keiper import (  # P36: chi-twisted Li-Keiper positivity criterion (GRH_chi diagnostic)
    TwistedLiKeiperCertificate,
    twisted_li_coefficients,
    verify_twisted_li_keiper_criterion,
)
from .twisted_lyapunov_spectral_positivity import (  # P44: chi-twisted Lyapunov-spectral positivity certificate
    TwistedLyapunovSpectralCertificate,
    compute_twisted_lyapunov_spectral_certificate,
    twisted_compute_spectrum,
    twisted_kato_rellich_lower_bound,
    twisted_verify_unitary_flow,
)
from .twisted_nodeaware_gauge_sweep import (  # P40: chi-twisted node-aware gauge sweep (diagnostic)
    TwistedNodeAwareGaugeSweepCertificate,
    build_twisted_test_state_nodeaware,
    sweep_twisted_nodeaware_gauge,
)
from .twisted_oscillatory_correction import (  # P49: chi-twisted prime-ladder oscillatory correction
    TwistedOscillatoryCorrectionCertificate,
    apply_twisted_oscillatory_correction,
    compute_twisted_oscillatory_correction_certificate,
    twisted_prime_ladder_oscillatory_sum,
)
from .twisted_paley_gap_coercivity import (  # P43: chi-twisted Paley-gap consistency diagnostic
    TwistedPaleyGapSweep,
    sweep_twisted_paley_gap,
    twisted_paley_gap_cross,
    twisted_paley_gap_p32,
    twisted_paley_gap_p34,
)
from .twisted_prime_ladder_hamiltonian import (  # P34: Canonical Hamiltonian for chi-twisted prime ladder (G1_chi)
    TwistedPrimeLadderHamiltonian,
    TwistedPrimeLadderHamiltonianCertificate,
    build_twisted_prime_ladder_graph,
    build_twisted_prime_ladder_hamiltonian,
    build_twisted_prime_ladder_weight_operator,
    twisted_weighted_spectral_trace,
    verify_twisted_hamiltonian_reproduces_prime_ladder,
)
from .twisted_spectral_emergence import (  # P47: chi-twisted spectral emergence under canonical coupling
    TWISTED_CANONICAL_COUPLING_LAWS,
    TwistedInterPrimeCoupling,
    TwistedSpectralEmergenceReport,
    build_twisted_inter_prime_coupling,
    compute_twisted_spectral_emergence_report,
    couple_twisted_prime_ladder_hamiltonian,
    twisted_sweep_coupling_strength,
)
from .twisted_structural_zero_density import (  # P46: chi-twisted structural zero density (L-track analogue of P28)
    TwistedStructuralZeroDensityCertificate,
    build_twisted_structural_t_hp,
    compute_twisted_structural_zero_density_certificate,
    derive_twisted_smooth_zero_position,
    twisted_smooth_zero_count,
    twisted_smooth_zero_density,
    twisted_theta,
)
from .twisted_weil_explicit_formula import (  # P35: chi-twisted Weil-Guinand explicit formula (G3_chi)
    TwistedWeilExplicitFormulaCertificate,
    character_parity,
    find_dirichlet_l_zeros,
    twisted_weil_archimedean_integral,
    twisted_weil_constant_term,
    twisted_weil_prime_side_from_hamiltonian,
    twisted_weil_zero_side,
    verify_twisted_weil_explicit_formula,
)
from .twisted_weil_positivity import (  # P37: chi-twisted Weil-TNFR positivity bridge (GRH_chi diagnostic)
    TwistedWeilPositivityCertificate,
    TwistedWeilTNFRBridgeCertificate,
    build_twisted_structural_test_state,
    twisted_tnfr_lyapunov_of_test_state,
    verify_twisted_weil_positivity,
    verify_twisted_weil_tnfr_bridge,
)
from .urules_consistency_signature import (  # §13quinquaginta-octava: U-Rules Consistency Signature diagnostic (B10a)
    URulesConsistencySignatureCertificate,
    compute_urules_consistency_signature,
)
from .von_mangoldt import (  # Classical helpers; Prime-ladder spectrum (P12); Verification
    PrimeLadderSpectrum,
    VonMangoldtReproductionResult,
    build_prime_ladder_spectrum,
    classical_log_zeta_derivative,
    classical_log_zeta_derivative_matched,
    mangoldt_lambda,
    tnfr_log_zeta_derivative,
    verify_von_mangoldt_reproduction,
)
from .weil_explicit_formula import (  # Test function (P15); Individual terms; Certificate + driver
    GaussianTestFunction,
    WeilExplicitFormulaCertificate,
    gaussian_test_function,
    verify_weil_explicit_formula,
    weil_archimedean_integral,
    weil_pole_side,
    weil_prime_side_from_hamiltonian,
    weil_zero_side,
)
from .weil_positivity import (  # P17: Weil-TNFR positivity bridge
    WeilPositivityCertificate,
    WeilTNFRBridgeCertificate,
    build_structural_test_state,
    tnfr_lyapunov_of_test_state,
    verify_weil_positivity,
    verify_weil_tnfr_bridge,
)

__all__ = [
    # === Canonical nodal-pulse foundation (re-founded 2026-07) ===
    "KNOWN_RIEMANN_ZEROS",
    "first_primes",
    "prime_structural_frequencies",
    "nodal_pulse",
    "nodal_pulse_magnitude",
    "detect_zeros_by_interference",
    "build_prime_nfr_graph",
    "NodalPulseCertificate",
    "verify_nodal_pulse",
    # Pulse-phase / coherence attack surface (re-founded)
    "argument_fluctuation",
    "zero_count",
    "generalized_pulse",
    "rectified_pulse",
    "coherence_defect",
    "prime_side_fluctuation",
    "PulseCoherenceCertificate",
    "verify_pulse_coherence",
    # Von Mangoldt construction (P12)
    "mangoldt_lambda",
    "classical_log_zeta_derivative",
    "classical_log_zeta_derivative_matched",
    "PrimeLadderSpectrum",
    "build_prime_ladder_spectrum",
    "tnfr_log_zeta_derivative",
    "VonMangoldtReproductionResult",
    "verify_von_mangoldt_reproduction",
    # Analytic continuation (P13)
    "von_mangoldt_zeta_continued",
    "ContinuationAgreement",
    "verify_continuation_agreement",
    "CriticalLinePoleScan",
    "scan_critical_line_for_poles",
    "ExplicitFormulaResult",
    "reconstruct_psi_via_explicit_formula",
    "fetch_riemann_zeros",
    # Prime-ladder Hamiltonian (P14)
    "build_prime_ladder_graph",
    "build_prime_ladder_weight_operator",
    "PrimeLadderHamiltonian",
    "build_prime_ladder_hamiltonian",
    "weighted_spectral_trace",
    "PrimeLadderHamiltonianCertificate",
    "verify_hamiltonian_reproduces_prime_ladder",
    # Weil-Guinand explicit formula (P15)
    "GaussianTestFunction",
    "gaussian_test_function",
    "weil_pole_side",
    "weil_archimedean_integral",
    "weil_prime_side_from_hamiltonian",
    "weil_zero_side",
    "WeilExplicitFormulaCertificate",
    "verify_weil_explicit_formula",
    # P16: Li-Keiper positivity criterion
    "li_coefficients_from_zeros",
    "LiKeiperCertificate",
    "verify_li_keiper_criterion",
    # P17: Weil-TNFR positivity bridge
    "WeilPositivityCertificate",
    "WeilTNFRBridgeCertificate",
    "build_structural_test_state",
    "tnfr_lyapunov_of_test_state",
    "verify_weil_positivity",
    "verify_weil_tnfr_bridge",
    # P18: admissibility / gauge sweep
    "GaugeFn",
    "DEFAULT_GAUGES",
    "AlphaSweepCertificate",
    "build_test_state_with_gauge",
    "sweep_alpha",
    # P19: admissible-family sweep
    "AdmissibleTestFunction",
    "GaussianMixtureTestFunction",
    "gaussian_mixture_test_function",
    "Hermite2GaussianTestFunction",
    "hermite2_gaussian_test_function",
    "FamilyFactory",
    "DEFAULT_TEST_FAMILIES",
    "build_test_state_from_test_function",
    "AdmissibleFamilySweepCertificate",
    "sweep_alpha_admissible_family",
    # P20: node-aware gauge sweep
    "NodeAwareGaugeFn",
    "DEFAULT_NODEAWARE_GAUGES",
    "build_test_state_nodeaware",
    "NodeAwareGaugeSweepCertificate",
    "sweep_alpha_nodeaware",
    # P22: empirical uniform-coercivity certificate
    "UniformCoercivityCertificate",
    "verify_uniform_coercivity_empirical",
    # P25: Paley-gap coercivity diagnostic
    "PaleyGapSweep",
    "paley_gap_p12",
    "paley_gap_p14",
    "paley_gap_cross",
    "sweep_paley_gap",
    # P26: Lyapunov-spectral positivity certificate (P14)
    "LyapunovSpectralCertificate",
    "compute_spectrum",
    "operator_norm",
    "kato_rellich_lower_bound",
    "resolvent_schatten_norms",
    "verify_unitary_flow",
    "compute_lyapunov_spectral_certificate",
    # P27: Hilbert-Polya scaffold
    "HilbertPolyaCertificate",
    "fetch_zero_imaginary_parts",
    "build_hp_operator",
    "verify_hp_self_adjoint",
    "hp_resolvent_schatten_norms",
    "hp_zero_side_from_operator",
    "wasserstein_1_distance",
    "structural_gap_p14_vs_hp",
    "compute_hilbert_polya_certificate",
    # P28: Structural smooth zero density
    "StructuralZeroDensityCertificate",
    "riemann_siegel_theta",
    "smooth_zero_count",
    "smooth_zero_density",
    "derive_smooth_zero_position",
    "build_structural_t_hp",
    "compute_structural_zero_density_certificate",
    # P30: Admissible spectral-rescaling operator (smooth half of F_cand)
    "AdmissibleRescalingCertificate",
    "extract_positive_spectrum",
    "build_smooth_rescaling_operator",
    "apply_rescaling",
    "verify_self_adjointness_preserved",
    "verify_spectrum_match",
    "oscillatory_correction_canonical",
    "compute_admissible_rescaling_certificate",
    # P31: Prime-ladder oscillatory correction (branch B1 retry)
    "OscillatoryCorrectionCertificate",
    "prime_ladder_oscillatory_sum",
    "apply_oscillatory_correction",
    "compute_oscillatory_correction_certificate",
    # P50: R_infinity residue split of P31 oscillatory correction
    "ResidueSplitCertificate",
    "build_resonant_bin_mask",
    "split_residue_by_remesh_infinity",
    "compute_residue_split_certificate",
    # §13triginta-prima: νf-Type Signature (foundational diagnostic)
    "NufTypeSignatureCertificate",
    "compute_nuf_type_signature",
    # §13triginta-quarta: EPI-Type Signature (foundational diagnostic)
    "EpiTypeSignatureCertificate",
    "compute_epi_type_signature",
    # §13triginta-octava: phi-Type Signature (foundational diagnostic)
    "PhiTypeSignatureCertificate",
    "compute_phi_type_signature",
    # §13quadraginta: DeltaNFR-Type Signature (foundational diagnostic)
    "DnfrTypeSignatureCertificate",
    "compute_dnfr_type_signature",
    # §13quadraginta-tertia: REMESH-window-Type Signature (foundational diagnostic)
    "RemeshWindowTypeSignatureCertificate",
    "compute_remesh_window_type_signature",
    # §13quadraginta-sexta: Delta-Phi-Max-Type Signature (foundational diagnostic)
    "DeltaPhiMaxTypeSignatureCertificate",
    "compute_delta_phi_max_type_signature",
    # §13quadraginta-nona: Coupling-Weights-Type Signature (B6a)
    "CouplingWeightsTypeSignatureCertificate",
    "compute_coupling_weights_type_signature",
    # §13quinquaginta-secunda: Tetrad-Closure Signature (B7a)
    "TetradClosureSignatureCertificate",
    "compute_tetrad_closure_signature",
    # §13quinquaginta-quarta: Currents-Closure Signature (B8a)
    "CurrentsClosureSignatureCertificate",
    "compute_currents_closure_signature",
    # §13quinquaginta-sexta: Aggregates-Closure Signature (B9a)
    "AggregatesClosureSignatureCertificate",
    "compute_aggregates_closure_signature",
    # §13quinquaginta-octava: U-Rules Consistency Signature (B10a)
    "URulesConsistencySignatureCertificate",
    "compute_urules_consistency_signature",
    # §13sexagesima: Operator-Catalog Discipline Signature (B11a)
    "CANONICAL_CATALOG_SIZE",
    "OperatorCatalogDisciplineSignatureCertificate",
    "compute_operator_catalog_discipline_signature",
    # P32: Dirichlet L-function extension (chi-twisted prime ladder)
    "DirichletCharacter",
    "principal_character",
    "real_character_mod_3",
    "real_character_mod_4",
    "real_character_mod_5",
    "TwistedPrimeLadderSpectrum",
    "build_twisted_prime_ladder_spectrum",
    "tnfr_log_l_derivative",
    "classical_log_l_derivative",
    "classical_log_l_derivative_matched",
    "DirichletLReproductionResult",
    "verify_dirichlet_l_reproduction",
    # P33: Analytic continuation of chi-twisted prime-ladder L-series
    "dirichlet_l_continued",
    "dirichlet_log_l_derivative_continued",
    "TwistedContinuationAgreement",
    "verify_twisted_continuation_agreement",
    "DirichletCriticalLinePoleScan",
    "scan_critical_line_for_l_poles",
    # P34: Canonical Hamiltonian for chi-twisted prime ladder (G1_chi)
    "build_twisted_prime_ladder_graph",
    "build_twisted_prime_ladder_weight_operator",
    "TwistedPrimeLadderHamiltonian",
    "build_twisted_prime_ladder_hamiltonian",
    "twisted_weighted_spectral_trace",
    "TwistedPrimeLadderHamiltonianCertificate",
    "verify_twisted_hamiltonian_reproduces_prime_ladder",
    # P35: chi-twisted Weil-Guinand explicit formula (G3_chi)
    "character_parity",
    "twisted_weil_constant_term",
    "twisted_weil_archimedean_integral",
    "twisted_weil_prime_side_from_hamiltonian",
    "find_dirichlet_l_zeros",
    "twisted_weil_zero_side",
    "TwistedWeilExplicitFormulaCertificate",
    "verify_twisted_weil_explicit_formula",
    # P36: chi-twisted Li-Keiper positivity criterion (GRH_chi diagnostic)
    "twisted_li_coefficients",
    "TwistedLiKeiperCertificate",
    "verify_twisted_li_keiper_criterion",
    # P37: chi-twisted Weil-TNFR positivity bridge (GRH_chi diagnostic)
    "TwistedWeilPositivityCertificate",
    "TwistedWeilTNFRBridgeCertificate",
    "build_twisted_structural_test_state",
    "twisted_tnfr_lyapunov_of_test_state",
    "verify_twisted_weil_positivity",
    "verify_twisted_weil_tnfr_bridge",
    # P38: chi-twisted admissibility / gauge sweep (GRH_chi diagnostic)
    "TwistedAlphaSweepCertificate",
    "build_twisted_test_state_with_gauge",
    "sweep_twisted_alpha",
    # P39: chi-twisted admissible-family + gauge sweep (diagnostic)
    "TwistedAdmissibleFamilySweepCertificate",
    "build_twisted_test_state_from_test_function",
    "sweep_twisted_admissible_family",
    # P40: chi-twisted node-aware gauge sweep (diagnostic)
    "TwistedNodeAwareGaugeSweepCertificate",
    "build_twisted_test_state_nodeaware",
    "sweep_twisted_nodeaware_gauge",
    # P41: chi-twisted Hermite2 eta-parameter sweep (diagnostic)
    "DEFAULT_HERMITE2_ETAS",
    "TwistedHermite2EtaSweepCertificate",
    "sweep_twisted_hermite2_eta",
    # P42: chi-twisted uniform-coercivity certificate (diagnostic)
    "TwistedUniformCoercivityCertificate",
    "verify_twisted_uniform_coercivity_empirical",
    # P43: chi-twisted Paley-gap consistency diagnostic
    "TwistedPaleyGapSweep",
    "sweep_twisted_paley_gap",
    "twisted_paley_gap_cross",
    "twisted_paley_gap_p32",
    "twisted_paley_gap_p34",
    # P44: chi-twisted Lyapunov-spectral positivity certificate
    "TwistedLyapunovSpectralCertificate",
    "compute_twisted_lyapunov_spectral_certificate",
    "twisted_compute_spectrum",
    "twisted_kato_rellich_lower_bound",
    "twisted_verify_unitary_flow",
    # P45: chi-twisted Hilbert-Polya scaffold
    "TwistedHilbertPolyaCertificate",
    "compute_twisted_hilbert_polya_certificate",
    "fetch_chi_zero_imaginary_parts",
    "twisted_hp_zero_side_from_operator",
    "twisted_structural_gap_p34_vs_hp",
    # P46: chi-twisted structural zero density (L-track analogue of P28)
    "TwistedStructuralZeroDensityCertificate",
    "build_twisted_structural_t_hp",
    "compute_twisted_structural_zero_density_certificate",
    "derive_twisted_smooth_zero_position",
    "twisted_smooth_zero_count",
    "twisted_smooth_zero_density",
    "twisted_theta",
    # P47: chi-twisted spectral emergence under canonical coupling
    "TWISTED_CANONICAL_COUPLING_LAWS",
    "TwistedInterPrimeCoupling",
    "TwistedSpectralEmergenceReport",
    "build_twisted_inter_prime_coupling",
    "couple_twisted_prime_ladder_hamiltonian",
    "twisted_sweep_coupling_strength",
    "compute_twisted_spectral_emergence_report",
    # P48: chi-twisted admissible spectral-rescaling operator
    "TwistedAdmissibleRescalingCertificate",
    "compute_twisted_admissible_rescaling_certificate",
    # P49: chi-twisted prime-ladder oscillatory correction
    "TwistedOscillatoryCorrectionCertificate",
    "apply_twisted_oscillatory_correction",
    "compute_twisted_oscillatory_correction_certificate",
    "twisted_prime_ladder_oscillatory_sum",
    # P29: Spectral universality emergence under canonical UM+RA coupling
    "CANONICAL_COUPLING_LAWS",
    "InterPrimeCoupling",
    "SpectralEmergenceReport",
    "build_inter_prime_coupling",
    "couple_prime_ladder_hamiltonian",
    "unfold_spectrum",
    "nearest_neighbour_spacings",
    "wigner_surmise_gue_cdf",
    "ks_distance_to_gue",
    "sweep_coupling_strength",
    "compute_spectral_emergence_report",
]