Skip to content
sololysPublic

About

Deterministic 3D phase-space and consequence-bounded universe model

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

KOSMOS

ORCID License

A brass carriage on an oiled surface plate can reverse at $0.00\text{ V DC}$.
The punched paper tape advances by one tooth only when the escapement pawl drops.
Smooth motion on the bench never closes the main knife-switch on its own.

KOSMOS ($\mathfrak{K}$, v0.4) is a zero-dependency, integer-only (0 float) electromechanical-style interlock, crash-recovery, and discrete classical-mechanics kernel implemented in strict ISO C11 (-Werror -pedantic, ASan/UBSan) and synthesizable IEEE 1800-2012 SystemVerilog RTL (Yosys verified, 384/384 vector XOR == 0 bit-exact parity against C11; companion gate grammar: rosetta-omni-codex).

  • Author: Marius Egerhei Torjusen · Risør, Norway (ORCID: 0009-0006-0431-6637)
  • Inspection & Verification: Openly cloneable and locally reproducible via make verify (0 external packages); commercial and patent rights remain reserved during pending filings (see LICENSE & NOTICE).
  • Evidence Boundary: L1 Deterministic Software & Synthesizable RTL · INSPIRED_BY != IMPLEMENTS != PROVES

0. The Surface Plate, the Knife-Switch, and the Ratchet

On a 1950s machine-shop surface plate, I can slide a machined brass carriage across oiled cast iron a hundred times while the main bakelite knife-switch stands open with a $5.0\text{ mm}$ dry air gap and $0.00\text{ V DC}$ on the solenoid rail. Position $q = (q_x, q_y, q_z)$ rests on the iron plate without an artificial origin; linear impulse $p = (p_x, p_y, p_z)$ rides with the mass as its stored mechanical momentum. When I reverse the handwheel via $J(q, p) = (q, -p)$, the carriage retraces its exact groove without advancing the mechanical ratchet counter by a single tooth.

Most digital control software fails because it stores an unverified trial calculation and a live actuator command in the same floating-point register. That is the electrical equivalent of wiring a pencil sketch straight to a $5.00\text{ V DC}$ relay coil, or pretending a hole punched in paper tape vanishes if I subtract the same number on the next line. Averaging error with an RMS meter hides a single sharp voltage spike that welds a contact shut; letting a timer expire into actuation lets a stalled loop drift across a live boundary.

In KOSMOS, the trial bench inside the room and the committed stroke outside are separated by a hard mechanical-style interlock (SPEC/00 to SPEC/13):

  • HOLD (0x3C · 0.00 V DC Surface Plate): Knife-switch open. Candidate trajectories $(q, p)$ can be stepped, gauged against fixed-jaw calipers, and reversed via $J(q, p) = (q, -p)$ at zero bus voltage ($u = 0$).
  • OPEN (0xA5 · 5.00 V DC Two-Stroke Escapement): Crossing onto the live rail requires two distinct witness strokes. Stroke 1 ($W_{\mathrm{PRE}}$) stamps an fsync binary write-ahead drum record (KTRN) before lifting the detent pawl into IN_FLIGHT. Stroke 2 ($W_{\mathrm{POST}}$) chains the post-stroke receipt onto the history tape. If power drops mid-stroke, a weighted deadman latch locks the cold-booted gate in UNRESOLVED at $0.00\text{ V DC}$ until an operator signs a one-time HMAC-SHA256 clearance at Level 01.
  • TRAP (0x5A · 0.00 V DC Shear-Pin Bulkhead): Across 1,024 locally bounded channels ($\deg(k) \le 4$), a local fault shears only channel $k$'s brass pin ($u_k = 0$) in $O(1)$ integer cycles while the remaining 1,023 channels keep running.
  • KILL (0x00 · 0.00 V DC Master Crowbar): A spring-loaded copper shunt across the main bus. Any hard caliper breach, dual-rail wire fault (00 or 11), conflicting witness pair, or unclosed Vernier traverse loop trips the crowbar and severs every output.
+------------------------------------------------------------------------+
|  ELECTROMECHANICAL ESCAPEMENT, SHEAR-PIN & CROWBAR TOPOLOGY  (v0.4)    |
+------------------------------------------------------------------------+
|                                                                        |
|  +--------------------+      ESCAPEMENT PAWL     +------------------+  |
|  |    HOLD  (0x3C)    |          (Pi_K)          |   OPEN  (0xA5)   |  |
|  | Cast-iron plate    |======[ KNIFE-SWITCH ]===>| Solenoid bus     |  |
|  | 0.00 V  (handwheel)|       |          |       | 5.00 V  (stroke) |  |
|  +--------------------+       |          |       +------------------+  |
|                      1-channel|          |bus or                       |
|                       overload|          |rail fault                   |
|                               v          v                             |
|                      +----------------+  +------------------+          |
|                      |  TRAP  (0x5A)  |  |   KILL  (0x00)   |          |
|                      | Brass shear-pin|  | Copper crowbar   |          |
|                      | 0.00 V ch. cut |  | 0.00 V bus shunt |          |
|                      +----------------+  +------------------+          |
|                       Isolates single     Drops master rail            |
|                       faulted channel     and severs entire            |
|                       inside bulkhead     5.00 V drive loop            |
+------------------------------------------------------------------------+

1. Apparatus Construction ($\mathfrak{K}$)

$$\mathfrak{K} = \bigl(E,; B,; \omega,; J,; \mathcal{A},; \mathcal{C}_4,; \Omega\bigr)$$

The total trial chamber $E$ is a countable disjoint sum indexed over finite punched-tape history prefixes $h \in B = A^*$:

$$E = \bigsqcup_{h \in B} \bigl({h} \times T^*Q \times U \times C_h\bigr), \qquad \mathfrak{R}_\Omega = E \sqcup B$$

Every trial state carries five exact integer coordinates $x = (h, q, p, u, s)$: history tape prefix $h \in A^*$, carriage position $q \in Q$, mechanical impulse $p \in T_q^*Q$, bounded drive $u \in U$, and admissible continuation cylinder $s \in C_h \subseteq A^{\mathbb{N}}$.

+------------------------------------------------------------------------+
|  TWO-STROKE RATCHET & SYMPLECTIC BENCH : K = (E, B, omega, J, A, C_4)  |
+------------------------------------------------------------------------+
|  BENCH CHAMBER E  (HOLD : u = 0, 0.00 V DC, pi o gamma = const)        |
|                                                                        |
|  Plate Q    : 3D Affine cast-iron bed (displacements q_2 - q_1 only)   |
|  Carriage   : Symplectic pair z = (q, p), omega = sum dq_i ^ dp_i      |
|  Handwheel J: Antisymplectic reversal J(q, p) = (q, -p), J*w = -w      |
|  Caliper U  : Division-free integer L-inf go/no-go gauge (poison fence)|
|  Relay C_4  : Four-state witness bridge P x W -> {?, 0, 1, CONFLICT}   |
|  Traverse   : Closed Vernier loop check Delta_seam == 0 before pawl    |
+-----------------------------------+------------------------------------+
                                    |
                          [ OMEGA ESCAPEMENT ]
                   Stroke 1 : W_PRE  -> fsync KTRN -> OPEN (IN_FLIGHT)
                   Stroke 2 : W_POST -> REALIZED   (or UNRESOLVED latch)
                                    |
+-----------------------------------+------------------------------------+
|  PUNCHED HISTORY TAPE B = A* & CONTINUATION CYLINDER C_h subset A^N    |
|                                                                        |
|  Ratchet Law: h_{n+1} = h_n || e_n  (FIPS 180-4 SHA-256, 0 overwrite)  |
|  Nested Stop: C_{h || e} subset C_h (exact integer tooth count l)      |
|  Verdicts   : OPEN (0xA5) | HOLD (0x3C) | TRAP (0x5A) | KILL (0x00)    |
+------------------------------------------------------------------------+

Apparatus Parts and Mechanical Roles

Space in $\mathfrak{K}$ 1950s Bench Mechanism & Exact Integer Job Failure Mode Excluded
Affine 3D Bed ($Q$) Surface-plate coordinates $q = (q_x, q_y, q_z)$ with no privileged $(0,0,0)$; only displacements $q_2 - q_1$ are vectors. Arbitrary coordinate-origin bias.
Cotangent Symplectic Carriage ($T^*Q, \omega$) Couples carriage travel $q$ and impulse $p$ via $\omega = \sum dq_i \wedge dp_i$ with exact phase-volume conservation in L1. Uncoupled state lists with drift between force and travel.
Hausdorff ($T_2$) + $L^\infty\text{-Caliper}$ ($U, \mathcal{A}$) Fixed-jaw go/no-go gauge checking worst single-axis clearance $\lvert x_i - r_i \rvert \le \tau_i$ with zero division and zero floats. RMS / $L^2\text{-meters}$ that mask single-channel spikes.
Belnap-Dunn Relay Bridge ($\mathcal{C}_4$) Evaluates proposals $P$ against independent witnesses $W$ across four relay states: ?, 0, 1, and shorted CONFLICT ($\top$). Three-valued logic that hides sensor disagreement inside ?.
Closed Traverse Loop ($\Delta_{\text{seam}}$) Sums integer loop-closure error around bench circuits and trips hard if $\Delta_{\text{seam}} \neq 0$. Silent rounding of cumulative multi-axis backlash.
One-Way Pawl Classifier ($\mathbb{S} = {0, 1}$) Models asymmetric open witness latches (kept distinct from physical hardware irreversibility). Confusing logical asymmetry with physical WORM storage.
Discrete Ratchet Tape & Cylinders ($B, C_h$) Append-only prefix chain $B = A^*$ with strictly shrinking future cylinders $C_{h \parallel e} \subsetneq C_h$. Treating time as a reversible fourth spatial plank.

2. Classical Bench Laws & Silicon Parity (v0.1 to v0.4)

  1. Air-Gap Disconnection Law ($\pi \circ \gamma = \text{const}$, SPEC/00): Because projection $\pi(h, q, p, u, s) = h$ maps into a discrete, locally finite ratchet base $B$, every continuous curve $\gamma : [0, 1] \to E$ stays locked to a single history tooth $h$. No smooth motion or clock tick inside HOLD can advance the tape; only the discrete escapement $\Omega$ crosses into $B$.
  2. Symmetric Gauge Block & Poisoned -2^63 Stop (SPEC/01-02): In standard 64-bit two's-complement arithmetic, INT64_MIN ($-2^{63}$) has no positive counterpart, so negating momentum overflows and breaks $J^2 = I$. KOSMOS fences INT64_MIN as KOSMOS_POISON_MIN and restricts $(q, p)$ to the symmetric integer bed $[-M, +M]^6$ ($M = 2^{63}-1$), preserving $J(J(z)) = z$ and 128-bit $J^*\omega = -\omega$ bit-for-bit.
  3. Trial Rejection (HOLD) vs. Bus Crowbar (KILL, SPEC/03-04): Pushing a bold trial stroke against the candidate stop $\mathcal{A}{\text{cand}}$ simply returns the carriage to HOLD ($u = 0$) without blowing the main fuse. Only breaches of the hard machine frame $\mathcal{A}{\text{hard}}$, shorted witness conflicts (CONFLICT), open loop seams ($\Delta_{\text{seam}} \neq 0$), replay nonces, or poison values drop the master KILL crowbar.
  4. Two-Stroke Drum WAL (KTRN), 1,024 Shear-Pin Bulkheads & Dual-Rail Silicon (v0.2, SPEC/05-08): kosmos_wal.c enforces fsync-before-pulse binary logging with KTRN torn-write quarantine; a power cut between W_PRE and W_POST cold-boots directly into UNRESOLVED ($u = 0$). kosmos_dual_rail_gate.sv pairs complementary 01/10 signal rails (where 00 or 11 fires crowbar_trip combinatorially) with picosecond Time-of-Flight bounds and a root-free 128-bit squared-radius corner gauge ($(80, 80, 10)$ caught against $100^2$).
  5. 1950s Classical Lattice Mechanics: Hooke, Faraday-Lenz, Newton & Pairwise Reciprocity (v0.3, SPEC/09-12 · 256/256 XOR == 0): Exact 3D integer cell operators (grad, curl, div, 7-point laplacian) satisfying $D_1 D_0 \equiv 0$, $D_2 D_1 \equiv 0$, and Faraday-Lenz opposition $\mathcal{E} \cdot \Delta \Phi_B \le 0$; Newtonian inertia bounds $\lvert m_i \Delta^2 q_i \rvert \le F_{\max,i} \Delta t$ using doubled integer kinetic work (preventing 1/2 == 0 integer truncation) and a safe right-to-rest in HOLD; pairwise Newton third-law balance $F_{ij} + F_{ji} = 0$ with strict discrete equilibrium; causal signal-propagation cone $\Delta r^2 \le c^2 \Delta t^2$, cooling-sink ceiling $\dot{S}{\mathrm{gen}} \le \dot{S}{\mathrm{sink}}$, and bounded proof-step counter (256/256 C11 $\leftrightarrow$ RTL XOR == 0 parity).
  6. 1958-1959 Recoilless Crystal Resonance & Tower Frequency-Ratio Stress-Test (v0.4, SPEC/13 · 128/128 XOR == 0): Inspired by Rudolf Mössbauer's 1958 recoilless crystal-lattice resonance bench in Munich and the 1959 22.5 m laboratory tower frequency-shift metrology, kosmos_mossbauer_schwarzschild.c and kosmos_v04_mossbauer_schwarzschild_gate.sv stress-test wide-word integer RTL without FPU or division hardware: a 41-slit $10;\mu\text{m}$ stationary $^{109}\text{Ag}$ collimator detector ($\ge 5,625$ counts, cross-multiplied $3\sigma\text{-dip}$ $(C_\infty - C_{\min})^2 \ge 9 C_\infty$ against single-count Poisson noise, $\pm 1\text{ bin}$ deadband, dead-strip routing to TRAP) paired with portable four-limb 256-bit cross-multiplication $q^2 r_1(r_2 - r_s) = p^2 r_2(r_1 - r_s)$ (128/128 C11 $\leftrightarrow$ RTL XOR == 0, 0 latches in Yosys).

3. Repository Layout

KOSMOS/
|-- LICENSE
|-- NOTICE
|-- Makefile
|-- MANIFEST.sha256
|-- README.md
|-- KOSMOS_MANIFEST.md
|-- SPEC/
|   |-- 00_SPACE.md
|   |-- 01_SYMPLECTIC_BODY.md
|   |-- 02_PHASE_MIRROR.md
|   |-- 03_BOUNDARY.md
|   |-- 04_CHU_WITNESS.md
|   |-- 05_OMEGA_GATE.md
|   |-- 06_HISTORY.md
|   |-- 07_CHANNEL_CONE_ENERGY.md
|   |-- 08_DUAL_RAIL_AND_WAL_RECOVERY.md
|   |-- 09_CELLULAR_FIELD_CALCULUS.md
|   |-- 10_NEWTONIAN_INERTIA.md
|   |-- 11_NASH_RECIPROCITY.md
|   |-- 12_CAUSAL_HORIZON_AND_GODEL.md
|   `-- 13_MOSSBAUER_AND_SCHWARZSCHILD_SLUICE.md
|-- CORE/
|   |-- kosmos_space.h
|   |-- kosmos_v02.h
|   |-- kosmos_v03.h
|   |-- kosmos_v04.h
|   |-- kosmos_sha256.h
|   |-- kosmos_sha256.c
|   |-- kosmos_mirror.c
|   |-- kosmos_boundary.c
|   |-- kosmos_gate.c
|   |-- kosmos_history.c
|   |-- kosmos_wal.c
|   |-- kosmos_channel_sluice.c
|   |-- kosmos_tdc_window.c
|   |-- kosmos_energy_128.c
|   |-- kosmos_cellular_field.c
|   |-- kosmos_newtonian_inertia.c
|   |-- kosmos_nash_reciprocity.c
|   |-- kosmos_horizon_godel.c
|   `-- kosmos_mossbauer_schwarzschild.c
|-- RTL/
|   |-- kosmos_gate.sv
|   |-- tb_kosmos_gate.sv
|   |-- kosmos_dual_rail_gate.sv
|   |-- tb_kosmos_dual_rail_gate.sv
|   |-- kosmos_v03_physics_gate.sv
|   |-- tb_kosmos_v03_physics_gate.sv
|   |-- kosmos_v04_mossbauer_schwarzschild_gate.sv
|   `-- tb_kosmos_v04_mossbauer_schwarzschild_gate.sv
`-- TESTS/
    |-- kosmos_ctypes.py
    |-- test_core_c11.c
    |-- test_involution.py
    |-- test_boundary.py
    |-- test_witness.py
    |-- test_prefix.py
    |-- test_no_unauthorized_commit.py
    |-- test_v02_extensions.py
    |-- test_round2_adversarial.py
    |-- test_v03_physics_parity.py
    |-- test_v04_mossbauer_schwarzschild_parity.py
    `-- verify_surface.py

4. Build & Deterministic Verification

make verify

make verify runs the complete verification bench offline with zero third-party packages:

  • Strict ISO C11 Kernel (ASan + UBSan): Compiles CORE/ and TESTS/test_core_c11.c under gcc -std=c11 -Wall -Wextra -Werror -pedantic -Wconversion -Wsign-conversion -fsanitize=address,undefined.
  • SystemVerilog RTL Simulation & Synthesis Gate: Simulates all four RTL interlocks (kosmos_gate.sv, kosmos_dual_rail_gate.sv, kosmos_v03_physics_gate.sv, and kosmos_v04_mossbauer_schwarzschild_gate.sv) via iverilog -g2012 -Wall and synthesizes each gate through yosys (0 latches, 0 errors).
  • Nine Adversarial & Silicon-Parity Suites (libkosmos.so): Exercises mirror involution, division-free $L^\infty\text{-calipers}$, Belnap-Dunn relay witnesses, Cantor prefix cylinders, torn-write KTRN cold-boot recovery, 1,024-channel TRAP shear-pins, 3D lattice calculus, 256-bit wide-word metrology, and 384/384 combined C11 $\leftrightarrow$ RTL XOR == 0 vector parity.
  • Surface & Cryptographic Manifest Audit: Enforces 0 float across CORE/ and RTL/, zero leaked local paths, collision-free MathJax, aligned text plates, and SHA-256 integrity across every file in MANIFEST.sha256.

5. Evidence Boundary (L1 != PROVES) & Norsk Verkstednotat

  • Locally Verified (L1): Exact integer phase geometry on $[-M, +M]^6$, 128-bit antisymplectic identity $J^*\omega = -\omega$, division-free $L^\infty\text{-calipers}$, two-stroke fsync witness interlock (W_PRE / W_POST), FIPS 180-4 SHA-256 prefix tape, and synthesizable SystemVerilog RTL parity (384/384 XOR == 0).
  • Outside Software Reach: Silicon switching always dissipates physical heat; no software routine is thermodynamically lossless. kosmos_history.c and kosmos_wal.c implement append-only cryptographic chains on storage media rather than physical WORM hardware, and true emergency isolation requires a mechanical Level 01 copper air-gap contact outside the processor.

Kort norsk verkstednotat: Jeg har bygget KOSMOS som en mekanisk 1950-talls prøvebenk i heltalls-C11 (0 float) og syntetiserbar SystemVerilog RTL (SPEC/00 til SPEC/13). Så lenge bakelittbryteren står åpen ved $0.00\text{ V DC}$ (HOLD), kan klossen på støpejernsplansjen vendes eksakt med $J(q, p) = (q, -p)$ uten at hullbåndet rykker ett hakk frem; å slippe kraft ut på $5.00\text{ V}\text{-skinna}$ (OPEN) krever to adskilte vitneslag ($W_{\mathrm{PRE}} \to W_{\mathrm{POST}}$) med fsync-sikret KTRN-logg, mens enkeltkanal-brudd klipper messingsplinten i TRAP (0x5A) og harde rammebrudd slår inn kobberspett-kortslutteren i KILL (0x00). Detaljerte spesifikasjoner på norsk ligger i KOSMOS_MANIFEST.md og SPEC/.

About

Deterministic 3D phase-space and consequence-bounded universe model

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages