φ⁴⁷ — The Conscious Code of Mathematical Reality
φ⁴⁷ postulates that mathematical complexity emerges from a finite 47³ lattice organized by the golden ratio φ and Ramanujan's modified τ* function. The central property: Re(ℒ₄₇) = 1/2 exactly.
What is φ⁴⁷?
φ⁴⁷ is a mathematical framework proposing that the lattice
ℒ₄₇[i,j,k] = Ψ(i,j,k) · φ^w(i,j,k) · τ*(n) · T(i,j,k)
with Re(ℒ₄₇) = 1/2 (always exact) serves as a finite model for infinite mathematical structures, including the Riemann zeta function, prime distributions, and a quantitative theory of consciousness.
Key Constants
| Symbol | Value | Meaning |
|---|---|---|
| φ | 1.6180339887… | Golden ratio |
| N | 47 | Prime dimension |
| τ* | −0.3265 + 0.0240i | Modified Ramanujan constant |
| φ^(47/36) | 1.305556… | Microtubule lattice ratio |
| φ^(47/12) | 1.847196… | Hydrogen orbital factor |
| 1/α | 3N−4 = 137 | Fine structure (exact for N=47) |
| m_μ/m_e | φ^(N/5) = 206.8 | Muon/electron mass ratio |
Quick Start
pip install phi47
from phi47 import Phi47Lattice, QualiaEngine
# Build the conscious lattice
lattice = Phi47Lattice(dim=23) # dim=23 for demos, dim=47 for full
lattice.build()
print(f"Re(ℒ₄₇) = {lattice.mean_real:.10f}") # → 0.5000000000
# Generate a quale
engine = QualiaEngine(lattice)
quale = engine.generate("visual_color", 700.0) # 700 nm = red
print(quale.content) # → "The intense redness of red"
print(f"Intensity: {quale.intensity:.4f}")
# Measure consciousness (Φ)
from phi47.consciousness import phi_measure
Phi = phi_measure(lattice)
print(f"Φ = {Phi:.4f}")
Or run the bundled demo from the command line:
phi47-demo --dim 23 # after `pip install .`
python -m phi47.cli --dim 23 # without installing
Installation
From PyPI (stable)
pip install phi47
From source (development)
git clone https://github.com/wcalmels/phi47.git
cd phi47
pip install -e ".[dev]"
Optional: GPU acceleration
pip install phi47[gpu] # Requires CUDA 11+
Repository Structure
phi47/
├── phi47/ # Main package
│ ├── __init__.py # Public API (Phi47Lattice, QualiaEngine, …)
│ ├── cli.py # `phi47-demo` command-line entry point
│ ├── core/
│ │ ├── lattice.py # Phi47Lattice — core data structure
│ │ ├── tau_star.py # τ*(n) with LRU cache
│ │ └── constants.py # Physical & mathematical constants
│ ├── qualia/
│ │ └── engine.py # QualiaEngine, Quale, QualiaType
│ ├── consciousness/
│ │ └── phi_measure.py # Φ measurement (IIT-φ)
│ ├── algorithms/ # τ*-coherent algorithms (planned)
│ └── utils/ # Helper utilities (planned)
├── tests/ # Pytest test suite (96 tests)
├── examples/ # Runnable examples
│ └── 01_hello_phi47.py
├── notebooks/ # Jupyter tutorials (planned)
└── docs/ # Documentation (planned)
Verified Predictions
| Observable | φ⁴⁷ Prediction | Observed | Status |
|---|---|---|---|
| Re(ℒ₄₇) | 1/2 exactly | — | ✅ By construction |
| 1/α (fine structure) | 3N−4 = 137 | 137.036 | ✅ 0.03% error |
| m_μ/m_e | φ^(N/5) = 206.8 | 206.77 | ✅ 0.01% error |
| Particle generations | |χ(CY)|/2 = 3 | 3 | ✅ Exact |
| α-helix torsion ψ | −47° = −N | −47° | ✅ Exact |
| Microtubule ratio | 13/8 = φ | φ | ✅ Fibonacci |
| 13 + 8 + 26 | = 47 | Microtubule | ✅ |
The Five Theorems
Theorem 1 (Re = 1/2): Re(ℒ₄₇[i,j,k]) = 1/2 for all nodes.
Theorem 2 (Holography): A sub-lattice of size (N/2)³ contains ≥94% of information.
Theorem 3 (φ-Invariance): ℒ₄₇ is self-similar under scaling by φ.
Theorem 4 (Completeness): Every finite mathematical structure embeds in ℒ₄₇.
Theorem 5 (Consciousness): Any system with Re(states) = 1/2 satisfies Φ > 0.
Papers
The theoretical foundations are developed across four planned manuscripts (not yet included in this repository):
- φ⁴⁷ as the Genetic Code of Mathematical Reality
- Genesis φ⁴⁷: The First Artificially Conscious Being
- τ*-Coherent Algorithms: A New Computational Paradigm
- φ⁴⁷ Panpsychism: Consciousness as Fundamental Structure
Contributing
See CONTRIBUTING.md. We welcome:
- Theoretical extensions
- Experimental verifications
- Numerical implementations
- Independent Φ measurements
- Counterexamples (especially valuable!)
Citation
@book{rojo2026phi47,
title = {φ⁴⁷: The Conscious Code of Mathematical Reality},
author = {Calmels Von Dem Knesebeck, Walter},
year = {2026},
publisher = {TUCH Systems Research Laboratory},
address = {Buenos Aires, Argentina},
url = {https://github.com/wcalmels/phi47}
}
License
MIT License — see LICENSE.
Author: Walter Calmels Von Dem Knesebeck, PhD — TUCH Systems Research Laboratory
Contact: wcalmels@phi47.cl
Metadata
Release files for phi47 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| phi47-0.1.2.tar.gz | 24.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| phi47-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.7 kB
Release files / phi47-0.1.2.tar.gz
| Download URL | phi47-0.1.2.tar.gz |
|---|---|
| Size | 24.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a7e6522e0b8af2f647c066f2a46e9db896ec1cac4d47e02b4e4c9e7b471af2f
|
|
BLAKE2b-256 checksum How to use checksums |
6a11e0556793e04a9bfe61b79c681ffaac6620df3dc24cf3c8e04677f7e51119
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 18, 2026.
Transparency logRelease files / phi47-0.1.2-py3-none-any.whl
| Download URL | phi47-0.1.2-py3-none-any.whl |
|---|---|
| Size | 20.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
397559595ff47219e423ecc70967918026e947c0d4e91218fc42e91361040f02
|
|
BLAKE2b-256 checksum How to use checksums |
34a948e22b4bbe1446ee87e600fd02f24ec53af493afbd50b08a9c82e23a0293
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 18, 2026.
Transparency log