Skip to main content

Toolkit for analyzing, scoring, and visualizing structural features of the Regina Field prime distribution model.

Project description

Regina Field Toolkit (Sequence-Based Release)

This toolkit provides feature extraction and analysis utilities for studying structural properties of prime numbers using the Regina Field framework.

Legacy Version

For the previous digit-based feature extraction approach, see:

README_legacy.md


Overview

The toolkit computes structural features derived from prime step sequences, including:

  • MotifSum — motif-based structural signal derived from step decomposition
  • Entropy — distributional complexity of motif patterns
  • Curvature — second-order structural variation across motifs

These features define an embedding of primes into a curvature–entropy feature space, which is used for structural analysis of prime distributions.


Feature Extraction

Script: extract_sequence_features.py

This script processes a CSV of candidate numbers and computes:

  • MotifSum (sequence-based motif structure)
  • Entropy (motif distribution)
  • Curvature (structural variation)

Input Format

The input CSV must contain a column named:

Candidate

Each row should contain an integer value.


Usage

python extract_sequence_features.py --input known_primes.csv --output enriched_output.csv

Output

The output CSV will include:

Candidate, MotifSum, Entropy, Curvature, ...

This output is compatible with downstream Regina Field analysis pipelines.


Methodology Summary

The sequence-based approach differs from earlier versions by operating on prime step sequences rather than digit patterns.

Key aspects include:

  • Prime gaps are converted into step sequences
  • Gaps of 6 are decomposed into [2,4] and [4,2] motifs
  • Motif frequencies are extracted over local windows
  • Entropy is computed from motif distributions
  • Curvature is derived from second-order variation in motif structure

This produces a structured representation of primes in feature space.


Important Note on Versions

This release introduces a sequence-based feature extraction method.

Previous versions of the toolkit used a digit-based approach.
Those versions are preserved for transparency but are not used in current analyses.


Relation to Regina Field Paper

The results presented in:

The Regina Field: Discrete Entropy-State Structure in Prime Distributions and Its Relationship to Prime Counting Error

were generated using this version of the toolkit.


Changelog

v2.0-sequence-regime

  • Replaced digit-based feature extraction with sequence-based motif analysis
  • Introduced step-sequence motif decomposition (including 6 → [2,4] and [4,2])
  • Updated definitions of:
    • MotifSum
    • Entropy
    • Curvature
  • Aligns with results presented in the Regina Field paper

v1.x (legacy)

  • Digit-based feature extraction
  • Retained for historical reference only

License

License: MIT


Contact

middlebrookstech@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reginafield-1.0.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reginafield-1.0.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file reginafield-1.0.0.tar.gz.

File metadata

  • Download URL: reginafield-1.0.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for reginafield-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f94b19f51ff4750a1d2e62673cc9c6e560a05d2405dad1a0a9fdbaed200ac818
MD5 2df5f5b9adb8b00ff57aacfcf4f40b18
BLAKE2b-256 40a5125ea7442b6337191cbd14d7e7b296cc902fbbd92db909a4ae568650a888

See more details on using hashes here.

File details

Details for the file reginafield-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: reginafield-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for reginafield-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e8a5ca0aadf367be566a8f1bbaa4510beee362f81582c2c535a20374638fb8a
MD5 1a9cee36abff213e8a882627903fe76d
BLAKE2b-256 41747dcd3867b34830e4603992f7fbbd06bec76843581370d7f61f68eebc62c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page