worldmat-tidar
World Matrices via TiDAR Executions: 3Γ3Γ3 Parallel Triadic Computation
Version: 1.0.0 Trit: 0 (ERGODIC - coordinates execution) Color: #55D9A0
Worldmat is a 3Γ3Γ3 matrix of TiDAR executions where:
Each cell executes the TiDAR pattern:
TEMPORAL AXIS
PAST PRESENT FUTURE
β β β
βββββββββββββββββββββββββββββββ
β βββββ βββββ βββββ β
MINUS β β-1 β β 0 β β+1 β β GF(3)=0
β βββββ βββββ βββββ β
POLARITY β βββββ βββββ βββββ β
ERGODICβ β 0 β β+1 β β-1 β β GF(3)=0
β βββββ βββββ βββββ β
β βββββ βββββ βββββ β
PLUS β β+1 β β-1 β β 0 β β GF(3)=0
β βββββ βββββ βββββ β
βββββββββββββββββββββββββββββββ
β β β
GF(3)=0 for each column
| Property | Value | Guarantee |
|---|---|---|
| GF(3) Conservation | All slices sum to 0 | Row, Column, Depth |
| SPI | Same seed β Same result | Parallel or Sequential |
| Spectral Gap | 0.25 (1/4) | Ergodic mixing |
| Cells | 27 | 3Β³ TiDAR executions |
# Phase 1: DIFFUSION (parallel drafting)
def diffusion_draft(self, n_tokens: int = 8):
streams = self.rng.split(n_tokens)
return [stream.next()[0] for stream in streams]
# Phase 2: AR VERIFY (sequential verification)
def ar_verify(self):
prev = self.seed
for token in self.draft_tokens:
verified = mix64(prev ^ token)
self.verified_tokens.append(verified)
prev = verified
Idle agents steal work from busy agents:
class WorkStealingScheduler:
def steal_work(self, thief: Polarity) -> Optional[TiDARCell]:
busiest = max(self.queues.keys(), key=lambda p: len(self.queues[p]))
if busiest != thief and self.queues[busiest]:
return self.queues[busiest].pop(0)
return None
wm = Worldmat(master_seed=0x87079c9f1d3b0474)
wm.execute_parallel()
acset = wm.to_acset()
# Returns: {schema, parts, subparts, metadata}
# Run demo
python worldmat.py
# Verify SPI
python worldmat.py verify
# Export ACSet
python worldmat.py acset > worldmat.json
worldmat-tidar (0) forms balanced triads:
three-match (-1) β worldmat-tidar (0) β gay-mcp (+1) = 0 β
spi-parallel-verify (-1) β worldmat-tidar (0) β triad-interleave (+1) = 0 β
tidar_streaming (-1) β worldmat-tidar (0) β gay_triadic_exo (+1) = 0 β
from worldmat import Worldmat
from openai_acset import build_openai_acset
# Process conversations through worldmat
wm = Worldmat(master_seed=conv_fingerprint)
wm.execute_parallel()
# Each message β cell in worldmat
# Role (user/assistant/tool) β polarity
# Time β temporal phase
# Type (obs/action/pred) β modality
from gay import SplitMixTernary
# Worldmat colors from Gay-MCP
gen = SplitMixTernary(seed=worldmat.fingerprint())
palette = gen.palette_hex(n=27) # One color per cell
| File | Purpose |
|---|---|
worldmat.py |
Core implementation |
SKILL.md |
This documentation |
Base directory: file:///Users/bob/.claude/skills/worldmat-tidar