Mad Projects — anime & pop-culture math, turned into real code
Mad Projects (awesome-mad-projects) is an open-source list of mad projects turning anime & pop-culture math into real, tested code — 22 prototypes across Python, Rust, Go, and TypeScript, each grounded in a genuine theorem, metric, or geometry. Open source, contributions welcome.
Featured artifacts
Rendered by the Python pipeline. Two multi-panel explainers and three rotating 3-D studies from the infinity-lab monorepo. Video is muted, looping, and lazy by default.
Gojo's Infinity — four lenses
Can an attacker ever reach Gojo? Answered four ways: convergent series, diverging path length, a blowing-up metric, and geodesics that never arrive.
Möbius / Central Finite Curve — four panels
A Rick & Morty conceit made honest: the Central Finite Curve as a real zero set, shown as strip, ridge, heatmap, and convergence.
Three headline surfaces
Gojo geodesic bundle, rotating
Geodesics approaching the singular metric — the length integral diverges before contact.
Möbius zero set, rotating
The ruled surface whose Gaussian curvature K is strictly negative — a saddle at every point.
Central Finite Curve, rotating
An infinite-but-bounded arc: every reality where a Rick is the smartest being.
All 22 projects
Grouped into three clusters. Every card links to its source on GitHub.
Data is also served as JSON at
/api/projects.
Community collection
awesome-mad-projects is a curated, open-source collection. Every project has an honest mathematical or systems core — a real theorem, metric, or geometry doing the work. Where the real thing would be unsafe (OS-level process control, filesystems, kernel drivers), the code stays in safe userspace over a sandbox it creates and owns. Anime and pop-culture provide the motivation; mathematics provides the substance.
Fork the repository
Fork on GitHub and clone locally. The repo is a monorepo — each project lives in its own top-level folder.
Add your project
Create a folder with a README.md and a test suite.
Add an entry in site/projects.json and a cover image
in site/assets/covers/. Read the
CONTRIBUTING guide
for the schema.
Open a pull request
Submit your PR against main. If you have an idea but
no code yet, open an
issue
to discuss it first.
Honest caveats
Where the math cannot hold, the code says so. These are analogies and simulations, not claims about reality.
- The ruled surface has K < 0 everywhere. The Möbius / Central-Finite-Curve zero set is a genuine ruled surface, so its Gaussian curvature is strictly negative. It is a beautiful saddle, not a magical loop — the geometry is honest, the mythology is not.
- True infinity is fragile. The infinite-hotel scheduler and Gojo's “Infinity” (Sₙ = 1 − (1/2)ⁿ as n → ∞) work as limits and countable re-indexings only. Push them to literal, actualized infinity in finite memory and they break — the code models the paradox, it does not resolve it.
- Cursed energy is not governed by real analysis. Domain Expansion, Unlimited Void, and the Stand system dramatize constraint solving, container isolation, and scheduling. They are safe, sandboxed simulations over process tables the tools create and own — no anime physics is claimed.
- Thermodynamic and paradox pieces are caricatures. Madoka's karmic entropy (ΔS ≥ 0), Zeno's transport (1/2 + 1/4 + … = 1), and Banach–Tarski's duplication (m(Z) = 0 for the free-group set) each capture one true idea and deliberately ignore the rest of the physics.
Anime math, fact-checked
The questions people actually ask about these ideas — answered with the same honesty-first rule as the rest of this repo. Each answer links to the runnable code and derivation.
One of them is answered at length, from the tests: Does Zeno’s paradox mean you never arrive?
Is Gojo Satoru's Infinity mathematically possible to escape?
No — not under any of the four lenses this repo checks. As a geometric series, the gap after n halvings is (1/2)n, which only reaches zero in the limit, never at a finite step. As a Lebesgue measure, the uncovered points have measure zero. As Riemannian geometry, geodesics approaching the singularity have length that diverges to infinity, so the felt distance never closes. Topologically, the space's structure simply blocks the approach. Four independent descriptions, one answer. Full derivations and runnable Python: Gojo's Infinity.
Is the Banach–Tarski paradox real, and can you actually duplicate a sphere?
The theorem is real: a solid ball can be partitioned into finitely many pieces and reassembled, using only rotations and translations, into two balls identical to the original. It needs the Axiom of Choice to build non-measurable pieces that have no volume in the usual sense — which is why it never applies to anything you could cut with a knife. Our implementation stays honest about that limit: it manipulates words in the free group F₂ combinatorially and makes no claim about real matter. Source and explanation: Banach–Tarski Duplicator.
What is the Central Finite Curve from Rick and Morty, in real math?
Rick and Morty call it the one timeline-strand where Rick is the smartest version of himself. Modeled honestly as the zero-set of a residual function traced on a ruled surface (a Möbius strip), it forces Gaussian curvature K < 0 everywhere — a real saddle, not a loophole. The code renders that zero-set plus a cross-validating ridge, with a torus counter-example to show the result isn't an artifact of the surface choice. Details: Central Finite Curve.
Why does the hairy ball theorem force a bald spot, and what does that have to do with network routing?
The hairy ball theorem says there is no continuous, non-vanishing tangent vector field on an even-dimensional sphere — comb a hairy ball flat and at least one point stays a cowlick. This repo turns that into a packet router that follows a continuous tangent field on S²: wherever the field vanishes, packets at that point get dropped, and moving the field around never removes the singularity, only relocates it. Code and proof sketch: Hairy Ball Router.
Is Zeno's paradox actually solved by math, or is motion still "impossible"?
Solved, in the sense that matters for motion: the infinite sum 1/2 + 1/4 + 1/8 + … converges to exactly 1, so infinitely many steps fit inside a finite distance and a finite time. Zeno's error was assuming infinitely many steps must take infinite time. This repo implements that convergence as a transport protocol — each tick covers half the remaining distance, landing within any chosen ε after exactly ⌈log₂(1/ε)⌉ ticks. Code: Zeno Protocol. Checked write-up: does Zeno’s paradox mean you never arrive?
Is Steins;Gate's divergence meter based on real physics?
No — and the project says so plainly. The decimal "reading" that marks which worldline you're on is not a measured physical quantity in this universe or any other; it's fiction. What is real here is the engineering pattern underneath it: a worldline-divergence number classified into attractor-field basins, with a "Reading Steiner" store for jumps between recorded states. Code and the honest caveat: Divergence Meter.
Are JoJo Stand powers or Death Note kills simulated for real, or is that just marketing?
Neither touches a real process outside a sandbox the tool creates and owns. JoJo Stands models abilities like The World (time stop) and King Crimson (rollback) as operations over a simulated, in-memory process table — no real time-stop exists. Death Note is a rule-accurate process reaper that refuses raw PIDs, refuses to run as root, and kills only the harmless child processes it spawned itself, with a PID-reuse guard. Both are safe by construction, not real OS-level or kernel capabilities. Code: JoJo Stands · Death Note.
Does any project in this repo claim fictional physics is literally true?
No. The one rule of this repo is that every project needs an honest mathematical or systems core; where the real thing is impossible or unsafe, the code is a clearly-labeled safe simulation and says so in its own caveat section — see the honest caveats above or the full project directory for all 22 projects.