Apoth3osis
<_MODELS/NUCLEUS_KOOPMAN

The Koopman Lens

Watch a dynamical system flow through a proof-carrying Koopman autoencoder. The nucleus bottleneck constrains the latent representation to a Heyting-algebra-valued slice, guaranteeing that every activation respects the algebraic structure verified in Lean.

3D Dynamics View

Auto-rotating

Loading visualization...

Architecture Flow

Lean 4 Verified

Loading schematic...
>WHAT_YOU_SEE
Input Trajectory

A damped spiral in state space - the original dynamical system we want to model. This could be any physical process: fluid flow, neural activity, market dynamics.

Encoder Funnel

The neural network encoder compresses the state into a lower-dimensional latent representation. The funnel shape shows dimensionality reduction.

Nucleus Bounds [0,1]

The glowing cube is the nucleus-constrained region. ReLU and threshold nuclei clamp activations to stay within [0,1], preserving Heyting algebra structure.

Koopman Grid

In the latent space, dynamics become linear. The rotating grid shows the Koopman operator - a simple matrix that predicts future states.

Decoder Funnel

The decoder expands the latent representation back to state space, reconstructing a prediction of the original trajectory.

Output Trajectory

The reconstructed trajectory. Ideally it overlays the input perfectly - the gap shows reconstruction error from the nucleus constraint.

>INNOVATION

Why This Matters

Standard autoencoders have no guarantees about their latent space. Values can explode, collapse, or violate mathematical invariants. The nucleus bottleneck provides a machine-checked guarantee: every activation is provably clamped to [0,1] in a way that preserves Heyting algebra structure.

This isn't just regularization - it's algebraic certification. The Lean proofs establish that ReLU and threshold are nuclei: they are idempotent (applying twice changes nothing), inflationary (never decrease), and preserve meets (respecting logical conjunction in the algebra).

reluNucleus_idempotentthresholdNucleus_fixed_iffhimp_adjoint