Add Space README
Browse files
README.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Mathematical Discoveries — Interactive Demo Catalog
|
| 2 |
|
| 3 |
A self-contained, offline-friendly web catalog of **372 result families** from the
|
|
@@ -7,106 +17,46 @@ algebras, and more). Every family has a runnable, interactive demo.
|
|
| 7 |
|
| 8 |
> Built with the help of model **Reflection: Beam 1.0**.
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
---
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
- **372 interactive demos** — one per result family, with live sliders, canvases, and
|
| 17 |
visualizations.
|
| 18 |
-
-
|
| 19 |
-
-
|
| 20 |
-
-
|
| 21 |
-
-
|
| 22 |
-
-
|
| 23 |
-
-
|
| 24 |
-
|
| 25 |
-
-
|
| 26 |
-
|
| 27 |
-
- **Offline-ready** — MathJax is vendored locally; no CDN or network required.
|
| 28 |
-
- **Back-to-top** button and smooth navigation between demos.
|
| 29 |
-
- **Reference link** to the upstream repository.
|
| 30 |
|
| 31 |
-
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
```bash
|
| 36 |
-
# Serve locally (any static server works)
|
| 37 |
python3 -m http.server 8000
|
| 38 |
-
# then open http://localhost:8000
|
| 39 |
-
```
|
| 40 |
-
|
| 41 |
-
Or open `index.html` directly in a browser.
|
| 42 |
-
|
| 43 |
-
---
|
| 44 |
-
|
| 45 |
-
## 🛠️ Build & deploy
|
| 46 |
-
|
| 47 |
-
Regenerate `index.html` from `overview.tex`:
|
| 48 |
-
|
| 49 |
-
```bash
|
| 50 |
-
python3 build_demo.py
|
| 51 |
-
```
|
| 52 |
-
|
| 53 |
-
Deploy to the production host:
|
| 54 |
-
|
| 55 |
-
```bash
|
| 56 |
-
npm run deploy
|
| 57 |
```
|
| 58 |
|
| 59 |
-
|
| 60 |
-
`bsv.direct:/home/t0m4s/nginx/webs/bsv.direct/beam-math-demos/`.
|
| 61 |
-
|
| 62 |
-
---
|
| 63 |
-
|
| 64 |
-
## 📁 Structure
|
| 65 |
-
|
| 66 |
-
```
|
| 67 |
-
demo/
|
| 68 |
-
├── index.html # generated catalog (do not edit by hand)
|
| 69 |
-
├── build_demo.py # parses overview.tex → index.html
|
| 70 |
-
├── demos/ # 372 standalone interactive demo pages
|
| 71 |
-
│ ├── 001.html
|
| 72 |
-
│ ├── ...
|
| 73 |
-
│ └── 377.html
|
| 74 |
-
├── vendor/mathjax/ # locally vendored MathJax
|
| 75 |
-
├── package.json # deploy script
|
| 76 |
-
└── README.md
|
| 77 |
-
```
|
| 78 |
-
|
| 79 |
-
---
|
| 80 |
-
|
| 81 |
-
## 🧩 How it works
|
| 82 |
-
|
| 83 |
-
1. `build_demo.py` parses `../overview.tex`, extracting each `\resultentry`.
|
| 84 |
-
2. It cleans TeX notation into display-ready text.
|
| 85 |
-
3. It injects the data as JSON into the `TEMPLATE` and writes `index.html`.
|
| 86 |
-
4. Each demo is a standalone HTML page under `demos/`, opened as a separate page
|
| 87 |
-
(not a modal) for a better reading experience.
|
| 88 |
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
-
##
|
| 92 |
-
|
| 93 |
-
- **Colors / theme** — edit the CSS variables in `:root` inside `build_demo.py`'s
|
| 94 |
-
`TEMPLATE`.
|
| 95 |
-
- **Loader timing** — adjust `__MIN_INTRO` in the template's script.
|
| 96 |
-
- **Add a demo** — create `demos/NNN.html` and it is picked up automatically by
|
| 97 |
-
the dynamic registry.
|
| 98 |
-
|
| 99 |
-
---
|
| 100 |
-
|
| 101 |
-
## 📜 Credits
|
| 102 |
|
| 103 |
- Mathematical content © the OpenAI mathematics manuscript collection.
|
| 104 |
-
- Reference repository:
|
| 105 |
- UI, demos, and tooling built with the help of model **Reflection: Beam 1.0**.
|
| 106 |
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
## 📄 License
|
| 110 |
|
| 111 |
See the upstream repository for licensing of the mathematical content. UI code in
|
| 112 |
this folder is provided as-is.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Mathematical Discoveries — Interactive Demo Catalog
|
| 3 |
+
emoji: 📐
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: static
|
| 7 |
+
pinned: false
|
| 8 |
+
license: other
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
# Mathematical Discoveries — Interactive Demo Catalog
|
| 12 |
|
| 13 |
A self-contained, offline-friendly web catalog of **372 result families** from the
|
|
|
|
| 17 |
|
| 18 |
> Built with the help of model **Reflection: Beam 1.0**.
|
| 19 |
|
| 20 |
+
## Features
|
|
|
|
|
|
|
| 21 |
|
| 22 |
+
- 372 interactive demos — one per result family, with live sliders, canvases, and
|
|
|
|
|
|
|
| 23 |
visualizations.
|
| 24 |
+
- Fast, client-side search across titles, descriptions, subjects, and numbers.
|
| 25 |
+
- Subject filters with per-subject counts.
|
| 26 |
+
- "Surprise me" button for random discovery.
|
| 27 |
+
- Manual theme toggle (light / dark / auto) with persisted preference.
|
| 28 |
+
- Keyboard shortcut `/` focuses the search box.
|
| 29 |
+
- Loading intro with animated math symbols.
|
| 30 |
+
- Responsive layout — phones, tablets, desktops; no horizontal scroll.
|
| 31 |
+
- Offline-ready — MathJax is vendored locally; no CDN or network required.
|
| 32 |
+
- Back-to-top button and smooth navigation between demos.
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
+
## How to run
|
| 35 |
|
| 36 |
+
Open `index.html` in a browser, or serve the folder with any static server:
|
| 37 |
|
| 38 |
```bash
|
|
|
|
| 39 |
python3 -m http.server 8000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
```
|
| 41 |
|
| 42 |
+
## How Beam was used
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
+
The interactive catalog UI, the 372 standalone interactive demo pages, the
|
| 45 |
+
TeX-to-display cleaning pipeline, the client-side search/filter system, the
|
| 46 |
+
responsive layout, and the loading experience were designed and implemented with
|
| 47 |
+
the assistance of **Reflection: Beam 1.0**. Beam was used to generate and refine
|
| 48 |
+
HTML/CSS/JavaScript, to structure the parsing of `overview.tex` (`\resultentry`
|
| 49 |
+
entries) into a JSON payload, and to produce per-family interactive
|
| 50 |
+
visualizations. The mathematical content itself comes from the OpenAI mathematics
|
| 51 |
+
manuscript collection (openai/math).
|
| 52 |
|
| 53 |
+
## Credits
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
- Mathematical content © the OpenAI mathematics manuscript collection.
|
| 56 |
+
- Reference repository: https://github.com/openai/math
|
| 57 |
- UI, demos, and tooling built with the help of model **Reflection: Beam 1.0**.
|
| 58 |
|
| 59 |
+
## License
|
|
|
|
|
|
|
| 60 |
|
| 61 |
See the upstream repository for licensing of the mathematical content. UI code in
|
| 62 |
this folder is provided as-is.
|