Files
resonance-engine/scripts/show_pattern.py
T

29 lines
840 B
Python
Raw Normal View History

import json
import pandas as pd
with open('/mnt/d/Resonance_Engine/sweep_results/prime_lattice_mapping.json') as f:
data = json.load(f)
df = pd.DataFrame(data['mappings'])
print("PRIME PATTERN:")
print("Prime -> Omega -> Coherence")
print("-" * 40)
# Show every 10th prime to see the pattern
for i in range(0, 100, 10):
p = df.iloc[i]
print(f"{int(p.prime_value):3d} -> {p.lattice_omega:.1f} -> {p.lattice_coherence:.4f}")
print()
print("PATTERN:")
print("Small primes (2-29): Low omega (0.5-0.8), High coherence (~0.739)")
print("Medium primes (31-200): Rising omega (0.9-1.8), Stable coherence")
print("Large primes (211-541): Omega drops back to ~1.3")
print()
print("The pattern is NON-LINEAR.")
print()
print("EQUATION FORM:")
print("Omega = f(prime) where f is non-monotonic")
print("Coherence = constant (~0.7386)")