Skip to content

About

Bare-metal single-URL verification observatory for PhysProof, lean-os & PhysProof-SoC (7 Rust no_std Wasm SIMD128 cores, 240Hz WebGPU DAG, in-browser Lean 4 kernel, Cloudflare Workers/R2).

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

PhysProof Live — BARE-METAL VERIFICATION OBSERVATORY

Live Observatory Latest Release CI Status 8 Rust Wasm Cores 240Hz OLED MIT License

A bare-metal, zero-framework, single-URL formal verification observatory powering PhysProof, lean-os, and physproof-soc — live at https://physproof.thisness.us/.


Why PhysProof Live Exists

Large formal-verification corpora are notoriously hard to audit honestly. Static HTML docs go stale the moment a commit lands, heavy SPA dashboards choke on 1,400+ Lean 4 modules, and asking visitors to "just trust CI logs" defeats the entire point of machine-checked mathematics and hardware security.

PhysProof Live treats formal verification as a real-time precision telemetry instrument:

  • Don't trust the website — re-check the proofs on your own CPU. Click VERIFY KERNEL (V) to download exported lean4export v3.1.0 proof closures straight from R2 and independently typecheck them in a Web Worker using unmodified upstream Rust nanoda_lib v0.4.33 compiled to WebAssembly (kernel.wasm).
  • Bare-metal speed with zero frontend frameworks. Eight zero-glue #![no_std] / Rust→Wasm cores (compiled with +simd128,+bulk-memory,+nontrapping-fptoint,+sign-ext and Binaryen wasm-opt) handle search, O(n) radix sorting, DAG blast-radius closure, forever log signal folding, RV64GC emulation, cycle-accurate RTL simulation, educational tooltip resolution/layout, and edge CRC32 validation. Cold boot stays <20 ms on a single GET / round-trip with 2,702 B (1,293 B Brotli-11) of inlined Rust SIMD128 Wasm.
  • Radically honest epistemic visibility. Every module exposes local vs. transitive kernel purity, exact downstream sorry/axiom blast radius, HeadlineScopeLedger honest scope grades (clauses, conditional_on, toy_model, etc.), PermanentSorryRegistry gaps, and live proof-to-silicon lineage down to signed-off SKY130A standard cells.
  • Forever append-only observability on $0/mo infrastructure. Cloudflare Workers, SQLite Durable Objects (WebSocket Hibernation API), R2 immutable CRC32 NDJSON chunks, and Workers Analytics Engine archive every live proof trace, Colab compile rig sample, and edge telemetry event from event #1 with zero truncation or destructive ring buffers.

Live Observatory Showcase

Captured at 2× Retina directly from production https://physproof.thisness.us/ on pure #000000 OLED chrome.

PhysProof Live — Bare-Metal PPL3 Index Cockpit at 100µs SIMD128

PhysProof Live — Zero-Reload Cockpits: Verify Kernel, WebGPU Graph DAG, Stage-3 RISC-V, and PhysProof-SoC Silicon Observatory


Architecture & Signal Flow

PhysProof Live Architecture and Signal Flow

Eight Rust → WebAssembly Cores (Zero wasm-bindgen, Zero Bundlers)

Every compute-intensive path runs in hand-tuned wasm32-unknown-unknown Rust binaries verified on every push in CI (npm run verify), leaving vanilla ES modules strictly as the thin DOM / WebSocket / WebGPU / Worker shim:

Crate / Source Output Asset Raw Size Brotli-11 Load Strategy Engineering Role
crates/physproof-wasm/ public/physproof.wasm 2,702 B 1,293 B Inlined in GET / (1-RTT) #![no_std] SIMD128 ASCII folding, PPL3 composable AND/NOT bitmask & scope-grade search in <100 µs, O(n) zero-entropy-skipping LSD Radix Sort across 12 sort keys (fixed 2 MiB imported memory)
crates/physproof-edge/ src/edge.wasm 2,391 B 1,163 B AOT in Cloudflare Worker #![no_std] zero-copy PPL2/PPL3/PPLG binary validation on R2 sync, 16-entry nibble-LUT IEEE CRC32 archive checksums, O(n) 3-way Dutch National Flag Quickselect f64 quantiles
crates/physproof-log/ public/log.wasm 13,619 B 4,903 B Lazy (#live / #telemetry) #![no_std] growable SIMD128 forever log engine (zero eviction), single-call push_batch(), O(n) 2-way sorted merge, deterministic 12-subtype Lean/trace semantic classifier & inline noise folding, peak-preserving sparklines
crates/physproof-graph/ public/graph.wasm 11,395 B 3,947 B Lazy (#graph) #![no_std] CSR adjacency builder, iterative topological depth, transitive sorry/axiom BFS & downstream blast-radius DFS, SIMD128 step_layout() morphing (RADIAL/LAYERS/DEBT), f32x4 vectorized 240Hz hit-testing
crates/physproof-riscv/ public/riscv.wasm 25,916 B 6,358 B Lazy (#riscv) #![no_std] Stage-3 RV64GC emulator (mulhu, pre-decoded 8-entry locked PMP range cache, Sv39 3-level MMU, NS16550A UART0 0x10000000) + native RV64GC disassembler & PMP decoder
physproof-soc (synced) public/soc.wasm 16,578 B 6,099 B Lazy (#soc) #![no_std] zero-.bss cycle-accurate 4-phase RTL digital twin (fetch→decode→exec→wb, Stage-3 Sv39 + custom-0 parity) driving the 9-track 240Hz Logic Analyzer, Vault CE firewall attack simulation, and exact Landauer erasure counters
crates/physproof-tips/ public/tips.wasm 109.1 KB 34.9 KB Lazy post-paint (WebAssembly.compileStreaming) #![no_std] zero-pointer packed .rodata educational catalog (404 static + 32 RV64 ABI + dynamic PMP rules), SIMD128 u8x16_eq lookup, UTF-8 arrow normalizer, and integer viewport layout_box() powering native popover="manual" OLED tooltips
crates/physproof-kernel/ public/kernel.wasm 476.5 KB 141.3 KB Lazy Web Worker (VERIFY KERNEL) Unmodified upstream Rust nanoda_lib v0.4.33 independent Lean 4 dependent typechecker (8 MiB Wasm stack) verifying lean4export v3.1.0 NDJSON closures client-side in <250 ms

Six Zero-Reload Views + In-Browser Kernel Verifier

Everything lives on a single URL (https://physproof.thisness.us/) with instant #hash deep-linking, zero page reloads, and full keyboard navigation (? opens the shortcut dialog):

View Shortcut / Hash Key Capabilities
INDEX 1 · / Fixed 52-node contain: strict translate3d virtualized table (zero dropped frames at 240Hz, Watch <320px to 32" 4K OLED & 10-ft TV). Backed by 32-byte aligned PPL3 binary (/physproof.bin), collapsible 7-cell telemetry HUD, 3 column presets (CORE / AUDIT / LIVE), composable chips + query operators (is:pure, is:tainted, is:guarded, is:nd, scope:clauses, depth:>20), 14 sorts, 7 Audit Views, slide-over Module Dossier with PP-XXXX citations & references.bib links, and lazy unicode-range JuliaMono v0.63.2 math font shards.
GRAPH 2 / G · #graph 240Hz WebGPU (WGSL + enable subgroups;, automatic Canvas2D parity fallback) dependency DAG over PPLG (/graph.bin). Features 3 morphing layouts (RADIAL, LAYERS, DEBT), 4 analytical color lenses (STATUS, BLAST, HEAT, SILICON highlighting the 13 RTL theory modules & 127-module upstream cone), 6 anti-aliased SDF trust/role shapes, 768 compute flow particles, live burst shockwaves, and Standby trace replay scrubber.
LIVE 3 / L · #live Three forever append-only parallel WebSocket streams (PHYSPROOF LEAN, LEAN OS // RV64GC, SILICON // SOC via LiveTraceRoom DO + immutable R2 CRC32 chunks). Newest-first phase-locked OLED glow-dissolve arrivals, log.wasm Signal-first inline noise folding (▸ N folded · warn · note · hint · step), composable search operators (is:error, is:built, is:sorry, -is:noise), and full untruncated streaming NDJSON download.
TELEMETRY 4 / T · #telemetry Forever append-only observatory (TelemetryHub DO + R2 archive + Workers Analytics Engine SQL) tracking Active Google Colab Build Rigs (multi-instance live tabs with CPU/RAM/Disk/Net 500ms peak-preserving sparklines, per-module -Dprofiler=true elab/kernel/heartbeat tables, #print axioms, CU/hr burn, and full historical run archive) alongside Cloudflare Edge & Viewport Telemetry (edge.wasm exact p50/p95 quantiles, live Hz/WebGPU capabilities, day-1 lossless NDJSON export).
RISC-V 5 / R · #riscv Interactive verified cockpit executing all 8 byte-identical lean-os RV64GC ROMs (Phase-1 SUPEROPT 48 B / 11 cyc through Stage-3 SV39+IPC OPT 772 B / 302 cyc printing IPC_MAC_REJ_MMU_OK\n identically to Lean 4 and QEMU virt). Includes live NS16550A UART0 console, PC-highlighted disassembly, 32× 64-bit GPR delta bank, 8-entry locked PMP & Sv39 3-level MMU inspector, Adversarial Fault Injector, and autonomous Charon/Aeneas + bv_decide superoptimization trace.
SILICON 6 / S · #soc Verified PhysProof-SoC RTL observatory with a 5-stage live verification conveyor, interactive 3×3 Manhattan-routed BLOCK schematic, 4-column CHAIN lineage, interactive real SKY130A LibreLane DIE renderer (185.5 × 196.2 µm, 5,692 PPLS standard cells, 0 DRC / 0 LVS, 1×–16× cursor zoom & micrometer provenance hover), 3 hardware lenses (PROOF, FIREWALL, LANDAUER), 9-track soc.wasm Logic Analyzer, Adversarial HW Mutant Kill-Feed, Yosys Lattice ECP5 log-log PPA Pareto Frontier, and compile-time SiliconScopeLedger.
VERIFY KERNEL V · #verify Right-docked slide-over drawer fetching 26 real lean4export v3.1.0 proof closures across PHYSPROOF (3), LEAN OS (12), and SILICON (11) with 1-click ⚡ VERIFY and batch ⚡ VERIFY ALL running nanoda_lib inside a dedicated Web Worker with exact declaration counts, AST sizes, and axiom closure audits.

Pure Single-URL Edge Multiplexer (src/worker.ts)

Zero sub-pages, zero /api/* or /ws/* subpaths — every HTTP, WebSocket, webhook, and R2 sync path multiplexes cleanly on / with strict no-unsafe-inline CSP (script-src 'self' 'wasm-unsafe-eval'; worker-src 'self'; style-src 'self'), caches.default edge caching with automatic purge on PUT /, and 350 ms DO RPC timeouts:

  • GET / — SSR HTML shell with live R2 corpus stats, compact build header, inlined 2,702 B Rust SIMD128 physproof.wasm inside <script id="ppl-boot" type="application/json">, 103 Early Hints preloads, and full Accept-CH Client Hints (0.0008 CLS).
  • GET /?log=... — Forever append-only cursor pagination & zero-CPU R2 streaming NDJSON downloads (log=live|telemetry|sessions|builds|archive[&format=ndjson]).
  • GET / (Upgrade: websocket) — Multiplexed hibernatable Durable Object WebSockets (?ch=live&room=main|lean-os|soc and ?ch=telemetry).
  • POST / — Routes by header: passive browser/GPU telemetry beacons (Analytics Engine + TelemetryHub), constant-time Bearer-authenticated live trace/build ingest (X-PhysProof-Op: ingest | telemetry-backfill | archive-flush), and constant-time HMAC-SHA256 verified GitHub push webhooks (X-GitHub-Event → repository_dispatch).
  • PUT / — Bearer-authenticated R2 publisher (X-PhysProof-File: physproof.bin, meta.json, graph.bin, tags.json, env-manifest.json, proofs/*, riscv/lean-os.json, soc/*) validated ahead-of-time in edge.wasm with IEEE CRC32 tagging.
  • Lazy Binary & Manifest Routes — /physproof.bin (application/x-protobuf, RFC 9842 Use-As-Dictionary), /graph.bin, /tags.json, /env-manifest.json, /proofs.json, /proof-<key>.ndjson.gz, /lean-os.json, /soc.json, /soc.wasm, /soc-die.bin.

Performance & Reliability Engineering Highlights

  • Single-RTT Cold Boot (<20 ms): physproof.wasm (1,293 B Br-11) is inlined into GET /; heavy cores (log.wasm, graph.wasm, riscv.wasm, soc.wasm, kernel.wasm) load strictly on first view activation via WebAssembly.compileStreaming (0 B cold-boot penalty).
  • 240Hz GPU-Composited Rendering: Fixed 52-row contain: strict translate3d virtual table, ResizeObserver sizing (zero per-frame layout thrash), automatic setPaused() GPU/rAF gating on background tabs (0% idle GPU), and ASSET_REV ?v= cache-busting across all dynamic import() modules.
  • Hard Privacy & CI Safety Gate: sync-corpus validates upstream formalization.yaml against JSON Schema v0.4 (check-jsonschema), runs scripts/check_lean_hygiene.py, and executes the full 28-test + zero-PII npm run verify gate against freshly extracted _fresh/* binaries before touching production R2.

Local Development, Streaming & Deployment

Prerequisites

  • Node.js 22+ and npm
  • Rust (rustup target add wasm32-unknown-unknown) + optional Binaryen wasm-opt
  • Python 3.12+ (for corpus extraction, hygiene checks, privacy scan, and live shippers)
  • Cloudflare Wrangler (installed via npm ci) for local Worker dev and deployment

Core Commands

npm ci
npm run build:wasm      # Compile all 7 repo Rust->Wasm crates (+simd128 + wasm-opt)
npm run extract         # Extract PPL3 physproof.bin + PPLG graph.bin + tags.json + meta.json from ../PhysProof
npm run types           # Regenerate Cloudflare Worker binding types (worker-configuration.d.ts)
npm run verify          # Full gate: build:wasm + tsc --noEmit + 28 unit tests + zero-PII privacy_scan.py
npm run dev             # Local Cloudflare Worker + Durable Objects + Static Assets server
npm run deploy          # Deploy Worker + Static Assets to https://physproof.thisness.us/

Live Colab Profiled Builds, Trace Shipping & Metadata Hygiene

# Run a profiled Lean 4 build on Google Colab High-RAM CPU with 500ms rig vitals + #print axioms
python scripts/colab_profiled_build.py --session physproof --run-id colab-poc

# Stream any local Lean/shell command live into #live (main, lean-os, or soc room)
python scripts/physproof_streamd.py --room main --cmd "lake build PhysProof.Validation.HeadlineScopeLedger"

# Tail an opted-in agent transcript (strict PLANNER_RESPONSE allowlist + deterministic zero-PII scrubber)
python scripts/physproof_streamd.py --transcript <path-to-transcript_full.jsonl>

# Run Lean 4 anti-bloat hygiene & formalization.yaml v0.4 sync against ../PhysProof
python scripts/check_lean_hygiene.py --physproof-dir ../PhysProof
python scripts/sync_formalization_yaml.py --physproof-dir ../PhysProof

Formal Verification Ecosystem

Repository Role Stack License
mischa-thisness/PhysProof Machine-checked physics & computation formalization (1,400+ Lean 4 modules, 31.5k+ theorems) Lean v4.36.0-rc2 + Mathlib CC0-1.0
mischa-thisness/physproof-live (this repo) Single-URL bare-metal Wasm observatory, live telemetry & in-browser kernel verifier Rust #![no_std] Wasm + WebGPU + Cloudflare Workers/R2 MIT
mischa-thisness/lean-os Verified RISC-V rv64gc firmware & microkernel (Charon/Aeneas, bv_decide, 8-PMP, Sv39, F_{2^61-1} MAC) Rust #![no_std] + Lean v4.36.0 + QEMU virt MIT
mischa-thisness/physproof-soc Proof-to-transistor verified RV64I SoC RTL, locked PMP, CE-gated Vault, MAC61, Landauer CSRs & SKY130A GDSII Lean v4.36.0 + Verilog + Yosys ECP5 + LibreLane SKY130A MIT

Changelog, License & Third-Party Attributions

  • Release History: CHANGELOG.md
  • License: MIT
  • Third-Party Attributions:
    • nanoda_lib v0.4.33 (Apache-2.0) — upstream independent Lean 4 kernel compiled into public/kernel.wasm.
    • Bundled math typography shards (public/fonts/juliamono-lean-*.woff2) subsetted from JuliaMono v0.63.2 under SIL Open Font License 1.1.

AI Authorship & Provenance

This repository was designed, benchmarked, and built by Mischa (mischa-thisness) in direct collaboration with AI coding and research agents (Google Antigravity / Gemini). Every Wasm binary size, in-browser nanoda_lib typecheck timing, Colab hardware/profiler metric, 240Hz frame profile, RISC-V boot trace, SKY130A silicon signoff metric, privacy scan, and CI check is mechanically verified against live toolchains and production endpoints rather than estimated.

About

Bare-metal single-URL verification observatory for PhysProof, lean-os & PhysProof-SoC (7 Rust no_std Wasm SIMD128 cores, 240Hz WebGPU DAG, in-browser Lean 4 kernel, Cloudflare Workers/R2).

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages