A complete theoretical framework deriving the universe from a single axiom: Self-referentially complete systems must increase entropy.
This repository contains both the AllTheory Documentation website (Ψhē Theory) and the comprehensive Binary Universe Theory System — a rigorous mathematical framework that derives everything from information encoding to consciousness emergence using the no-11 binary constraint and φ-representation.
Live Documentation Site: https://auric.github.io/alltheory/
This repository contains two major theoretical frameworks:
- Bilingual: Full support for English and Simplified Chinese
- 64 Chapters: Complete exposition of ψ = ψ(ψ) theory
- Mathematical Rendering: LaTeX support for complex equations
- Dark Mode: Automatic theme switching
- Mobile Responsive: Works on all devices
- 118 Complete Theories: From axiom to consciousness emergence
- 107 Formal Specifications: Machine-readable mathematical proofs
- 111 Unit Tests: Complete verification framework
- Single Axiom Foundation: Everything derived from self-referential completeness
- No-11 Binary Constraint: Discrete universe with φ-representation
npm installnpm startThis starts a local development server at http://localhost:3000/. Most changes are reflected live without having to restart the server.
To run with a specific locale:
npm start -- --locale zh-Hans # For Chinese
npm start -- --locale en # For Englishnpm run buildThis generates static content into the build directory for both locales.
npm run serveThis serves the production build locally at http://localhost:3000/alltheory/.
The site is automatically deployed to GitHub Pages when changes are pushed to the main branch.
If you need to deploy manually:
GIT_USER=<Your GitHub username> npm run deploy- Go to repository Settings → Pages
- Under "Build and deployment", select "GitHub Actions" as the source
- Push to
mainbranch to trigger automatic deployment
docs/
├── intro.md # Project introduction
├── project-structure.md # Documentation structure guide
├── 10-psi-core-theory/ # Ψhē Theory (64 chapters)
│ ├── 11-primordial-identity/ # Chapters 1-8: The birth of ψ
│ ├── 12-language-emergence/ # Chapters 9-16: Language systems
│ ├── 13-structural-collapse/ # Chapters 17-24: Pattern formation
│ ├── 14-observer-formation/ # Chapters 25-32: Consciousness
│ ├── 15-reality-crystallization/ # Chapters 33-40: Material reality
│ ├── 16-complexity-unfolding/ # Chapters 41-48: Complex systems
│ ├── 17-meta-recursion/ # Chapters 49-56: Self-reference
│ └── 18-unity-return/ # Chapters 57-64: Completion
└── binaryuniverse/ # Binary Universe Theory System
├── A1-five-fold-equivalence.md # Core axiom
├── T1-*-*.md # Fundamental theorems
├── T2-*-*.md # Information encoding theorems
├── T3-*-*.md # Quantum emergence theorems
├── T4-*-*.md # Mathematical structure theorems
├── T5-*-*.md # Information theory theorems
├── T6-*-*.md # Completeness verification
├── T7-*-*.md # Computational complexity
├── T8-*-*.md # Cosmological applications
├── T9-*-*.md # Life and consciousness
├── T10-*-*.md # Recursive depth
├── T11-*-*.md # Emergence patterns
├── T12-*-*.md # Multi-scale physics unification
├── C1-*-*.md # Encoding corollaries
├── C2-*-*.md # Observation corollaries
├── C3-*-*.md # System evolution corollaries
├── C5-*-*.md # Application corollaries
├── C6-*-*.md # Cross-disciplinary corollaries
├── C7-*-*.md # Philosophical corollaries
├── C8-*-*.md # Physics unification corollaries
├── C9-*-*.md # Self-referential algebra
├── C10-*-*.md # Meta-mathematical structures
├── C11-*-*.md # Theory self-reflection
├── C12-*-*.md # Consciousness emergence
├── D1-*-*.md # Fundamental definitions
├── L1-*-*.md # Core lemmas
├── P1-P10.md # Basic propositions
├── M1-*-*.md # Meta-theorems
├── formal/ # Formal specifications (107 files)
├── tests/ # Unit tests (111 files)
└── README.md # Complete theory guide
The Binary Universe Theory System is a complete mathematical framework that derives the entire universe from a single axiom using rigorous formal methods. This represents one of the most ambitious attempts to create a unified theory of everything based on minimal foundational assumptions.
Single Axiom: 自指完备的系统必然熵增 (Self-referentially complete systems must increase entropy)
From this single principle, the theory rigorously derives:
- Information encoding mechanisms (φ-representation)
- Quantum phenomena and observer effects
- Mathematical structures and critical phenomena
- Consciousness emergence and multi-scale physics
- Complete unification from information to awareness
- 118 Complete Theories: Comprehensive coverage from axiom to consciousness
- 107 Formal Specifications: Machine-readable mathematical proofs
- 111 Unit Tests: Complete verification and consistency checking
- 18 Major Chapters: Systematic progression from foundations to applications
- No-11 Binary Constraint: Discrete universe with optimal encoding
The theory is organized into progressive chapters building from foundations:
- Chapter 1: Fundamental axiom and definitions
- Chapter 2: Information encoding necessity (T2 series)
- Chapter 3: Quantum phenomena emergence (T3 series)
- Chapter 4: Mathematical structure formation (T4 series)
- Chapter 5: Information theory applications (T5 series)
- Chapter 6: System completeness verification (T6 series)
- Chapter 7: Computational complexity (T7 series)
- Chapter 8: Cosmological applications (T8 series)
- Chapter 9: Life and consciousness emergence (T9 series)
- Chapter 10: Recursive depth theory (T10 series)
- Chapter 11: Emergence pattern analysis (T11 series)
- Chapter 12: Multi-scale physics unification (T12 series)
Each theory includes:
- Mathematical Definitions: Precise formal specifications
- Rigorous Proofs: Complete logical derivations
- Machine Tests: Automated verification via Python unit tests
- Consistency Checks: Cross-theory compatibility verification
- Formal Specifications: Machine-readable proof formats
- Unified Framework: Single axiom derives information, quantum mechanics, and consciousness
- φ-Representation: Optimal binary encoding using Fibonacci-based no-11 constraint
- Constructive Truth: Acknowledges theoretical construction while maintaining logical rigor
- Complete Verification: Every theorem backed by formal proof and machine testing
- Cross-Disciplinary: Applications spanning physics, mathematics, computer science, and philosophy
- Begin with Philosophy: Read
docs/binaryuniverse/philosophy.md - Understand the Axiom: Study
docs/binaryuniverse/A1-five-fold-equivalence.md - Follow the Derivation: Progress through T1→T2→T3→T4 series for core foundations
- Explore Applications: Choose areas of interest (quantum, consciousness, mathematics)
- Verify Understanding: Run unit tests to see machine verification in action
- Complete Guide:
docs/binaryuniverse/README.md - Philosophical Foundation:
docs/binaryuniverse/philosophy.md - Core Axiom:
docs/binaryuniverse/A1-five-fold-equivalence.md - Verification Framework:
docs/binaryuniverse/tests/ - Formal Specifications:
docs/binaryuniverse/formal/
- Add markdown files to appropriate directories
- Update navigation in
sidebars.tsif needed - For bilingual content, add translations to
i18n/zh-Hans/
npm run typechecknpm run write-translations- Fork the repository
- Create a feature branch
- Add content to
docs/directory - Update navigation in
sidebars.tsif needed - Run tests:
npm run build - Submit a pull request
- Fork the repository
- Create a feature branch
- Add new theories following the naming convention (e.g.,
T13-1-new-theorem.md) - Create corresponding formal specification in
docs/binaryuniverse/formal/ - Write unit tests in
docs/binaryuniverse/tests/ - Run verification:
cd docs/binaryuniverse/tests && python -m pytest - Update theory index in
docs/binaryuniverse/README.md - Submit a pull request
- All new theories must derive from the single axiom A1
- Include formal mathematical definitions and proofs
- Maintain logical consistency with existing theories
- Provide machine-verifiable unit tests
- Follow the established numbering system
npm run build
npm run servecd docs/binaryuniverse/tests
python -m pytest -v # All tests
python -m pytest test_T12_3.py -v # Specific theory test
python -m pytest test_consistency.py # Cross-theory consistencyThis project is open source. See LICENSE file for details.
This repository represents a unique convergence of two complementary approaches to understanding reality:
AllTheory Documentation (ψ = ψ(ψ)): An intuitive, experiential exploration of self-referential collapse and consciousness emergence.
Binary Universe Theory System: A rigorous mathematical framework deriving everything from a single axiom using formal verification.
Together, they offer both the poetry and precision needed to explore the deepest questions about information, consciousness, and the nature of reality itself.
"自指完备的系统必然熵增 - From self-reference, the universe emerges"
"ψ = ψ(ψ) - The universe knowing itself through itself"