Sovereign Array Language

Array I α = I → α  ·  broadcast = pullback  ·  pmap₂ = Π-map  ·  no sorry remains

Playground

pmap₂ — pointwise Π-map

broadcast — pullback π : J → I

softmax — Π-map normalization

NAND — universal gate

attention — NAND-extracted spec

Usage Guide

Sovereign Array usage guide

How to use the language

  1. Spec (Lean 4) — define arrays as dependent functions Fin n → α; prove broadcast_is_pullback and softmax_is_pmap with lake build (zero sorry).
  2. Kernel (C++20)#include "sovereign_array.h"; build with CMake; run sovarr_test (11/11 checks).
  3. Front-end (this page) — open index.html; the playground runs the same denotational semantics in the browser.
  4. Compose — chain pmap₂ / broadcast / softmax / nand_attention; fusion is Π-map fusion — no loop in the denotation.