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 (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(0external packages); commercial and patent rights remain reserved during pending filings (seeLICENSE&NOTICE). - Evidence Boundary:
L1 Deterministic Software & Synthesizable RTL·INSPIRED_BY != IMPLEMENTS != PROVES
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
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
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 DCSurface 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 DCTwo-Stroke Escapement): Crossing onto the live rail requires two distinct witness strokes. Stroke 1 ($W_{\mathrm{PRE}}$ ) stamps anfsyncbinary write-ahead drum record (KTRN) before lifting the detent pawl intoIN_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 inUNRESOLVEDat$0.00\text{ V DC}$ until an operator signs a one-timeHMAC-SHA256clearance atLevel 01. -
TRAP(0x5A·0.00 V DCShear-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 DCMaster Crowbar): A spring-loaded copper shunt across the main bus. Any hard caliper breach, dual-rail wire fault (00or11), 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 |
+------------------------------------------------------------------------+
The total trial chamber
Every trial state carries five exact integer coordinates
+------------------------------------------------------------------------+
| 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) |
+------------------------------------------------------------------------+
| Space in |
1950s Bench Mechanism & Exact Integer Job | Failure Mode Excluded |
|---|---|---|
|
Affine 3D Bed ( |
Surface-plate coordinates |
Arbitrary coordinate-origin bias. |
|
Cotangent Symplectic Carriage ( |
Couples carriage travel L1. |
Uncoupled state lists with drift between force and travel. |
|
Hausdorff ( |
Fixed-jaw go/no-go gauge checking worst single-axis clearance |
RMS / |
|
Belnap-Dunn Relay Bridge ( |
Evaluates proposals ?, 0, 1, and shorted CONFLICT ( |
Three-valued logic that hides sensor disagreement inside ?. |
|
Closed Traverse Loop ( |
Sums integer loop-closure error around bench circuits and trips hard if |
Silent rounding of cumulative multi-axis backlash. |
|
One-Way Pawl Classifier ( |
Models asymmetric open witness latches (kept distinct from physical hardware irreversibility). | Confusing logical asymmetry with physical WORM storage. |
|
Discrete Ratchet Tape & Cylinders ( |
Append-only prefix chain |
Treating time as a reversible fourth spatial plank. |
-
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 insideHOLDcan advance the tape; only the discrete escapement$\Omega$ crosses into$B$ . -
Symmetric Gauge Block & Poisoned
-2^63Stop (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 fencesINT64_MINasKOSMOS_POISON_MINand 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. -
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 toHOLD($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 masterKILLcrowbar. -
Two-Stroke Drum WAL (
KTRN), 1,024 Shear-Pin Bulkheads & Dual-Rail Silicon (v0.2,SPEC/05-08):kosmos_wal.cenforcesfsync-before-pulse binary logging withKTRNtorn-write quarantine; a power cut betweenW_PREandW_POSTcold-boots directly intoUNRESOLVED($u = 0$ ).kosmos_dual_rail_gate.svpairs complementary01/10signal rails (where00or11firescrowbar_tripcombinatorially) with picosecond Time-of-Flight bounds and a root-free 128-bit squared-radius corner gauge ($(80, 80, 10)$ caught against$100^2$ ). -
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-pointlaplacian) 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 (preventing1/2 == 0integer truncation) and a safe right-to-rest inHOLD; 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/256C11$\leftrightarrow$ RTLXOR == 0parity). -
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.candkosmos_v04_mossbauer_schwarzschild_gate.svstress-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 toTRAP) 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/128C11$\leftrightarrow$ RTLXOR == 0,0latches inYosys).
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
make verifymake verify runs the complete verification bench offline with zero third-party packages:
-
Strict ISO C11 Kernel (
ASan+UBSan): CompilesCORE/andTESTS/test_core_c11.cundergcc -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, andkosmos_v04_mossbauer_schwarzschild_gate.sv) viaiverilog -g2012 -Walland synthesizes each gate throughyosys(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-writeKTRNcold-boot recovery, 1,024-channelTRAPshear-pins, 3D lattice calculus, 256-bit wide-word metrology, and384/384combined C11$\leftrightarrow$ RTLXOR == 0vector parity. -
Surface & Cryptographic Manifest Audit: Enforces
0 floatacrossCORE/andRTL/, zero leaked local paths, collision-free MathJax, alignedtextplates, and SHA-256 integrity across every file inMANIFEST.sha256.
-
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-strokefsyncwitness 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.candkosmos_wal.cimplement append-only cryptographic chains on storage media rather than physical WORM hardware, and true emergency isolation requires a mechanicalLevel 01copper 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 HOLD), kan klossen på støpejernsplansjen vendes eksakt med OPEN) krever to adskilte vitneslag (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/.