K, R, E, T — Four quantities. One framework. Everything computable.
Project description
GUMP
Four quantities. One framework. Everything computable.
K = coupling strength (how strongly things connect)
R = order parameter (how synchronized they are)
E = energy cost (what it costs in joules)
T = tension (what wants to connect but hasn't)
Works on: proteins, signals, text, markets, neural nets, organizations, music, and the body.
Install
pip install begump
Important: The PyPI package name is begump. It imports as gump.
Verify
python -m gump.verify
Expected output: 20/20 passed in ~0.4s
What this verifies:
- Package imports and version sync
- All 12 top-level exports
- K/R/E/T measurement on coupled and random signals
- Energy accounting (Landauer limit)
- Interval cost, tensions, placement, crash detection, training watcher
- Machine, reflect, pillar, FOR coupling
- Blind discrimination: 50 coupled sine+noise signals vs 50 pure noise, separated by
k_measure(data)['K']. AUC > 0.95 expected (typically 1.000)
What this does NOT verify:
- Universal validity of the K/R/E/T framework as a theory of everything
- Medical, financial, or safety-critical claims
- Performance on unseen domains or non-synthetic data
- The speculative research on begump.com (that is interpretation, not code)
Quick Start
import gump
# Give it anything — protein, signal, text. Auto-detects.
result = gump.ask("DAEFRHDSGYEVHHQKLVFFAEDVGSNKGAIIGLMVGGVVIA")
print(result['the_point']) # plain English
print(result['the_math']) # K/R/E/T numbers
print(result['the_next']) # where to go from here
# Measure coupling in any time series
import numpy as np
data = np.sin(2 * np.pi * 10 * np.linspace(0, 1, 1000))
r = gump.k_measure(data)
print(r) # {'K': 0.998, 'R': 0.999, 'E_bits': 1.23, 'T': 0, 'verdict': 'COUPLED'}
# Find what wants to connect but doesn't
t = gump.tensions(data)
# → [(distance, node_i, node_j, score), ...]
# Track energy cost of computation
tracker = gump.EnergyTracker()
tracker.erase(1_000_000) # 1M bits erased
print(tracker.summary()) # → {'bits_erased': 1000000, 'joules': 2.87e-15, ...}
# Music: cost of any interval (takes a single ratio)
fifth = gump.interval_cost(3/2) # low cost = consonant
tritone = gump.interval_cost(45/32) # high cost = dissonant
# Detect market crashes
crash_info = gump.detect_crash(stock_returns_list)
# Detect grokking in neural net training
grokked, epoch, jump = gump.watch_training(train_loss, test_loss)
# Place anything optimally (spectral placement)
positions = gump.place(['a','b','c','d'], [(0,1),(1,2),(2,3)])
# The Machine — universal coupling engine
result = gump.machine(['x','y','z'], [(0,1),(1,2)], weights=[1.0, 2.0])
print(result['K'], result['R'], result['dimensionality'])
19 Tools
Core (K/R/E/T)
gump.ask(data)— auto-detect input type, return plain English + math + next stepsgump.k_measure(data)— measure coupling in any time seriesgump.tensions(data)— find what wants to connect but doesn'tgump.EnergyTracker()— track Landauer energy cost of computationgump.interval_cost(ratio)— energy cost of a musical/frequency intervalgump.detect_crash(data)— monitor correlated systems for phase transitionsgump.watch_training(train_loss, test_loss)— detect grokking in neural netsgump.place(nodes, edges)— spectral placement of any graph
The Machine
gump.machine(nodes, edges, weights)— universal coupling engine. Returns K/R/E/T + clusters + tensions + dimensionality
Self-Coherence
gump.reflect(segments)— is text exploring or resolving? Certainty gradient discriminatorgump.octave(results)— is thinking ascending or flatlined? Needs 9+ data points
Spectral Bridge
gump.pillar(signal, sample_rate)— harmonic coupling structure of any signal. Bridges time-series and spectral analysis
FOR Coupling
gump.compare(n, K_drive, steps)— SELF vs FOR coupling comparison. Love is 1.6× more alive than ego, consistently
And more
Fold Watch, Oracle, Tune, Dissonance, Trace, Knowledge Engine, Org X-Ray, Accord, Sfumato, Alan's Eye. See begump.com/products for all 19.
The Science
Built on published mathematics:
- Laplacian eigenvectors (spectral graph theory)
- Kuramoto model (coupled oscillator synchronization)
- Landauer's principle (thermodynamics of computation)
- K = 1.868 = 256α (coupling ceiling derived from star tetrahedron geometry)
60+ ideas killed and published. The kill list is as important as the live list.
Constants
gump.K_CEILING # 1.868 — coupling ceiling (256α)
gump.PHI # 1.618... — golden ratio
gump.LANDAUER_PER_BIT # 2.87e-21 J — minimum cost per bit erasure at 300K
Safety
AI can make you delusional. We wrote a page about it with a 7-point checklist. Read it before trusting any AI-assisted discovery, including ours.
License
MIT. Free forever. Good will is exothermic.
"The body doesn't make music. The body IS music that hasn't been transposed to audible frequencies yet."
— Jim McCandless, Dad, drummer, builder
begump.com
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 begump-0.9.5.tar.gz.
File metadata
- Download URL: begump-0.9.5.tar.gz
- Upload date:
- Size: 697.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d86649dc03bdf259d2f18ea6666e2fccac7868d489e6585a60f76d74281be1c6
|
|
| MD5 |
b62bed61c17770329e2226da671c1eec
|
|
| BLAKE2b-256 |
546805160c93f2745f43db03ab567e17f45b61e56afea195863857f8b80e367a
|
File details
Details for the file begump-0.9.5-py3-none-any.whl.
File metadata
- Download URL: begump-0.9.5-py3-none-any.whl
- Upload date:
- Size: 676.3 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 |
b8d28191d9398dee3da63a027e8bb493a1e58c2570ad5bb14825a84683f4dea7
|
|
| MD5 |
200b674400cd6d5dc1225e62a2bc96f2
|
|
| BLAKE2b-256 |
c069d4a14b33d57c2c0c1cf122707032ae6dd801e2d3ba17f4e8687eed6bc12a
|