Alex Nelson's Avatar

Alex Nelson

@pqnelson.bsky.social

Mathematician, software engineer. Obsessed with everything about proof assistants. AMS Subject Class.: 68V15, 68V20, 20Exx.

49 Followers  |  33 Following  |  531 Posts  |  Joined: 20.08.2024  |  1.7647

Latest posts by pqnelson.bsky.social on Bluesky


Is that...Gollum? "Come see my PRECIOUS...bathroom fixtures."

18.02.2026 14:49 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

TOON TUESDAY
#ToonTuesday

17.02.2026 17:21 β€” πŸ‘ 1158    πŸ” 337    πŸ’¬ 0    πŸ“Œ 21
Preview
Infinite-Dimensional Lie Groups This is a preliminary version of a book on infinite-dimensional Lie groups. It covers the basics of calculus and manifolds in the context of locally convex spaces, based on Bastiani's notion of a smoo...

Read later (a ~1026 page manuscript)...

arxiv.org/abs/2602.12362

17.02.2026 21:44 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Hilbert's Program and Infinity The primary aim of Hilbert's proof theory was to establish the consistency of classical mathematics using finitary means only. Hilbert's strategy for doing this was to eliminate the infinite (in the f...

Read later

arxiv.org/abs/2602.12131

13.02.2026 14:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I'm hardly the first person to note this, but it's enormously instructive that our President and his followers saw the message "THE ONLY THING MORE POWERFUL THAN HATE IS LOVE" and understood it, correctly, as an attack on them

09.02.2026 02:11 β€” πŸ‘ 25117    πŸ” 5897    πŸ’¬ 104    πŸ“Œ 50

Some people are asking what I want Schumer to do. He should be screaming over medical care and access to facilities. He should be going to detention facilities himself and putting his body on the line, as he did at the border in 2019. He should lean into stories about New Yorkers in detention. [1/4]

04.02.2026 14:25 β€” πŸ‘ 2762    πŸ” 793    πŸ’¬ 54    πŸ“Œ 92

I just wish there were an "Algebraic Geometry for Differential Geometers" book out there :(

31.01.2026 20:59 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Edward Gibbon was far better with this type of juxtaposition, specifically to maximize irony. But I guess we can't all be a Gibbon...

29.01.2026 01:01 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I wish people would use commas.

For example: "While tropical countries will bear the brunt[,] cooler regions will also need to adapt."

You need that comma inserted for the sentence to make grammatical sense.

USE COMMAS, GOSH DARNIT.

27.01.2026 01:05 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

But I don't think I will adequately get a chance to do this for about a month, because my sister and her husband are visiting until the end of February.

24.01.2026 23:49 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I was thinking about writing a post about the desired qualities ("desiderata") and design choices necessary when implementing a literate programming tool...especially since implementing a proof assistant *as* a literate program requires special concerns.

24.01.2026 23:49 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Perhaps I should write a meta-"literate program" to document the successes and failures of these explorations?

But to have found me on Bluesky, which is no small task, so I guess someone must be interested in what I have to say about it.

22.01.2026 19:30 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Ah, well, currently I am working my way through bootstrapping a literate programming toolkit. I feel the Markdown prototype was...inadequate for my needs.

Now that I am thinking about it, I suppose I am experimenting with several prototypes...

22.01.2026 19:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

If you are serious about literate programming, I would still recommend building a Pandoc filter: you will save yourself a boat load of trouble.

Trouble is my business, so I'm still bootstrapping a literate toolkit in Standard ML to study implementing proof assistants.

What piqued your interest?

22.01.2026 01:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I'm still working on it (I realized too late that Markdown was inadequate for my purposes because I wanted to state theorems, and that forced *me* to *manually* write the theorem numbers and italicize the theorem statement).

I have a version of the Markdown locally, somewhere...

22.01.2026 01:00 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Every "Let's build an LSP server" starts off simple, then ends up with extraordinarily convoluted data structures by step 3 🫣

22.01.2026 00:58 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

You know...from that land...from the land of the ice and snow from the midnight sun where the hot springs flow...

21.01.2026 14:50 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Concurrent POSIX file system operations has been verified in TaDa

www.doc.ic.ac.uk/~pg/publicat...

20.01.2026 20:33 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Executable formal semantics for the POSIX shell The POSIX shell is a widely deployed, powerful tool for managing computer systems. The shell is the expert's control panel, a necessary tool for configuring, compiling, installing, maintaining, and de...

The POSIX shell semantics has been formalized in Lem (which extracts to Coq/Rocq and Isabelle/HOL and other proof assistants).

arxiv.org/abs/1907.05308

20.01.2026 20:33 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

UNIX Path resolution has been formalized in Why3

inria.hal.science/hal-01406848...

20.01.2026 20:33 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

How much of POSIX has been formalized in a proof assistant? I know of a bunch of scattered results, but they seem to be independent disjoint efforts...

And since POSIX is a multi-volume specification, I wouldn't be surprised I don't cover everything here in one thread.

20.01.2026 20:33 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

After writing a POSIX-compliant shell script, then rewriting as a literate program using Noweb, I realize I might need to use an honest programming language like Standard ML to actually implement the desired program πŸ˜…

18.01.2026 20:08 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Since it's under the 35^4 ~ 1.5e6 threshold, that's the critical thing. I'd only need to pause and re-evaluate things if there were, say, 1.5e5 such identifiers.

18.01.2026 19:57 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Things reduce a little (you get 10,385 at the top-level directory, and 44,969 in subdirectories).

I'm just trying to get a feel for things (specifically if something like Stacks tags could be used for literate programming proof assistants), so over-estimating is better than under-estimating.

18.01.2026 19:57 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

To be precise, with my version of HOL Light (slightly out of date), there are 24,049 identifiers in files in the parent directory, and then 158,092 identifiers in files in the subdirectories.

(To get a sense of things, Isabelle seems to use about 32k SML identifiers in its kernel.)

18.01.2026 17:35 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I just need a rough estimate, so I decided to do something like "ls *.ml | grep -n "let " | wc -l" (and another for the subdirectory files "ls ./*/*.ml | ..."). For HOL Light, it was something on the order of 100k identifiers.

18.01.2026 14:17 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

TIL ZSH is not a POSIX-compliant shell, after spending a couple hours trying to figure out why it doesn't accept my script the same way DASH, BASH, KSH, and other POSIX-compliant shells do...

18.01.2026 03:36 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Is there a way to estimate the number of top-level identifiers in an OCaml program?

18.01.2026 00:53 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

Yeah, I'm not gonna lie, I am not a fan of the terminology used by Algebraic Geometers: their "immersions" aren't really what differential Geometers call "immersions" (instead AG's "unramified morphisms" are "immersions") 🫣

13.01.2026 20:37 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Greibach Normal Form Greibach Normal Form in the Archive of Formal Proofs

I just found Alexander Haberl, Tobias Nipkow, and Akihisa Yamada have formalized Greibech normal form in Isabelle/HOL a couple months ago.

www.isa-afp.org/entries/Grei...

11.01.2026 22:27 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@pqnelson is following 20 prominent accounts