Get the Monday email →
Loading player…

Beyond the Johnson Bound: A Path to Smaller Post-Quantum SNARKs

DevconFri, Nov 6, 2026, 12:00 AM

Speakers

Alexander John Lee
Andrei Ivasko

Transcript

[music] [music]

Good morning, everyone. Welcome to our workshop beyond the Johnson bound. This is going to be an introduction to the Ethereum proximity prize. There's some really interesting mathematics. We're going to be explaining everything from scratch, so you don't have to have any background information on the Ethereum proximity prize.

We're going to explain everything. So, um if you're familiar with the Ethereum proximity prize, this is going to be a little bit of a recap, but you might learn something new. So, yeah. So, what are the goals of this workshop? Uh the goals of this workshop are to build the foundations required to understand the Ethereum proximity prize.

You're going to understand how solving the Ethereum Foundation proximity prize can lead to smaller post-quantum SNARKs. And at the end, we'll also explain at a very high level the recent mathematical progress made related to the Ethereum proximity prize. All right. So, what are we going to cover today? We are going to cover coding theory terminology and mathematics.

We're going to explain what the Johnson bound is, cuz that's the name of our presentation beyond the Johnson bound. We're going to cover mutual correlated agreements, MCA. And we're going to cover the $1 million Ethereum Foundation proximity prize. We will explain how solving the Ethereum proximity prize will lead to smaller post-quantum SNARK proofs. We will briefly at the end summarize latest research results related to proximity gaps, and also explain what in the world better codes is, if you've heard of it.

Uh it's this auto research competition, and its relationship to the Ethereum proximity prize. Awesome. So, how is this even related to Ethereum? So, Ethereum is migrating to hash-based SNARK cryptography. This is the lean Ethereum protocol initiative.

So, the goal is to make these hash-based snark proofs as small as mathematically provably possible. Because smaller proofs means a more performant blockchain. Because literally when you're creating a proof, and you have to send it over the wire over the internet, the smaller the proof is, um you have like more bandwidth, so it's just a more it's just [clears throat] more performance of the blockchain. And also to achieve a fully formally verified stack, there needs to be no reliance on mathematical conjectures. So, we want small proofs, but we need to have proven security.

So, that's how this is all related to Ethereum. Okay. So, we have some workshop materials. This is just our GitHub. We have uh all these definitions because we start at the very beginning with basic stuff, but as we progress, uh we don't want you get lost uh with some of the terminology, so this is just uh uh keep that all those like terms and stuff in your mind.

Uh and we'll have this QR code throughout the workshop. Okay, so since we're talking about hash-based snarks, we need to talk about the basics of Reed-Solomon codes. So, what in the world are Reed-Solomon codes? So, Reed-Solomon codes are a class of error-correcting codes. So, at a very very high level, this is what they allow you to do.

So, say you have some message M of K symbols, you can encode it into a codeword of N [snorts] symbols. You send it across the wire, it can get corrupted, that's okay, because then our recipient of the message can still recover the original message. So, at a very high level, this is what Reed-Solomon codes allow you to do. So, first example of where Reed-Solomon codes are even used, they're used in some forms of communication. So, let's say Alice wants to send some message over the wire.

It's a lossy wire, she can over encode it. There's some bit flips, that's okay. Bob can still decode. So, essentially you can recover corrupt data during transmission. It's also used in data storage.

So, let's say Alice wants to encode some data, she saves it on a DVD, CD, whatever. That's okay cuz if it gets scratched, she can still recover that data. So, you can recover data by over encoding it. And also, it's used in hash-based SNARKs for proving computation. So, let's say you have some computation, some function f of x.

You can run the computation, generate your trace, which is just like all the intermediate steps of this execution of this program f of x. Then, you can encode it into a polynomial. We'll explain all this. Um so, you have now your polynomial, you can prove certain things about this polynomial that the trace follows certain rules. And then you do some more things at the end um so that the verifier can quickly and succinctly verify that this computation was done correctly.

So, you can verify the result of computation without having to do the computation again. Okay, so concretely, let's go through a very basic example here. So, let's send the word "hello" to our friend over the wire. So, literally the word "hello". And we know the the wire is lossy.

So, we don't want to like accidentally send the word "hell" to our friend cuz then it's, you know, that would not be good. Uh so, we can turn this into ASCII, for example. So, this is just this vector of numbers, and we can find the polynomial which when evaluated at this, this leads to these numbers. Then, we can over encode. So, we evaluate this polynomial at more points.

So, now we have this larger vector of numbers. And this is literally just the of this polynomial. Then we can send this over the wire. Some points get corrupted. That's okay cuz our friend can still decode and we'll explain sort of how that works later on.

Okay, so now let's get a little bit more mathematical here. So this and again this is starting from the very beginning. Like we're starting from the very beginning. Um don't worry. We'll we'll get past these very beginning stage definitions.

Okay, so we got to start with the what in the world a finite field is. So a finite field denoted FQ is a field containing a number of finite number of elements where addition, subtraction, multiplication, and division by non-zero elements is defined. The number of elements must be a prime power where Q is equal to P to the power of M where P is a prime number and M is greater than or equal to 1 and is an integer. So concretely F finite field F7, you can do arithmetic over this field. For example, if you want to do 6 + 1 in this finite field the arithmetic wraps around.

So at a very high level you can do arithmetic over the finite field. Okay, cool. Next definition. Domain. What is a domain?

So domain with this curly L, it is a set of distinct elements from a finite field at which a polynomial is evaluated. So every single elements in this domain is an element in the finite field. Cool. What is a vector? A vector is an ordered list of N field elements.

So in the context of Reed-Solomon codes these are evaluations of a polynomial. Concretely so yeah, notation here is V1, V2, V to the N where F to the N, N is the length of this vector and Q is the size of the finite field. And concretely if we have this polynomial X squared we plug in the points of this evaluation domain to this polynomial and since it is a finite field F7, this is the evaluation um our vector. So, this is the resulting vector. Length of the vector is six over the finite field F7.

So, things are happening modulo this finite field. Okay, so now we're going to get deeper into Reed-Solomon code mathematics and Andre is going to explain some definitions.

Yeah. Hello. Uh yeah, I will cover Reed-Solomon code. Uh so, Reed-Solomon code is a set of the all vectors obtained by evaluation of polynomial degree less than K over a finite field F at uh evaluation domain L. So, you can see here that large C is a Reed-Solomon code and F is the finite field, L is the evaluation domain and K is the dimension of the code and C large C is a set of the all valid code words.

Whoops. Uh yeah, we can visualize Reed-Solomon code here. So, uh the setup here is uh F3 uh this finite field, L is the evaluation domain and uh K is the dimension of the code and on the left side we can see all the polynomials that um generated infinite field F3 and then we basically encode these polynomials into the code words using this evaluation domain L. So, what is a code word? Code word is a vector that belong to the set of the code word C and the word is a vector of the finite field elements that may not or may belong to the code C.

So, the key key distinctions here is that every code word is a word but not every word is a code word. Uh the code rate. Code rate is defined by a Greek letter r. So, basically um you divide the number of message coefficients into number of elements in the code words. So, yeah, you can see here two examples.

The first one rate 5 over 7. So, in the green in the green line in the gray area you see that number of message coefficients and if you sum up gray and green area, so you will get the number of elements of the code word. And the second example is 5 over 10. So, yeah, you get you have a case the number of coefficients. [snorts] So, in gray area you have the number of message coefficients and if you sum up gray area and green area you get code word length.

Uh next I will briefly define smooth evaluation domain. So, why it's important? It's used extensively in FFT algorithm to evaluate polynomial efficiently. It's also used widely in SNARKs in the proof system like FRI, for example. So, I define it as L.

So, where is omega is element of the finite field whose powers first return to one after exactly n steps. And n is often is a power of two. You can see here example of a smooth domain here. I define it as L and you can see here the size of the evaluation domain is eight, which is power of two. And we have a following setup here.

We have finite field F17, which is omega equals to two and n equals to eight. And you can see here in the bottom that exactly after eight steps two in the power of eight evaluate to one modulo 17. So, and we can have a quick quiz here. So, you can basically don't raise your hand. Just you can mentally check that you understood this topic correctly.

So, there is a Reed-Solomon code and codes five symbol into 11 symbol. And what is the code rate? So, I can wait like 10 seconds. So, yeah. And the answer, the correct answer is B.

It's 5 over 11. And the next quiz is if K equals to five stay constant by N doubles from 11 to 22, what happens to the Reed-Solomon code rate? And you can see here on the top there are like some formulas to help with this quiz. So, you can think about it 10 seconds. So, and the correct answer is rate halves.

So, next I will cover measuring error between vectors. So, you can see here on the slide two vectors C and V. They disagree exactly in two positions that marked in red. So, I define absolute Hamming distance here that is number of positions that these vectors disagree, which equals to two. And the relative Hamming distance, it's delta.

So, it's basically absolute Hamming distance divided by the vector length, which is two over 70 seven in this case. So, next I will cover Hamming balls and decoding ready. So, in this slide you can see this circle, which is basically this Hamming ball. So, I define Reed-Solomon code C in the right area. So, yeah.

And uh Also, basically all the dots within this circle are basically belongs to the Reed-Solomon code large C. And given some code word Y over length N defined over finite field FQ and the goal here is efficiently find all nearby codewords to Y within some radius delta. So and if we set the radius to 1 minus code rate over two I recall that code rate is equals to K divided by N. So and we can find at most one codeword within this unique decoding radius that is close to Y. You can see here that is C1.

So in this example you can see the polynomial P which is equals to X. So we can decode this polynomial to the original codeword C. And this codeword actually transmitted over the wire and getting corrupted. So you can see this last two position in corrupted codewords. They disagree in with original codeword.

So and you can see here on the bottom we can compute relative Hamming distance and this is would be approximately 28% and it it lies within this green unique decoding area. So it means that one can recover the original codeword unambiguously. So if we increase the radius up to Johnson radius which is defined over RJ 1 minus square root of the code rate. So we can all we can return all nearby codewords to Y. So you can see here in in the this example that there are C1, C2 and C3 that codeword that basically close to Y.

And there is a Johnson bound guarantee here that for any Y the number of valid codewords within the Johnson radius of Y is polynomially bounded. It's important to understand. So and then we increase the radius beyond the Johnson up to capacity, so this guarantee no longer applies. Although the small list can exist. And if we go beyond the capacity, so to find all nearby code words to Y would require exponential time.

Uh quick recap here. So, we have the smallest radio. This is unique decoding radio, so we can find at most one code word that close to Y. And then if we increase the radius to Johnson radius, we can find polynomial number of nearby code words. And we if we go beyond the Johnson bound, so this guarantee that the all finding all nearby code words will be polynomially binding no longer applies.

And if we go beyond the capacity, uh the number of all nearby code words would be exponential. And we have a also quick is quiz here. So, yeah, you can basically prove that you mentally grasp the topic. So, is the rate raw 1/4, the approximate Johnson error radius is So, you can have a at the top you can have a hint. That's Johnson radius is computed is 1/ square root of the code rate.

And there the correct answer is C, it's 50%. Next, Alex will talk about mutual correlated agreement.

Awesome. Okay. So, mutual correlated agreement. But first before we talk about mutual correlated agreements, we need to define some things. Okay, so the first thing that we need to define is what an agreement set is.

So, we have two vectors. We have a word and we have a codeword c. And an agreement set is just the evaluation points where a word and a codeword agree. So, in this case, it's just the these green squares here. So, the set s is I can see.

Okay, so yeah, it's the these points. So, 1 3 4 6 7 8. And this is the set s. Every single element in the set s is an element in the domain l. And there's this notation called restriction notation, which is this.

So, if you it's like the mathematical way of saying that these green squares of codeword c are equal to the green squares of word u. So, you can say u restricted by s is equal to c restricted by s. And this notation pops up in the later slides. Okay, so agreement set s. So, the next concept to grasp is s delta closeness.

Okay, so s delta closeness is essentially the same concept as the agreement set, except the size of the set s needs to be sufficiently large. And all this means is that the size of the set s needs to be greater than or equal to 1 minus delta times n. And in this case, so we have two places where these word these vectors do not agree. So, these gray areas. So, their absolute Hamming distance is two.

They differ at two positions. Their relative distance is two divided by eight, the length of the vector. It simplifies to 1/4. So, 1 - 1/4 * 8, which is the length, is equal to six. So, six green squares is the size of the set s.

And so, it is a sufficiently large set s. And it's important, so we can say the word U is S delta close to the code word C. But we can also say that the word U is S delta close to large C. And probably we should have made this a different letter like U or some a different code word definition here. But it's also you can say it's S delta close to the entire Reed-Solomon code to the set of all vectors.

Okay, so next concept is a random linear combination. So say we have two code words F and G. And we can do F plus alpha [snorts] times G where alpha is randomly sampled from the finite field. This is a random linear combination. So and if F and G are both code words H alpha is always going to be a code word.

And this is the definition of why Reed-Solomon codes are linear because any random linear combination of F and G if they're code words, H alpha will always be a code word. So let's run through a quick example here. So these two vectors both code words elements of the set C. And this is their corresponding polynomials. And we can do this random linear combination.

We'll just say that randomly we picked two for alpha. And this is the resulting vector 14412. And this is a valid code word. And this is the corresponding polynomial when we did the random linear combination. Okay, so I think we have everything required to understand mutual correlated agreement.

Okay, so in the previous slide we were talking about if F and G are valid code words. But in this case, let's just say that F and G are not valid code words. They they can be but maybe not. So they're just vectors. So, and we sample alpha at random here.

So, and then this resulting uh result of this H alpha, the result of the random linear combination, it is S delta close to U. So, meaning that it agrees on these green squares with U. We can say it's S delta close to U, and it's also S delta close to the set of all possible codewords in this Reed-Muller code. And the question that mutual correlated agreement is asking is is mu MCA is a question. This is very important.

It's kind of difficult to understand. Like, when I was first like thinking about this, it's like, okay, it's actually a question. And the question it's asking is, if H alpha is S delta close to U, are F and G also S delta close to C? So, essentially, we're asking, if H alpha is S delta close to U, are F and G also S delta close to U0 and U1? And in this case, they are, and great.

So, that's this is good. Like, and for most of the time, we we want MCA. Like, this is stronger security bounds in SNARKs. So, we want MCA. So, in this case, so uh for a random alpha, if H alpha is S delta close to C, are F and G also S delta close to C?

But, this doesn't happen all the time. And that's what we're going to cover next. So, sometimes this does not happen. And this is called an MCA error event. In this case, so H alpha is S delta close to U, but F and G are not S delta close to some codewords U0 and U1.

Okay, so in this case, H alpha agrees with all of C, but F and G only agree on a smaller set. And again, this is this uh restriction notation. So, there does not exist U0, U1 which are elements of C such that F restricted by S is equal to U restricted by S and G restricted by S is equal to U1 restricted by S. Okay, and the and the main intuition here is the larger delta is the smaller S can be. So, the size of the set S, so as delta gets larger the size of the set can get smaller, okay?

So, as delta goes up, S can be smaller. This means there's fewer positions to match and the probability of an MCA error event goes up. Okay, so this is a really stupid slide. I was explaining this to my fiance and she was like I got so tired of me like explaining MCA and all this crap. So, I was like she's like it reminds me of this like Instagram really stupid like AI swap content with these fruits or whatever.

So, I was like actually like maybe actually you're right. This is kind of MCA you can say it's related to this AI swap where okay, this strawberry woman is sort of like maybe a codeword F and the banana is not a codeword. It's just a vector, okay? And this the banana baby is H alpha and this guy is like a valid codeword and we're just okay, and us by looking at this image, we're like the verifier and we're trying to check, okay, is this banana baby is it the result is F or F and G valid codewords? That's essentially MCA.

I know this is not mathematical, but just to kind of wake you guys up after that technical explanation. Okay, so why is this even important? Why is it important to know the probability of MCA and measure it exactly? The reason why is because it's used in fraud and wear which are components of proving systems and they use random linear combinations to test low degree polynomials. So, if we have better proven MCA bounds, this limits the probability of a cheating prover.

So, when you're generating a proof,

[snorts]

like we don't want someone to be able to prove something that they should not be able to prove. And if we have better MCA bounds, this means that we can catch this. So, essentially, better bounds means potentially fewer queries, which means smaller proofs at the same security level, okay? All right. So, now I think you have everything you need to know to understand the $1 million Ethereum proximity prize, and Andre is going to walk you through that right now.

Yeah. Guys, if you solve this challenge, so you will get $1 million from Ethereum Foundation. And you you will getting the friends forever with um a cryptography professor of Stanford, Dan Boneh, and Ethereum researchers. So, yeah, basically, you can visit this website to learn more about this proximity prize. So, and basically, it consists of uh like two problems we cover in this lecture.

The first problem, the grand MCA challenge. So, uh we are given a Reed-Solomon codeword C here over some evaluation smooth evaluation domain L. And the code has a constant rate, which is means it can be 1 over 1 over 2 or 1 over 4, 1 over 8 or 1 over 6, etc. And for a given small epsilon star, which is set to 2 in the power of minus 128, we have to identify the largest delta such as the MCA error this code C at this distance delta is negligible. So, basically, we have to keep this MCA error very small.

Uh yeah. So, this is the MCA grand MCA challenge. What does solving the proximity prize get us actually? So, essentially it will get us like two things. Uh firstly, uh smaller proofs for proof system based on Reed-Solomon codes.

For example, like FRI. And the second is no reliance on mathematical conjectures. So, we'll build provable system instead of conjecture-based. And the end goal of Ethereum Foundation basically to formally verify the entire stack. And then next Alex will cover result beyond the Johnson bound.

Yeah, so there is this bombshell paper that came out in September. And this was published by Dvir and Shpilka and Intall. Um and these results were inspired by the Better Codes Auto Research competition, which I'll explain later. And so, if you were a submitter to Better Codes, you actually got cited in this paper. So, like I I was I was reading this paper and I see my GitHub handle cited in this paper.

I'm like, what in the world? Like this is some like alien level math. And I'm like cited here is kind of crazy. But so, essentially they were able to So, Better Codes pushed the probability of MC A um keeping MC A constant, but pushed delta larger past Johnson bound. But this is for a fixed parameter set.

And this paper generalized this to all Reed-Solomon code parameters um when the finite field is sufficiently large. And so, essentially remember I was talking about that agreement agreement threshold, so like the percentage of the agreement set. And they were able to prove um like reduce the agreement threshold. But keeping the rate the same essentially. And so, there was this improvement, so like the reduction in agreement set um you were they were able to reduce the agreement set but keep the rate the same.

And this is like some honest like alien level mathematics like uh like these hidden derivatives. And we we wanted to explain this in this presentation, but it was like we just didn't have time to digest all the mathematics here yet. Um so, yeah. So, what did this paper actually lead to? So, it actually led to performance improvements in in ZK VMs.

So, Proof Kit had an 11% reduction in their proof size. Zisk had a 4.6% uh reduction in proof size. And Lambda had about 4.8% reduction in proof size.

Yeah. So, what is this Ethereum Research Foundation um like this Ethereum Foundation Auto Research Competition called Better Codes? So, essentially Better Codes is asking this question about MCA, how large how big can we make delta such that the probability of MCA stays really really low. And but it's for a fixed uh parameters. So, for this very large finite field uh Kuala Bear prime um you know, this large domain.

And it uses interleaved Reed-Solomon code. Essentially the same as just regular Reed-Solomon code with some slight differences. Um And so, this orange line here is like pushing the soundness bound above Johnson. So, this is like zero Johnson bounds. And this is like pushing proven soundness above Johnson.

And the blue line is essentially proving that it is not safe at a certain size delta it's proven to not be safe. So, that's essentially what the Better Codes Competition is. Um yeah. So, how can you contribute to Better Codes? So, I would honestly just like recommend understanding the problem.

So, I've been like really nerding out about MCA and the Ethereum Proximity Prize for at least the past 6 months. And I had a bunch of like lean forward proofs that I was like before even Better Codes came out. I was like like told my agent let's just write let's formalize all this stuff related to Reed-Solomon codes. Um and I was just like writing my own like hackmd documents to this. And when better codes came out, I just told my agent, I was like, "Okay, take these Lean 4 proofs that I already have, plus all these like hackmds that I've written, and let's just attack this problem."

Like, you know, so I'd say first step is understand the problem, explore the proofs, and then you just set your agent loose, but give it a direction. Like, you once you've kind of understood the problem, you'll have slightly more intuition where you can direct your agent. Um so, yeah, this applies to all these auto research competitions. If you go to Yukon uh research, um this there's many different auto research competitions. This is just one one of them.

So, yeah, so this is the last slide in our presentation. If you want to continue to build intuition with MCA, we built like this website where you like have these, you know, vectors, and you can change alpha and see where the MCA error event to kind of just built some more intuition with this. Um so, yeah, thank thank you so much, everyone. Thank you, Devcon. Um if you want to reach out, these are X uh accounts.

And if if you have any questions, uh we'd be happy to answer them now. Are there any questions regarding MCA Reed-Solomon codes results past Johnson bound? Uh the results are actually generalized. So, it's um this paper essentially took inspiration from the auto research competition better codes, and they cited everyone that submitted proofs, but they generalized it to all parameters of um except for binary fields, I think it's different. But, yeah, so like it's There's a definition here of like sufficiently large uh finite field F, and they generalize that to all those parameters.

So, this is for all Reed-Solomon code parameters. Yes.

Yeah.

Yeah, we still need to dig into this, honestly. Like, this is um some really interesting stuff.

Any more questions? No questions. Let's say thank

[music]

Automatic transcript — names and jargon may be misspelled.