docs: replace with real GitHub README
Browse files
README.md
CHANGED
|
@@ -1,31 +1,131 @@
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
-
|
| 4 |
-
language:
|
| 5 |
-
- en
|
| 6 |
tags:
|
| 7 |
-
-
|
| 8 |
-
- array-language
|
| 9 |
-
- lean4
|
| 10 |
-
- visualization
|
| 11 |
- sovereign-compute
|
| 12 |
-
library_name: transformers
|
| 13 |
-
pipeline_tag: text-generation
|
| 14 |
---
|
| 15 |
|
| 16 |
-
|
|
|
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
|
|
|
|
| 21 |
|
| 22 |
-
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
-
|
| 31 |
-
- [sovereign-array](https://huggingface.co/Snapkitty/sovereign-array)
|
|
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
+
library_name: custom
|
|
|
|
|
|
|
| 4 |
tags:
|
| 5 |
+
- code
|
|
|
|
|
|
|
|
|
|
| 6 |
- sovereign-compute
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
+
<!--OMEGA-FIELD:START-->
|
| 10 |
+
<div align="center">
|
| 11 |
|
| 12 |
+

|
| 13 |
+

|
| 14 |
+

|
| 15 |
+

|
| 16 |
+

|
| 17 |
+

|
| 18 |
+

|
| 19 |
+

|
| 20 |
|
| 21 |
+
</div>
|
| 22 |
+
<!--OMEGA-FIELD:END-->
|
| 23 |
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
<div align="center">
|
| 27 |
+
|
| 28 |
+
```
|
| 29 |
+
____ ____ ____ ____ ____ _ _ ___ ____ ____ _ _ ____ ____
|
| 30 |
+
/ ___)( _ \\( _ \\( __)( \\( \\/ )/ __)( __)( _ \\( \\/ )( __)( _ \\
|
| 31 |
+
\\___ \\ ) / ) __/ ) _) ) D ( \\ / \\__ \\ ) _) ) __/ \\ / ) _) ) /
|
| 32 |
+
(____/(__\\_)(__) (____)(____/ \\/ (___/(____)(__) (__) (____)(__\\_)
|
| 33 |
+
A R R A Y L A N G U A G E Β· A R R A Y I Ξ± = I β Ξ±
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
**Array I Ξ± = I β Ξ± Β· broadcast = pullback Ο : J β I Β· pmapβ = Ξ -map Β· no sorry remains**
|
| 37 |
+
|
| 38 |
+
</div>
|
| 39 |
+
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
# Sovereign Array Language β Front-End
|
| 43 |
+
|
| 44 |
+
The **front-end** for the [Sovereign Array Language](../sovereign-array): an
|
| 45 |
+
interactive browser playground that runs the *same denotational semantics*
|
| 46 |
+
as the Lean 4 spec and the C++20 kernel β no Abjad, no digital root, no NP-magic.
|
| 47 |
+
|
| 48 |
+
> The denotational semantics of array computing *are* exactly a slice of
|
| 49 |
+
> dependent type theory. This front-end is the view layer over that substrate.
|
| 50 |
+
|
| 51 |
+
## What this repo is
|
| 52 |
+
|
| 53 |
+
| Layer | Repo | Role |
|
| 54 |
+
|-------|------|------|
|
| 55 |
+
| **Spec** | [`sovereign-array`](../sovereign-array) | Lean 4 β `Array I Ξ± = I β Ξ±`, zero-sorry proofs |
|
| 56 |
+
| **Kernel** | [`sovereign-array`](../sovereign-array) | C++20 β `Array<T>`, `pmap2`, `broadcast`, `softmax`, `nand_attention` |
|
| 57 |
+
| **Front-End** | **`sovereign-array-frontend`** (this repo) | Browser playground + usage guide |
|
| 58 |
+
|
| 59 |
+
## Quick Start
|
| 60 |
+
|
| 61 |
+
```bash
|
| 62 |
+
# Serve the playground (any static server)
|
| 63 |
+
cd sovereign-array-frontend
|
| 64 |
+
python -m http.server 8080
|
| 65 |
+
# open http://localhost:8080
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
No build step. Pure HTML/CSS/JS (ES modules).
|
| 69 |
+
|
| 70 |
+
## How to use the language
|
| 71 |
+
|
| 72 |
+
1. **Spec (Lean 4)** β define arrays as dependent functions `Fin n β Ξ±`;
|
| 73 |
+
prove `broadcast_is_pullback` and `softmax_is_pmap` with `lake build` (zero sorry).
|
| 74 |
+
2. **Kernel (C++20)** β `#include "sovereign_array.h"`; build with CMake;
|
| 75 |
+
run `sovarr_test` (11/11 checks).
|
| 76 |
+
3. **Front-end (this page)** β open `index.html`; the playground runs the
|
| 77 |
+
same denotational semantics in the browser.
|
| 78 |
+
4. **Compose** β chain `pmapβ` / `broadcast` / `softmax` / `nand_attention`;
|
| 79 |
+
fusion is Ξ -map fusion β no loop in the denotation.
|
| 80 |
+
|
| 81 |
+
## Usage Guide (SVG)
|
| 82 |
+
|
| 83 |
+

|
| 84 |
+
|
| 85 |
+
## Kernels demonstrated
|
| 86 |
+
|
| 87 |
+
| Kernel | Semantics | Status |
|
| 88 |
+
|--------|-----------|--------|
|
| 89 |
+
| `pmapβ` | Pointwise `Ξ `-map over index space `I` | β
|
|
| 90 |
+
| `broadcast` | Pullback along projection `Ο : J β I` | β
|
|
| 91 |
+
| `softmax` | `Ξ `-map normalization (shift-invariant) | β
|
|
| 92 |
+
| `nand` | Universal boolean gate | β
|
|
| 93 |
+
| `nand_attention` | NAND-extracted attention spec | β
|
|
| 94 |
+
|
| 95 |
+
## Layout
|
| 96 |
+
|
| 97 |
+
```
|
| 98 |
+
sovereign-array-frontend/
|
| 99 |
+
βββ index.html # Playground page
|
| 100 |
+
βββ css/style.css # Sovereign dark theme
|
| 101 |
+
βββ js/
|
| 102 |
+
β βββ array-lang.js # Browser reference impl (SOVArray, broadcast, softmax, nand)
|
| 103 |
+
β βββ app.js # Playground wiring
|
| 104 |
+
βββ assets/
|
| 105 |
+
β βββ logo.svg # Ξ£ Β· I β Ξ± mark
|
| 106 |
+
β βββ usage.svg # SVG usage guide
|
| 107 |
+
βββ README.md
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
## The forbidden list (fatal conflations we do NOT make)
|
| 111 |
+
|
| 112 |
+
- β Proof `O(1)` substitution β `O(1)` decision procedure (NP stays hard)
|
| 113 |
+
- β Abjad / digital root as universal arithmetic (quotients lose information)
|
| 114 |
+
- β "Univalence replaces SIMD" (needs a compiler: Lean β C β LLVM β SIMD)
|
| 115 |
+
|
| 116 |
+
---
|
| 117 |
+
|
| 118 |
+
<div align="center">
|
| 119 |
+
|
| 120 |
+
**The substrate is always free. The array is a function.**
|
| 121 |
+
|
| 122 |
+
```
|
| 123 |
+
Array I Ξ± = I β Ξ±
|
| 124 |
+
broadcast = pullback Ο
|
| 125 |
+
pmapβ = Ξ -map
|
| 126 |
+
no sorry remains.
|
| 127 |
+
```
|
| 128 |
|
| 129 |
+
*Sovereign Array Language Β· Front-End Β· 2026 Β· Ahmad Ali Parr*
|
| 130 |
|
| 131 |
+
</div>
|
|
|