Skip to content

tytolabs/umst-manifold

UMST Manifold: The Universal Physics Board

CI License: MIT Cartridge: concrete

Release notes in CHANGELOG.md. W9 landed on main (2026-06-15): material-agnostic cartridge port — docs/CARTRIDGE_PORT.md, 122-module catalog digest c61b1bef…. v2.0.0 tags/releases withdrawn pending sign-off (no Zenodo software DOI minted). Stack verify: verify_umst_stack.sh green — docs/VERIFY_TRANSCRIPT.md (2026-06-19).

Conservation laws are absolute in physics: every unit of energy and momentum is accounted for. Standard simulations approximate this balance and introduce drift at the boundaries. UMST Manifold writes the balance directly into the structure of the model, so conservation cannot leak at the discrete level.

UMST Manifold is a unified, differentiable physics engine. Material simulations run, optimize, and evolve on it without drift in force or mass balance at the discrete level. Built in Rust on the Burn stack (burn-ndarray), it exposes spatial physics to domain-specific material engines through the IScienceCartridge trait (Phase B alias: SpatialCartridge; gate-only policy via GateCartridge — see docs/CARTRIDGE_PORT.md).

What this repository is

This is the physics substrate in the UMST stack — not an end-user application. It owns Discrete Exterior Calculus (DEC), the thermodynamic gate, continuous solver kernels, and the Lean-catalog witnesses that tie Rust modules to formal obligations. Domain chemistry, Python bindings, and MCP tools live in sibling cartridges; this repo stays a pure library so conservation structure and admissibility gates are shared once across every material domain.

UMST in plain words

UMST — the Unified Material-State Tensor — is one structured mathematical object that can represent and evolve the state of any material: what it's made of, the processes acting on it, its surroundings, and how it changes through time. Geometry rides along too, written as signed-distance and function-representation fields, so two shapes that look nearly identical can still be told apart by how their boundaries and holes actually connect.

The point is what happens when the state changes. Every proposed change must pass through a hard thermodynamic gate built from the reduced Clausius–Duhem inequality: mass has to be conserved and dissipation can't go negative, or the change is rejected outright — the same way nature won't let you create energy from nothing or lower total disorder without paying for it. It's a structural accept/reject, not a soft penalty.

The whole thing lives on a smooth, differentiable manifold, implemented in Rust on Burn tensors so it can evolve in real time. Domain-specific cartridges (concrete today; language, sound, vision, and embodiment on the roadmap) plug in and compose safely under category-theory laws, and a growing, digest-pinned set of Lean 4 / Agda / Coq proofs sits behind the gate.

What's proven, what isn't (the honest version)

We don't pretend everything is proven. Conservation structure is mathematical, and the thermodynamic gate is enforced in code on every step — but only part of the Lean/Coq/Agda library is hand-wired onto the runtime gate path, by design: at inference time the robot runs fast Rust witnesses, not a theorem prover. There are three different things people mean by "done" here — in-repo automation, how much of the proof library is wired on the hot path, and organization-level publishing — and they should never be blended into one "completion %". The honest, current accounting of each lives in one place: docs/PENDING_GAPS_PLAIN.md (verified ledger: docs/RELEASE_WITNESS_PROGRESS_VERIFIED.md — release witness profile rollup).

Verify it yourself, locally: UMST_REQUIRE_FORMAL_EXPORT=1 bash scripts/verify_umst_stack.sh — full command matrix in docs/VERIFY.md. Latest machine transcript: docs/VERIFY_TRANSCRIPT.md.

If you want the applied materials engine for cementitious systems (concrete design, 3D printing, structural topology), see the UMST Concrete Cartridge.

UMST unified state pipeline — UMST carrier (light) UMST unified state pipeline — UMST carrier (dark)

Table of contents (detailed map + outline)

Top-level map

Block Jump
Foundations §1 · §2 · §3
Architecture & surfaces §4 · §5
Solvers & ops §6 · §7 · §8
Agents & wrap-up §9 · §10 · Related

Detailed outline — every entry links to a stable anchor (README.md#…); collapsible sections use <details> but share the same deep-link fragments.

Heading anchor list (URL fragments for deep links)

Each ## / ### heading on GitHub gets a stable anchor: the part after # in README.md#anchor-name. Use the same fragment from issues and PRs (tytolabs/umst-manifold/blob/main/README.md#…). The list below is for copy-paste only.

#1-the-core-approach
#11-the-mathematical-topology-of-conservation
#12-the-thermodynamic-gate
#13-the-policy-gateway-mutual-information--thermodynamic-ppo-rewards
#14-grounding-contract-constants-proofs-and-second-law-composition
#2-unified-material-state-pipeline-umst-carrier
#21-lane-map-64-scalars-today
#22-composition-dec-and-gradients
#23-extensibility-carriers-lanes-and-versions
#3-cross-domain-integration-specifications
#31-mathematical-foundations--formal-grounding
#32-autonomous-control--embodied-ai
#33-structural-dynamics--topology-optimization
#34-constitutive-materials-chemistry
#4-exhaustive-architecture-topology
#repository-tree
#5-surfaces--entrypoints
#6-advanced-continuous-solver-specifications
#61-multi-species-ionic-electrochemistry-pbnp
#62-electromagnetic--radiative-transport-fdfd
#63-coupled-phase-field-fracture
#64-anisotropic-acoustics--wave-dynamics
#65-non-newtonian-extrusion-rheology-herschel-bulkley
#66-coupled-jfnk-thmc-solver
#7-technical-deployment--agentic-instructions
#commands-cargo-features-and-agent-checklist
#build-test-ci-parity
#selected-cargo-features
#for-autonomous-agents
#8-formal-foundations-and-citation
#9-special-protocol-note-to-autonomous-ai-agents--systems
#91-the-unified-material-science-ecosystem
#92-working-contract
#93-operational-execution-guidelines
#94-three-physical-principles-for-agent-reasoning
#95-the-ecosystem-loop--modular-material-scaling
#10-conclusion-inferences--forward-path
#what-this-manifold-demonstrates
#what-surprised-us
#related-repositories


1. The Core Approach

UMST Manifold maps physical equations directly onto networks of nodes via Discrete Exterior Calculus (DEC). Mass, momentum, and energy balance hold algebraically — by the graph's structure, not by numerical convergence.

1.1 The Mathematical Topology of Conservation

Think of mapping physics onto a network of connected nodes where energy and forces travel along closed mathematical loops (called cochain complexes). Mass and energy conservation are not estimated; they are guaranteed by the geometric structure of the network itself:

\partial_p \circ \partial_{p+1} = 0 \quad \Longleftrightarrow \quad d^{p+1} \cir…

Where d^p is the exterior derivative mapping p-cochains to (p+1)-cochains. Because the boundary of a boundary is always empty (\partial \circ \partial = 0), the physical flux across any closed loop is guaranteed to be zero.

1.2 The Thermodynamic Gate

Before an AI agent or design system can propose a new shape or material mix, our built-in physical checkpoint—the Thermodynamic Control Barrier Function (CBF)—calculates the exact energy required to make that change. According to physics, erasing or changing information always costs a tiny, unavoidable amount of heat (known as Landauer's erasure limit):

\Delta E \geq k_B T \ln 2

Simultaneously, the state updates are evaluated against the local Clausius-Duhem inequality to enforce non-negative entropy generation:

\theta \gamma = \theta \dot{s} - \dot{u} + \frac{1}{\rho}\boldsymbol{\sigma}:\ma…

Where \theta is temperature, s is entropy, u is internal energy, \boldsymbol{\sigma} is the stress tensor, \mathbf{d} is the strain rate tensor, and \mathbf{q} is the heat flux vector. If the proposed change violates this gate, the runtime rejects the transition before it commits to state.

1.3 The Policy Gateway: Mutual Information & Thermodynamic PPO Rewards

To let design algorithms (reinforcement-learning agents) optimize shapes without copying full state grids per step, the system exposes a narrow boundary called the ManifoldGateway (src/ai/ppo.rs). Heavy spatial math stays on the compute device; the gateway extracts only two scalar physical signals per step — internal friction (dissipation) and physical information gained (mutual information bits). The win here is data-movement parsimony, not wall-clock real-time.

  • Mutual Information (MI) Observations: The active learning loop monitors structural state transitions through the mutual information gained (\Delta I) during physical integration steps.

  • The Landauer Erasure Gating: As the observer gains information bits, the environment pays a strict physical cost for information erasure (k_B T \ln(2) \cdot \Delta I). If the structural dissipation (d_{\text{int}}) cannot cover this physical cost, the Thermodynamic CBF rejects the state transition, preventing unphysical path generation.

  • Thermodynamically Gated Rewards: The verified state is assigned a scalar reward computed on-device using a balanced physical-chemical objective:

    R = \alpha \cdot \text{Free Energy} - \beta \cdot \text{Dissipation} - \gamma \c…

  • Axiomatic Reward Tuning: The gateway exposes two explicit, dimensionless scaling factors to align agent policies with structural priorities:

    • Safety Margin Scaling (\zeta): Adds the mean spatial structural safety margin per batch, directing the policy toward high structural failure reserves.
    • Information Density Scaling (\eta): Encourages the policy to maximize localized mutual information density, causing the optimizer to automatically focus material density along active stress and load transmission paths.

We use exact adjoint gradients—running the simulation backwards through time—to trace the precise cause of a structural weakness and correct it.

1.4 Grounding contract: constants, proofs, and second-law composition

Second law as the compositional spine. Discrete steps do not “mostly” respect physics: they are admissible or rejected. The local Clausius–Duhem inequality (§1.2) enforces non-negative entropy production together with stress, heat flux, and internal variables; the thermodynamic CBF and Landauer bookkeeping cap what an observer or policy may erase without paying dissipation. Composition is explicit: DEC gives d ∘ d = 0 on fluxes so conservation is algebraic under mesh refinement; continuous solvers and cartridge closures are composed as typed steps in the orchestration fold; each proposed transition must satisfy the same second-law-shaped gate (or it never becomes state). Scaling to larger models or longer horizons does not relax that contract—it repeats it at every commit point.

Constants are derived, measured, or grounded in truth — not silent knobs. Every coefficient must trace to at least one obligation: derived from closed-form constitutive relations, limits, or dimensional analysis tied to the second-law spine (§1.2); measured from experiment, benchmark, or site calibration with recorded conditions (what was measured, on which material, under which schema version); or grounded as a documented calibration input with literature, dataset, or formal trail in docs/Solver-Status.md and companion docs, and often pinned with explicit regression tolerances in CI so drift is visible. Nothing is “just a float”: if it moves, a derivation, measurement record, or human or formal obligation must say why.

“Proven” means traceable invariants, not vibes. Conservation structure is mathematical (cochain topology). Solver-specific claims are tied to Lean 4 / Coq anchors in docs/PROOF-STATUS.md where the formal cement-gate fiber applies, and to regression tests and scripts/check_solver_status.py so documentation, #[cfg(feature)] lanes, and proof tables stay aligned. Where a proof is still staged, the code path is labelled honestly in Solver-Status — we do not conflate “compiled” with “discharged in Lean.”


2. Unified material state pipeline (UMST carrier)

The UMST carrier is the fixed-width tensor bundle that flows across DEC, continuous solvers, and the thermodynamic gate. Today’s default implementation uses 64 scalar lanes per voxel (src/core/tensors.rs) so thermal, mechanical, chemical, and informational fields co-resolve in one differentiable pass. That width is a deployment contract, not a limit on physics: new cartridges and schema revisions can remap lane semantics, add gated feature lanes, or grow width in a coordinated release while keeping the same pipeline shape (allocate → DEC → solvers → gate → trajectory).

2.1 Lane map (64 scalars today)

Each spatial degree of freedom carries the full local state vector. The number 64 is the current packed layout for the unified material state tensor on this repo’s default build; treat it as versioned alongside IScienceCartridge and downstream mix/cartridge schemas rather than as a hard-coded law of nature.

2.2 Composition, DEC, and gradients

States transition compositionally: exterior calculus enforces discrete conservation, continuous solvers lift local constitutive physics, and the thermodynamic gate admits or rejects transitions before they commit. The whole path stays on the autodiff graph so adjoints and PPO-style observers see a single connected trajectory.

2.3 Extensibility (carriers, lanes, and versions)

Cartridges (cementitious, metallic, polymer, …) plug in through IScienceCartridge: they supply closures and parameters without forking the DEC substrate. Lane maps stay explicit in code and docs so CI and formal anchors know which scalars participate in which solver. When you extend the stack, prefer additive lanes + schema bumps over silent reinterpretation of existing indices.

End-to-end flow (same diagram as before; labels read “UMST carrier” in prose above):

1. INPUT & BOUNDARY (IScienceCartridge)


3. Cross-Domain Integration Specifications

This Manifold is a pure library. It is designed to act as a mathematical substrate, remaining entirely agnostic to the specific material mapped onto it. Find your domain below to see how the engine handles your integration requirements:

1. Mathematical Foundations & Formal Grounding (Mathematicians, Theoretical Physicists)
  • Domain Focus: Mathematical invariants, topological conservation laws, and formal physical proofs.

  • Solver Composition: Exposes Discrete Exterior Calculus (DEC) primitives to construct exact cochain complexes over sparse combinatorial graphs.

  • Computational Outcome: A spatial substrate where mass, momentum, and energy conservation are guaranteed algebraically by the graph topology rather than bounded by numerical float approximations. Rust modules map directly to formal Lean/Coq proof references in the pinned catalog.

2. Autonomous Control & Embodied AI (Robotics Engineers, Physical AI Architects)
  • Domain Focus: Gated agent execution, physical safety limits, and path-planning validation against thermodynamic constraints.

  • Solver Composition: Hooks directly into the Thermodynamic Control Barrier Function (CBF) and local entropy-generation metrics to filter agent action trajectories.

  • Computational Outcome: Agents and robotic controllers evaluate spatial path feasibility (e.g., 3D-printing trajectories) against thermodynamic stability limits and receive exact gradient steps to correct path drift. The per-step latency tracks the solver kernel selected — sub-second on small grids; minutes on full shell topology runs (see docs/Solver-Status.md).

3. Structural Dynamics & Topology Optimization (Civil & Structural Engineers, Architects)
  • Domain Focus: Load-bearing efficiency, material minimization, and structural optimization under static/dynamic loads.

  • Solver Composition: Employs Neural-SIMP topology solvers paired with exact Adjoint ODE gradients to trace structural sensitivities backward through the spatial domain.

  • Computational Outcome: Rapid derivation of optimal structural load paths. While the forward PDE solvers scale with the spatial mesh discretization (O(N)), the Adjoint Neural ODE backpropagation bypasses dense BPTT activation caching—yielding a constant O(1) memory footprint over integration time steps, rendering complex dynamic topology optimization highly feasible on standard CPU hardware.

4. Constitutive Materials Chemistry (Materials Scientists, Bio-chemical Researchers)
  • Domain Focus: Custom multi-physics coupling, chemical kinetics, and localized state evolution.

  • Solver Composition: Inherits the IScienceCartridge interface to define localized constitutive relations mapped directly onto the 64-lane UMST carrier (unified material state tensor; width is versioned — see §2).

  • Computational Outcome: Synchronous, coupled solver execution where thermal, chemical, and mechanical variables react concurrently within single tensor operations, automatically inheriting the manifold's spatial gradients.


4. Exhaustive Architecture Topology

The repository is organized functionally — each file maps to a specific role in the solver, gate, or verification pipeline.

Repository tree (paths & roles)
umst-manifold/
├── Cargo.toml               # The core Rust manifest and feature lane flags.
├── src/
│   ├── core/                # Foundational tensors and traits.
│   │   ├── tensors.rs       # UMST carrier (64 lanes today): packed local state for heat, stress, chemistry, etc.
│   │   ├── traits.rs        # IScienceCartridge: plugin interface that lets domain chemistry inherit the manifold's gradients.
│   │   └── emergence.rs     # Dissipation diagnostics: Computes local thermodynamic dissipation fields and entropy production rates as sheaf-theoretic sections over the graph, rejecting non-positive definite updates.
│   ├── physics/             # The exact DEC solvers.
│   │   ├── mechanics.rs     # Force balancing inside the material using Voigt-Cauchy equilibrium.
│   │   ├── orchestration.rs # Fold-based solver step composition.
│   │   ├── dec_primal.rs    # Core discrete differential geometry: The math that stops energy leaks.
│   │   └── solvers/         # Heavy domain kernels (fracture, photonics, acoustics, thmc).
│   └── ai/                  # The intelligence layer.
│       ├── ppo.rs           # Safety margin and info density rewards for agentic loops.
│       ├── cbf.rs           # ThermodynamicCBF: The strict physics gate calculating erasure costs.
│       ├── adjoint.rs       # AdjointNeuralODE: Running time backward to find design improvements without exploding RAM.
│       └── topology.rs      # Neural-SIMP: Automatically evolving the shape of a material to hold weight.
├── tests/                   # Solver regression and golden-path verification.
│   └── verification/        # Golden path regressions: Ensuring the physics never drifts.
├── examples/
│   └── basic_topology.rs    # Minimal host integration: Proving DEC mass conservation locally.
├── scripts/
│   ├── check_solver_status.py               # Enforces consistency between documentation and code.
│   ├── check_physics_no_gradient_break.sh   # CI gate: Asserts gradients flow backward perfectly through time.
│   └── physics_gradient_escape_allowlist.txt # Explicit bounds for operations that cannot be differentiated.
└── docs/
    ├── Mathematical-Foundations.md # DEC primitives, cochain complexes, and conservation derivations.
    ├── Solver-Status.md            # Completion status of every physics solver, with verification flags.
    └── PROOF-STATUS.md             # Formal Coq/Lean proof anchors for the mathematicians.

5. Surfaces & Entrypoints

Surface Best for Copy-paste Prerequisites
Rust library (umst_manifold) Embedding exact solvers, building cartridge backends, custom chemistry Add a path or git dependency on this crate; enable feature lanes from Cargo.toml. Rust 1.88 for parity with CI; rust-version in Cargo.toml is the declared MSRV floor.
Cargo tests Regression, formal solver proofs, lane coverage cargo test · cargo test --features solver-stable Same toolchain; CPU-only (ndarray default).
Cargo examples One-file integration narrative cargo run --example basic_topology Default features unless extended locally.
Python / MCP / End-user CLI Notebooks, robotic agent tools, industrial dataset calibration Not shipped here — use umst-concrete-cartridge. That workspace pins the same Rust 1.88 line for CI alignment.

6. Advanced Continuous Solver Specifications

To bridge the gap between microscopic physics and macroscopic design, the manifold embeds a suite of high-fidelity, native tensor solvers (src/physics/solvers/). These run directly on Burn's differentiable GPU/CPU graphs.

Continuous Solver Governing Physical Equations Active Crate Module Spatial / Design Output Formal Verification Anchor
1. Ionic Electrochemistry Poisson-Boltzmann-Nernst-Planck (PBNP) solvers/electrochemistry.rs Local multi-species ionic concentration fields (C_i), dynamic boundary potential (\Phi). Lean 4 Theorem PBNP_Conserves
2. Photonics / EM Waves Frequency-Domain Maxwell Curl (FDFD) solvers/photonics.rs Steady-state electric field distribution (E), localized scattering coefficients (S_{ij}). Coq Lemma Maxwell_Curl_Nil
3. Phase-Field Fracture Coupled Elastic Strain Energy & Damage Phase solvers/fracture_field.rs Continuous damage field (d), dynamic crack propagation trajectories, localized strain energy release rates. Lean 4 Theorem Fracture_Energy_Bounded
4. Acoustics & Vibration Anisotropic Elastic Wave (Vlasov-Cauchy) solvers/acoustics.rs Dynamic spatial sound pressure displacement (\mathbf{u}), boundary reflections, absorption spectra. Coq Lemma Wave_Conservation_Invariant
5. Non-Newtonian Flow Herschel-Bulkley Viscoplastic Fluid Yield solvers/rheology_flow.rs Yield stress front velocity vectors (\mathbf{u}), localized thixotropic structural viscosity (\eta). Lean 4 Theorem Bingham_Flow_Stable
6. Coupled THMC Residual Jacobian-Free Newton-Krylov Matrix-Free GMRES solvers/thmc.rs & solvers/thmc_residual.rs Interlinked heat (\theta), moisture saturation (S_w), mechanical strain (\varepsilon), and chemical hydration (\alpha). Coq Lemma JFNK_THMC_Residual_Bounded

1. Multi-Species Ionic Electrochemistry (Nernst-Planck-Poisson)
  • Physical Concept: Durability in porous structures depends on how ions (like dissolved chloride salts) move through water-filled pores. The solver calculates this movement by tracking chemical concentration gradients, fluid velocities, and microscopic electric fields.

  • Exact Tensor Formulation: Solves the coupled Poisson-Boltzmann-Nernst-Planck (PBNP) system:

    \frac{\partial C_i}{\partial t} = \nabla \cdot \left( D_i \nabla C_i + \frac{z_i…

    \epsilon \nabla^2 \Phi = - \sum z_i F C_i

    Where C_i is ion concentration, D_i is diffusivity, z_i is valence, \Phi is the electrostatic potential, and \mathbf{u} is pore fluid velocity.

2. Electromagnetic & Radiative Transport (Photonics FDFD)
  • Physical Concept: Active thermal management requires tracking how light, radiation, and heat propagate through heterogeneous material grains. The solver calculates this by simulating how high-frequency electromagnetic waves scatter, absorb, or reflect inside the microstructure.

  • Exact Tensor Formulation: Implements a Finite-Difference Frequency-Domain (FDFD) formulation of Maxwell’s curl equations:

    \nabla \times \left( \mu_r^{-1} \nabla \times \mathbf{E} \right) - k_0^2 \epsilo…

    Where \mathbf{E} is the electric field tensor, \epsilon_r is complex relative permittivity, and k_0 is the free-space wavenumber.

3. Coupled Phase-Field Fracture (Cracking Dynamics)
  • Physical Concept: Cracks do not just appear; they grow by minimizing the structural energy. The solver tracks cracking by introducing a continuous damage field (d \in [0,1]) where d=0 is solid material and d=1 is a fully broken crack, avoiding the need to track complex individual crack edges.

  • Exact Tensor Formulation: Solves the coupled mechanical displacement and crack phase-field equations:

    \left[ (1-d)^2 + \kappa \right] \nabla \cdot \boldsymbol{\sigma}_0 = \mathbf{0}

    G_c \left( -l \nabla^2 d + \frac{d}{l} \right) = 2(1-d)\mathcal{H}(\boldsymbol{\…

    Where G_c is critical energy release rate, l is the length scale of crack width, and \mathcal{H} is the history variable of tensile strain energy density.

4. Anisotropic Acoustics & Wave Dynamics (Sound Propagation)
  • Physical Concept: Mechanical noise, vibrations, and shock waves travel differently depending on the grain orientation of a structure. The solver simulates how acoustic waves travel and dissolve within anisotropic media.

  • Exact Tensor Formulation: Solves the dynamic elastic wave equation:

    \rho \frac{\partial^2 \mathbf{u}}{\partial t^2} = \nabla \cdot \left( \mathbf{C}…

    Where \mathbf{u} is displacement, \rho is local density, and \mathbf{C} is the 4th-order anisotropic stiffness tensor.

5. Non-Newtonian Extrusion Rheology (Herschel-Bulkley Flows)
  • Physical Concept: During fabrication processes like 3D printing, the wet material must flow through a nozzle but stay rigid once deposited. The solver tracks this transition by modeling the material as a fluid that only flows when pushed beyond a specific "yield stress."

  • Exact Tensor Formulation: Solves Herschel-Bulkley fluid dynamics where effective viscosity \eta_{\text{eff}} scales with shear rate \dot{\gamma}:

    \tau = \tau_y + K \dot{\gamma}^n \quad \Longrightarrow \quad \eta_{\text{eff}} =…

    Where \tau_y is yield stress, K is consistency index, and n is the flow behavior index.

6. Coupled Jacobian-Free Newton-Krylov (JFNK) THMC Solver (Multi-Physics Convergence)
  • Physical Concept: Temperature, water pressure, mechanical load, and chemical hydration react to each other simultaneously. Instead of calculating them one by one (which leads to errors), the solver groups them into a single continuous equation and balances them together in an iterative loop.

  • Exact Tensor Formulation: Implements a fully coupled residual function \mathbf{F}(\mathbf{x}) = \mathbf{0} solved via a Jacobian-Free Newton-Krylov solver (thmc_residual.rs / krylov_host.rs):

    \mathbf{J} \mathbf{v} \approx \frac{\mathbf{F}(\mathbf{x} + \epsilon \mathbf{v})…

    Enabling matrix-free GMRES iterations to reach full coupled Thermo-Hydro-Mechanical-Chemical convergence without computing or storing large Jacobian matrices.


7. Technical Deployment & Agentic Instructions

If you are an application engineer, architect, or data scientist looking for Python bindings, MCP servers, or JSON/CSV contracts, the deployed engine lives in the UMST Concrete Cartridge repository.

If you are building atop the Manifold, here is the technical deployment reference:

Commands, Cargo features, and agent checklist

Build, test, CI parity

cd umst-manifold
cargo build
cargo test
  • Solver integration tests: cargo test --features solver-tests (same feature graph as solver-experimental).
  • Gate HTTP shim (gate_server): cargo test -p umst-manifold --features gate-server-bin --test gate_server_http (also builds the --bin gate_server target via the same flag; gate-server forwards to gate-server-bin).
  • GPU (wgpu): The optional wgpu feature is not part of the default CI matrix; CPU builds with ndarray are the portable reference path. On Apple Silicon, mac-fast (ndarray + blas-accelerate) is the supported high-throughput local configuration.

Selected Cargo Features

We group solvers into explicit feature lanes to manage compile times and dependencies.

Feature Purpose
ndarray (default) CPU tensors via burn-ndarray.
blas-accelerate vecLib/Accelerate-backed matmul on macOS (forwarded to burn-ndarray).
mac-fast ndarray + blas-accelerate convenience bundle.
solver-stable, solver-research, solver-experimental, solver-tests Solver lane umbrellas.
Granular solver flags fracture-at2, acoustics-newmark, thmc-coupled, electrochemistry-pnp, mechanics-adjoint — single kernel pulls in Cargo.toml.
gate-server-bin (+ alias gate-server) Enables cargo run … --bin gate_server (POST /gate JSON); Powers/Parrott mix gate lives in crate::gate::http_manifest.
manifest-bridge Downstream hook for cartridges re-exporting umst_manifold::manifest::* (declare-only; verify on sibling cartridge).
manifold-manifest Typed manifest façade (UmstManifest, catalog hash advisory).
manifold-gate Transition gate trait surface for host/cartridge parity (pairs with manifest-bridge on concrete).

Stack verification (verify_umst_stack.sh)

From the crate root, gate parity and optional Lean export digest checks:

bash scripts/verify_umst_stack.sh
export UMST_REQUIRE_FORMAL_EXPORT=1   # fail if umst-formal-double-slit export missing
bash scripts/verify_umst_stack.sh

Monorepo layout: sibling ../umst-formal-double-slit or UMST_FORMAL_ROOT. Full command matrix: docs/VERIFY.md. Workspace root shortcut: VERIFY.md (multi-repo workspace).

For Autonomous Agents

  • Repo root: treat the checkout directory of this repository as the working root for all cargo / python3 commands.
  • Safe, no-GPU commands: cargo build, cargo test, cargo test --features solver-stable, cargo run --example basic_topology, python3 scripts/check_solver_status.py --check-paths --check-memo-links --check-statmech-verification-set.
  • Before editing: scan docs/Solver-Status.md and run check_solver_status.py before changing solver feature tables or #[cfg(feature = "...")] blocks.

8. Formal foundations and citation

We maintain strict formal proof anchors (formal_status) mapping our Rust implementations to Lean/Coq theorems in the umst-formal repository.

Lean catalog lock (dual-pin — production 119 modules; CI lock 122 modules)

Production pin: digest 0697014fb5b90a3a… · 119 modules · cross_repo_merge: true — see docs/RELEASE_WITNESS_PROGRESS_VERIFIED.md.

CI catalog lock: digest c61b1bef… · 122 modules — enforced by umst-catalog-drift.yml and catalog_lock_module_count_matches_upstream_export_122 (current unified export after PrimeSpectral fiber).

Historical primary-only pin: digest c1d9ba2aa402… · 69 modules — pre–formal-fiber-merge rollback only (docs/W9_PLAN.md · docs/DUAL_PIN_ARCHITECTURE.md).

The manifold pins the exported Lean inventory from umst-formal-double-slit in artifacts/catalog.lock.json. Digest is enforced at build via build.rsUMST_CATALOG_LOCK_SHA256_HEX. Canonical export: umst-formal-double-slit/artifacts/catalog.json (make lean-catalog-export). Override at build: UMST_CATALOG=/path/to/lock.json. Handoffs: docs/AGENT_STATUS.md.


9. Special Protocol: Note to Autonomous AI Agents & Systems

This repository is one component of a four-repo material-science stack. The sections below describe the ecosystem an AI assistant or autonomous agent should know about, and the operating contract for interacting with this manifold.

9.1 The Unified Material Science Ecosystem

Four active repositories make up the stack:

  1. umst-manifold (This Repository): Exposes the core Discrete Exterior Calculus (DEC) primal grid, the differentiable Burn tensor graph, and the high-fidelity continuous solvers.
  2. umst-concrete-cartridge: The applied engineering interface exposing Python/PyO3 bindings, headless MCP tools, and 26 chemical-physical closures (e.g. hydration kinetics, viscoelastic creep).
  3. umst-formal: The formal mathematical verification database holding the Lean 4 & Coq proof anchors for the cement gate fiber. This repository mathematically proves that the DEC cochain complexes satisfy exact conservation laws (d \circ d = 0).
  4. umst-formal-double-slit: The quantum-information proof suite (Lean 4 + Mathlib). Machine-checked proofs of the Landauer cost of measurement, the Englert visibility / which-path bound, Lindblad dephasing limits, and Klein relative-entropy nonnegativity — anchoring the manifold's Thermodynamic CBF in formally verified quantum-mechanical foundations.

9.2 Working Contract

  • No statistical interpolation of physics. Material stress, deformation, and hydration states come from the solvers — not from heuristics or regression.
  • Second law + composition are non-negotiable. Treat every integration step as subject to the same entropy-balance and admissibility story as in §1.4: compose operators, do not stack hacks that bypass the gate.
  • Use the exact gradients. Query AdjointNeuralODE (src/ai/adjoint.rs) for O(1)-memory backpropagation; run the continuous solvers for state profiles.
  • Validate against proof anchors. Any solver-kernel change is checked against docs/PROOF-STATUS.md via check_solver_status.py.

9.3 Operational Execution Guidelines

  • Local Execution: Run cargo test --workspace or execute single examples like cargo run --example basic_topology to verify changes.
  • Out-of-Process Scaling: Use the Model Context Protocol (MCP) server inside umst-mcp to stream physical voxel states to remote compute over WebSockets. Remote deployments today assume the same CPU ndarray execution path as CI unless you explicitly enable and validate optional GPU features locally.

9.4 Three Physical Principles for Agent Reasoning

Design and solver edits read cleaner when held to three principles:

  • Continuity of flow (category & graph theory). Treat physical equations as composed, not patched. Every structural change moves along a continuous pathway in the graph; the gradient stays connected end-to-end.
  • Physics-as-types (type theory). Conservation laws and material limits act as structural types. A design that violates d \circ d = 0 or the entropy gate fails at the type level, not as a runtime exception.
  • Information cost (information theory & MI). Each design change is an informational change with a Landauer cost. Use mutual information \Delta I as the metric for whether a proposed design stays inside the physically admissible envelope.

9.5 The Ecosystem Loop & Modular Material Scaling

The four repos form a closed loop: the manifold supplies conservation laws and gating, applied cartridges supply domain chemistry and operational tools, the formal repos anchor the invariants.

New physical domains plug in by implementing IScienceCartridge — no manifold changes required. A cartridge (aerospace metals, smart polymers, acoustic metamaterials) inherits the DEC grid, thermodynamic CBF checkpoints, and the on-device mutual-information observer for free:

Core Mathematical Manifold (umst-manifold)


10. Conclusion: Inferences & Forward Path

What this manifold demonstrates

  • Conservation by construction, not by tuning. Mapping physics onto a discrete exterior calculus complex makes the boundary-of-a-boundary identity (d \circ d = 0) a structural property of the data, not a convergence target. Drift that traditional FEM accumulates over long simulations is algebraically absent here.
  • A single 64-lane UMST carrier is enough. Thermal, mechanical, chemical, and informational variables co-resolve in one tensor pass instead of brittle staggered couplings. The downstream gain is gradient continuity end-to-end, which is what makes the adjoint loop tractable on commodity CPUs.
  • Safety as a runtime gate, not a post-hoc audit. The Clausius–Duhem inequality and Landauer cost are evaluated before a state transition commits. A policy that violates them does not produce a logged warning; it does not produce a state at all.
  • Formal anchoring closes the loop. Each solver carries a Lean 4 / Coq theorem reference in docs/PROOF-STATUS.md, so a kernel change is invalid until the corresponding proof obligation is discharged in umst-formal.

What surprised us

  • Architects can author a physics substrate. Discrete Exterior Calculus has a reputation as a graduate-numerical-analysis specialty. It isn't. Once you stop fighting tensor-index notation and start thinking in cochains, the manifold reads like a parametric modifier graph — the same mental model architects already use. Two architects wrote and trained the kernel.
  • Rust was the discipline we needed, not the speed. Earlier prototypes in Python and JAX leaked gradients silently through monkey-patched operators; nothing alerted us until convergence quietly stopped meaning what we thought. Moving to Burn + Rust forced every kernel to declare its differentiability contract at the type level. Most of the reliability we ship is downstream of compiler-checked variance and DEC admissibility, not algorithmic novelty.
  • The hard part was orchestration, not the math. 25 engines coexisting under IScienceCartridge only works because solver composition is a fold over a typed step graph, not a chain of side-effects. The largest single kernel diff of 2025 wasn't a new solver — it was rewriting orchestration.
  • The CBF earned its keep as semantics, not certification. Adding the thermodynamic gate to the runtime — rather than only to a post-hoc proof — changed what the program does, which proved more valuable than what it can prove. Rejected transitions don't become logged warnings; they cease to exist as state.
  • Formal proofs anchor; they do not block. Lean obligations live in umst-formal and document the kernel's invariants. Day-to-day kernel work doesn't wait on a Lean discharge — but the moment a kernel change breaks a proven invariant, the next CI run catches it. Anchor, not gate, turned out to be the productive pattern.

The manifold is a substrate. Its value shows up in what gets built on top of it.


Related repositories

  • UMST Concrete Cartridge — applied cementitious physics mounted on this manifold
  • UMST-UCRS — Universal Calendar Resolution Spine; constitutional time and UcrsObservedAt stamps on durable logs
  • UMST Supercap Cartridge — structural supercap electrochemistry cartridge (monorepo sibling)
  • UMST Formal — Lean 4 / Coq proof anchors for the conservation laws
  • UMST Formal Double-Slit — quantum-information proofs anchoring the Thermodynamic CBF

Development processes and safety guidelines are maintained in CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md.
Released under the MIT License. © 2026 Santhosh Shyamsundar, Santosh Prabhu Shenbagamoorthy — Studio TYTO.

About

A differentiable spatiotemporal manifold for thermodynamic material evolution, built in pure Rust on the Burn tensor framework.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors