docs: add proper model card
Browse files
README.md
CHANGED
|
@@ -1,123 +1,31 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
--
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
``
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
---
|
| 33 |
-
|
| 34 |
-
# Sovereign Array Language β Front-End
|
| 35 |
-
|
| 36 |
-
The **front-end** for the [Sovereign Array Language](../sovereign-array): an
|
| 37 |
-
interactive browser playground that runs the *same denotational semantics*
|
| 38 |
-
as the Lean 4 spec and the C++20 kernel β no Abjad, no digital root, no NP-magic.
|
| 39 |
-
|
| 40 |
-
> The denotational semantics of array computing *are* exactly a slice of
|
| 41 |
-
> dependent type theory. This front-end is the view layer over that substrate.
|
| 42 |
-
|
| 43 |
-
## What this repo is
|
| 44 |
-
|
| 45 |
-
| Layer | Repo | Role |
|
| 46 |
-
|-------|------|------|
|
| 47 |
-
| **Spec** | [`sovereign-array`](../sovereign-array) | Lean 4 β `Array I Ξ± = I β Ξ±`, zero-sorry proofs |
|
| 48 |
-
| **Kernel** | [`sovereign-array`](../sovereign-array) | C++20 β `Array<T>`, `pmap2`, `broadcast`, `softmax`, `nand_attention` |
|
| 49 |
-
| **Front-End** | **`sovereign-array-frontend`** (this repo) | Browser playground + usage guide |
|
| 50 |
-
|
| 51 |
-
## Quick Start
|
| 52 |
-
|
| 53 |
-
```bash
|
| 54 |
-
# Serve the playground (any static server)
|
| 55 |
-
cd sovereign-array-frontend
|
| 56 |
-
python -m http.server 8080
|
| 57 |
-
# open http://localhost:8080
|
| 58 |
-
```
|
| 59 |
-
|
| 60 |
-
No build step. Pure HTML/CSS/JS (ES modules).
|
| 61 |
-
|
| 62 |
-
## How to use the language
|
| 63 |
-
|
| 64 |
-
1. **Spec (Lean 4)** β define arrays as dependent functions `Fin n β Ξ±`;
|
| 65 |
-
prove `broadcast_is_pullback` and `softmax_is_pmap` with `lake build` (zero sorry).
|
| 66 |
-
2. **Kernel (C++20)** β `#include "sovereign_array.h"`; build with CMake;
|
| 67 |
-
run `sovarr_test` (11/11 checks).
|
| 68 |
-
3. **Front-end (this page)** β open `index.html`; the playground runs the
|
| 69 |
-
same denotational semantics in the browser.
|
| 70 |
-
4. **Compose** β chain `pmapβ` / `broadcast` / `softmax` / `nand_attention`;
|
| 71 |
-
fusion is Ξ -map fusion β no loop in the denotation.
|
| 72 |
-
|
| 73 |
-
## Usage Guide (SVG)
|
| 74 |
-
|
| 75 |
-

|
| 76 |
-
|
| 77 |
-
## Kernels demonstrated
|
| 78 |
-
|
| 79 |
-
| Kernel | Semantics | Status |
|
| 80 |
-
|--------|-----------|--------|
|
| 81 |
-
| `pmapβ` | Pointwise `Ξ `-map over index space `I` | β
|
|
| 82 |
-
| `broadcast` | Pullback along projection `Ο : J β I` | β
|
|
| 83 |
-
| `softmax` | `Ξ `-map normalization (shift-invariant) | β
|
|
| 84 |
-
| `nand` | Universal boolean gate | β
|
|
| 85 |
-
| `nand_attention` | NAND-extracted attention spec | β
|
|
| 86 |
-
|
| 87 |
-
## Layout
|
| 88 |
-
|
| 89 |
-
```
|
| 90 |
-
sovereign-array-frontend/
|
| 91 |
-
βββ index.html # Playground page
|
| 92 |
-
βββ css/style.css # Sovereign dark theme
|
| 93 |
-
βββ js/
|
| 94 |
-
β βββ array-lang.js # Browser reference impl (SOVArray, broadcast, softmax, nand)
|
| 95 |
-
β βββ app.js # Playground wiring
|
| 96 |
-
βββ assets/
|
| 97 |
-
β βββ logo.svg # Ξ£ Β· I β Ξ± mark
|
| 98 |
-
β βββ usage.svg # SVG usage guide
|
| 99 |
-
βββ README.md
|
| 100 |
-
```
|
| 101 |
-
|
| 102 |
-
## The forbidden list (fatal conflations we do NOT make)
|
| 103 |
-
|
| 104 |
-
- β Proof `O(1)` substitution β `O(1)` decision procedure (NP stays hard)
|
| 105 |
-
- β Abjad / digital root as universal arithmetic (quotients lose information)
|
| 106 |
-
- β "Univalence replaces SIMD" (needs a compiler: Lean β C β LLVM β SIMD)
|
| 107 |
-
|
| 108 |
-
---
|
| 109 |
-
|
| 110 |
-
<div align="center">
|
| 111 |
-
|
| 112 |
-
**The substrate is always free. The array is a function.**
|
| 113 |
-
|
| 114 |
-
```
|
| 115 |
-
Array I Ξ± = I β Ξ±
|
| 116 |
-
broadcast = pullback Ο
|
| 117 |
-
pmapβ = Ξ -map
|
| 118 |
-
no sorry remains.
|
| 119 |
-
```
|
| 120 |
-
|
| 121 |
-
*Sovereign Array Language Β· Front-End Β· 2026 Β· Ahmad Ali Parr*
|
| 122 |
-
|
| 123 |
-
</div>
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: sovereign-source-license-v2
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
tags:
|
| 7 |
+
- text-generation
|
| 8 |
+
- array-language
|
| 9 |
+
- lean4
|
| 10 |
+
- visualization
|
| 11 |
+
- sovereign-compute
|
| 12 |
+
library_name: transformers
|
| 13 |
+
pipeline_tag: text-generation
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# sovereign-array-frontend
|
| 17 |
+
|
| 18 |
+
Interactive web frontend for the Sovereign Array Language β visualizes array operations, Lean 4 proofs, and NAND attention graphs.
|
| 19 |
+
|
| 20 |
+
## Contents
|
| 21 |
+
|
| 22 |
+
- `index.html` β Landing page
|
| 23 |
+
- `js/array-lang.js` β Array language interpreter (browser)
|
| 24 |
+
- `js/app.js` β Application shell
|
| 25 |
+
- `css/style.css` β Styles
|
| 26 |
+
- `docs/` β Documentation and agent console
|
| 27 |
+
|
| 28 |
+
## Links
|
| 29 |
+
|
| 30 |
+
- [SNAPKITTYWEST GitHub](https://github.com/SNAPKITTYWEST)
|
| 31 |
+
- [sovereign-array](https://huggingface.co/Snapkitty/sovereign-array)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|