Robert Penner (@robertpenner) header
Robert Penner (@robertpenner) profile picture

UX Engineer @Microsoft | creator of those easing functions | building next-gen motion & graphics tools | formal verification, Lean, Dafny, Bend2

Brooklyn, NY
Joined October 2008
Photo by Robert Penner (@robertpenner)Photo by Robert Penner (@robertpenner)Photo by Robert Penner (@robertpenner)Photo by Robert Penner (@robertpenner)Photo by Robert Penner (@robertpenner)Photo by Robert Penner (@robertpenner)Photo by Robert Penner (@robertpenner)Photo by Robert Penner (@robertpenner)Photo by Robert Penner (@robertpenner)Photo by Robert Penner (@robertpenner)
Rewind me 6 months and tell me LemmaScript will be used to formalize and uncover bugs in XState. I would have believed you, actually. There's a reason we built it, iterated relentlessly, and stuck with it through a dead zone. Be like Robert. Go formalize stuff.
Replying to @robertpenner
Now I'm tackling something more ambitious: formalizing XState's runtime behavior with LemmaScript. I started with XState's lightweight FSM, proving 31 laws governing state transitions, context updates and sequences of events. Comparing the formally verified model against XState's implementation helped uncover two bugs, both since fixed upstream. That led me deeper into XState's runtime. In my first week, I filed 7 bug reports involving subtle problems with transitions, event ordering and state behavior. It's exciting to see formal verification help uncover bugs in a mature, widely used open-source library.
1
1
5
440
【Gemini 4 Carbon】震惊!一场跨越6000多年的鹈鹕骑车测试作品 这真的是我见过的,最最最最牛逼的鹈鹕骑车测试:
63
56
22
661
56,290
Robert Penner retweeted
Our long-term goal is scalable autoverification of all future software. A first step is out today: an executable Lean model of the Linux kernel's WireGuard handshake, derived from its C source. We aim to prove that code is correct. math.inc/position
4
38
9
245
20,437
Robert Penner retweeted
Since it seems that formal verification is going viral again, I might as well drop what I have been working on the side-ish for the past 2.5 weeks over weekends. here is Janus: a Lean 4 framework that formally verifies compiled Go machine code. Not the Go source, the actual arm64 and amd64 bytes the CPU runs. I already ran on a target successfully: holiman/uint256, the 256-bit math library under go-ethereum. All 146 exported functions are proven correct on both arm64 and amd64: 293 machine-checked theorems covering arithmetic, modular math, Exp, Sqrt, parsing and JSON/SSZ/RLP encoding. Each one says: for every valid input, this machine code returns exactly what the spec says. How it works: 1. Compile the Go code and pull the function's machine code out of the real binary. 2. Write a short, readable spec in Lean, e.g. "z = x + y mod 2^256". 3. Prove the machine code meets it, instruction by instruction, on a Lean model of the CPU. 4. Lean's kernel checks every step of the proof. Incredibly enough it found real bugs in the library's latest releast. e.g uint256's Float64() truncates instead of rounding to the nearest value, as its documentation promises. It also turned up several places where the docs/expected behaviour and the ACTUAL behaviour disagreed. Janus can also prove things about performance: uint256's Add executes exactly 17 instructions on both arm64 and amd64, on every call and that has an upper-bound proof/spec. Every uint256 spec (plain Lean, one file per function): github.com/Giulio2002/fv-uin… Full list of findings: gist.github.com/Giulio2002/0… Code: github.com/Giulio2002/Janus Proofs: github.com/Giulio2002/fv-uin…
11
8
2
115
4,410
Robert Penner retweeted
Claude Fable 5.2 made this 90's toy commercial Everything you see was made with code. Animated in Python and rendered in Blender
61
50
10
766
31,148
Robert Penner retweeted
I had Opus 5.5 formalize CPython in Lean: 613,318 lines of Lean that copy Python's internals line by line, tested against the real interpreter and checked by Lean. On the way it found real bugs in Python, including crashes from plain Python code. 🧵
64
230
34
2,493
163,525
Robert Penner retweeted
Now you can really see everything
my vocal synth models the vocal tract as a network of branching acoustic tubes, unlike vocaloid which stitches together and pitch-shifts phoneme recordings. still working on improving naturalness by tuning it against recordings of real singers, but I'm already impressed at how cool it sounds!
199
854
160
10,037
649,828
Robert Penner retweeted
How cultures sound on a violin. It's fascinating how different intervals can instantly evoke a whole culture. Julia Kim plays 5 scales 🎻 Egyptian, Celtic, Chinese, Japanese, Sundanese.
115
1,669
142
9,444
276,033
Robert Penner retweeted
'The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise' - Edsger Dijkstra
1
25
2
138
8,774
Robert Penner retweeted
XState v6 is now in beta 🚀 Reduced API surface area (transitions are just functions), much stronger types, durable execution, new tools (CLI, viz, editor), and more to come. Built for humans *and* agents 🤝 npm i xstate@beta stately.ai/blog/2026-11-05-x…
34
50
4
663
36,028
Robert Penner retweeted
Euler's formula (eⁱᶿ = cos θ + i sin θ) is fundamentally a dynamic statement about rotation, growth, and circular motion in the complex plane.
37
309
26
2,151
119,682
Robert Penner retweeted
I wrote a new article about a liquid effect I implemented 5 years ago. (It's been a while) Stable Fluids is used in this algorithm, and I explain how I applied it to create the liquid effect in this article. There are also small interactive demos and you can play with them! mofu-dev.com/en/blog/fluid-f…
31
128
14
1,408
71,020
Robert Penner retweeted
I'm on a tear with Bend 2, migrating all kinds of business logic and verifying it. Synchronous collaboration between Bend and TypeScript feels incredible. No more modeling/verifying in Lean and porting insights to TS. The laws are live in Bend.
1
1
172
Robert Penner retweeted
Made mine with /statechart + Colorfigures, then made them walk around ☕ A metro station whose floors fold, a coffee bean from branch to cup, a slow Saturday on a dice roll, a farm where every animal talks. Isometric, animated, every bit clickable~
show me the all the cool charts you've made with /statechart! and bugs that you've found using the /create-formal-verification skill you can install pstack here: github.com/cursor/plugins/tr…
37
90
7
1,283
126,149
Robert Penner retweeted
Diagrams drawn in JavaScript, made with @poteto's /statechart skill. The business of a boba shop Open source. Made with Claude Opus 5.5
52
60
17
968
259,424
Robert Penner retweeted
Today, we're shipping real-time graphics. Using Sol 6.1 Ultrafast we can generate custom overlays, diagrams, and even interactive 3D scenes right on a user's screen, no chat. It's a new visual interface for AI. Here's me learning about LLMs + hardware. Demo:
701
845
477
11,719
1,274,797
Robert Penner retweeted
Using the right words can drastically improve the results you get from your agents, which is why I built a vocabulary of 244 terms for aiforui.dev. If a term is used in a lesson, it gets a dotted underline. You can hover to see its definition or click to see a demo.
97
91
24
2,952
126,470
Robert Penner retweeted
I think it's becoming rather clear that ALL of mathematics will become possible to formalize rather soon. There are deep implications: 1. Mathematics becomes super interactive. Formalizations make it easy to browse, recombine, and build mathematical proofs from components. 2. Each new idea and paper can be checked much faster. The deep part is meaning and explanation. Validation is almost automatic. 3. Optimization and identification of new proofs can be done partially via agents, and humans can contribute much faster with great new ideas. Proofs from the Book are possible at scale. 4. Scientists and people at large can finally use mathematical artifacts as black boxes with trust and confidence. We can commoditize mathematical theorems. I think the mathematical enterprise also becomes very gamified. We can clearly see each unproven statement as a concrete goal, identify existing tools and directions, and focus quickly on what's missing. And everyone can contribute, with agents or through understanding. Soon, new languages and new theories will also develop, but the structure will keep growing steadily, with no mistakes and on fundamentally solid foundations. Hilbert's dream is becoming a reality. One important caveat: mathematics is by no means trivial now! It's just becoming extremely well-structured and laser-focused. I think the jump in capacity, quality, and scale will be massive. I also hope that our understanding of the big picture will remain solid, because there will be a lot to grasp.
17
43
10
334
18,722
Robert Penner retweeted
19
297
6
1,933
69,641
Robert Penner retweeted
HBO's @LastWeekTonight has a long track record of citing social science findings without the appropriate context, massaging them to support whatever point @iamjohnoliver is trying to make.
194
800
134
7,615
1,237,761