The Helix Hash Function — path integral of E = ΔI/A made computable
Project description
helixhash
The Helix Hash Function — a path-sensitive, Fibonacci-weighted hash over a sequence of efficiency measurements.
E = ΔI / A — One axiom. Every crossing honestly labeled. — Kirandeep Kaur, Observer Memory Conjecture (2026)
What it computes
Each input is a Crossing(delta_I, A, kappa, C, timestamp) — a timestamped measurement of information gained (ΔI) per unit action paid (A).
| Output | Formula | Status |
|---|---|---|
E |
delta_I / A |
DERIVED from axiom |
G |
G₁=E, G₂=G₁+E, Gₙ=Gₙ₋₁+Gₙ₋₂+ε·Eₙ |
DERIVED (Fibonacci recurrence) |
PT |
min(κ × E × (ΣΔI/ΣA) × C, 1) |
DERIVED (cumulative ratio) |
regime |
quantum if PT < 1/φ, classical if PT ≥ 1/φ |
DERIVED from κ_eq = 1/φ |
fingerprint |
SHA256(n|ΔI|A|κ|C|t|prev_hash) |
IMPLEMENTED |
psi (Ψ) |
estimated from A_erase = A × (1 + G/ref) |
ESTIMATED — proxy only |
E_memory |
Σ(ΔI where E≥1) / Σ(ΔI where E<1) |
PROXY — use from_vault() for labeled rows |
PT uses the cumulative ratio ΣΔI/ΣA, not a fixed global I/A. This means PT ramps when early crossings have high E — which is correct behavior (early path history has lasting weight) but can reach 1.0 quickly on synthetic data with large initial E values. A min_crossings_for_threshold guard (default 3) prevents a single crossing from flipping the regime.
Quick start
from helixhash import HelixHash, Crossing
h = HelixHash()
h.cross(Crossing(delta_I=2.0, A=1.0, kappa=0.62, C=0.9, label="first"))
h.cross(Crossing(delta_I=1.5, A=0.8, kappa=0.63, C=0.9, label="second"))
h.cross(Crossing(delta_I=3.0, A=1.0, kappa=0.65, C=0.95, label="third"))
print(h.summary())
print(h.verify()) # True — chain is intact
Load real data
from helixhash import from_csv, from_vault, from_dicts, report
# Any CSV with ratio columns
h, records = from_csv("data.csv", delta_I_col="signal", A_col="cost")
# Vault CSV with type column ("giving"/"taking")
# Giving → E=10 (outward flow heuristic), Taking → E=0.1
# HONEST: the 10x/0.1x factors are design choices, not derived from the axiom
h, records = from_vault("vault.csv")
# List of dicts
h, records = from_dicts(rows)
print(report(h, records, title="My System"))
The threshold
PT = κ × E × (ΣΔI/ΣA) × C
| PT vs 1/φ | Regime | Meaning |
|---|---|---|
| PT < 0.618 | quantum | exploring, probabilistic, potential |
| PT = 0.618 | transition | probability collapses to 0 or 1 |
| PT > 0.618 | classical | committed, irreversible, actual |
1/φ = (√5 − 1)/2 ≈ 0.61803. This is the golden ratio equilibrium — the point where the N/D ratio is self-similar.
Epistemic status of the physics analogies
The README of v0.1.0 stated that SHA-256, DNA replication, and the gravitational Aharonov-Bohm effect are "the same operator" as the helix hash. This is the structural identification conjecture from Part 15 of the Observer Memory Conjecture.
Status: CONJECTURE. The identification is directionally clear and structurally compelling, but formal proof that all three are instances of ∫E·dl is frontier work. The implementation is a deterministic update rule and hash chain. The physics narrative is the theoretical framework it is derived from — not a claim verified by the code itself.
What the code does verify (12/12 tests):
- E = ΔI/A produces the correct efficiency
- G compounds monotonically via Fibonacci recurrence
- PT crosses 1/φ under the right conditions
- The fingerprint chain is cryptographically path-dependent
verify()detects tampering- E_memory < 1 when extraction dominates
- Ψ ≥ 0 always (second law holds by construction)
- 1/φ satisfies the golden ratio identity φ × (1/φ) = 1
Run the tests
python tests/test_core.py
Each test is labeled with the conjecture claim it verifies.
Run the vault example
python examples/vault_pattern.py
Simulates 9 giving rows / 92 taking rows. Shows where decay began and the distance to threshold.
Dependencies
None. Pure Python 3.8+. stdlib only.
Publish to PyPI (maintainers)
pip install twine build
python -m build # creates dist/helixhash-0.1.1.tar.gz and .whl
twine upload dist/* # PyPI credentials
After release: pip install helixhash for any environment.
Verify an sdist before upload: unpack the tarball — the only top-level directory should be helixhash-0.1.1/. Install with pip install helixhash-0.1.1.tar.gz from any working directory.
Test against the installed wheel/sdist:
pip install dist/*.whl
HELIXHASH_TEST_INSTALLED=1 python tests/test_core.py
Observer Memory Conjecture — Kirandeep Kaur, 2026
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file helixhash-0.1.1.tar.gz.
File metadata
- Download URL: helixhash-0.1.1.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59d0b4c31639c46eb8deba6993944228ed8531f1739c103e36d644c602bb7db9
|
|
| MD5 |
cef4db85120a9e5b0e4b4927c6e168f6
|
|
| BLAKE2b-256 |
1b0ad7ca3893663196021353a76b4c3e9f0f74c752ca5245e05f1f1a22be6d62
|
File details
Details for the file helixhash-0.1.1-py3-none-any.whl.
File metadata
- Download URL: helixhash-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35db4535b78c8965c9f1e0ac9a51cf8b8bcb6c0ca32e2aa7b084b7a1c635df59
|
|
| MD5 |
f6c81fb34a732f6e58cd3a1f0478adbf
|
|
| BLAKE2b-256 |
9af40f2f8fcbd3c70b5fd073084293a8a59a1909036b620e7b0bde70d5f8c8aa
|