Observers, LLM Alingment and Cartography A one-person project called Multi-Observer Algebra (multiobserver) released a repository combining mathematical theory, Lean 4 formalizations, unified CPU/CUDA Python packages and six Viash method components across 13 OpenProblems.bio v2 benchmarks, built with heavy Google Gemini usage. The project claims cross-observer covariance separates shared signal from observer-private noise in closed form without ground-truth labels or neural-network SGD, and was used to extract geometric shapes inside LLMs for in-process hallucination detection and alignment. The Lean 4 core proofs ship with 0 sorry and 0 custom axioms, and the author is soliciting corrections and bug fixes. This is a version that's trying to stay minimal in scope, while showcasing the use cases. The algebraic formulation is the one that seems the most straight-forward to understand and immiediately useful as you can see from the example implementations , but the same generic idea seems to work all the way up to category theory at least in practice, the solutions based on that work on real data . It's a one person project with heavy Google Gemini usage, any corrections, bug fixes, etc. are welcome. This was used to extract the geometric shapes iniside LLMs, allowing for in-process better hallucination detection and aligment. It also work for analyzing open scientific data sets. This repository contains the mathematical theory, Lean 4 formalisations, unified CPU/CUDA Python packages, interactive scientific workbenches, and official OpenProblems.bio v2 https://openproblems.bio method submissions for Multi-Observer Algebra multiobserver . Whenever an underlying state cross-observer covariance separates shared signal from observer-private noise in closed form, without ground-truth labels or neural-network SGD . . ├── justfile Root launcher for all UIs, servers, Marimo notebooks & tests ├── papers/ Core papers, companion papers, build scripts & Lean 4 proofs │ ├── minimal core essay.{typ,pdf} Accessible essay + self-contained ordered-field core │ ├── minimal core.{typ,pdf} Self-contained algebraic core & Four Hard Limits │ ├── lean/ Zero-dependency Lean 4 Core proofs 0 sorry, 0 custom axioms │ └── extras/ Applied companion papers usability & LLM alignment ├── code/ │ ├── packages/ Unified uv Python workspace core math, workbenches & LLM tools │ │ ├── multiobserver/ Single-source CPU NumPy + GPU PyTorch CUDA math engine │ │ ├── observer-lab/ Scientific workbench CLI observer + Vue 3 / WASM Typst UI │ │ ├── unbundle/ Epistemic provenance store, gates & subspace-protected quantization │ │ ├── statedrive/ Cross-model state algebra, biorthogonal dials & voice enactment │ │ ├── observer-llm/ Multi-observer LLM onboarding, spherical steering & OpenAI /v1 server │ │ └── llm-cartography/ Category-blind all-layer LLM tomography & 7-tab WebGPU workbench │ └── openproblems-submission/ 6 Viash method components across 13 OpenProblems.bio v2 benchmarks └── visualizations/ Standalone interactive 5-step geometric visual companion Defines the exact algebraic laws and hard identifiability limits implemented across code/ : | File / Folder | What It Does | |---|---| | papers/minimal core essay.pdf https://github.com/robertdbak/multiview/blob/main/papers/minimal core essay.pdf | Plain-language introduction + complete ordered-field derivation of how three imperfect views calibrate each other without a gold standard. | | papers/minimal core.pdf https://github.com/robertdbak/multiview/blob/main/papers/minimal core.pdf | Formal derivation of the Matrix Three-Cornered Hat, rational corrective glasses zero square roots , precision fusion, Regime vs. Conflict OOD decomposition, solo deployment, and the Four Hard Limits unanchored coordinates, the | | papers/lean/ https://github.com/robertdbak/multiview/blob/main/papers/lean | Zero-dependency Lean 4 Core proofs MinimalCore.lean https://github.com/robertdbak/multiview/blob/main/papers/lean/MinimalCore.lean — Init only, 0 sorry , 0 custom axioms . | | papers/extras/ https://github.com/robertdbak/multiview/blob/main/papers/extras | Applied companions: usability guide.pdf https://github.com/robertdbak/multiview/blob/main/papers/extras/usability guide.pdf sensors & clinical monitors and alignment cartography.pdf https://github.com/robertdbak/multiview/blob/main/papers/extras/alignment cartography.pdf LLM output-masking tomography . | Single-source library code/packages/multiobserver/README.md https://github.com/robertdbak/multiview/blob/main/code/packages/multiobserver/README.md implementing every estimator against a unified ArrayBackend NumPyBackend on CPU with zero scipy / sklearn / torch imports ; TorchBackend inside torch.inference mode on CUDA GPUs, including matrix-free cuSPARSE CSR operators for max dim=None full-transcriptome count matrices : | Module / Class | What It Does | |---|---| | Observer , Linear , Log1p , Periodic RAD , DEG , TURN | Explicit physical sensor wrappers multiobserver.units . Transforms Periodic onto Log1p + exposure "none" , "row sum" , "cp10k" once on ingest in | | audit observers | Step-1 epistemic audit using the Wachter Jacobi-ensemble edge to verify | | MinimalCoreAlgebra | Exact closed-form Three-Cornered Hat separating common signal from dense private noise covariances | | MultiObserverCalculus | General EM / Two-Level Laird-Ware groups=batch multi-observer latent state & uncertainty estimator max dim=None matrix-free sparse/chunked ops, .infer aligned Fisher-metric + Product-of-Experts Sigma PoE Bures-Wasserstein group covariance calibration, Student-$t \nu$ glitch downweighting, nan policy="marginalize" . | | SupervisedMultiObserver & ClassificationMultiObserver | Closed-form Bayesian Errors-in-Variables EIV continuous and multi-class readouts that propagate posterior latent covariance | | Harmonic HarmonicSupervisedMultiObserver , HarmonicClassificationMultiObserver | Algebraic H4 : Li 1992 Stein canonical | | MultiObserverStructure & MultiObserverDynamics | Multi-environment EIV causal graph discovery + Pearl do interventions structure , and Kalman/RTS smoothing + Weak-SINDy ODE discovery + RK4 rollouts dynamics . | | ForwardRuntime multiobserver.deploy | Single-file stdlib + numpy only standalone edge inference runtime loading .save npz archives across CPU/GPU boundaries. | CLI and web application code/packages/observer-lab/README.md https://github.com/robertdbak/multiview/blob/main/code/packages/observer-lab/README.md wrapping multiobserver with automated diagnostics, declarative .toml configs, and an interactive browser UI: - observer CLI & 1-Line SDK observer lab/cli.py , observer lab/convenience.py : Commands observer doctor , observer presets , observer inspect , observer init MAR-grouped & count-aware study.toml scaffolding , observer audit , observer audit-preset , observer explain native-unit channel attributions , observer predict , observer translate , observer denoise , and observer ui --port 8770 , plus 1-line ol.audit ... / model.explain ... supporting in-memory DataFrames, live AnnData objects, zero-copy .h5ad CSR matrices, and automatic$M=1 \to M=3$ wide-matrix partitioning. - Declarative study.toml / project.toml StudyConfig in observer lab/spec.py : Configures mode , enforce raw data , allow joint , allow harmonic , target unit , target exposure , and per-observer observer specs.