# Public Research Bundle — Why Language Models Need Creases

Reproducible code, outputs, independent geometric verification, and LaTeX preprint accompanying [`https://zidingz.com/why-llms-need-creases/`](https://zidingz.com/why-llms-need-creases/).

## Reproduce in `< 2` seconds

```bash
python3 code/verify_manifold_folding.py
python3 independent/recompute_check.py
```

## Contents

- `code/verify_manifold_folding.py` — Deterministic `float64` verification of 3-layer linear stack collapse (`W_3 W_2 W_1 x + b_eff`), 2-hinge symmetric V-folding (`ReLU(+x_0) + ReLU(-x_0) = |x_0|`), and concentric-ring width sweep (`H in {1, 2, 3, 4, 6, 8}`).
- `out/results.json` & `out/manifest.json` — Pinned numeric metrics and SHA-256 hash.
- `independent/recompute_check.py` & `independent/audit_report.json` — Pure-NumPy convexity lower-bound proof ($L \ge \ln 2$ for every affine map on antipodally symmetric classes) and Zaslavsky hyperplane-arrangement region bounds ($R(H) \le 1 + H + \binom{H}{2}$, zero bounded cells for $H \le 2$ in $\mathbb{R}^2$).
- `preprint.tex` & `preprint.pdf` — Short formal note deriving affine collapse, antipodal convexity trapping, and Transformer MLP crease geometry.

## Easy Extension Entry Points

1. **Swap `ReLU` for `GELU` / `SiLU` / `SwiGLU`:** Replace `nn.ReLU()` in `code/verify_manifold_folding.py` with `nn.GELU()` or gated `SwiGLU` (`SiLU(x W_g) * (x W_v)`) and measure minimum width $H$ needed to enclose concentric rings in $\mathbb{R}^2$ and $\mathbb{R}^3$.
2. **Test topological linking in $\mathbb{R}^2$ vs. $\mathbb{R}^3$ (Olah's conjecture):** Generate two linked 1D loops in $\mathbb{R}^3$ (Hopf link) and test whether width $H = 3$ (ambient dimension) stalls while $H \ge 4$ untangles them cleanly.
3. **Probe real LLM MLP layers:** Measure cosine similarity of antipodal / negated token pairs before vs. after a Transformer block's MLP activation (`h = act(x W_in)`) on a small open-weight model (`Qwen` / `SmolLM` / `GPT-2`).
