18B tokens later: tldraw engineer machine-checks the nested corner-radius law R = r + d in Lean 4
AustinZHenley · x · 2026-11-26
tldraw engineer Steve Ruiz published a paper and a Lean 4 + Mathlib machine-checked proof that a rounded rectangle of corner radius r nested inside another with a uniform gap d on every side requires the outer radius to be exactly R = r + d — no other value works.
- The relation is standard GUI design guidance and is baked into the CSS Backgrounds and Borders corner-shaping rules
- The paper proves the closed d-neighbourhood of a radius-r rounded rectangle is a radius-(r+d) rounded rectangle; equal radii give a uniform gap only when d = 0 (the diagonal gap grows to d√2)
- All results but one quantitative proposition are formalized in Lean 4, depending on no axioms beyond the three standard ones
- The author jokes it took "18 billion tokens" of LLM compute to formalize this piece of design common sense; proof and paper are open-sourced (radius-proof, MIT)
More from Fun
- The 'Start Doing Computer Science' meme: self-aware tribute to theory, FPGAs and proof assistants — burny_tech · 2026-11-26
- Claude Opus 5.5 plays medieval scribe: AI recreates Book of Kells-style manuscript and invents letters — repligate · 2026-11-26
- Meme: vibe coder's tech stack is Codex backend, Claude Code frontend — _jaydeepkarale · 2026-11-26
- French auto journalist declares autonomous cars have no future; peers mock with Amsterdam Waymo-style proof — mitchdeg · 2026-11-26
- Thanksgiving 2026 meme mocks the wave of fake 'AI proved Riemann' claims — rakyll · 2026-11-26
- Researcher asks how to stay focused when LLMs supposedly solve Millennium Prize Problems daily — AntonObukhov1 · 2026-11-26