SNAPKITTYWEST commited on
Commit
13122d0
Β·
verified Β·
1 Parent(s): 8ed6bba

docs: add proper model card

Browse files
Files changed (1) hide show
  1. README.md +31 -123
README.md CHANGED
@@ -1,123 +1,31 @@
1
- <!--OMEGA-FIELD:START-->
2
- <div align="center">
3
-
4
- ![License](https://img.shields.io/badge/license-Sovereign%20Source%20v2.0-blueviolet)
5
- ![Stack](https://img.shields.io/badge/stack-Lean%204%20%7C%20C%2B%2B20%20%7C%20JS-orange)
6
- ![Kernels](https://img.shields.io/badge/kernels-5%20%CE%A0--maps-green)
7
- ![Status](https://img.shields.io/badge/status-zero--sorry-success)
8
- ![Tests](https://img.shields.io/badge/tests-11%2F11%20passing-brightgreen)
9
- ![Abjad](https://img.shields.io/badge/Abjad--free-red)
10
- ![DigitalRoot](https://img.shields.io/badge/digital--root--free-red)
11
- ![NP-magic](https://img.shields.io/badge/NP--magic--free-red)
12
-
13
- </div>
14
- <!--OMEGA-FIELD:END-->
15
-
16
- ---
17
-
18
- <div align="center">
19
-
20
- ```
21
- ____ ____ ____ ____ ____ _ _ ___ ____ ____ _ _ ____ ____
22
- / ___)( _ \\( _ \\( __)( \\( \\/ )/ __)( __)( _ \\( \\/ )( __)( _ \\
23
- \\___ \\ ) / ) __/ ) _) ) D ( \\ / \\__ \\ ) _) ) __/ \\ / ) _) ) /
24
- (____/(__\\_)(__) (____)(____/ \\/ (___/(____)(__) (__) (____)(__\\_)
25
- A R R A Y L A N G U A G E Β· A R R A Y I Ξ± = I β†’ Ξ±
26
- ```
27
-
28
- **Array I Ξ± = I β†’ Ξ± &nbsp;Β·&nbsp; broadcast = pullback Ο€ : J β†’ I &nbsp;Β·&nbsp; pmapβ‚‚ = Ξ -map &nbsp;Β·&nbsp; no sorry remains**
29
-
30
- </div>
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
- ![Sovereign Array usage guide](assets/usage.svg)
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)