Apoth3osis
<_RESEARCH/PROJECTS

Nucleus Bottleneck Autoencoder

VERIFIEDLean 4PyTorchGitHub
>_VERIFICATION.SEAL
FORMALLY VERIFIED • LEAN 4 • MACHINE-CHECKED • APOTH3OSIS¬QED4 theorems • 0 sorry4 modules0 SORRY

Formal Verification Certificate

Every theorem in this project has been machine-checked by the Lean 4 kernel. No axiom is assumed without proof. No gap exists in the verification chain.

4 THEOREMS VERIFIED4 MODULES0 LINES0 SORRY

Nucleus Bottleneck Autoencoder • Lean 4 + Mathlib • Apoth3osis Labs

>ORIGINAL_WORK

Proof-Carrying Koopman Autoencoder

The nucleus-bottleneck autoencoder constrains the latent representation of a Koopman model to a Heyting-algebra-valued slice (0 ≤ latent ≤ 1) governed by nucleus maps. The repo ships a minimal training harness plus Lean certificates showing that the ReLU/threshold bottlenecks form legal nuclei and preserve bounded Heyting structure throughout the contraction-expansion pipeline.

  • Formal proofs live in lean/VerifiedKoopman and build with lake build.
  • Python scripts (`train_nba.py`, `analyze_heyting.py`) demonstrate training + Heyting compliance on toy systems.
  • Reproduction docs outline the publication-grade pipeline for checkpoints + Lean artifacts.
Nucleus bottleneck Koopman autoencoder visualization
>LEAN_PROOFS

Nucleus axioms

Files NucleusReLU.lean and NucleusThreshold.lean certify that clipped activations respect adjunction, monotonicity, and idempotence—exactly the nucleus properties required for Heyting closure.

Parametric Heyting operators

HeytingOps.lean and ParametricHeyting.lean prove the residuation laws (`himp_adjoint`) for both bounded vectors and parameterized boxes, ensuring the latent lattice behaves as expected during Koopman evolution.

>TRAINING

Quick-start commands (CPU friendly) for the nucleus-bottleneck trainer and Heyting analysis:

python scripts/train_nba.py --system toy2d --model nba --epochs 50 --device cpu
python scripts/analyze_heyting.py --system toy2d --checkpoint outputs/toy2d_nba/best.pt

Checkpoints land in outputs/<system>_<model>_*/best.pt.

>PIPELINE
  • 1. Train Koopman autoencoder (NBA or end-to-end) on synthetic dynamical systems.
  • 2. Use the Lean-backed Heyting analyzer to certify latent trajectories stay within the proven nucleus.
  • 3. Package checkpoints + proofs for publication or reproducibility bundles.
>SAFEDMD_EXTENSION

SafEDMD Extension

The verified-koopman repository extends this foundational work with SafEDMD-inspired error bounds, SDP controller synthesis, and a Platinum verification tier, building on Strässer et al. (arXiv 2402.03145).

>NON_AFFILIATED_RESEARCH

This is original Apoth3osis Labs research. The nucleus-bottleneck autoencoder synthesizes two classical mathematical foundations into a novel proof-carrying neural architecture.

Bernard O. Koopman

Bernard O. Koopman

Mathematician · Operator Theory

Columbia University (1903–1981)

Introduced the Koopman operator (1931), which lifts nonlinear dynamical systems into an infinite-dimensional linear space. This operator-theoretic approach enables spectral analysis of nonlinear dynamics and is the mathematical foundation for data-driven Koopman autoencoders.

Arend Heyting

Arend Heyting

Mathematician · Intuitionistic Logic

University of Amsterdam (1898–1980)

Formalized Brouwer’s intuitionism into what are now called Heyting algebras (1930)—bounded distributive lattices with a residuated implication operator. The nucleus maps that constrain our autoencoder’s latent space are closure operators on Heyting algebras, ensuring the bottleneck preserves logical structure.