Back to Creators
BNBartosz Naskręcki

Bartosz Naskręcki

@nasqret
AIEnglishEmerging (1K–30K)Tracked since 2026-11-26

Mathematician | Vice-Dean @UAM_Poznan | Researcher @ccaiwut | Owner of http://MathBot.eu | Mathematics, AI and programming

Followers
19.1K
Following 674
Typical Views
23.7K
30d · 12 posts10/7d
Bookmark %
0.4%
Like 1.6%Eng. 2.2%
Authority
81/ 100
30d Breakout Hits
4
Peak 9.0×
Reach RatioTypical Views / FollowersEmerging (1K–30K)
Typical views ≈ 124% of followers·▲ Peer Median 24%5.2×
0%▲

3-Day Follower Growth

Hover to inspect daily follower changes

3d Change
+133(+0.7%)
19.20K19.10K19.00K18.90K11-2611-2811-29

Content Format Mix

Original 75%Thread 0%Quote 25%Reply 0%

14-Week Posting Cadence

2026-11-27 Fri1 post
14w Posts
12
Active Days
7/9
Active Weeks
2/2
Avg / Week
9.3
Peak Day
4
Peak Day/Wk
Tue
AugOctNovMonWedFriSun
08-24 → 11-29
LessMore
Public Interactions12
Repost 8 · Mention 2 · Reply 1
Repost
2×
Repost
2×
Reply
1×
Followed & Endorsed By10
Follow 8 · Quote 2
Peak Outlier9.0×
Top Post Views213K
Peak Bookmark %0.9%
BNBartosz Naskręcki
Bartosz Naskręcki@nasqretAI19.1K followers
typical 23.7K

A world map of the proof of the Riemann hypothesis!Introducing a fully interactive map of the semantic embeddings of all the Lean declarations and proofs in the formalization of the Riemann hypothesis.

You can explore the whole proof visually, see where the declarations live and how they connect and interact, search the map, and follow links to the original source code. The map will be updated with each iteration of the proof.

If you want to focus on one aspect of this monumental proof, you can now locate semantically related fragments. I hope this will help structure the code and broaden our understanding of its high- and low-level structure.

213K704(0.3%)1.6K29156
View on X
BNBartosz Naskręcki
Bartosz Naskręcki@nasqretAI19.1K followersLean
typical 23.7K

There are quite a few doubts regarding the correctness and nature of Alpöge’s proof of the Riemann Hypothesis itself. I would like to provide a somewhat technical explanation here of what was actually done.

Imagine that you want to prove the implication P → R, and you have two assumptions, f : P → Q and g : Q → R. In the Curry–Howard correspondence, a statement is a type, and its proof is a term of that type. The implication P → Q is a function type. The function f accepts the proof of P and returns the proof of Q.

Similarly, g takes the proof of Q as an argument and returns the proof of R. Lean is based on the “Calculus of Constructions” variant, i.e., dependent type theory, extended, among other things, to include inductive and quotient types. (t.co/w4L1xgPaCM)

An example theorem and proof in Lean for a logical formula: If P implies Q and Q implies R, then P implies R.

theorem h {P Q R : Prop} (f : P → Q) (g : Q → R) : P → R := fun p => g (f p) -- here we provide the proof

You compose the functions f and g. From the proof p : P, you obtain f(p) : Q, and then g (f p) : R. Thus, from the proof of P, you obtain the proof of R, so the entire (lambda) function fun p => g (f (p)) has type P → R. Applying f to p is, in this notation, the detachment rule.

What does the Lean kernel do when you enter this code? The elaborator translates the notation of the theorem and proof into terms in Lean’s internal language. The kernel checks whether the proof term has the type declared in the theorem. You can write the same proof using tactics.

- intro p introduces the assumption p : P, - exact provides the proof of the remaining goal R.

Tactic-based proof (as in Alpöge)

theorem h_tactics {P Q R : Prop} (f : P → Q) (g : Q → R) : P → R := by intro p exact g (f p)

The elaborator runs the tactics and constructs a proof term from them. In both examples, #print displays the same term, meaning it is the same proof.

The Riemann Hypothesis already had its formulation in Mathlib as RiemannHypothesis : Prop. It was necessary to construct a term of this type—that is, a proof. Alpöge and Claude provided the code from which Lean constructs this term, using the entire library of intermediate theorems.

I also independently verified the code on Helios; this took many hours of parallel kernel processing across multiple CPUs. In the public verification, the type of the proven theorem was compared with an independently prepared template based on Mathlib. Several verifiers accepted the proof export. The audit showed that the proof, including its intermediate dependencies, uses only three of Lean’s standard axioms (propext, Classical.choice, and Quot.sound).

Comparator checks for compliance with the test case and the list of allowed axioms. The --paranoid mode runs additional verifiers. - verification report: t.co/kseXGk4D2i, - Comparator documentation: t.co/YOLf9am4Rs

What about a swapped kernel? For the tampered code to pass this way, the verifiers would also have to be made to run the swapped binaries. In the public verifications, tools obtained independently of the proof archive were used. Some of the verifiers, including con-leche and con-ron, were compiled on-site from source code in separate repositories. Tools from the official Lean release were also used. Recompiling the proof in an isolated environment produced an export that was identical byte-for-byte, and the verifiers were able to verify it without running Alpöge’s source code. In this situation, it is practically impossible to forge consistent results simply by swapping out the kernel. One would also have to interfere with the verification process. If we were to accept the hypothesis that we live in a simulation, it would have to explain the consistent results of different verifiers in separate environments. Lean FRO and the Mathlib Initiative have confirmed the correctness of both the formulation and the proof. We now have a formally verified proof of the Riemann Hypothesis (t.co/ZiCw4knB8l).

However, the proof itself contains many interesting elements from arithmetic geometry and the theory of automorphic forms. Among other things, it involves Iwasawa towers and Galois representations. Its structure is also intriguing. Alpöge describes it as an extension of Stepanov’s idea from the proof of the Riemann Hypothesis for curves over finite fields. In Stepanov’s proof, differentiation helps achieve a high order of vanishing. On the side of the integers, a chain of successive theta lifts between unitary groups plays an analogous role. [Alpöge’s note](t.co/GvijK58wlE)

On December 11, I will give the Ulam Lecture at Adam Mickiewicz University in Poznań on the proof and will share the details. You are cordially invited!

92.7K520(0.6%)84210546
View on X
BNBartosz Naskręcki
Bartosz Naskręcki@nasqretAI19.1K followers
typical 23.7K

I have prepared a 1,200-page human-readable deformalization of Luke Sernau's condensed Lean proof of the generalized Riemann Hypothesis for Dirichlet L-functions, itself a rewriting of Levent Alpöge's proof. It is the result of combined work with several AI agents, which first decompiled the proof into so-called structured proofs (in the sense of Leslie Lamport) and then wrote the final text. The draft is already readable. Its notation is rather pedantic, because it follows the formal proof closely, and it gathers the whole argument into a single document. I hope it will help mathematicians around the world gain deeper insight into the proof and keep simplifying and beautifying the argument. My contribution is only the design of the skills and the orchestration of the agents.

Five days ago Levent Alpöge announced a proof of the Riemann Hypothesis and of GRH for Dirichlet L-functions, written with Claude: a Lean archive of 17.4 million lines, far beyond anything a person could read.

Yesterday Luke Sernau, with colleagues at Anthropic, released the same five theorems in 112,827 lines, 154 times shorter. The argument itself is 24,850 lines of code. The background that Mathlib lacks is separated out and labelled with the literature it follows.

I think this is a turning point in how mathematics is done. A proof written with an AI was rewritten by an AI, under human direction, 150 times smaller, in days. The scarce resource is no longer the formal proof. It is the human reading of it.

85.9K162(0.2%)6218746
View on X
BNBartosz Naskręcki
Bartosz Naskręcki@nasqretAI19.1K followers
typical 23.7K

Five days ago Levent Alpöge announced a proof of the Riemann Hypothesis and of GRH for Dirichlet L-functions, written with Claude: a Lean archive of 17.4 million lines, far beyond anything a person could read.

Yesterday Luke Sernau, with colleagues at Anthropic, released the same five theorems in 112,827 lines, 154 times shorter. The argument itself is 24,850 lines of code. The background that Mathlib lacks is separated out and labelled with the literature it follows.

I think this is a turning point in how mathematics is done. A proof written with an AI was rewritten by an AI, under human direction, 150 times smaller, in days. The scarce resource is no longer the formal proof. It is the human reading of it.

69.5K122(0.2%)76510557
View on X
BNBartosz Naskręcki
Bartosz Naskręcki@nasqretAI19.1K followers
typical 23.7K

I think something wonderful happened in the math community. For many years people were afraid to work on well-established problems like Riemann Hypothesis because they seemed completely out of reach. Now we are finally seeing mathematics being moved forward at an unprecedented scale. Many moonshots and completely bonkers ideas. Only good things can come out of this. Mathematics is not dead.

29.7K88(0.3%)1.0K10641
View on X
BNBartosz Naskręcki
Bartosz Naskręcki@nasqretAI19.1K followers
typical 23.7K

I think that the mathematical singularity that we are witnessing is an absolutely momentous point in the history of human civilization. It’s not stagnation. It’s the frantic activity of many humans geared up with swarms of agents. Brace yourself, as it’s only going to get faster from this point on. The outcome of this will be a completely new map of connections between fields of mathematics and probably very new directions of development.

27.2K105(0.4%)89510834
View on X
BNBartosz Naskręcki
Bartosz Naskręcki@nasqretAI19.1K followers

I am slowly analyzing the set of notes which I managed to generate with Fable and Astra, based on the original Lean code which proves the Riemann Hypothesis and I get this eerie feeling that mathematics which is grown from the LLMs at such an unprecedented scale is escaping our comprehension. When I focus on one part of the proof, I cannot grasp another and probably it will take many shorter papers, checked by many people independently to build a good story, which hides many details, to build a very rudimentary understanding of this proof. And yet, this is a vastly shortened version of the proof compared to the original Alpöge's version. And the ingredients are all rooted in well-established mathematics. Imagine now what will happen if LLMs soon start proving theorems with newly made methods and completely foreign definitions. This might happen very soon in algebra, cellular automata theory, complexity theory or set theory. We might end up with proofs which will take humans decades to actually comprehend, or worse, no group of humans will ever be able to digest those proofs fully. Mathematics at scale is just something else entirely. Not sure how to think about this but we probably need a massive shift in our understanding and comprehension of the word mathematics here. It's like watching the game called Factorio being played by an agent (which I actually did recently myself) and just seeing it build a fully working pipeline that delivers a rocket that flies to space. You can only appreciate the end result but you must accept that internal understanding of the "factory" is gone, we lost it and never will recover. Slightly optimistic about RH digestion but in general not so optimistic about the deep understanding of global arguments in future proofs.

I have prepared a 1,200-page human-readable deformalization of Luke Sernau's condensed Lean proof of the generalized Riemann Hypothesis for Dirichlet L-functions, itself a rewriting of Levent Alpöge's proof. It is the result of combined work with several AI agents, which first decompiled the proof into so-called structured proofs (in the sense of Leslie Lamport) and then wrote the final text. The draft is already readable. Its notation is rather pedantic, because it follows the formal proof closely, and it gathers the whole argument into a single document. I hope it will help mathematicians around the world gain deeper insight into the proof and keep simplifying and beautifying the argument. My contribution is only the design of the skills and the orchestration of the agents.

20.2K112(0.5%)4414852
View on X
BNBartosz Naskręcki
Bartosz Naskręcki@nasqretAI19.1K followersThread · 6

While working hard on the approach to deformalization of massive Lean repos like the Riemann Hypothesis, I wrote a new skill, Readback. It allows you to take hard-to-read Lean code and turn it into a high-quality mathematical paper. The intermediate step is to generate something called a structured proof. This is an intermediate step, and the setup is two-agentic. The results are presented in the repo, and they helped me nicely deformalize some critical parts of the Riemann Hypothesis proof. I hope more people will join and use their top agents to contribute high-quality deformalizations of Lean. The skill is still in development, so I hope to receive some feedback too.

15.1K87(0.6%)2694419
View on X
BNBartosz Naskręcki
Bartosz Naskręcki@nasqretAI19.1K followers

An update to the project. I have added a tracker of the daily snapshots of the official Lean code repository at leanprover-community on GitHub. The snapshot edition allows one to track changes and see live which parts of the code are being removed. The repository is undergoing massive revisions, i.e. the proof is solid but it contains some clutter and "dead code" which was not directly contributing to the final theorem. So a coordinated effort of the Lean community is pushing this code golf to make it much smaller. Next phase is the digestion part which has already started in many places around the world. Will soon post updates on my take here.

A world map of the proof of the Riemann hypothesis!Introducing a fully interactive map of the semantic embeddings of all the Lean declarations and proofs in the formalization of the Riemann hypothesis.

You can explore the whole proof visually, see where the declarations live and how they connect and interact, search the map, and follow links to the original source code. The map will be updated with each iteration of the proof.

If you want to focus on one aspect of this monumental proof, you can now locate semantically related fragments. I hope this will help structure the code and broaden our understanding of its high- and low-level structure.

17.2K48(0.3%)2814010
View on X
BNBartosz Naskręcki
Bartosz Naskręcki@nasqretAI19.1K followersThread · 2

This semester I am running a course where we mix programming with mathematics. We have already explored the rudiments of computer algebra, foundations of IEEE 754 standard of numerical computations. Next week we will start building our own theorem prover based on the original Automath of de Bruijn.

Each time I meet at the exercise classes with my students, we have an incredible discussion about the consequences of mathematical formalisms. Last time we discussed how the circle x^2+y^2=1 is an algebraic group with the group law (a,b)*(c,d) = (ac-bd, ad+bc). My goal was to show them that we can first formalize the whole justification. Then we explored what can be done with such an algebraic approach. It took me a bit of back and forth with the models to dig much deeper and show them that, e.g. pi/4 = 4 arctan(1/5) - arctan(1/239) (Machin's formula from 1706) is naturally a consequence of reparametrization of the group law to the rational form (t,s)|--> (s+t)/(1-st) via Pythagorean reparametrization. We discussed a lot why such formulas are interesting (very high quality approximation to pi).

My point was that mathematics is a gate, we explore it by digging deeper into apparently obvious things, looking back and never stopping the question flow. I am proud of them, they listen and ask a ton of questions. I think with all the AI craze this is probably the most enjoyable professional activity I can possibly have. I love teaching students and being a student myself feels even better. I want to show them that I work with AI because I am always curious and AI is just helping me to reach further, feed my curiosity. I find it sad when people say that AI systems destroy their creativity (they do sometimes). Always dig deeper, it's not to get famous or rich, it's always about curiosity. This is what distinguishes real mathematicians from impostors. We never stop being hungry for knowledge. Is RH too hard to understand? Then learn and go through the slop, find your way.

5.7K48(0.9%)11084
View on X
BNBartosz Naskręcki
Bartosz Naskręcki@nasqretAI19.1K followers

In a recent conversation with @AnnaRRose and @tarunchitra we discussed mathematical intuition and the way mathematicians justify claims. With the example of tilings we can see how the idea or proving has evolved over millenia. Massive formal proof artifacts are just a new way of looking at this complex problem. For me they are a wonderful tool for exploration. They can be studied, decomposed, rebuild, collected, compared in ways we study particles, chemicals and other complex structures. For many years proofs were elusive and very intrinsic. The next step is a full scale science of proofs. It's like chemistry of mathematics. Like PDB for crystallography. We still need sense and the direction but now justification becomes a deep object of study. And can be done at scale. It's a new science very close to engineering.

Maybe all this time, mathematicians were just vibe-ing ?

In this clip, @nasqret explains how math has long relied on intuition and informal checking, and how only recent tooling has made it possible to create formal proof artifacts at scale.

3.2K16(0.5%)3861
View on X

Similar Creators

Explore AI →