📢 Repository Scope (November 2025)
Fracton is the SDK/programming language for infodynamics applications. It provides core primitives (RecursiveEngine, MemoryField, PAC regulation) and language constructs for building infodynamics systems.Physics simulations (Reality Engine, Big Bang, etc.) live in the separate reality-engine repository, which imports from Fracton as needed. This keeps responsibilities clean: Fracton = reusable SDK, reality-engine = physics implementation.
Fracton is a domain-specific SDK and programming language for infodynamics research. It provides the foundational primitives for building systems that involve recursive execution, entropy-driven control flow, field operations, and PAC (Potential-Actualization-Conservation) regulation.
This is part of the Dawn Field Theory ecosystem, extracted as a standalone SDK for easier adoption and development.
- Core Primitives: RecursiveEngine, MemoryField, PACRegulator
- Language Constructs: @recursive, @entropy_gate, Context management
- Field Operations: RBFEngine, QBERegulator, initializers
- Execution Framework: Bifractal tracing, entropy dispatch
- GPU Support: Built-in CUDA acceleration for field operations
- Physics simulations (that's reality-engine)
- Möbius topology implementations (that's reality-engine/substrate)
- SEC/Confluence operators (that's reality-engine/conservation & dynamics)
# Install from PyPI (when published)
pip install fracton
# Or install from source
git clone https://github.com/dawnfield-institute/fracton.git
cd fracton
pip install -e .import fracton
@fracton.recursive
@fracton.entropy_gate(0.5)
def fibonacci_field(memory, context):
if context.depth <= 1:
return 1
a = fracton.recurse(fibonacci_field, memory, context.deeper(1))
b = fracton.recurse(fibonacci_field, memory, context.deeper(2))
return a + b
with fracton.memory_field() as field:
context = fracton.Context(depth=10, entropy=0.8)
result = fibonacci_field(field, context)NEW: Fracton now includes the Möbius module for reality simulation, where physics emerges from first principles.
from fracton.mobius import RealityEngine
# Create universe simulator
reality = RealityEngine(size=(256, 64), device='cuda')
# Initialize from Big Bang (maximum disequilibrium)
reality.initialize('big_bang')
# Evolve and watch physics emerge
for state in reality.evolve(steps=100000):
if state['step'] % 1000 == 0:
print(f"Time: {state['time']:.2f}, Temp: {state['temperature']:.4f}")
print(f"Disequilibrium: {state['disequilibrium']:.6f}")
# Discover emergent laws
laws = reality.discover_laws(states)
print(f"Discovered: {laws}")Key Features:
- Möbius Topology: Anti-periodic boundaries create non-orientable substrate
- PAC Conservation: Machine-precision (<1e-12) conservation enforcement
- Thermodynamic Coupling: Information-energy duality (Landauer principle)
- Time Emergence: Time flows from disequilibrium pressure, not imposed
- Law Discovery: Automated detection of conservation laws, forces, symmetries
See Reality Engine Integration Guide for details.
- Recursion as First-Class Primitive: All computation flows through recursive function calls
- Entropy-Driven Execution: Functions activate based on entropy thresholds and field pressure
- Bifractal Traceability: Every operation maintains forward and reverse traces for analysis and healing
- Field-Aware Memory: Shared memory structures that respect entropy and context boundaries
- Tool Expression: External systems accessed as contextual expressions rather than static calls
@fracton.recursive
def process_field(memory, context):
if context.entropy < threshold:
return memory.stable_state()
# Recursive dispatch based on field conditions
result = fracton.recurse(analyze_patterns, memory, context)
return fracton.crystallize(result)@fracton.entropy_gate(min_threshold=0.7)
def collapse_dynamics(memory, context):
# Only executes when entropy exceeds 0.7
return perform_collapse(memory, context)with fracton.memory_field() as field:
# Forward trace automatically recorded
result = recursive_operation(field, context)
# Reverse trace available for analysis
trace = field.get_bifractal_trace()@fracton.tool_binding
def github_interface(memory, context):
# Tool accessed based on field context
return fracton.express_tool('github', context.project_state)- Field-aware symbolic processing
- Collapse dynamics modeling
- Meta-cognitive recursion
- Recursive fact-checking
- Evidence field analysis
- Truth crystallization
- Recursive causality chains
- Temporal field dynamics
- Event entropy analysis
- Emergent intelligence studies
- Complex systems modeling
- Infodynamics experiments
fracton/
├── core/ # Core language runtime
│ ├── recursive_engine.py # Main execution engine
│ ├── entropy_dispatch.py # Context-aware function dispatch
│ ├── bifractal_trace.py # Forward/reverse operation tracing
│ └── memory_field.py # Shared memory coordination
├── lang/ # Language constructs
│ ├── decorators.py # @fracton decorators
│ ├── primitives.py # Core language primitives
│ ├── context.py # Execution context management
│ └── compiler.py # Optional DSL compilation
├── tools/ # Tool expression framework
│ ├── registry.py # Tool registration system
│ ├── bindings/ # External system connectors
│ └── expression.py # Context-aware tool access
├── models/ # Pre-built model templates
│ ├── gaia.py # GAIA cognition model
│ ├── aletheia.py # Truth verification model
│ └── base.py # Base model class
├── utils/ # Utilities
│ ├── visualization.py # Trace and field visualization
│ ├── analysis.py # Performance and pattern analysis
│ └── debugging.py # Recursive debugging tools
└── examples/ # Usage examples and tutorials
import fracton
# Define a recursive field processor
@fracton.recursive
@fracton.entropy_gate(0.5)
def fibonacci_field(memory, context):
if context.depth < 2:
return 1
# Recursive computation with entropy awareness
a = fracton.recurse(fibonacci_field, memory, context.deeper(1))
b = fracton.recurse(fibonacci_field, memory, context.deeper(2))
return a + b
# Execute with field context
with fracton.memory_field() as field:
context = fracton.Context(depth=10, entropy=0.8)
result = fibonacci_field(field, context)
# Analyze the recursive trace
trace = field.get_bifractal_trace()
fracton.visualize_trace(trace)import fracton
from fracton.models import gaia
# Define GAIA-specific recursive operations
@fracton.recursive
@fracton.entropy_gate(0.7)
def cognitive_collapse(memory, context):
# Process symbolic structures
symbols = memory.get_symbols()
# Recursive pattern analysis
patterns = fracton.recurse(analyze_patterns, memory, context)
# Crystallize insights
return gaia.crystallize(patterns, symbols)
# Run GAIA cognition model
model = gaia.GAIAModel()
result = model.run(cognitive_collapse, initial_symbols)- Minimal Syntax: Clean, expressive syntax for complex recursive operations
- Performance: Optimized for deep recursion and large memory fields
- Debuggability: Rich tracing and visualization for understanding recursive flows
- Modularity: Easy integration with external tools and systems
- Research-Oriented: Designed for experimental exploration of infodynamics
- Core recursive engine
- Entropy dispatch system
- Bifractal tracing
- Memory field management
- Tool expression framework
- GAIA model integration
- Visualization tools
- Documentation and examples
Fracton is designed to be a foundational language for infodynamics research. Contributions should focus on:
- Core language features
- Model templates for specific research areas
- Tool bindings for external systems
- Visualization and analysis capabilities
Fracton is part of the larger Dawn Field Theory ecosystem:
- dawn-field-theory - Core theoretical foundation
- fracton-sdk - This computational language ⭐
- dawn-devkit - Development tools and templates
- dawn-models - AI architectures and implementations
- cip-core - Cognition Index Protocol
- Setup Guide: SETUP.md
- Architecture: ARCHITECTURE.md
- Specification: SPEC.md
- Testing Guide: tests/TESTING_GUIDE.md
- Roadmap: ROADMAP.md
- Development Roadmap: roadmaps/fracton_roadmap.md
- Current Tasks: todo/fracton_todo.md
- Contributing: See contributing guidelines in the main repository
- Issues: GitHub Issues
Apache License 2.0 - See LICENSE file for details