Sam explores whether AI can help crack the Riemann Hypothesis, one of math's greatest unsolved problems.

More free coding and data science videos on Rumble: https://rumble.com/c/c-7833526
Stop by whenever you like. Comments, questions, and offers to work together are always welcome.

X Money is the preferred way to pay: https://x.com/SamCast65215624
Cash App $samiamcastillo
PayPal castillo.sam.d@gmail.com
https://www.PredictiveInsightsAI.com
https://linktr.ee/samuel.castillo

#artificialintelligence #superintelligence #SI #math #RiemannHypothesis

Category

🤖
Tech
Transcript
00:01Hey YouTube! Are you statisticians, mathematicians, or just...
00:07I have a special video today I'm going to talk about using AI to try to solve the Riemann Hypothesis.
00:15Yes, this elusive proof that has escaped mathematicians for hundreds of years.
00:22We are going to work on this.
00:26The Riemann Hypothesis asserts that all the so-called non-trivial zeros of the Riemann zeta function
00:33lie exactly on a specific vertical line in the complex plane, known as the critical line.
00:39This is a line where the real part of s in s equals x plus i y is exactly one
00:46-half.
00:47The real part of every non-trivial zero of the Riemann zeta function is one-half.
00:59The Riemann zeta function is initially defined for complex numbers s with s greater than one,
01:06but it can be extended to other values except s equals one through analytical continuation.
01:13What is analytical continuation?
01:16We know that in math, it relies on logic.
01:23Logic tells you things without having to prove them.
01:27Like, you know that there's a proof by induction,
01:31which says that if it's true for one case, you can extend it on to other cases.
01:37Like, if it's true for n, it's true for n equals k plus one.
01:43And there's truth by contradiction.
01:48So as mathematicians and logicians,
01:52but let's stop thinking about this in terms of math,
01:55and let's start thinking of this in terms of logic, right?
01:59Because we can ask questions to AI, and it can give us back answers.
02:04And so it's really logical.
02:10If it has trivial zeros at negative even integers, which are well-constructed.
02:16The non-trivial zeros are more mysterious and lie within the so-called critical strip,
02:21where the real part is s is between zero and one.
02:27So the distribution of prime numbers is intimately linked to the zeros of the zeta function.
02:37If the hypothesis is true, it would provide the most precise possible bounds
02:41on how prime numbers are distributed along the number line,
02:45and it would confirm that primes are distributed as regularly as possible given known constraints.
02:56What's the difference between r and x?
02:57Raymond hypothesis.
02:59d over dx of f of x integral of d over dx of f of x dx is f of
03:07x.
03:08For example, if you take the derivative of the log, that's 1 over x.
03:14The integral of d over dx of log of x dx is the integral of 1 over x dx.
03:22Well, what do you take the derivative of, the anti-derivative of the log,
03:28if you look at the exponential function e to the x equals y?
03:32Okay, let's draw a histogram where our f of x is the height,
03:39and the width of each bin is delta x.
03:45Delta x plus a i.
03:51Then, what's the integral?
03:53sum.
04:00Okay.
04:03And then, defining is prime, count primes for range.
04:07Count primes dot pi.
04:11Run.
04:149 numbers listed 100, 2, 3, 5, 7, 11, 13, 19, 23, 29, 31.
04:23Okay.
04:23Cool.
04:28Now, use the source code provided in source.
04:50Normally, this is much faster than this, but yeah.
04:57If you look right now, my internet is actually like,
05:07okay.
05:09Look at.
05:12So here's my internet right now.
05:15You ping.
05:18My ping is 100 megabits per second.
05:27And, yeah.
05:29Why is this so slow?
05:31I don't know.
05:32Because I'm running this on a mobile hotspot.
05:38I'm not running, because my internet is not working right now.
05:41So I'm running this on a mobile hotspot.
05:43So my internet is shitty.
05:45Sorry about that.
05:51So it's fairly taking a long time to generate this.
05:56Damn it.
06:32Okay, so let's just try print number of frames less than 100,000.
07:29What does it mean results is not defined?
07:36Okay.
07:50Okay.
08:02Okay, so this is using a different algorithm.
08:04It's using the save of Aristophanes.
08:08This is like ancient Greek logic.
08:15There's 9,000 less than 100k.
08:26It's also saved all the primes in a folder called primes less than 100k.txt.
08:37Let's open up that.
08:41Let's open up that file.
08:44Here it is.
08:46Primes less than 100k.
08:48Whoa, look at all these prime numbers.
08:55So 2, 3, 7, 13, et cetera, et cetera.
08:59Okay.
09:03Okay, now what we want to do is plot this as a histogram.
09:34Oh, God.
09:36It's so slow.
09:38Sorry.
09:38My internet is so slow.
09:47So prime histogram dot p energy.
09:54Oh, look at that.
09:56So there you see the prime numbers less than 100,000.
10:02There's the density, so it's slowly decreasing, right?
10:06And we know that there's an infinite number of primes.
10:10How do we know there's an infinite number of primes?
10:12I think it was like one of the ancient Greek mathematicians, Archimedes, that said, well, suppose that there's not an
10:27infinite number of primes.
10:30Then we know that there's some number p that's greater than all the other primes.
10:37Well, then what about like p plus 1 or p plus 2?
10:44That number would maybe it would not be it would be prime 2.
10:49So then by contradiction, we know that if there's a number greater than any number that you say is the
10:55greatest, then there can't be an infinite number of primes.
10:59So we know there's an infinite number of primes.
11:01But we want to know what's the curve like if this density continues to go on to the right forever.
11:10Yeah, what will it look like?
11:13Okay, now let's do this for 1 million.
11:19Million crime numbers.
11:35Okay, now it's writing.
11:391,000,000.
11:47Look at that.
11:49Total prime numbers, about 80,000.
11:53Last prime, 999983.
11:58Average gap between primes is 12.7.
12:03And here's the log.
12:06So this is the log.
12:08This is the frequency on a log scale.
12:15Interesting.
12:16Okay.
12:17So now,
12:21what do we want to do?
12:23Plot the zeros of the Riemann
12:27zeta function.
12:32I'll create a script to plot the zeros of the Riemann zeta function.
12:45Customize the second plot.
12:50Count primes.
12:52So it's reading all.
12:53Okay.
12:53Now, let's run the script to generate the plots.
12:56Python plot zeta zeros dot pi.
13:19Let's ask this.
13:21Write me Python code
13:24to get progress
13:28on solving the Riemann hypothesis.
13:33So we're saying
13:36that we can't
13:40outright solve it,
13:42but maybe we can make
13:46a scientific
13:48contribution
13:50to the ongoing
13:53research
13:56following
13:58mathematicians
14:01such as
14:05Terence
14:06Tau
14:07et al.
14:19So,
14:21experimentally
14:22verifying hypothesis
14:23for larger set of zeros.
14:25Statistically
14:27analysis
14:27of the relationship
14:29between zeros
14:30and prime gaps.
14:31Visualizing the zeta function
14:33in its zeros.
14:36Experimenting
14:37with new
14:37computational
14:38AI assistant approaches.
14:40Computes
14:41non-trivial zeros
14:42of the zeta function
14:43in the critical line.
14:45Analyzes
14:46the gaps
14:47between consecutive zeros.
14:48Visualizes
14:49the zeros
14:50and their spacings.
14:51Lays a foundation
14:51for further
14:52statistical
14:52AI-driven
14:54analysis.
14:55Okay.
14:56So we wrote
14:56this code.
15:00And
15:02try
15:05putting this
15:06into the
15:07model,
15:08seeing how
15:09it handles
15:10it.
15:12Um,
15:23okay.
15:50Zeta zeros.
15:52Zeta zeros.
15:57Okay, so on the x-axis is the real part.
16:00On the y-axis is the imaginary part.
16:05And so where this is zero,
16:08that's where the blue dots are.
16:13Now this is a non-trivial zero.
16:16And then the critical line is connecting the non-trivial zeros.
16:29This is the code that does that.
16:31Plot zeta zeros.
16:36So every time that there's a prime number,
16:38it means that there's a zero, I think.
16:44Like this is the Raymond,
16:45all trivial zeros have a real part equals one-half.
16:50So this red line is right on 0.5, or one-half.
16:57And this is 50.
17:01So less than 50.
17:03These are the numbers, less than 50.
17:05And this squiggly part here,
17:08that's the values of a zeta function,
17:10I guess.
17:16Okay.
17:20And there, it looks like this is a
17:23three-dimensional graph of the zeta function.
17:28Okay.
17:31Let's use the code from perplexity.py
17:40to explore the zeta function.
17:49This is like a common thing that mathematicians do,
17:51is that when they want to understand the problem,
17:54they try to write it as a function.
17:56And they look at the function as a family of functions.
17:59They find the characteristics of those types of functions.
18:02They study other things that are similar to it.
18:05It's like if I want to study...
18:09Okay.
18:10Yeah.
18:12Okay.
18:12So now let's run the enhanced analysis.
18:17Perplexity.py file has some interesting code
18:19for analyzing Raymond's zeta function zeros.
18:22Let's create an enhanced version
18:24that combines both approaches
18:26and adds more analysis.
18:28Now let's run the enhanced analysis.
18:35So we had to install mpmath.
18:41Okay.
18:43Zeta comprehensive analysis.
19:04So this is the distribution of gaps between zeros.
19:10And this is the log base 2.
19:15This is the imaginary part.
19:23Oh, that's the log of z.
19:27And this is the zero index.
19:39And this is the gap size.
19:47The gaps between zeros.
19:526, 8, 8, 14.
20:00And then this is the gap size.
20:08So we're looking for trends.
20:10Like, does this gap size...
20:13Does this gap size have, like, a high...
20:17A decreasing pattern here?
20:19Or would you just say that it just kind of stays flat
20:22for really large values?
20:25And then what about this function?
20:28Like, we look at...
20:30This is where zeta equals one half.
20:34And then...
20:35Is there, like, a pattern you can see, kind of...

Recommended