Monday, 23 November 2026

Did AI Just Solve the Riemann Hypothesis? A New Era for Mathematics?

 


"If I were to awaken after having slept for a thousand years, my first question would be: Has the Riemann hypothesis been proven?"

These words are attributed to David Hilbert, one of the greatest mathematicians of all time.

Dear Professor Hilbert, perhaps you should have set your alarm for November 2026!

In 1900, Hilbert presented 23 mathematical problems that would help shape the mathematics of the twentieth century. A hundred years later, in 2000, the Clay Mathematics Institute announced seven Millennium Prize Problems, each carrying a reward of one million dollars.

The Riemann Hypothesis, proposed by Bernhard Riemann in 1859, appeared on both lists.

The problems were among the most formidable challenges in mathematics. Generations of brilliant mathematicians had struggled with them, sometimes dedicating their entire careers to questions whose solutions remained tantalizingly out of reach.

The first Millennium Prize Problem to fall was the Poincaré Conjecture, conquered by the brilliant Russian mathematician Grigori Perelman in 2002–03.

Perelman was subsequently awarded the Fields Medal in 2006 and the million-dollar Millennium Prize in 2010.

He declined both!

Such detachment from fame and fortune is rare. Perhaps Perelman was a stoic monk at heart. Or, to borrow a concept from Indian philosophy, a true Vedanti!

Almost a quarter of a century passed without another Millennium Prize Problem receiving formal recognition as solved.

Then came 2026.

And artificial intelligence.

September 2026: The First Shock

On September 8, 2026, OpenAI, the company behind ChatGPT, announced that an internal AI system had produced a solution to the Navier–Stokes existence and smoothness problem.

The Navier–Stokes equations describe the motion of fluids, including water and air. The Millennium Problem asks whether certain initially smooth solutions can develop singularities, where the mathematical description of fluid motion breaks down.

OpenAI's proposed solution demonstrated a finite-time singularity in an admissible setting. The company also released a formalization of the argument using Lean, a mathematical proof assistant.

The Clay Mathematics Institute subsequently acknowledged that the problem appeared to have been settled, although its formal recognition process remained pending.

I took the news rather personally.

I work in graph algorithms, and I have always believed that artificial intelligence could become a powerful tool for mathematical research.

I imagined AI systems examining millions or billions of graphs, identifying patterns that humans might overlook, discovering interesting conjectures, and perhaps even proving some difficult results.

After all, much of mathematics involves discovering structures hidden inside enormous spaces of possibilities. Surely machines could help us explore those spaces.

But solving a Millennium Prize Problem?

And doing so in a matter of days?

I must confess that I experienced something resembling an existential crisis.

What exactly would be left for mathematicians like us?

Then I consoled myself.

Why should a graph theorist worry about the flow of liquids?

Let the mechanical engineers lose their sleep over that!

With my professional confidence somewhat restored, I returned peacefully to my graphs.

Little did I know that the next shock was just around the corner.

November 20, 2026: The Riemann Hypothesis

On November 20, 2026, Levent Alpöge, a mathematician working at Anthropic, the company behind Claude, announced something extraordinary.

He believed that he and Claude had discovered a proof of the Riemann Hypothesis.

Not merely the original hypothesis, but also its generalization involving Dirichlet L-functions.

A problem that had resisted some of the finest mathematical minds for 167 years!

And now a mathematician working with an AI system had apparently solved it.

I could no longer console myself by blaming the mechanical engineers.

This was number theory, one of the most beautiful and fundamental areas of pure mathematics.

And the implications were staggering.

What Is the Riemann Hypothesis?

For readers unfamiliar with the problem, let me briefly explain why it is so important.

Prime numbers are among the fundamental building blocks of mathematics. Every integer greater than one can be expressed uniquely as a product of primes, apart from their ordering.

Yet prime numbers have a rather mysterious distribution.

They appear irregularly along the number line. Although mathematicians understand their average distribution remarkably well, describing their finer fluctuations remains a profound challenge.

In 1859, Bernhard Riemann investigated a remarkable mathematical object called the Riemann zeta function.

It is initially defined, for complex numbers satisfying Re(s) > 1, by

ζ(s) = 1 + 1/2ˢ + 1/3ˢ + 1/4ˢ + ···

The function can be extended to almost the entire complex plane through a process called analytic continuation.

Riemann's hypothesis concerns the zeros of this extended function.

It asserts that every nontrivial zero of the Riemann zeta function has real part exactly 1/2.

That deceptively simple statement has profound consequences for understanding the distribution of prime numbers.

The Prime Number Theorem tells us approximately how many primes exist below a given number. The Riemann Hypothesis would provide much tighter control over the error in that approximation.

Over the decades, the hypothesis has become connected to many branches of mathematics, including analytic number theory, algebraic geometry, and mathematical physics.

For 167 years, it remained beyond reach.

Until, perhaps, November 2026.

Seventeen Million Lines of Code!

The most astonishing aspect of Alpöge's announcement was the form in which the proof appeared.

It was not a conventional mathematical paper running to fifty or a hundred pages.

Instead, the formal proof was released as a Lean 4 library comprising approximately 17 MILLION lines of code.

Seventeen million!

At first, I started calculating how many books would be required to print seventeen million lines.

Then I decided that some mathematical problems are better left unsolved!

Interestingly, Alpöge himself mentioned that an AI-generated exposition had grown to more than 250,000 pages. Understandably, he chose not to release that enormous document.

But what exactly is Lean?

Lean 4 is both a functional programming language and an interactive theorem prover. It enables mathematicians to express definitions, statements, and proofs in a formal language that a computer can check.

Traditional mathematical proofs are written for humans. They rely on accepted mathematical arguments, logical reasoning, and sometimes steps whose details are left for the reader to fill in.

Formal proofs take a different approach.

Every logical step must ultimately be justified according to a precisely defined system of rules.

A small component called the proof-checking kernel verifies that the argument follows those rules.

The important distinction is that an AI system can generate a proposed formal proof, but the proof checker does not have to trust the AI's reasoning.

It checks the resulting mathematical object independently.

That distinction is crucial, particularly because AI language models are notorious for occasionally producing convincing but incorrect arguments.

A mathematical statement is not true merely because an AI confidently declares it to be true.

The proof must withstand scrutiny.

And this is where the story becomes even more remarkable.

November 21: Independent Verification

Just one day after Alpöge's announcement, the Lean and Mathlib communities released a joint statement concerning the proof.

They reported that independent verification efforts had succeeded.

The checks went considerably beyond simply compiling the Lean code.

They established that the theorem being proved matched the established formal statement of the Riemann Hypothesis in Mathlib, Lean's extensive mathematical library.

They also verified the resulting proof using multiple proof checkers, including independently developed systems.

The communities announced that they had full confidence in the correctness of the formal proof.

This was an extraordinary development.

We were no longer dealing merely with an AI-generated claim or a mathematical manuscript awaiting its first serious examination.

The formal argument had passed demanding computational checks conducted by independent researchers.

Of course, a distinction remains.

A computer-verified proof is not necessarily a human-understood proof.

Formal verification establishes that a proof is valid within the underlying formal system. It does not automatically explain the central mathematical ideas in a way that a human mathematician can readily appreciate.

Why does the argument work?

Which new mathematical insights make it possible?

Can those insights be expressed in a much shorter, more elegant proof?

Can they be applied to other longstanding problems?

These questions remain fascinating avenues for mathematical investigation.

Alpöge himself acknowledged that the argument would need to be simplified and properly explained.

The Clay Mathematics Institute's formal recognition process will also take time. Its rules require publication in an appropriate outlet, a period of at least two years, and general acceptance by the mathematical community before a proposed solution can be considered for a Millennium Prize.

Nevertheless, the independent formal verification is already an achievement of extraordinary significance.

Did AI Solve the Problem, or Did a Mathematician?

This is perhaps the most interesting question.

It would be misleading to suggest that someone simply typed "Prove the Riemann Hypothesis" into Claude and received seventeen million lines of flawless mathematics a few minutes later.

Alpöge is an accomplished mathematician who had been thinking about the Riemann Hypothesis for years.

His account describes a collaboration in which he supplied mathematical intuition, identified promising directions, connected different ideas, and guided the investigation.

Claude contributed to developing and extending those arguments, sometimes moving beyond Alpöge's own expectations.

In his announcement, Alpöge acknowledged that Claude had outpaced him near the finish line.

The mathematician and the machine were not necessarily competitors.

They were collaborators.

And perhaps this is a glimpse of the future of mathematical research.

Human mathematicians bring intuition, experience, conceptual understanding, and the ability to recognize which questions are worth pursuing.

AI systems bring immense computational capabilities, the ability to explore many approaches rapidly, and an increasingly impressive capacity for mathematical reasoning.

Formal proof assistants provide another essential ingredient: rigorous verification.

Together, these capabilities could fundamentally transform how mathematics is discovered, developed, and verified.

As someone who has spent years working with graph algorithms and mathematical proofs, I find this possibility simultaneously exhilarating and unsettling.

I entered mathematical research believing that difficult problems were meant to be attacked through years of patient thought, failed attempts, unexpected insights, and occasional moments of inspiration.

That process may be changing.

Perhaps future researchers will spend less time carrying out routine technical manipulations and more time identifying the right questions, discovering meaningful connections, and explaining the deeper ideas behind AI-assisted proofs.

Or perhaps AI will surprise us in ways we cannot yet anticipate.

There is also something wonderfully ironic about this development.

For generations, mathematicians have sought short, elegant proofs that reveal the underlying beauty of a theorem.

Now we may have a proof of one of mathematics' greatest problems that occupies seventeen million lines of code.

The machine may have established the truth before humans have fully understood the reason.

And perhaps the next great achievement will be transforming that enormous formal argument into a beautiful mathematical explanation.

And What About the Next Generation of AI?

If AI systems can already contribute to achievements of this magnitude, what might more capable models accomplish?

Could they discover entirely new areas of mathematics?

Could they solve long-standing conjectures that have resisted generations of researchers?

Could they develop mathematical theories that humans would never have thought to investigate?

I do not know.

But the events of September and November 2026 suggest that these questions deserve serious consideration.

For researchers, the challenge may increasingly be not merely to solve mathematical problems, but to understand, guide, and critically evaluate mathematical discoveries produced in collaboration with intelligent machines.

I have also become increasingly interested in Lean 4 and formal theorem proving.

Until recently, proof assistants might have appeared to many mathematicians and computer scientists as specialized tools used primarily by researchers in formal methods.

Developments like these demonstrate why they deserve much broader attention.

I intend to explore Lean 4 further, including through practical tutorials on my Computer Lens YouTube channel.

After all, if formal verification is becoming central to the future of mathematics, learning how these systems work seems a sensible investment.

Meanwhile, I Have a New Morning Routine

As for me, I have decided on a new morning ritual.

Every morning, I shall check whether Goldbach's Conjecture has finally been proved.

First proposed in 1742, it asks whether every even integer greater than two can be expressed as the sum of two prime numbers.

For example:

10 = 3 + 7

28 = 11 + 17

100 = 47 + 53

The statement is remarkably simple.

And yet, after 284 years, a complete proof remains elusive.

Interestingly, both Goldbach's Conjecture and the Riemann Hypothesis were included in Hilbert's eighth problem.

Perhaps Goldbach's turn is approaching.

Perhaps one morning I will wake up, open my browser, and discover that another centuries-old mathematical mystery has been resolved.

And Professor Hilbert?

It seems you might not have needed that thousand-year sleep after all.

As for me, I think I shall keep my alarm set for tomorrow morning.

After all, Goldbach has been waiting since 1742.


References and Further Reading

  1. Levent Alpöge (2026). Announcement concerning the Riemann Hypothesis and its formal proof. November 20, 2026.

  2. Lean and Mathlib Communities (2026). Lean Verification of the Riemann Hypothesis. Joint statement, November 21, 2026.

  3. OpenAI (2026). On the Navier–Stokes Millennium Prize Problem. September 8, 2026.

  4. Clay Mathematics Institute (2026). Navier–Stokes Announcement. September 11, 2026.

  5. Clay Mathematics Institute. The Millennium Prize Problems and Rules for the Millennium Prize Problems.

  6. MacTutor History of Mathematics, University of St Andrews. Biographical and historical material on David Hilbert and Grigori Perelman.

Monday, 24 August 2015

A Quine Program in C


A quine is a non-empty computer program which takes no input and produces a copy of its own source code as its only output. 

The program given below is a quine program in C.

char*s="char*s=%c%s%c;main(){printf(s,34,s,34);}";main(){printf(s,34,s,34);}


Figure below shows the output of the program


Thursday, 6 August 2015

Backtracking Algorithms : Explaining Cindy's Puzzle with a C++ Program




Classic text books in Algorithm Analysis like Cormen, Leiserson and Rivest, Sedgewick and Flajolet, etc. often neglect or give least preference to the algorithm development technique called backtracking. Even those textbooks discussing backtracking only discuss few selected problems. A classic problem discussed along with backtracking is the eight queens puzzle. Often this problem is unappreciated by persons not well versed in the game of Chess. Here I am trying to explain backtracking using a very simple game often called ‘Cindy’s puzzle’.

The game Cindy’s puzzle involves n Red marbles, n Green marbles and a playing board which consists simply of a line of 2n+1 spaces to put the marbles in. Start with the Red marbles all at one end (say, the left), the Green marbles all at the other end, and a free space in between. For n=2, the initial arrangement on the board is shown below.



To denote this position we use the notation |R|R| _ |G|G| is used.
The aim of the puzzle is to reverse the positions of the marbles as shown below.


So the solution for the puzzle can be denoted as |G|G| _ |R|R|.
The movements of the marbles are restricted by the following rules.
The Red marbles can only move to the right, and the Green marbles can only move to the left (no backing up). At each move, a marble can either
  • Move one space ahead, if that space is clear, or
  • Jump ahead over exactly one marble of the opposite color, if the space just beyond that marble is clear.
I am trying to develop a backtracking algorithm to solve this puzzle. The algorithm will be able to produce one particular solution to this puzzle. For example for n=2, the solution steps are given below.

           |R|R| _ |G|G|

        |R|R|G| _ |G|

        |R| _ |G|R|G|

        | _ |R|G|R|G|

        |G|R| _ |R|G|

        |G|R|G|R| _ |

        |G|R|G| _ |R|

        |G| _ |G|R|R|

        |G|G| _ |R|R|

Of course this is an ideal solution where no backtracking is used but in the proposed backtracking algorithm, if non winnable situation arises backtracking is applied to go back to a previous state and continue the search for a solution. 

Thursday, 12 March 2015

C Program to Find the Endianness of a Machine



Endianness is the ordering or sequencing of bytes of a word of digital data in computer memory storage or during transmission. Words may be represented in big-endian orlittle-endian manner. Big-endian systems store the most-significant byte of a word at the smallest memory address and the least significant byte at the largest. Little-endian system, in contrast, stores the least-significant byte at the smallest address.

In this post I have given a C program to find out the Endianness of your system. The program is given below.



int main()
{
    int x = 1;
    if(*(char *)&x == 1)
    {
        printf("little-endian\n");
    }
    else
    {
        printf("big-endian\n");
    }
    return 0;
}

The program finds the Endianness by using the size of integer variables and a character variables. The integer variable holds the value 1. Then this integer variable is cast into a character and if the value of this character  is 1 you have a little-endian machine. If the character    is 0 then you have a big-endian machine. What is the working principle of this program? When you cast an integer to char the lowest addressed byte of the integer is used a char variable. If this lowest addressed byte contains the value 1 then the machine is little-endian, otherwise it is a big-endian machine. Why so? The integer 1 is represented as 00000000 00000000 00000000 00000001 in a 4 byte int. When you cast this int variable as a char the lowest address contains 00000001 in little-endian and 00000000 in big-endian. Hence if the value of the character variable is 1 you have a little-endian system and if the value of the character variable is 0 you have a big-endian system.

Thursday, 26 February 2015

Operator Overloading in C++ : PART 2 ([ ] Operator)



  Array subscript operator [ ] used for array indexing can also be overloaded in C++. In this post I have added a program in which the array subscript operator [ ] is overloaded. The program illustrates an overloaded array subscript operator.

The program also offers a solution to the C++ puzzle question given below.

Floating Point Number in Array Subscript

Write a C++ program in which the following statement compiles without an error.

cout << a[0.123];

The difficulty in solving this puzzle arises from the fact that array subscript should be an integer.  

If you pass a float value to a normal array subscript you will get the following error "Invalid type for array subscript". 

One possible solution is to overload the array subscript operator.


There might be some other solutions to this puzzle. If you know any other solution please share them here. 
   

Wednesday, 25 February 2015

Operator Overloading in C++ : PART 1 (++ Operator)



 I am now teaching under graduate students C++ programming. I thought I will share the programs I have prepared so that it benefits everyone.

Overloading ++ Operator

In this post I have added sample programs overloading the ++ Operator. In C++ we have preincrement and postincrement operators. For example ++a is preincrement whereas a++ is postincrement. So in order to handle these two situations there should be two versions of the operator++( ) function. The two versions are shown below. 

    void operator++(int y);  // for postincrement
   // The call a++; will invoke this version
   // The call a++; is same as the call a.operator++();
   
   void operator++( );        // for preincrement
   // The call ++a; will invoke this version
   // The call ++a; is same as the call a.operator++(0);


Click here to download the C++ program. 


Overloading ++ Operator with Friend Function
In C++ we can overload the ++ operator by using friend function.  Here also we need two versions to manage the preincrement and postincrement versions of the ++ operator. The two versions are given below.

   void operator++(A, int);  // for postincrement
   // The name of the Class is A
   // The call a++; will invoke this version
   // The call a++; is same as the call operator++(a);
   
   void operator++(A);        // for preincrement
   //The name of the class is A 
   // The call ++a; will invoke this version
   // The call ++a; is same as the call operator++(a,0);

Click here to download the C++ program. 


Monday, 29 December 2014

The \nocite Command in BibTeX


  The normal behavior of BibTeX is set in such a way that unreferenced entries in the .bib file will not be displayed in the bibliography section. But what if we need to print even the unreferenced entries in the .bib file also made part of the bibliographic section? For that we have a command called \nocite{*}. This command will override the default behavior of BibTeX such that even an referenced entries in the .bib file will be added in the bibliographic section in the DVI or PDF file produced. The script below shows the working of \nocite{*} command. The TeX file uses a .bib file called bib1.bib. 

\documentclass{article}

\usepackage{natbib}

\title{Sample Article}

\author{D}

\begin{document}

\maketitle

\nocite{*}

Here the entries in the Bibfile are not referenced. 

But they are shown in the reference section because we 

use \textbackslash cite\{*\} command.

\bibliographystyle{plain}

\bibliography{bib1.bib}

\end{document}