
Choose disfavour where obedience does not bring honour. I do math. And was once asked by R. Morris Sr. : "For whom?" @halvarflake@mastodon.social
Joined June 2008
- Tweets68.2K
- Following3K
- Followers48.5K
- Likes44.2K
Pinned Tweet
I will have to print & frame this tweet :-))
If you watch one talk this month, make it this one. Profoundly insightful on the complexity threat to security by @halvarflake given at NATOs CYCON.
Video:
err.ee/836236/video-google-0…
And slides:
docs.google.com/presentation…
Halvar Flake retweeted
If you ever want to see how far we still need to go with these models just start a sufficiently complex project.
The ratio of dazzling to frustration quickly inverts 😩😫😖
Halvar Flake retweeted
This note from Bao Chau Ngo (Fields Medal 2010, Clay Research Award) on Alpoge's work for Riemann is incredible. It's rare to see a mathematician of his caliber with such an open mind about AI.
As a teen I was advised that there is no point in learning assembly, just learn Java, nobody needs the lower levels. It's a good thing that I have always been inadvisable.
Halvar Flake retweeted
“you don’t need to learn to code anymore, agents can do it” is my new litmus test.
sure, you can build things without understanding how they work. but the moment you’re building anything remotely complex, the fundamentals matter. architecture, security, performance, knowing which tradeoffs to make.
if you’ve never hit that point, maybe you’re not building anything that demanding.
Halvar Flake retweeted
"A year from now, an AI lab assembles a secret A-team, throws a few billion dollars of compute at the Riemann hypothesis, and comes up with a 2,000,000-line Lean proof. What are mathematicians going to say?" - David Bessis, 4/21/26
davidbessis.substack.com/p/t…
Halvar Flake retweeted
It would be interesting (just out of curiosity) to see the prompts that went into proving the RH.
Halvar Flake retweeted
Two years ago, I was very skeptical that superintelligence would prove the Riemann hypothesis. It has since become clear that among the very jagged leading edges of frontier model performance at highly scaled compute burn, the new abacus can produce stunning mathematics results. This will require revision of no small part of the broader futures estimates for the impact of this technology.
This does not however likely materially change my assessment of pdoom. Not because I am unwilling to update priors, but because having rather a bit more experience of existential militarized threats, the array of variables involved in world ending (or even the “merely” civilizational destroying) causal mechanisms by which such doom manifests almost certainly remain well beyond reach of even the shoggoth at points much further along the performance curve.
Halvar Flake retweeted
> Inkling 2 Mini leads every open-weights model with less than 100B total parameters on benchmarks such as DeepSWE v1.1 (48.2%) and Vals Index v2.2 (46.5%).
> 5.4B effective activations per token
localpoorbros, we're back!
Some of you thought that Inkling 2 Small was too big at 594B parameters. We heard you: Inkling 2 Mini is a looped transformer with just 26B parameters, small enough to run on your laptop, powerful enough for agentic work with a score of 20.1 on AA Index.
thinkingmachines.ai/news/ink…
Halvar Flake retweeted
While Yud is of course correct on the trivial point that solving RH indicates the level of capability that all eggsperts should be flabberghasted by, I think this is also a good time for him to reflect that the capability-safety tradeoff frontier is VERY unlike what he intuited.
The Riemann Hypothesis has fallen. RH was the singular math result that had been named, in advance, as the obvious coal mine canary for dangerously advanced AI, over the last three decades. The methods used should generalize to "make AI very good at anything you can definitely test", and unfortunately that category includes "make AI better at making AI".
This is like a private company announcing they have produced a million tons of 15% enriched uranium. It's not 90% enriched weapons-grade uranium, so you could proclaim the company's output is not immediately deadly right now. The concern is that the process line may generalize, to an extinction-level threat, within the unpredictably immediate future. Forecasters still had Riemann at 2035 one week earlier.
This is distinct from earlier events in that earlier you could reasonably ask if AI was selectively picking off famous math problems that turned out to be easier for AI. The Riemann Hypothesis was the single challenge most often named in advance as a warning sign.
Halvar Flake retweeted
finished an independent full verification of Levent Alpoge's Lean 4.33.1 proof of the Riemann Hypothesis and Dirichlet GRH, and it passes both Lean and an independent Rust proof checker (nanoda) with zero errors.
what actually got verified:
> compiled all 175,187 reachable files (17.37M lines) from the raw alpo.ge 14-part archive using unmodified stock Lean 4.33.1 in ~2 hours on a single rented 192-core box ($12.53 total spend)
> pinned all five headline theorems directly against unmodified upstream Mathlib (RiemannHypothesis + four Dirichlet L-function GRH theorems), zero sorries or custom axioms, strictly propext, Classical.choice, and Quot.sound
> exported all five theorems' full proof closure (61.57 GB / 1.08 billion lines) and streamed it into nanoda, an independent Rust kernel with zero shared code from Lean: 1,484,729 declarations checked, 0 errors, same three standard axioms only
how it ran fast without touching the compiler:
> bypassed lake's ~943 GB .setup.json overhead with a direct stock-Lean DAG runner using exact lakefile.toml flags
> strace showed Mathlib sitting 9th in LEAN_PATH caused ~300k failed statx calls per file; merging packages into 1 dir per NUMA /dev/shm shard cut kernel time from 29% to ~10% and jumped throughput from 14 to 25 modules/sec
caveat: this settles the five formalized statements (RH + Dirichlet L-functions, not general Dedekind/automorphic GRH) at the machine-kernel level under standard axioms. humans still have to read and understand what the proof is doing.
i've linked receipts, hashes, and reproducible runner in the reply.
AI, translate this article into Korean: phrack.org/issues/73/phrack-…
Started reading this at 3AM. This is such a fun read—I need a beer or two.
Halvar once pushed me around in a wheelchair at SyScan when I was absolutely wasted. I still remember that. Thanks, @halvarflake!
Halvar Flake retweeted
Sometimes I think about a counterfactual world in which the corner of the AI ethics community I used to be part of hadn't dogmatically rejected LLMs as unworthy of constructive engagement—a stance that seemed largely driven by contempt for Effective Altruism and its entanglement with AI. In that world, more people holding that community's values would have joined the major AI companies earlier. Maybe that would have impacted model development, maybe not. Without a doubt, though, as of yesterday, there would be a lot more people with meaningful amounts of money to fund the causes they support, rather than all of it being dumped into EA-forward causes like I suspect is about to happen.
Halvar Flake retweeted
The plot thickens! Ravi Vakil announces "Alessandro Masullo has a proposed proof of GRH [Generalized Riemann Hypothesis], and Brian Conrad has been looking closely at it for months[ ...], and it is so far looking good. It is all human, with no AI." math216.wordpress.com/2026/1…
The fact that Riemann might've been solved by AI and the ANT stock isn't moving up implies that AI solving Riemann was already priced in ;)
Halvar Flake retweeted
Are you a neolab or tech company with spare GPU-hours some of the time?
You can sell these spare GPU-hours for money (and the workloads can even be fully preemptible, so it's pure profit).
You can DM me if you are interested.
Halvar Flake retweeted
With all the noise around formal verification today, it is easy to forget that the Lean or Dafny approach is not the only game in town. When you look closely at how different paradigms connect specifications, proofs, and executable code, four distinct philosophies emerge—each differing on who does the work of finding the witness.
1. Program, Then Prove (Lean, Dafny)
In Dafny or Lean, you write an algorithm that computes the value you want—the witness—alongside a proof that the witness satisfies your specification. In Dafny, the specification and implementation languages are distinct. Yet even in Lean, which fuses them via dependent types, the proof is erased at compile time; at runtime, the machine simply executes the deterministic algorithm you wrote.
2. Program Calculation (Squiggol / Bird–Meertens)
In the Squiggol style, you start with an obviously correct, albeit inefficient, executable program. There is no separate specification and implementation—the specification is the implementation. From there, you apply algebraic, correctness-preserving transformations (like fusion and promotion) to calculate an efficient algorithm. Every equational step is its own proof, though you are still manually deriving the algorithm that computes the witness.
3. Constructive Proof Extraction & Refinement (Rocq, Isabelle/HOL)
Rocq (formerly Coq) and Isabelle/HOL take this a step further through code extraction. In Rocq’s constructive logic, you don't even have to write the algorithm first: you can prove an existential theorem (∃ witness), and Rocq will erase the purely logical steps to extract the computational skeleton of your proof directly into an OCaml program. Classical systems like Isabelle/HOL achieve a similar result through stepwise data refinement, transforming abstract mathematical specs into executable code. Still, the human must construct the proof—and thus the underlying algorithm—ahead of time.
4. Proof Search as Execution (Logic Programming)
Logic programming collapses the entire divide at runtime. You state the axioms, and your query is the existential theorem you want to prove. Execution is the proof search itself, using unification and resolution to dynamically construct the witness you are after.
In the first three approaches, the human invents or vibe codes the algorithm (or proof) that produces the witness, and the machine verifies it.
Only in logic programming do you state what makes a witness valid and let execution itself find both the proof and the witness together—which is why logic programming is my favorite paradigm for formal verification.
Halvar Flake retweeted
I freely admit that I am using Rocq for Phil mainly because my logic programming is inadequate by comparison. Skill issue on my end. Erik is right. Though, in Rocq's defense, the implementation and proof base are moving at a rate I couldn't have imagined two years ago.
With all the noise around formal verification today, it is easy to forget that the Lean or Dafny approach is not the only game in town. When you look closely at how different paradigms connect specifications, proofs, and executable code, four distinct philosophies emerge—each differing on who does the work of finding the witness.
1. Program, Then Prove (Lean, Dafny)
In Dafny or Lean, you write an algorithm that computes the value you want—the witness—alongside a proof that the witness satisfies your specification. In Dafny, the specification and implementation languages are distinct. Yet even in Lean, which fuses them via dependent types, the proof is erased at compile time; at runtime, the machine simply executes the deterministic algorithm you wrote.
2. Program Calculation (Squiggol / Bird–Meertens)
In the Squiggol style, you start with an obviously correct, albeit inefficient, executable program. There is no separate specification and implementation—the specification is the implementation. From there, you apply algebraic, correctness-preserving transformations (like fusion and promotion) to calculate an efficient algorithm. Every equational step is its own proof, though you are still manually deriving the algorithm that computes the witness.
3. Constructive Proof Extraction & Refinement (Rocq, Isabelle/HOL)
Rocq (formerly Coq) and Isabelle/HOL take this a step further through code extraction. In Rocq’s constructive logic, you don't even have to write the algorithm first: you can prove an existential theorem (∃ witness), and Rocq will erase the purely logical steps to extract the computational skeleton of your proof directly into an OCaml program. Classical systems like Isabelle/HOL achieve a similar result through stepwise data refinement, transforming abstract mathematical specs into executable code. Still, the human must construct the proof—and thus the underlying algorithm—ahead of time.
4. Proof Search as Execution (Logic Programming)
Logic programming collapses the entire divide at runtime. You state the axioms, and your query is the existential theorem you want to prove. Execution is the proof search itself, using unification and resolution to dynamically construct the witness you are after.
In the first three approaches, the human invents or vibe codes the algorithm (or proof) that produces the witness, and the machine verifies it.
Only in logic programming do you state what makes a witness valid and let execution itself find both the proof and the witness together—which is why logic programming is my favorite paradigm for formal verification.
Great thread
(I am aware that SF, DC, and NYC contain multitudes, but please accept the above caricatures as gross characterizations. They would get you to a better place than a model like "SF, DC, and NYC are all the same social class from same schools with same values and think similarly.")
5
1,903

























