<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by lipefe on Medium]]></title>
        <description><![CDATA[Stories by lipefe on Medium]]></description>
        <link>https://medium.com/@0xlipefe?source=rss-f284b30c65fc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*nTaLaHYzSqt0pZj6</url>
            <title>Stories by lipefe on Medium</title>
            <link>https://medium.com/@0xlipefe?source=rss-f284b30c65fc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 22:20:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xlipefe/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Multilinear Extensions: Foundation for Polynomial IOPs]]></title>
            <link>https://medium.com/@0xlipefe/multilinear-extensions-foundation-for-polynomial-iops-1193e85bb1f4?source=rss-f284b30c65fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/1193e85bb1f4</guid>
            <category><![CDATA[snark]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[lipefe]]></dc:creator>
            <pubDate>Wed, 26 Nov 2025 22:29:30 GMT</pubDate>
            <atom:updated>2025-11-26T22:29:30.835Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*6SNkc5wSMcfwx4eJF5mqUQ.png" /></figure><h4><strong>Introduction: The Path from Programs to Polynomials</strong></h4><p>The essence of SNARKs lies in their ability to generate concise, non-interactive proofs about the correct execution of complex computational tasks. According to Justin Thaler’s framework, this verification process can be divided into three major steps.</p><p>In this article, we explore the fundamental mathematical foundations behind constructing a Polynomial IOP in its multivariable representation, with special emphasis on multilinear forms. We’ll examine the extension of these multilinear polynomials (MLE) and present two key examples that demonstrate their importance in modern SNARK design.</p><p>We begin with a practical scenario: the need to verify real computations requires:</p><ol><li><strong>Transforming high-level programs</strong> written in languages like C, Rust, or Solidity into an algebraic representation, typically as a set of arithmetic equations.</li><li><strong>Encoding arithmetic equations</strong> into constraint systems such as R1CS, AIR, or Plonk (each with its own compilation model). Each of these constraint systems represents restrictions through different polynomial identity techniques.</li></ol><p>It is no coincidence that this entire compilation process culminates in polynomial evaluation. This convergence highlights the importance of algebraic structures in the backend design of SNARK protocols, especially in the conception of the IOP (Interactive Oracle Proof). At this stage, the choice between univariate or multivariate polynomials becomes crucial, as it directly impacts the efficiency and expressiveness of the resulting IOP.</p><h4>1. Preliminary Clarifications: LDE vs MLE</h4><p>In a previous article, we addressed Low-Degree Extensions (LDE). Although their names and purposes may create confusion with Multilinear Extensions (MLE), both share not only syntactic but also pragmatic similarities. This is due, on one hand, to their shared intention of extending polynomial domains and, on the other, to the fact that in practice we often work with both extensions in related ways.</p><p>Whether operating with univariate or multivariate polynomials, Low-Degree Extensions facilitate the representation of a polynomial through its evaluations. What they do is extend this polynomial (maintaining its low degree) from an original domain to a considerably larger one. For more details, you can read the article where we covered this topic in depth.</p><p><strong>Multilinear Extensions (MLEs)</strong>, for their part, also represent a multivariable polynomial using its evaluations. This comes with additional constraints: the need to maintain a maximum degree of 1 for each variable (not coefficients, which are fixed values), and for the original domain to be defined on the Boolean Hypercube {0,1}ⁿ.</p><p>Although these are two distinct approaches used depending on the constraint system and IOP design, thanks to these extensions — whether LDE or MLE — we achieve distance amplification, an essential characteristic supported by the Schwartz-Zippel Lemma, which guarantees the robustness of verification.</p><h4>Understanding the Relationship Between LDE and MLE</h4><p><strong>The Challenge in SNARK Design:</strong></p><p>In SNARK design, multilinear extensions are leveraged because they have mathematical properties that make them very convenient for the <strong>prover</strong> — that is, for whoever has to generate the proof. However, in protocols like sumcheck (which we’ll address in Part II of this series), we don’t work directly with multilinear polynomials. This is because, in many contexts, the <strong>verifier</strong> (who checks the validity of the proof) cannot quickly evaluate a multilinear function.</p><p>To resolve this, a degree-two polynomial is used instead of a purely multilinear function. Typically, this degree-two polynomial is constructed as the product of two multilinear polynomials. This structure — the fact that it is a product of two multilinear functions — is essential, as it allows the sumcheck process to execute very efficiently.</p><p><strong>The Trade-off:</strong></p><ul><li><strong>Advantage of f̂ (non-MLE LDE):</strong> Sometimes this f̂ can be much faster for the SNARK verifier to evaluate in certain contexts, or easier for the prover to construct or commit to.</li><li><strong>Disadvantage of f̂:</strong> It lacks the “clean” structure of an MLE, which can complicate other parts of the protocol or security arguments.</li></ul><p><strong>The Problem:</strong> We want the mathematical properties of f̃ (MLE) but the efficiency of f̂ (LDE).</p><p>Often, cryptographic protocols would prefer to work with the multilinear extension -f̃- for its mathematical properties. However, as mentioned, sometimes they cannot be used directly because they are not “quickly evaluable by a SNARK verifier.” In contrast, an f̂ (non-MLE) might be.</p><h3>2. Multilinear Polynomials and Multilinear Extensions (MLE)</h3><p><strong>Why cover multilinear polynomials and their extensions?</strong> Because they are fundamental objects used to build efficient interactive proofs. Understanding MLEs is essential for grasping how modern SNARKs achieve succinctness and efficiency.</p><h4>2.1. Definition of Multilinear Polynomials</h4><p>A polynomial P(x₁, …, xₙ) in n variables over a field 𝔽 is called <strong>multilinear</strong> if the degree of each variable xᵢ in any term of the polynomial is at most 1. In other words, no terms like xᵢᵏ with k &gt; 1 appear, nor do cross terms where the same variable repeats (which is implicit if the individual degree is maximum 1).</p><p><strong>General Form:</strong> A multilinear polynomial in n variables can be written as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/286/1*SXW1VnNBcxypNobotSlFIA.png" /></figure><p>Where S ranges over all subsets of {1, 2, …, n}, giving us 2ⁿ possible terms (one for each subset of variables).</p><h4>2.2. The Multilinear Extension (MLE)</h4><p>In cryptography and complexity theory, we often work with functions defined over the Boolean hypercube — that is, functions whose domain is the set of all bit strings of length n: {0,1}ⁿ.</p><p><strong>The Setup:</strong> Imagine you have a function f that only accepts inputs that are strings of zeros and ones of a fixed length, say n. For example, if n = 2, the inputs are (0,0), (0,1), (1,0), (1,1). The function f returns a field element for each of these inputs. In other words, f is a function mapping bit strings to field elements: f : {0,1}ⁿ → 𝔽.</p><p><strong>The Extension:</strong> The Multilinear Extension, which we’ll denote as f̃, is a special multilinear polynomial that satisfies a key condition:</p><ol><li><strong>Agreement:</strong> For all original inputs in {0,1}ⁿ, f̃ gives exactly the same result as f.</li><li><strong>Uniqueness:</strong> There is only one multilinear polynomial that does this for a given function f.</li></ol><p><strong>Why Uniqueness Matters:</strong> This uniqueness property is fundamental because it guarantees that a prover cannot “cheat” by choosing different polynomial extensions that agree on the Boolean hypercube but differ elsewhere. When the verifier queries the MLE at a random point, the prover must respond with the value from <em>the</em> unique extension, making it impossible to manipulate responses without being caught (with high probability, by Schwartz-Zippel).</p><p><strong>The Key Idea:</strong> f̃ takes the information from f (which only works on the domain {0,1}ⁿ) and “extends” it to a polynomial that can, in theory, accept other numbers as input while maintaining that multilinear structure — that is, maintaining a maximum degree of one in each variable.</p><h4>Understanding the Structure</h4><p>It’s necessary to understand the following facts:</p><p><strong>A. Number of Variables:</strong> The value n, which represents the dimension of the function’s domain f : {0,1}ⁿ → 𝔽, tells us how many variables our MLE polynomial will have. For example, if n = 3, we’ll have variables (x₁, x₂, x₃).</p><p><strong>B. Number of Coefficients:</strong> The domain of function f is restricted to vectors of length n with only zeros and ones. This means it has size 2ⁿ, which in turn tells us the number of coefficients our MLE polynomial will have:</p><ul><li>2¹ = 2 coefficients (for n=1)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/166/1*ZWctpQd-4nbJeEsoD6U3Dw.png" /></figure><ul><li>2² = 4 coefficients (for n=2)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*5Qy5sNnyBhrRTqebx77Ulg.png" /></figure><ul><li>2³ = 8 coefficients (for n=3)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*pDdYxvsbdk11YcqtJDAs6Q.png" /></figure><h4>2.3. Constructing an MLE: A Detailed Example</h4><p>Let’s construct an MLE step by step for maximum clarity.</p><p><strong>Step 1. Initial Data:</strong></p><p>Suppose we’re given a function f : {0,1}² → 𝔽 where n = 2, with the following evaluations:</p><ul><li>f(0,0) = 2</li><li>f(0,1) = 5</li><li>f(1,0) = 7</li><li>f(1,1) = 10</li></ul><p>As we saw above, the form of a multilinear polynomial with 2 variables is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*5Qy5sNnyBhrRTqebx77Ulg.png" /></figure><p><strong>Step 2. Calculate the Coefficients Using the Values of f:</strong></p><ol><li><strong>At (0,0):</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*JBnnyredDzTPfP9KKmyvDQ.png" /></figure><p>We know that f(0,0) = 2, therefore a₀ = 2. We’ve found the first coefficient!</p><ol><li><strong>At (0,1):</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*tMmqjfRNJviajgWebpqXUQ.png" /></figure><p>We know that f(0,1) = 5. Since we already know a₀ = 2, we have 2 + a₂ = 5. Solving: a₂ = 3.</p><ol><li><strong>At (1,0):</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*BoyZsVdWaXP4ehV9dlvSpA.png" /></figure><p>We know that f(1,0) = 7. Since a₀ = 2, we have 2 + a₁ = 7. Solving: a₁ = 5.</p><ol><li><strong>At (1,1):</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*TWT-Fb5GIKlYY4bSCe7Lng.png" /></figure><p>We know that f(1,1) = 10. Using the coefficients we’ve found: a₀ = 2, a₁ = 5, a₂ = 3, we have:</p><pre>2 + 5 + 3 + a₁₂ = 10<br>   10 + a₁₂ = 10</pre><p>Solving: a₁₂ = 0.</p><p><strong>Step 3. Write the Final MLE Polynomial:</strong></p><p>We’ve found all coefficients: a₀ = 2, a₁ = 5, a₂ = 3, a₁₂ = 0. Thus the Multilinear Extension is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*skeNkVwugYr3gdQ_aP4HPA.png" /></figure><p>Or simplified:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*Q9iJjUnXAMDrdMN5A99CRA.png" /></figure><p><strong>Evaluation Outside the Domain:</strong></p><p>Once we’ve obtained the MLE polynomial, we can evaluate it outside the Boolean domain at a random point within a very large finite field. For example, f̃(12, 10) in 𝔽₂₀:</p><p>f̃(12, 10) = 2 + 5(12) + 3(10) = 2 + 60 + 30 = 92 mod 20 = 12</p><h3>3. Key Examples for MLEs: EQ Function and Diagonal Matrices</h3><p>To handle the complexity of polynomial equality checking, we can rely on the Schwartz-Zippel Lemma to determine with high probability that two polynomials are equal by comparing them at a single random point. As a concrete application of this theorem, we can reference the MLE of the equality function (EQ).</p><h4>3.1. The EQ Function and Its MLE</h4><p>The <strong>equality function</strong> defines a Boolean function that returns 1 if two vectors x and y are equal element-wise, and 0 otherwise.</p><p><strong>Formal Definition:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*sQuv2r69XFHCrd4-wF2wqQ.png" /></figure><p>The multilinear extension of this equality function has a very particular and efficient form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*uiTWXSQlB1M4rGPNklq3Pw.png" /></figure><p><strong>How It Works:</strong></p><p>This formula compares each pair (xᵢ, yᵢ) and returns 1 if they are equal (both 0 or both 1), and 0 if they are different. The product of all these comparisons gives 1 if all pairs are equal and 0 if there is at least one difference:</p><ul><li>If xᵢ = yᵢ = 0: the factor is (0·0 + 1·1) = 1</li><li>If xᵢ = yᵢ = 1: the factor is (1·1 + 0·0) = 1</li><li>If xᵢ = 0, yᵢ = 1: the factor is (0·1 + 1·0) = 0</li><li>If xᵢ = 1, yᵢ = 0: the factor is (1·0 + 0·1) = 0</li></ul><h4>3.2. Worked Example: EQ Function</h4><p>Suppose we have two binary vectors x and y of length 3:</p><pre>x = (x₁, x₂, x₃)<br>y = (y₁, y₂, y₃)</pre><p>If these two vectors are equal, EQ should return 1 if (x₁ = y₁, x₂ = y₂, x₃ = y₃), or 0 otherwise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*LtoRcCzRR-BcALcE3WYg-w.png" /></figure><p><strong>Case 1: Equal Vectors</strong></p><p>Suppose x = (1, 0, 1) and y = (1, 0, 1):</p><p>For x₁ = 1 and y₁ = 1:</p><pre>(1·1 + (1-1)(1-1)) = (1 + 0) = 1</pre><p>For x₂ = 0 and y₂ = 0:</p><pre>(0·0 + (1-0)(1-0)) = (0 + 1) = 1</pre><p>For x₃ = 1 and y₃ = 1:</p><pre>(1·1 + (1-1)(1-1)) = (1 + 0) = 1</pre><p>Multiplying everything:</p><pre>ẼQ(x, y) = 1 · 1 · 1 = 1</pre><p><strong>Case 2: Different Vectors</strong></p><p>Now suppose x = (1, 0, 1) and y = (1, 1, 0):</p><p>For x₁ = 1 and y₁ = 1:</p><pre>(1·1 + (1-1)(1-1)) = (1 + 0) = 1</pre><p>For x₂ = 0 and y₂ = 1:</p><pre>(0·1 + (1-0)(1-1)) = (0 + 0) = 0</pre><p>For x₃ = 1 and y₃ = 0:</p><pre>(1·0 + (1-1)(1-0)) = (0 + 0) = 0</pre><p>Multiplying everything:</p><pre>ẃEQ(x, y) = 1 · 0 · 0 = 0</pre><p>Since the vectors are not equal, the function returns 0.</p><h4>3.3. Why EQ is Special and Desirable</h4><p>The MLE of the EQ function is a very practical and elegant construction that demonstrates how to combine bit-by-bit equality checks to form a vector equality check. This demonstrates a “special” and desirable property:</p><p><strong>Efficiency:</strong> While EQ has a domain of size ²²ⁿ (i.e., {0,1}ⁿ × {0,1}ⁿ), ẼQ(r) can be evaluated in time <strong>O(n)</strong>, which is <strong>logarithmic with respect to the domain size</strong>.</p><p>This logarithmic evaluation time is crucial for SNARK efficiency. The verifier can compute ẼQ quickly even when the domain is exponentially large, making it practical for real-world applications.</p><h3>4. Diagonal Matrices and VM Architectures</h3><p>In general, SNARK protocols must be built over virtual machines (VMs), and this architecture often has two fundamental approaches:</p><ol><li><strong>Non-uniform architecture:</strong> Applied in systems like Plonk, Marlin, and Groth16. These can handle any circuit design, but their cost is proportionally higher.</li><li><strong>Uniform architecture:</strong> Used in circuit systems with repeated structure, which by definition are used in STARK protocols with the AIR constraint system and some others based on sumcheck, such as Jolt.</li></ol><h4>4.1. Understanding VM Structure</h4><p><strong>The VM Abstraction Guarantee:</strong> VM abstraction actually guarantees that the circuit you care about has exactly a <strong>diagonal matrix structure</strong>. That is, it’s the same small thing repeated many times.</p><p>A VM, by definition, does the same simple operation over and over again:</p><ul><li>Fetch → Decode → Execute (repeated for every CPU cycle)</li><li>Evaluate SHA-256 many times (for Merkle authentication paths)</li><li>Each cycle corresponds to one evaluation of a small constraint system</li></ul><p><strong>The Structure:</strong> You’ll commit the gate values for the first copy of circuit A, followed by the gate values for the second copy of A, and so on. Each small constraint system A operates on one copy independently. These cycles are completely independent except for interactions with adjacent cycles, so we wind up with a <strong>block diagonal matrix</strong>.</p><p>This diagonal structure is exactly why this situation is so important — it represents large computations that are usually composed of the repetition of smaller operations.</p><h4>4.2. Mathematical Representation of Diagonal Matrices</h4><p>A block diagonal matrix B looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*LZaLoWq4t8F6_jtVo12qbg.png" /><figcaption>Where each A is the small matrix, and the 0’s are zero blocks of the same size as A</figcaption></figure><p>This diagonal matrix is an example of applying MLE over the EQ function, which allows us to work with the MLE of binary vectors seen in the previous example, but now as polynomials in their evaluation form.</p><p><strong>This perspective is really important</strong> because it’s often the case in SNARK design that we’re given a matrix or vector and we want to take the multilinear extension of that matrix.</p><p>The key is understanding that this matrix with diagonal sub-matrices can be viewed as a function whose domain consists of the indices of both A and B.</p><h3>4.3. Constructing the MLE of a Diagonal Matrix</h3><p><strong>Step 0. Understanding the Diagonal Matrix:</strong></p><p>Let’s call the large matrix B, which consists of a number of copies of smaller matrices A:</p><ul><li>B = 2ᵏ copies of A</li><li>Each small matrix A has size 2^L × 2^L</li></ul><p><strong>Step 1. Indexing Rows and Columns of A:</strong></p><p>Let’s view A as a function whose domain is {0,1}^L × {0,1}^L, interpreting the entries of the hypercube as indices into the matrix:</p><ul><li>i ∈ {0,1}^L (binary representation of the row of A)</li><li>j ∈ {0,1}^L (binary representation of the column of A)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*7w1jvHRGQemLOyCCKPBUmg.png" /></figure><p><strong>Step 2. Indexing Rows and Columns of B:</strong></p><p>Since we know B is composed of 2ᵏ copies of A where A = 2^L × 2^L:</p><ul><li><strong>Row of B</strong> as (row of A, Copy) = (i, c₁): where i is a row in A, and c₁ is the copy number (also in binary)</li><li><strong>Column of B</strong> as (Col of A, Copy) = (j, c₂): where j is a column in A, and c₂ is the copy number</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*oV7rTWkfy7dudS5K7Rl1OQ.png" /></figure><p><strong>Step 3. MLE Representation of the Matrices:</strong></p><p>For a matrix B that has 2ᵏ copies of A along the diagonal, with the rest being 0, we can state the following fact about its MLE:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*TP2O1VsbFfogbHaW7ppO-g.png" /></figure><p><strong>Reading this formula:</strong></p><ol><li>The left side, B̃, represents the multilinear extension of the entire matrix B.</li><li>The right side factorizes that function into two parts:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/221/1*l33HMKZZNYRDyP0OIq1ypg.png" /></figure><ul><li><strong>Ã(i, j):</strong> Evaluates the internal logic of block A</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/197/1*-14-iEvZsYm4MIksDBnJ4w.png" /></figure><ul><li><strong>ẼQ(c₁, c₂):</strong> Ensures you’re accessing the same copy of A (forcing the copy indices to be equal)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*2AZySKqX2RM8SfB6H6o3mQ.png" /></figure><p>The entire matrix B can be read as: “Evaluate A, but only when the row and column belong to the same copy of A. Otherwise, the value is 0.”</p><h4>4.4. Concrete Example: Small Diagonal Matrix</h4><p><strong>Step 0. Initial Assumptions:</strong></p><ul><li>A: a 2×2 matrix, i.e., 2¹ × 2¹, therefore L = 1</li><li>B: a 4×4 matrix, constructed as 2¹ = 2 copies of A on the diagonal → therefore k = 1</li></ul><p><strong>Step 1. Indexing A as a Function:</strong></p><p>Suppose:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/1*iY5VbtgxYYzYucSK2JDl9Q.png" /></figure><p>Its multilinear extension Ã(x,y) is a polynomial of degree 1 in each variable that agrees with the values of A at points (0,0), (0,1), (1,0), (1,1).</p><p><strong>Step 2. Construct Matrix B:</strong></p><p>Since B contains 2 copies of A on the diagonal, it looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*P4H4K4bxsCMtCDHZbMX1NQ.png" /></figure><p>We index rows and columns of B with tuples:</p><ul><li><strong>Row of B:</strong> (i, c₁) where i = row index in A, c₁ = copy index</li><li><strong>Column of B:</strong> (j, c₂) where j = column index in A, c₂ = copy index</li></ul><p><strong>Step 3. Formula with Concrete Values:</strong></p><pre>B̃(i, c₁, j, c₂) = Ã(i, j) · ẼQ(c₁, c₂)</pre><p>Where:</p><pre>ẼQ(x, y) = (1-x)(1-y) + xy</pre><p><strong>Step 4. Evaluation at Specific Points:</strong></p><p><strong>Case 1: Same index and same copy</strong></p><p>Evaluate B̃((1,0), (1,0)):</p><ul><li>Row = 1 (in A), copy = 0</li><li>Column = 1 (in A), copy = 0</li></ul><p>Then:</p><pre>B̃(1, 0, 1, 0) = Ã(1, 1) · ẼQ(0, 0)</pre><p>Calculate ẼQ(0, 0):</p><pre>ẼQ(0, 0) = (1-0)(1-0) + 0·0 = 1·1 + 0 = 1</pre><p>Result:</p><pre>B̃(1, 0, 1, 0) = Ã(1, 1) · 1 = 1 · 1 = 1</pre><p>Correct value: copies and indices match.</p><p><strong>Case 2: Same index in A, but different copies</strong></p><p>Evaluate B̃((1,0), (1,1)):</p><ul><li>Row = 1 (in A), copy = 0</li><li>Column = 1 (in A), copy = 1</li></ul><p>Then:</p><pre>B̃(1, 0, 1, 1) = Ã(1, 1) · ẼQ(0, 1)</pre><p>Calculate ẼQ(0, 1):</p><pre>ẼQ(0, 1) = (1-0)(1-1) + 0·1 = 1·0 + 0 = 0</pre><p>Result:</p><pre>B̃(1, 0, 1, 1) = Ã(1, 1) · 0 = 1 · 0 = 0</pre><p>✓ Zero value: the copies don’t match.</p><h4>4.5. Why This Matters for SNARKs</h4><p>Matrix B can be viewed as a massive structure with thousands or millions of entries, as it contains many copies of a small matrix A along its diagonal. However, most of B’s entries are zero, and they only contain useful information when evaluated within the same copy of A.</p><p><strong>Key Insight:</strong> The multilinear extension MLE we use captures exactly this structure: the evaluation of B̃ is only non-zero when the rows and columns reference the same copy of A. In that case, it simply evaluates Ã over the row and column indices.</p><p>This property is fundamental in many SNARK systems where this type of block diagonal matrix appears naturally.</p><p><strong>The Most Important Part:</strong> Thanks to this structure, the verifier can work solely on the small matrix A. All the complexity of the large matrix B is encapsulated in the equality function ẼQ, which can be evaluated extremely efficiently — in logarithmic time with respect to the number of copies.</p><p><strong>Consequence:</strong> The verification cost doesn’t grow with the total circuit size but remains proportional to the size of a single small block. This enables fast and scalable verification, even for very large computations.</p><h3>Conclusion and Looking Ahead</h3><p>With this final example, we’ve completed the first part of this series, which provides the foundations for understanding Multilinear Lagrange Interpolation and how the sumcheck protocol works, leveraging these properties as fundamental elements for its efficiency.</p><p><strong>What We’ve Covered:</strong></p><ol><li>The distinction between LDE and MLE and when each is used</li><li>The formal definition of multilinear polynomials and their unique extensions from the Boolean hypercube</li><li>Practical construction of MLEs with worked examples</li><li>The EQ function and its O(n) evaluation time</li><li>Diagonal matrices arising from VM architectures and how MLE captures their structure efficiently</li></ol><p><strong><em>Note on Notation Used:</em></strong></p><ul><li>f : {0,1}ⁿ → 𝔽 denotes the original function on the Boolean hypercube</li><li>f̃ denotes the multilinear extension (MLE) of f</li><li>𝔽 denotes a finite field</li><li>ẼQ denotes the MLE of the equality function</li><li>Ã, B̃ denote MLEs of matrices A and B respectively</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1193e85bb1f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Low Degree Extension and Univariate Lagrange Interpolation: First Steps from Maths to Magics [PART…]]></title>
            <link>https://medium.com/@0xlipefe/reed-solomon-fingerprint-reed-solomon-encoding-low-degree-extension-and-lagrange-interpolation-0f2a7d471da7?source=rss-f284b30c65fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f2a7d471da7</guid>
            <category><![CDATA[snark]]></category>
            <category><![CDATA[zero-knowledge-proofs]]></category>
            <category><![CDATA[cryptography]]></category>
            <dc:creator><![CDATA[lipefe]]></dc:creator>
            <pubDate>Mon, 19 May 2025 21:40:14 GMT</pubDate>
            <atom:updated>2025-05-20T15:28:18.604Z</atom:updated>
            <content:encoded><![CDATA[<h3>Low Degree Extension and Univariate Lagrange Interpolation: First Steps from Maths to Magics [PART II]</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KHFmIGIIEkO2V_OH" /></figure><p>In the first part of this series, we explored the advantages of randomness using the <strong>Reed-Solomon-based Fingerprint method</strong>. We understood its connection to <strong>Reed-Solomon Encoding (RSE)</strong>, which, thanks to its <strong>distance amplification</strong> property, statistically reduces the probability of error when comparing two polynomials by evaluating them at a random point rwithin a larger finite field in their domain. Finally, we made technical clarifications to differentiate RSE from <strong>Low-Degree Extension (LDE)</strong>.</p><p>Continuing within that context, in this installment, we will delve deeper into the advantages of <strong>Low-Degree Extensions (LDEs)</strong>. We will examine how to obtain the polynomial representation of a message from its evaluations. We’ll briefly pause to address special cases in SNARK protocols where the <strong>Prover</strong> needs to materialize the complete encoding (i.e., compute all evaluations in the extended domain). Subsequently, we will analyze the most common scenarios where we only need to evaluate the encoding at a random point rand verify the equality of two polynomials using the <strong>Univariate Lagrange Interpolation</strong> technique. Finally, I will share a Rust code example to illustrate the functionality of this formula.</p><h4><strong>1. Low-Degree Extension (LDE)</strong></h4><p>Essentially, LDE takes a polynomial defined by its evaluations on a relatively small set of points and evaluates it over a much larger domain, creating an “extension” of its domain. The main reason behind this extension is to amplify the margin of difference when comparing polynomials, so that if they differ in at least one point in the original domain, the probability of them coinciding at a random point rin the extended domain becomes very minimal, as established by the <strong>Schwartz-Zippel Lemma</strong>.</p><p>Suppose Alice (Prover) wants to prove to Bob (Verifier) that she possesses a polynomial that satisfies certain rules, without explicitly revealing the polynomial itself. To achieve this, Alice typically needs to:</p><ol><li><strong>Generate a commit C associated with her polynomial.</strong> This commitment does not reveal the complete polynomial but acts as a cryptographically binding proof that Alice (Prover) is associated with a specific polynomial. For the purposes of this article, it is not necessary to delve into the details of specific commitment schemes like KZG, FRI, etc.</li><li><strong>Agree with Bruno on an evaluation domain.</strong> Both parties must know the specific set of values that will be used in the protocol. <br>As an example, let’s consider that Alice has a vector a = {2,1,1} of length n=3 containing the evaluations of her polynomial <strong>P_a(X)</strong> at the points {0,1,2} within the finite field {F11}:<br>P_a(0) mod 11 = 2<strong><em> <br></em></strong>P_a(1) mod 11 = 1<strong><em> <br></em></strong>P_a(2) mod 11 = 1<br>And Bob has a vector b = {2,1,0} of length n=3 corresponding to the evaluations of his polynomial <strong>P_b(X)</strong> at the same points {0,1,2} in {F11} such that:<br>P_b(0) mod 11 = 2<strong><em> <br></em></strong>P_b(1) mod 11 = 1<strong><em> <br></em></strong>P_b(2) mod 11 = 0<br>Both Alice and Bob have different polynomials. However, if we only consider the points{0,1}, their polynomials coincide (P_a(0) = P_b(0)<strong><em> and </em></strong>P_a(1) = P_b(1)). If they were to choose a random point r only within this small subset {0,1,2}, there would be a non-negligible probability (in this case, 2/3) that the evaluation would coincide by chance, allowing a malicious Prover to attempt to deceive the Verifier.</li><li>To mitigate this risk and improve security (based on the Schwartz-Zippel Lemma), Alice and Bob agree to extend the evaluation domain.<br>Given a vector a such that:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*d5USISo39bL7RgvNK-tLBA.png" /></figure><p>Where nis interpreted as:</p><ul><li>The number of evaluations of a polynomial on a set of points.</li><li>The size of the original message to be encoded or extended.</li></ul><p>For example, if a = {2,1,1}, then n=3, since the vector has 3 elements.</p><p>Where p is interpreted as:</p><ul><li>The prime number that defines the size of the finite field {F}, which represents the number of elements in the finite field; for example, if p = 11, then {F_p} : {0,1,2,...,11-1}.</li><li>The modulus in arithmetic operations, i.e., mod 11.</li><li>The size of the domain over which the polynomial is evaluated in the Low-Degree Extension (LDE). For example, if p = 11, the evaluation domain is {0,1,2,...,10}.</li></ul><p><strong>The Low-Degree Extension (LDE)</strong> consists of taking the unique polynomial P_a(X) of degree n-1 determined by the initial evaluations a at {0,1,2} and evaluating it over a much larger set, typically the entire field {F_p} = {0,1,2,3,4,5,6,7,8,9,10}, resulting in an “extended code”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*8ZnNDY2jg0HF69SvLKfbEw.png" /><figcaption><a href="https://people.cs.georgetown.edu/jthaler/ProofsArgsAndZK.pdf">https://people.cs.georgetown.edu/jthaler/ProofsArgsAndZK.pdf</a> page 22</figcaption></figure><p>The result is an <strong><em>LDE(a)</em></strong> vector of length p whose entries are the evaluations of <strong>P_a(X)</strong> at all elements of {F_p}. Analogously for <strong>P_b(X)</strong>, obtaining <strong><em>LDE(b)</em></strong>.</p><p>It is important to note the <strong>systematicity</strong> of LDE. This means that the original evaluations at {0,1,...,n-1} are part of the extended encoding <strong><em>LDE(a)</em></strong>. In other words, <strong><em>LDE(a)</em></strong> preserves the original values of a and complements them with additional evaluations over {F_p}. The main purpose of this extension is to:</p><ul><li>Introduce algebraic redundancy, facilitating the detection of errors or manipulations. If p is much larger than n, the probability of them coinciding at a randomly r chosen point from {F_p} is very low, approximately n-1/p.</li><li>Transform the problem to a domain where proofs can be verified with relatively lower computational cost.</li></ul><h4><strong>1.1 Uniqueness of the Low-Degree Polynomial</strong></h4><p>The uniqueness of the polynomial <strong>P_a(X)</strong> derives from a fundamental property: two distinct polynomials of degree d can coincide at at most d points. If<strong>P_a(X)</strong> and <strong>P_b(X)</strong> are distinct (and both have degree at most n-1), they will coincide at at most n-1 points in all of mathbbF_p.</p><p><em>What does “low-degree polynomial” refer to?</em></p><p>Saying that a polynomial has “low degree” can be ambiguous and depends on the needs of the specific protocol. In the context of SNARKs, it generally means a degree that is significantly smaller than the size of the domain. For example, in <strong>p(X) = 2 + 4x + 6x²</strong>, the degree is 2, since the highest exponent is 2(and this degree is low). Low-degree polynomials are preferred because algebraic operations on them are more efficient and they have useful structural properties for proof protocols.</p><p><em>Does extending the domain guarantee the uniqueness of the low-degree polynomial?</em></p><p><strong>LDE </strong>does not create uniqueness; rather, it leverages it. The polynomial <strong>P_a(X)</strong> is already unique and of degree n-1 due to the n initial evaluations. <strong>LDE</strong> simply computes more evaluations of that same unique polynomial over a larger domain. This reinforces the improbability of accidental collisions with other low-degree polynomials when verifying at a random point in the extended domain.</p><p>In summary, the uniqueness property is tied to the degree d = n-1 of the polynomial and the number n = d+1 of initial points that define it. <strong>LDE</strong> provides additional evaluations of this unique polynomial, which increases the robustness of checks based on random evaluations.</p><h4><strong>2. (Parenthesis) The Need to MATERIALIZE ALL THE ENCODE</strong></h4><p>There are specific protocols in SNARKs where, due to their design, it is necessary to compute and often explicitly store the entire <strong>LDE</strong> encoding. That is, it is not enough to be able to evaluate the polynomial <strong>P_a(X)</strong> at individual points on demand; the complete <strong>LDE(a) </strong>vector with its p evaluations is required.</p><p>Protocols like FRI, Binius, and Ligero often operate in this manner. The Prover computes LDE(a), which becomes the main “codeword” used in the protocol.<br><strong><em>*</em></strong><em>It should be clarified that the main focus is on computing the encoding of the message, not on decoding</em><strong><em>.</em></strong></p><p><strong>Efficiency with FFT:</strong> If the extended evaluation domain (of size p) is carefully chosen to have a favorable algebraic structure, such as a set of roots of unity in {F_p}, then the complete computation of <strong>LDE(a)</strong> can be performed very efficiently using the <strong>Fast Fourier Transform (FFT)</strong> in quasi-linear time.</p><p><em>Why is it important to choose “special and nice” points (Roots of Unity)?</em></p><p>The choice of “special and nice” points, such as the roots of unity, is crucial to ensure that the encoding procedure is fast and efficient. In practical terms, if we select the evaluation points intelligently (for example, by using roots of unity), thanks to this algebraic structure, we can leverage the Fast Fourier Transform (FFT), which is computationally efficient for computing the encoding in <strong>O(nlogn)</strong> time.</p><p>To apply the FFT in a finite field {F_p}, it is necessary for the field to contain a primitive root of unity of order n, where nis a power of 2 (i.e., n = 2^k for an integer k). This condition is essential because the FFT requires a cyclic structure that allows for the efficient decomposition and recomposition of polynomial evaluations.</p><p>If we work in a finite field {F_p}, where p is a prime number, the existence of roots of unity depends on whether p-1 is divisible by n. The size of the domain p (or a multiplicative subgroup over which it is evaluated) must be roots of unity, fundamental for ensuring the use of Fast Fourier Transform (FFT).</p><h4><strong>3. Univariate Lagrange Interpolation: Building LDE (Just check a random entry)</strong></h4><p>We close the parenthesis on computing the entire LDE and return to the main scenario. Imagine we have the results (<strong>a_0, … , a_n-1</strong>) of evaluating a polynomial <strong>P_a(X)</strong> at points {0,1,...,n-1}. Now we want to know the result of evaluating <strong>P_a(X)</strong> at a new point r.</p><p>We could first use the results <strong>a_i</strong>to reconstruct the complete formula of the polynomial <strong>P_a(X)</strong>(find its coefficients) and then evaluate it at r(trivial way). However, <strong>Univariate Lagrange Interpolation</strong> offers a shortcut. It allows us to directly calculate the value of <strong>P_a(r)</strong> from the original values (a_0, …, a_n-1) and the point r, without having to go through the intermediate step of reconstructing the entire polynomial formula <strong>P_a(X)</strong>.</p><p>The central idea is to change the basis; instead of using the standard monomial basis (1,x,x²,…,x^n-1) to represent <strong>P_a(X)</strong>, Lagrange uses a different basis formed by the Lagrange basis polynomials (<strong>L_0(X), L_1(X)</strong>,…,<strong>L_n-1(X)</strong>). These basis polynomials have special properties defined over the original set of interpolation pointsS =<strong> </strong>{0,1,...,n-1}.</p><p>These basis polynomials <strong>L_j(X)</strong> have very particular properties that make them useful. To understand them, let’s think about two indices:</p><ul><li><strong>j</strong>: This number tells us which basis polynomial we are referring to (for example, <strong>L_0(X)<em>, </em></strong><strong>L_1(X)</strong>, etc.). Thus, <strong>j</strong>goes from 0to n — 1.</li><li><strong>i</strong>: This number represents one of the original points where we knew the polynomial’s value {0,1,...,n-1}. We will use <strong>i</strong>as the point where we will evaluate the basis polynomial <strong>L_j(X)</strong>.</li></ul><p>The key properties of these basis polynomials<strong>L_j(X)</strong>, when we evaluate them at a point <strong>i</strong>from the original set <strong><em>S</em></strong>, are:</p><ul><li><strong>Correct Degree:</strong> Each basis polynomial <strong>L_j(X)</strong> has degree n-1 (the same maximum degree as our original polynomial <strong>P_a(X)</strong>).</li><li><strong>Selective Property (is 1 at “its” point):</strong> If we evaluate the basis polynomial <strong>L_j(X)</strong> at the point <strong>i</strong> that coincides with its own index <strong>j</strong>(i.e., if <strong>i = j</strong>), the result is <strong>1</strong>; <strong>L_0(0) = 1 , L_1(1) = 1, L_2(2) = 1.</strong></li><li><strong>Annihilation Property (is 0 at other points):</strong> If we evaluate the basis polynomial <strong>L_j(X)</strong> at any point <strong>i</strong>from the original set <strong>S</strong>that is different from its index <strong>j</strong>(i.e., if ineqj), the result is <strong>0; L_0(1) = 0, L_0(2) = 0 ; L_1(0) = 0, L_1(2) = 0</strong>.</li></ul><p>In a more rigorous mathematical notation, these last two properties are written as: (Considering that <strong>i &amp; j</strong>both belong to the set <em>S</em>={0,1,...,n-1})</p><ul><li><strong>L_j(i)= 1 </strong><em>if </em><strong>i = j</strong></li><li><strong>L_j(i) = 0</strong><em> if </em><strong>i different j</strong></li></ul><p><strong>Step 1: Define the target points and values</strong></p><ul><li>Interpolation points: <strong>X</strong>∈ {0,1,2} ⊆<strong> </strong>{F11}<strong>​</strong>.</li><li>Corresponding values: P_a(0) <strong>= 2, </strong>P_a(1)<strong>= 1, </strong>P_a(2) <strong>= 1</strong>.</li></ul><p><strong>Step 2: Construct the Lagrange polynomials</strong></p><p>The Lagrange polynomials <strong>L_j(X)</strong>are defined as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/183/1*NkEpnuR_KtqJgKpTdEvANw.png" /></figure><p>Polynomial <strong>L_0(X)<em> </em></strong><em>(for</em><strong>X = 0</strong><em>):</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*uaJFcDiCcjji3YY78cesRQ.png" /></figure><p>Polynomial <strong>L_1(X)<em> </em></strong><em>(for</em><strong>X = 1</strong><em>):</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*0RWZxeYo9fujbiK9CJa7IQ.png" /></figure><p>Polynomial<strong>L_2(X)<em> </em></strong><em>(for </em><strong>X = 2</strong><em>):</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*tLkPDHcjpL2g9iELDIYKyw.png" /></figure><p><strong>Step 3: Linear combination of Lagrange polynomials</strong></p><p>The formal notation for the reconstructed polynomial corresponds to the sum of all polynomials in the Lagrange basis:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/215/1*kmQz7UCq9jDkW70PjYFPBQ.png" /></figure><p>Now, we combine these basis polynomials using the original values <strong>a_0 = 2, a_1 = 1, a_2 = 1</strong> as weights to obtain the interpolated polynomial <strong>P_a(X)</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*_Q7pf-PSGFAloXinFho5TA.png" /></figure><p>Substituting the Lagrange polynomials:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*rgCIZwe13ZWtgSJH12ha1w.png" /></figure><p>We operate and obtain:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*mBw_yaAmIxHAuRYNhgxqEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*1XA_38kk2P4G92KfHmoYSA.png" /></figure><p><strong>Step 4: Evaluate the polynomial at a random point </strong><strong>r</strong> ∈ <strong>{F11} :</strong></p><p>Now that we have constructed the expression for <strong>P_a(X)</strong>as a linear combination of the basis polynomials <strong>L_j(X)</strong>, we will evaluate it at a specific point <strong>r</strong>outside the original set <strong>S = {0,1,2}</strong>. Let’s choose <strong>r = 8</strong>.</p><p>Recall the formula and values: <strong>P_a(X) = a_0</strong> <strong>L_0(X) + a_1</strong> <strong>L_1(X) + a_2</strong> <strong>L_2(X)</strong></p><p><strong>First term:</strong><br> (8 — 1)⋅ (8-2) = 7 ⋅ 6 = 42</p><p><strong>Second term:</strong><br> -8 ⋅ (8-2) = -8 ⋅ 6 = -48</p><p><strong>Third term:<br></strong>2^{-1} ⋅ 8 (8-1) = 2^{-1} ⋅ 8 ⋅ 7 = 2{-1} ⋅ 56</p><p>Remember, we are working over the finite field {F11}. Every nonzero element has a unique multiplicative inverse . The inverse of <strong>2 mod 11 = 6</strong>, since:</p><ul><li>2 ⋅ 6 = 12 ≡ 1 mod 11.</li><li>Therefore, the third term becomes:</li><li>6 ⋅ 56 = 336.</li></ul><p><strong>Sum the terms:</strong></p><ul><li><strong>P_a(8) =</strong> 42 — 48 + 336</li><li><strong>P_a(8) = </strong>330</li></ul><p><strong>Reduction modulo 11:</strong></p><ul><li>Note that: 330 = 11 ⋅ 30</li><li>in conclusion: 330 ≡ 0 mod 11</li></ul><p>We verify that for r=8, the evaluation is 0when we use the <strong>LDE(a)</strong> polynomial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*6svz09mTt_u6mzO1xjFIfg.png" /><figcaption><a href="https://people.cs.georgetown.edu/jthaler/ProofsArgsAndZK.pdf">https://people.cs.georgetown.edu/jthaler/ProofsArgsAndZK.pdf</a> page 22</figcaption></figure><p>The explicit calculation of the Lagrange polynomials, writing each of them in its complete form, presents a problem since each Lagrange polynomial <strong>L_i(X)</strong>has a degree d-1 (where dis the number of interpolation points) and evaluating each polynomial independently requires O(d^2) time. This is because, for each polynomial, we must perform algebraic operations that involve multiplications and divisions in all terms.</p><p><strong>Is it possible to perform this polynomial reconstruction more efficiently, avoiding the quadratic cost associated with explicitly writing each Lagrange polynomial?</strong></p><p>Indeed, it is possible thanks to recursive calculation and batch inversion.</p><ol><li><strong>Recursion:</strong> Given that each polynomial <strong>L_i(X)</strong> has a similar form to the others, we can use the results of previous evaluations to calculate the next ones without starting from scratch. The key is that if we already know <strong>L_i(r)</strong> from this we can calculate <strong>L_i+1(r)</strong> such that:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*eU4mEgUnMiVwmB-Mt3Miew.png" /></figure><p>Forn=3, in{0,1,2}</p><p><strong>Initial Base(</strong><strong>L_0(X)):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*H-qQJgVBkE5Dy_29la_RcA.png" /></figure><p><strong>Computation of </strong><strong>L_1(X) from </strong><strong>L_0(X):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*PrnlspmOZ-YGD_X7GW1V3A.png" /></figure><p><strong>Simplifying:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*s27S6Yylr8_wZFzOe45RAg.png" /></figure><p><strong>Final result:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/187/1*ns2aNps4k9uuqbRFmg7Vkg.png" /></figure><p><strong>Computation of </strong><strong>L_2(X) from </strong><strong>L_1(X):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*WKzUSuzJQciKlYGGQiIqhw.png" /></figure><p><strong>Simplifying:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*meQOavKm9a-ZxHJwRiRhsQ.png" /></figure><p><strong>Linear combination for </strong><strong>P_a(X):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*1XA_38kk2P4G92KfHmoYSA.png" /></figure><p>The calculation can be optimized; the result is the same and requires significantly fewer arithmetic operations.</p><p><strong>2. Batch Inversion:</strong></p><p>Batch inversion is a computational technique used in modular arithmetic and finite algebra to efficiently compute multiple multiplicative inverses in algorithms that require multiple inversions (such as the calculation of Lagrange polynomials). Traditional inversion has a high cost (using, for example, the extended Euclidean algorithm for each element).</p><p>In this specific case, we need to calculate the inverses of the denominators that appear in the Lagrange polynomials. These denominators are:</p><ul><li>2^{-1} : for <strong>L_0(X)</strong> and <strong>L_2(X)</strong>.</li><li>(-1)^{-1}: for <strong>L_1(X)</strong>.</li></ul><p>Then we must calculate the cumulative product of all elements to be inverted. In our example, these are {2,-1}.</p><ul><li><strong><em>Product</em></strong> 2 ⋅ (-1) = -2 ≡ 9 mod 11.</li></ul><p>Then we must invert the total product, and for this, we need to find the inverse of 9in {F11}. That is, a number xsuch that:</p><ul><li>9 ⋅ x ≡ 1 mod 11</li></ul><p>We test values:</p><ul><li>9 ⋅ 5 = 45 ≡ 1 mod 11. Therefore, 9^{-1} ≡ 5 mod 11.</li></ul><p><strong>Calculate the individual inverses:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*8qyUwZbPt0bOAU9zjfzqPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*u5YAQxAxlWsv78ojUH9pCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*8duBXcj2KYWi7YncvT93Gw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*33CJaKSObd_wKNN1fYv-Yg.png" /></figure><p><strong>Final results:</strong></p><ul><li>2^{-1} ≡ 6 mod 11</li><li>(-1)^{-1} ≡ 10 mod 11</li></ul><p><strong>Without batch inversion:</strong> We would need to calculate each inverse separately. For example:</p><ul><li>Calculate 2^{-1} : 1 inversion.</li><li>Calculate (-1)^{-1} : 1 inversion.<br>For a total: 2 inversions.</li></ul><p><strong>With batch inversion:</strong> We only need 1inversion (that of the total product) and then we multiply to obtain the individual inverses. <strong>This reduces the cost from </strong>O(k)<strong> inversions to </strong>O(1)<strong> inversion + </strong>O(k)<strong> multiplications.</strong></p><p><strong>3.1 CODE example</strong></p><p>To conclude this article and the series in general, I would like to recreate the construction of the <strong>LDE(a)</strong> polynomial along with all its evaluations in {F11}. I will use Rust as the base language, as well as the Arkworks library to optimize the algebraic computation of polynomials.</p><ol><li><strong>Install dependencies:</strong></li></ol><pre>// Cargo.toml<br>[dependencies]<br>ark-ff = &quot;0.4.0&quot;<br>ark-poly = &quot;0.4.0&quot;<br>ark-std = &quot;0.4.0&quot;</pre><p>2. Import libraries::</p><pre>use ark_ff::{Field, Fp64, MontBackend, MontConfig, One, Zero};<br>use ark_poly::{univariate::DensePolynomial, DenseUVPolynomial, Polynomial};</pre><p>3. Define {F11} using the Arkworks configuration macro:</p><pre>#[derive(MontConfig)]<br>#[modulus = &quot;11&quot;]<br>#[generator = &quot;2&quot;]<br>pub struct F11Config;<br>pub type F11 = Fp64&lt;MontBackend&lt;F11Config, 1&gt;&gt;;</pre><p>4.Function to multiply polynomial by scalar</p><pre>fn poly_scale(poly: &amp;DensePolynomial&lt;F11&gt;, scalar: F11) -&gt; DensePolynomial&lt;F11&gt; {<br>    let mut scaled_coeffs = poly.coeffs.clone();<br>    for coeff in &amp;mut scaled_coeffs {<br>        *coeff = *coeff * scalar;<br>    }<br>    DensePolynomial::from_coefficients_vec(scaled_coeffs)<br>}</pre><p>5. Construct Lagrange polynomials using ark-poly:</p><pre>fn lagrange_basis(n: usize, j: usize) -&gt; DensePolynomial&lt;F11&gt; {<br>    let mut numerator = DensePolynomial::from_coefficients_vec(vec![F11::one()]);<br>    let mut denominator = F11::one();<br><br>    for m in 0..n {<br>        if m != j {<br>            let term = DensePolynomial::from_coefficients_vec(vec![<br>                F11::from((11 - m) as u64), // -(m) mod 11<br>                F11::one()<br>            ]);<br>            numerator = numerator.naive_mul(&amp;term);<br>            <br>            // Cálculo seguro de la diferencia<br>            let diff = (j as i64 - m as i64).rem_euclid(11);<br>            denominator = denominator * F11::from(diff as u64);<br>        }<br>    }<br><br>    poly_scale(&amp;numerator, denominator.inverse().unwrap())<br>}</pre><p>5. Construct the <strong>LDE</strong> for vector a = {2,1,1}:</p><pre>fn build_lde(a: &amp;[F11]) -&gt; DensePolynomial&lt;F11&gt; {<br>    let n = a.len();<br>    let mut lde = DensePolynomial::zero();<br><br>    for j in 0..n {<br>        let basis_poly = lagrange_basis(n, j);<br>        let scaled_poly = poly_scale(&amp;basis_poly, a[j]);<br>        lde = lde + scaled_poly; // Sin &amp;<br>    }<br><br>    lde<br>}</pre><p>6. Configure the field, input vector, and the LDE polynomial:</p><pre>fn main() {<br>    let a = vec![<br>        F11::from(2u64),<br>        F11::from(1u64),<br>        F11::from(1u64),<br>    ];<br>    <br>    let lde_poly = build_lde(&amp;a);</pre><p>7. Evaluate across the entire field {F11} and verify key results:</p><pre>let evaluations: Vec&lt;_&gt; = (0..11)<br>        .map(|x| lde_poly.evaluate(&amp;F11::from(x as u64)))<br>        .collect();<br><br>    println!(&quot;Evaluaciones LDE en F11:&quot;);<br>    for (x, y) in evaluations.iter().enumerate() {<br>        println!(&quot;q({}) = {}&quot;, x, y);<br>    }</pre><p>8. Print expected output:</p><pre>Evaluaciones LDE en F11:<br>q(0) = Fp64(0x2)<br>q(1) = Fp64(0x1)<br>q(2) = Fp64(0x1)<br>q(3) = Fp64(0x2)<br>q(4) = Fp64(0x4)<br>q(5) = Fp64(0x7)<br>q(6) = Fp64(0x0)<br>q(7) = Fp64(0x5)<br>q(8) = Fp64(0x0)<br>q(9) = Fp64(0x7)<br>q(10) = Fp64(0x4)</pre><h4><strong>4. Conclusion</strong></h4><p>This two-part series has elucidated the foundational principles underpinning modern cryptographic proof systems, bridging the theoretical elegance of algebraic coding theory with its practical ramifications in verifiable computation. In Part I, we established the critical role of <strong>Reed-Solomon Fingerprinting</strong> as a probabilistic polynomial identity test, leveraging the <strong>distance amplification property</strong> of <strong>Reed-Solomon Encoding (RSE)</strong> to statistically reduce the probability of undetected discrepancies between polynomials. The subtle, yet crucial, distinction between RSE and <strong>Low-Degree Extension (LDE)</strong> was also clarified, setting the stage for a deeper dive.</p><p>Part II meticulously deconstructed LDE, demonstrating its indispensable role in transforming a sparse set of polynomial evaluations into a robust, algebraically redundant “codeword” over an extended domain. This extension, governed by the <strong>Schwartz-Zippel Lemma</strong>, exponentially diminishes the adversarial probability of a false positive, thereby bolstering the cryptographic security of such schemes. We then addressed the specific, albeit less common, scenarios in SNARK protocols where the <strong>Prover</strong> must explicitly <em>materialize</em> the entire LDE, highlighting the computational efficiencies afforded by algebraic structures like roots of unity and the <strong>Fast Fourier Transform (FFT)</strong> for quasi-linear time encoding. Crucially, for the more prevalent paradigm of “just-in-time” verification, we presented <strong>Univariate Lagrange Interpolation</strong> as an elegant and computationally amenable method for directly evaluating the underlying polynomial at an arbitrary random point r, circumventing the need for full polynomial reconstruction. The computational optimizations achieved through recursive evaluation and <strong>batch inversion</strong> were rigorously demonstrated, underscoring the relentless pursuit of efficiency that characterizes the frontier of zero-knowledge cryptography.</p><h4><strong>5. References:</strong></h4><p>Proofs, Arguments, and Zero-Knowledge: <a href="https://people.cs.georgetown.edu/jthaler/ProofsArgsAndZK.html">https://people.cs.georgetown.edu/jthaler/ProofsArgsAndZK.htm</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f2a7d471da7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reed Solomon Fingerprint, Encoding and Low Degree Extension: First Steps from Maths to Magics[PART…]]></title>
            <link>https://medium.com/@0xlipefe/first-steps-from-maths-to-magics-reed-solomon-fingerprint-reed-solomon-encoding-and-low-degree-b22dfa01df20?source=rss-f284b30c65fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b22dfa01df20</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[zero-knowledge-proofs]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <dc:creator><![CDATA[lipefe]]></dc:creator>
            <pubDate>Wed, 26 Mar 2025 19:52:17 GMT</pubDate>
            <atom:updated>2025-05-20T15:23:31.641Z</atom:updated>
            <content:encoded><![CDATA[<h3>Reed Solomon Fingerprint, Encoding and Low Degree Extension: First Steps from Maths to Magics[PART I ]</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jS9WwjRoDashnbwp" /></figure><p><em>I want to express my gratitude for the spaces promoted by Justin Thaler for the reading of his book, a true masterpiece that serves as a foundation for exploring this fascinating area of computational science. His work has been a fundamental inspiration in preparing this article and in my understanding of the concepts developed here.</em></p><p>In this article, we will explore fundamental concepts in computer science, particularly in information theory, highlighting key points in SNARK protocols. We’ll focus on the logical sequence connecting these ideas: beginning with the Reed-Solomon fingerprint, a key concept related to efficient verification of equality and permutations. Then, we’ll analyze how this links to Reed-Solomon encoding and the main differences with Low Degree Extension (LDE). In the second part of this series, we’ll deeply address LDE characteristics and conclude with the importance of univariate Lagrange interpolation, illustrating its practical role with a code example. This journey aims to highlight how each of these concepts forms part of the essential theoretical framework for understanding SNARK fundamentals.</p><h4>1.Reed-Solomon Fingerprint and Its Relationship with Communication Theory</h4><p>Let’s start with a practical example to illustrate the necessity of this framework.</p><p>Imagine that Ana and Bruno, after years without contact, discover they have complementary parts of an old shared secret. Both want to verify if they possess the same key without directly revealing its content to each other or to a potential third party who might be spying on their communication. Ana suspects Bruno might not be entirely honest, and both know that any digital communication channel could be compromised by an attacker attempting to intercept, alter, or manipulate the information.</p><p>Under these conditions, Ana cannot simply send her key to Bruno for comparison, as that would expose her information. She also cannot trust an intermediary because they could be malicious or under surveillance. This raises the key question:</p><p><em>How can Ana and Bruno verify if their keys match without directly revealing their content or depending on untrusted intermediaries?</em></p><p>This problem isn’t just theoretical but a practical representation of a central challenge in communication theory: <em>how to ensure the integrity and consistency of shared data in an insecure environment</em>. The solution lies in SNARK protocols, from which tools like fingerprints are derived, allowing compact information representation and verification of key properties without sharing the complete content.</p><h4>1.1 Equiality problem in reed solomon fingerprinting</h4><p>Let’s assume Ana and Bruno each have a 4-digit alphabetic key (<em>n</em>=4) with 10 possible characters (A-J) (m=10). First, we need to establish a mapping to assign a natural number to each alphabetic character, effectively translating the alphabetic key into a vector of natural numbers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*5AWLYN-ieG7ufMcNicvsAw.png" /></figure><p>With this mapping established, let’s write out the vectors that Ana and Bruno wish to verify:</p><ul><li>Ana has a key: x = [B, E, G, I]<br>Which translates to: x = [2, 5, 7, 9]</li><li>Bruno has a key: y = [B, E, J, B]<br>Which translates to: y = [2, 5, 0, 2]</li></ul><p>Now that we have our vectors, we’ll represent them as polynomials in coefficient form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/169/1*D3x-OArAfMTWMnuYe0IDfg.png" /></figure><p>Let’s assign concrete values to tackle the equality verification challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*Lnkc9fy3JuNsD1ePUcfy6g.png" /></figure><p>Given that our vectors are already encoded as <em>coefficient-form polynomials</em>, we need two crucial steps:<em> </em><strong><em>i.</em>)</strong> Choose a random number <em>t</em>. <strong><em>ii.</em>)</strong> Select a finite field <em>F</em> using a prime number <em>p</em> that’s at least the maximum between <em>m </em>y <em>n²:</em>Therefore, <em>p</em> must be greater than or equal to the maximum between {10,4²}, requiring at least 16 elements to avoid collision problems (a crucial point in modular arithmetic and finite fields underlying Reed-Solomon fingerprint theory).</p><p>Let’s say Bruno chooses a random element <em>t</em> = 4 from the finite field <em>{F17}</em>, fully meeting the conditions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*KVL5amCGOgosRcGtkFSpXQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/243/1*3CsNJHNGcqKmu5V4LSa8Tg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/169/1*gVl2cE5PmiLx3uoVXaP1bQ.png" /></figure><p>After calculation, he sends the answer <em>v</em> = 13 and the random number<em> t</em> = 4 to Ana, who calculates her result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*8Wv-Vp1pPq1fbB2b5q6k2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/1*ypV930m5r16FmKobpuInbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/175/1*F7wdwImeXEKSj5loDCMBTQ.png" /></figure><p>Upon receiving v=14, Ana should respond with NOT-EQUAL, as the fingerprints do not match.</p><p>To illustrate the collision error we might face if we don’t carefully choose a finite field large enough where <strong><em>p &gt; max(n², m)</em></strong>, let’s consider what happens when evaluating randomly at <em>t</em> = 3:</p><p>Bruno:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*Rx0eiXP4wKje2WZe7ZYCBQ.png" /></figure><p>Ana:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/1*Sq7Tt8Zq-EPDIfyizwYTvg.png" /></figure><p>When performing modular arithmetic in <em>{F7}</em>, Bruno’s calculation results in:</p><p><em>P(y) = 71 mod 7 = 1</em></p><p>Bruno sends the answer <em>v</em> = 1 and random number <em>t</em>= 3 to Ana, who calculates and finds her polynomial also holds 1:</p><p><em>P(x) = 323 mod 7 = 1</em></p><p>This demonstrates that using a finite field p smaller than the maximum between <strong><em>m, n²</em></strong> can lead to collisions, where some operations <strong><em>mod 7</em> </strong>can hold the same number, overlapping the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*A9-9B6kas0Oc8MYOxDWfGw.png" /></figure><ul><li><em>p &gt; n²</em> ensures that the error probability is less than 1/n</li><li><em>p &gt; m</em> allows assigning a unique element to each character</li><li>In summary, p must be chosen greater than max<em>(n², m)</em> to guarantee the protocol’s reliability and proper functioning</li></ul><h4>2 The Permutation Problem in Reed-Solomon Fingerprinting</h4><p>Leveraging the power of algebraic representations, we can explore different polynomial interpretations. Now, let’s construct the polynomials we want to compare, but this time, using their root form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/203/1*pil6j-Y47BCjJ4sEIGj4uQ.png" /></figure><p>Using the same mapping characteristics established earlier <em>(n</em>=4 digits, <em>m</em>=10 possible characters A-J), let’s consider a scenario where Ana and Bruno have lists containing the same elements but in different orders:</p><ul><li>Ana has a key: x = [B, E, G, I]<br>Which translates to: x = [2, 5, 7, 9]</li><li>Bruno has a key: y = [G, B, I, E]<br>Which translates to: y = [7, 2, 9, 5]</li></ul><p>The fundamental concept here is that when constructing a polynomial whose roots are these elements, the resulting polynomial will be identical regardless of the factor order, thanks to the commutative property of multiplication. This allows us to verify that two lists are indeed permutations of each other.</p><p>Let’s begin by selecting a finite field <em>{Fp}</em> with a sufficiently large prime number to avoid collisions (we’ll use <em>p </em>=17 since 17 &gt;<em> max</em>(<em>n², m</em>) in our case).</p><p>Time to construct our polynomials for Ana and Bruno, respectively:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*TG8bFsfEusuGRPfthb0xow.png" /></figure><p>When we operate <strong><em>mod 17</em></strong> on each polynomial, we’ll obtain the same result due to the commutative property:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*kDlXhzP8t25qCCCpi7f-ug.png" /></figure><p>Let’s consider what happens if <em>P(x)</em> and <em>Q(x)</em> were different polynomials and define their difference as <em>D(x)</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/183/1*c4WEFoIvgkGvEPA5hyoZlg.png" /></figure><p>Theory tells us that if <em>P(x) </em>and <em>Q(x)</em> are different,<em> D(x)</em> is a non-zero polynomial of degree at most 4, meaning it can have at most 4 roots in <em>{F17}</em>. Consider evaluating <em>P(x)</em> and <em>Q(x)</em> at 5 distinct field points, for example, at <em>x</em> = 1, 3, 7, 10, and 14. If <em>P(x) = Q(x)</em> at each of these 5 points, then <em>D(x) </em>= 0 at these 5 values. This implies that if<em> P(x) </em>and<em> Q(x)</em> match at more than 4 field points, they must be identical for all <em>x</em>.</p><p>Consequently, verification is performed by evaluating both polynomials at a random number (or several points). If the results match, there’s a high probability the polynomials are identical, confirming the keys are permutations of each other.</p><p>Summary of Reed-Solomon Fingerprinting:</p><ol><li>Convert a key/vector (<em>a</em>) into a polynomial <em>P(a)</em> represented in coefficient form</li><li>Choose a finite field <em>{F}</em> large enough to avoid collisions</li><li>Select a random number <em>t</em></li><li>Apply modular operation to the polynomial as a function envaluated at <em>t</em> <em>mod{F}</em></li></ol><p>This protocol maintains highly efficient communication where, instead of exposing secret keys, only two values (<em>r</em> and <em>v</em>) are exchanged to verify both equality and permutation of two polynomials, demonstrating the remarkable effectiveness of randomness in this scheme.</p><h3>2. The Advantage of Distance Amplification in Reed-Solomon Encoding</h3><p>In the realm of error-correcting codes, Reed-Solomon encoding is widely recognized for its ability to detect and correct errors in data transmission. However, in the context of SNARKs (Succinct Non-Interactive Arguments of Knowledge), its role shifts from error correction to leveraging its remarkable property of distance amplification. This property, which increases the separation between encoded vectors, is particularly valuable for ensuring efficient and reliable comparisons of encoded data, even in the presence of noise or adversarial manipulation.</p><p><strong>2.1 Reed-Solomon Encoding: Efficient Vector Comparison</strong></p><p>Reed-Solomon Encoding offers a novel approach to strengthening verification through distance amplification. Instead of directly comparing original vectors, each party replaces them with a much larger encoded version. This encoding is constructed by evaluating a polynomial at a broader set of points within a finite field.</p><p>The crucial advantage of this method lies in its distance property: if two vectors differ by even a single coordinate, their encodings will differ in approximately <em>(1 — (n-1)/p)</em> fraction of their positions. As a result, rather than verifying the entire encoding, it suffices to select a single random point and compare its evaluation in both polynomials. If the values don’t match, the original vectors were likely different.</p><p>This approach requires incorporating an additional step into the fingerprinting protocol, during which we must generate a codeword that introduces redundancy (the degree of redundancy will depend on the size of the finite field that we choose). To illustrate this concept, let’s consider an example where Ana and Bruno have the following keys:</p><p><em>a</em> = [2,5,7] &amp;<em> b</em> =[2,5,8]</p><p><strong>Step 1: Polynomial Representation of Ana and Bruno, respectively</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/209/1*xyz2ikHLapyOsNip636Bww.png" /></figure><p><strong>Step 2: Evaluation within the Chosen Finite Field (Additional Step)</strong></p><p>*Typically, no one writes down or materializes the entire encoding. In this scenario, even if our file contains <em>2²⁵⁶</em> entries (a number that vastly exceeds the total particles in the observable universe), it poses no practical issue. This is because Ana will only ever compute a single entry of her encoding, and Bob will do the same for his.</p><ul><li>**However, if someone <em>were</em> to materialize the full encoding, specialized algorithms exist for this purpose — a topic we will explore in future articles.</li></ul><p>To demonstrate Reed-Solomon encoding in practice, we will evaluate these polynomials over every element of the <em>finite field </em><strong>{<em>F11</em>}</strong>. Specifically, we compute their values across the domain: <em>x</em>∈{0,1,2,…,10} as illustrated in the following sequence:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*2vR1ZGsyKR9T7bPSiQpUwQ.png" /></figure><p>In this scenario, if vectors a and b differ in at least one coordinate, their encodings will differ in approximately<em> 1-(n-1)/p</em> of their positions, thanks to the distance amplification property of the code.</p><p>The verification process then becomes remarkably efficient: Alice selects just one random evaluation point <em>r</em>, sends <em>r</em> and<strong> <em>P(r)</em></strong> to Bob, and Bob checks whether <strong><em>P(r) = Q(r)</em> </strong>for his encoding. Thus, verifying the equality between vectors <em>a</em> and <em>b</em> reduces to simply comparing a single randomly selected value from their respective encodings.</p><h4>2.1 RSE vs. LDE: A Sibling Rivalry?</h4><p>People often toss around terms like <em>Reed-Solomon Encoding (RSE)</em>, but in reality, they’re usually referring to <em>Low-Degree Extension (LDE)</em>. The distinction might seem murky at first glance, so let’s unpack it with a concrete example.</p><p><strong>Imagine your message is three numbers:</strong><br><em>m</em>=(2,4,6)<strong><br></strong>Under the broad umbrella of RSE, <em>m</em> can be interpreted in multiple ways:</p><p><strong>A. As Coefficients:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/179/1*7P9yj9Ytryib2Tr_WwCGZA.png" /></figure><ul><li>To encode <em>m</em>, evaluate <em>p</em>(<em>x</em>) at multiple points:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*r-W3Az52OC-Z0LsAF9tD8g.png" /></figure><p><strong>B. As Evaluations:</strong></p><ul><li>Alternatively, treat m<em>m</em> itself as the <em>output</em> of a polynomial evaluated at specific points:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*UBEIorS1JlIzaDoVoGjOyA.png" /></figure><p><strong>C. As Roots:</strong></p><ul><li>Construct a polynomial from its roots:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*8bZvtUpe-KYIaTqDTmJtSw.png" /></figure><p>Where:</p><ul><li><em>a</em> is the <strong>leading coefficient</strong> (the coefficient of the polynomial’s highest-degree term)</li><li><strong><em>r_</em>1​,<em>r_</em>2​,…,<em>r_n</em>​ </strong>are the polynomial’s roots.</li><li>Each factor<strong> (<em>x</em>−<em>r_i</em>​)</strong> corresponds to a root <strong><em>r_i</em>​</strong>, defining the polynomial’s zero points.</li></ul><p><strong>The Ambiguity of RSE:</strong><br>Without explicit context, it’s unclear whether <em>m</em> defines coefficients or represents evaluations. This is where LDE steps in.</p><p><strong>LDE’s Core Assumption<br></strong>LDE operates under the premise that <em>m</em> represents <em>evaluations</em> of a <strong>low-degree polynomial</strong> on a predefined domain. For example:</p><ol><li><strong>Domain </strong>{1,2,3}</li><li><strong>Evaluations:</strong> <em>m</em>=(3,7,13) <strong>⟹</strong> <em>p(1)=3, p(2)=7, p(3)=13</em></li></ol><p>LDE’s magic lies in <strong>extending these evaluations</strong> to a larger domain, effectively generating redundancy and boosting error resistance. (<em>We’ll dive deeper into “low degree” in Part II!</em>)</p><h4>3. Key Takeaways</h4><p>We began by harnessing randomness to solve communication challenges between Ana and Bruno, exploring use cases like the <strong>Equality Problem</strong> and <strong>Permutation Testing</strong>. From there, we zoomed into two concepts aligned with Reed-Solomon fingerprints: <strong>RSE</strong> and <strong>LDE</strong>. Both showcased the statistical firepower of <strong>distance amplification</strong> — slashing error margins through strategic redundancy.<br>This foundation primes us for Part II, where we’ll crack open how to compute a random point <em>r</em> in <em>O</em>(<em>n</em>) field operations by reimagining polynomials through <strong>Lagrange bases</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b22dfa01df20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CENO*: A Prominent zk SNARK-base proof Virtual Machine design.]]></title>
            <link>https://medium.com/@0xlipefe/ceno-a-prominent-zk-snark-base-proof-virtual-machine-design-part-1-4bad490f3da9?source=rss-f284b30c65fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bad490f3da9</guid>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[zkevm]]></category>
            <category><![CDATA[zero-knowledge-proofs]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[lipefe]]></dc:creator>
            <pubDate>Mon, 09 Dec 2024 04:34:32 GMT</pubDate>
            <atom:updated>2024-12-09T20:16:38.161Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The present writing serves as an explanatory summary intended for a general audience, without the intention of plagiarizing the </em><a href="https://eprint.iacr.org/2024/387"><em>paper</em></a><em> published this year.</em></p><p>This article aims to provide a comprehensive understanding of how CENO contributes to the evolution of zero-knowledge virtual machines and their role in enhancing blockchain technology. Here briefly covers: 1. how the use of advanced computer science; complex theory, and cryptography fits in the Ethereum road map, 2. preliminary mathematical concepts, the<em> -sine qua non-</em> primitives, and 3. Underpinning the construction of the polynomial IOP on which the GKR protocol is the elected candidate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hfxUX8gxtHVFNdVHJusR2Q.png" /></figure><h4>The Importance of zkVM Construction in the Scalability of Ethereum and the Blockchain Ecosystem</h4><p>An unknown and blurry world seems to rise among the abstract complexities of mathematics to show us that, once again, mathematics is the first step toward great roads. since the first quarter of the year (Q1), there has been a debate about benefits or detriments derived from the way the ecosystem has been scaling, specifically the role and alignment of the different L2s in Ethereum, The intention is not to take a stance in this debate but rather to highlight how the allocation of resources across various teams and research projects has contributed wit a positive sum.</p><p><em>Is it worth building a zk SNARK-based proof system upon NP problems, creating compatible VMs, and using it to maintain the integrity of Ethereum’s scalability?</em></p><p>In order to respond, an overview will be presented. A key short-term goal is to increase the number of transactions using validity proofs, while an important long-term objective is to achieve a fully SNARK in Ethereum, ensuring mathematical soundness and completeness. Some of the motivations at the protocol level include:</p><p><a href="https://ethresear.ch/t/based-preconfirmations/17353"><strong>Base pre-confirmations</strong></a><strong>:</strong> offer a competitive user experience for based sequencing, with latencies on the order of 100ms, explained for Justin Drake.<br> <a href="https://vitalik.eth.limo/general/2024/10/23/futures4.html"><strong>Stateless clients</strong></a>: Fully-verifying clients and staking nodes should require no more than a few gigabytes of storage.<br> <a href="https://vitalik.eth.limo/general/2024/10/23/futures4.html"><strong>Decentralized nodes</strong></a><strong>:</strong> it will be possible to fully verify the chain (both consensus and execution) on very small devices. Simply download some data and verify SNARK constraints.</p><p>On the other hand, some implementations at the application level include:</p><p><a href="https://tlsnotary.org/"><strong>Privacy-preserving</strong></a><strong>:</strong> Projects like World Coin and Zupass focus on personal data custody, management, and privacy. Additionally, a more ambitious approach contributes to the Web 2.0 ecosystem, particularly to the TLS protocol (the ‘s’ in ‘https’), enabling secure data sharing without compromising security, privacy, or control.<br><a href="https://maci.pse.dev/"><strong>Censorship resistance</strong></a><strong>:</strong> Some attempts have arisen to create a private, on-chain voting system that would thus guarantee transparency of the results while preventing outsiders from determining how any individual voted.<br><strong>Portable provenance</strong>: with <a href="https://prove.email/">ZK-email</a> which allows extract arbitrary data via <a href="https://github.com/zkemail/zk-regex">Zk-regex</a>.</p><p>Having mentioned some of the advantages, applications, and motivations, it is pertinent to now delve into the design of the wonderful virtual machine design.</p><h4>Present the core mathematical actors and review what the zk SNARK-proof base system means</h4><p>To understand what distinguishes CENO from other zkSNARK-based proof virtual machines, it’s essential to clarify a few mathematical concepts. The first and the foundation of these sophisticated computational systems correspond to finite fields, but <em>why finite fields are fundamental for SNARKS protocols?</em></p><p>Finite fields are fundamental due to their algebraic properties that allow for efficient and secure calculations, lets resume the most important key properties:</p><ul><li><strong>Well-defined algebraic structure</strong>: Operations such as addition, subtraction, multiplication, and division (except by zero) are guaranteed to work, enabling the construction of solid algebraic constraints and maintaining consistency throughout the verification process.</li><li><strong>Finiteness of the domain</strong>: The discreteness of the field facilitates computational control and ensures predictability in calculations. This means calculations are performed over a finite set of elements, avoiding collision issues and guaranteeing the integrity of processed data.</li><li><strong>Distributive arithmetic</strong>: Properties like distributivity and associativity simplify the necessary operations in verification, allowing for quicker verifications and reducing the likelihood of errors.</li></ul><p><em>The second fundamental is the algebraic expression namely </em><strong><em>polynomials,</em></strong><em> let´s answer why polynomials structure representation fits in SNARKS protocols?</em></p><p>The definition of a polynomial is an algebraic expression consisting of terms that include a variable raised to a non-negative exponent, multiplied by a coefficient. This way of expressing operations is powerful due to its versatility, allowing for three different representations: in terms of coefficients or vectors, in terms of its roots, and finally, as points or samples. Each representation has its advantages and disadvantages in terms of resource requirements for the basic operations of addition, multiplication, and evaluation. This is how SNARK protocols leverage these expressions to represent complex operations in circuits, according to which virtual machines are constructed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m2jDqGAMzZnD6kvPaXlGHA.png" /><figcaption>The table shows the time complexity (Big O notation) for each operation</figcaption></figure><p>Once readers have a clear understanding of the fundamentals summarized above, it becomes evident why academics in computer science have researched the advantages of Multi Linear Extension (MLE) techniques so extensively. Try to convey that with:</p><p>1. A multivariable polynomial has n variables, let’s say <em>P(X1, X2,…, Xn),</em> where the degree of each variable is at most one (1), implying that if some variable has degree two (2) or more, it won’t be a multivariable polynomial.</p><p>2. Suppose you have a function <em>f(x)</em> and this function has a domain {0,1}ⁿ and its outputs live in some field F, let’s say that f is just a function that is mapping bit strings to fiel elements {0,1}ⁿ → F<br>Fact:<br>For any function <em>f</em>:{0,1}ⁿ<em> </em>→ F, there exists a <strong>unique multilinear polynomial</strong> <em>g</em> that coincides with <em>f</em> wherever <em>f</em> is defined. Specifically<em> g(x) = f(x)</em> for all x ∈{0,1}ⁿ.This polynomial <em>g </em>is called the <strong>multilinear extension (MLE)</strong> of <em>f</em>. Unlike the function <em>f, t</em>he polynomial<em> g</em>, can be evaluated outside the original domain {0,1}ⁿ because its domain is expanded to Fⁿ. For instance, if the domain of <em>f is </em>{0,1}², meaning <em>f</em>:{0,1}²<em> </em>→ F, then <em>g</em> will have a domain of F². While <em>f</em> has only 4 possible inputs, the domain of <em>g </em>is significantly larger, encompassing all points in F². This extended domain, often referred to as the hypercube of evaluations, allows <em>g</em> to be evaluated at points beyond the Boolean hypercube.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*_EUTumgvwhWSPpARFgzMyQ.png" /><figcaption>Hypercube representation</figcaption></figure><p>This means that the top-left corner of the evaluation of <strong><em>g</em> </strong>corresponds exactly to the evaluations of <strong><em>f</em></strong>. In essence, the extension involves transforming <strong><em>f</em></strong><em> </em>into a significantly larger object, effectively serving as a redundant encoding of <strong><em>f.</em></strong></p><p>Let’s reference the definition directly from the Article, which defines this as <em>‘the result of compiling an information-theoretic object called an Interactive Oracle Proof (</em><strong><em>IOP</em></strong><em>) through a polynomial commitment scheme (</em><strong><em>PCS</em></strong><em>)</em>.’ For clarity, it is important to highlight three core primitives that must be understood.</p><p>First, in the zkSNARK-base proof protocols, the Prover <em>P</em> demonstrates the correctness of a computation without revealing more information than the validity of that computation, just demonstrating, in an Interactive context the “Argument of knowledge”, (the ‘<strong>ARK</strong>’ in “S<strong>NARK</strong>”), which holds the relation of a set of pairs <strong><em>(x,w)</em></strong> where: <strong>R </strong>= { (<strong><em>x,w</em></strong>)∣<strong><em>x</em></strong> &amp; <strong><em>w</em> </strong>satisfies certain specifics properties} such as</p><ol><li><strong><em>Completeness</em></strong><em> </em>ensures that if the Prover <strong><em>P</em> </strong>possesses a valid witness (<strong><em>w</em></strong>) satisfying the relation ((<strong><em>x</em></strong>,<strong><em>w</em></strong>)∈ <strong>R</strong>), the verifier <strong><em>V</em></strong> will always accept the proof generated by the protocol, even in the presence of an adversary <strong><em>A</em></strong>.</li><li><strong><em>Witness-extended emulation </em></strong>ensures that the argument protocol has the ability to “extract” a valid witness (<strong><em>w</em></strong>) associated with a public instance (<strong><em>x</em></strong>) whenever the verifier accepts the proof. This is achieved through an extractor algorithm (<strong><em>E</em></strong>) that operates in polynomial time. The probability of the extractor failing is bounded by a value <strong><em>κ(λ)</em></strong>, known as the knowledge error.The first probability measures how successful the adversary is in generating a valid transcript.The second probability measures how successful the extractor is in recovering a valid witness, given that the transcript was accepted.The difference between these probabilities is bounded by the knowledge error <strong><em>κ</em></strong>(<strong>λ</strong>).</li></ol><p>The second primitive relies on the proof size, such that, -being small enough-, helps to minimize the computational resources consumed in the verification process, in other words, it should be succinct(the ‘<strong>S</strong>’ in “<strong>S</strong>NARK”). The third primitive, but no less important. The “non-interactive” involves the ability to omit interactive proofs (<strong>IPs</strong>) (the ’N’ in “S<strong>N</strong>ARK”)in the context of communication complexity. thanks to the brilliant <em>Fiat-Shamir heuristic</em>, which turns the interaction between the Prover (<strong><em>P</em></strong>) and the verifier into a non-interactive proof system.</p><p>Let’s break down the Backend design of a zkVM into three steps. First, is necesary to choose the best candidate for the Interactive Oracle Proof (<strong>IOP</strong>). Next, select an equivalent Polynomial Commitment Scheme (<strong>PCS</strong>). Finally, apply the Fiat-Shamir transformation to make the protocol non-interactive. For clarity and to stay focused on the purpose of this text, only the first two steps will be explained.</p><p>An <strong>Interactive Oracle Proof (IOP)</strong> is a theoretical object in the field of computational theory that combines two concepts:<em> interactivity</em> and <em>randomness</em>. such that:</p><p><strong>a. </strong>Exist an<strong> Interactivity </strong>between:</p><ul><li>A <strong>Prover</strong>, who wants to convince the other participant that a statement is true.</li><li>A <strong>Verifier</strong>, who needs to be convinced that the statement is correct.</li></ul><p><strong>b. Randomness </strong>through Oracles:<br>Instead of directly exchanging complete data, the verifier has access to “oracles.” An oracle is like a function that can be “queried” (i.e., it takes inputs and returns specific outputs), enabling the verifier to assess them at any desired point with the Prover’s support.</p><p>A<strong> Polynomial Commitment Scheme</strong> (<strong>PCS</strong>) is exactly what we need to avoid requiring the SNARK Prover to <strong>literally send all the coefficients</strong> of a polynomial <em>Q</em> to the verifier. By using a <strong>PCS</strong>, the Polynomial IOP becomes a succinct argument. Instead of transmitting the entire polynomial, the Prover can cryptographically commit to <em>Q</em>, often reducing the data to just a single hash value or a single element of a cryptographic group — compressing the size from thousands of kilobits to just a few hundred bits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFanKrbXEneyyl4KIyDJaQ.png" /><figcaption>Types for PIOP´s and PCS´s</figcaption></figure><p>These primitives are fascinating and have been the subject of study by academics in recent years, now with the basis clear view, now move forward and focus on the VM design and its advantages.</p><p><strong>Proposal for CENO*: dive into how the previous theory relies on the GKR protocol.</strong></p><p>Here, even understanding the advantages of the Fast Fourier Transform (<strong>FFT</strong>) on the Prover´s side, which enables polynomials expressed in coefficients to develop multiplicative operations efficiently, the authors justify choosing the <strong>GKR </strong>protocol as the Backend Prover as the best alternative compared to other candidates like Plonk, which uses a univariate polynomial identity check with the underlying requirements of <strong>FFT </strong>and a computation time of <strong><em>O(n log(n))</em></strong>. In contrast, the GKR protocol employs a Sumcheck protocol with linear time <strong><em>O(n)</em></strong> and is friendly parallelization. Let’s take a closer look at the GKR concept for better comprehension.</p><p>To understand how the research team implements these improvements, it’s essential to examine the techniques applied at each stage of the process. The authors propose two specific designs (CENO* Basic and CENO* Pro), where segmentation and parallelization occur at two levels (opcode and basic block). The difference between them lies in the fact that the second includes an additional technique for reconstructing data flow in the second phase, minimizing the total operation stack.</p><p>The <strong>GKR</strong> protocol is also examined among the following comparisons; First, regarding the term Verifiable RAM computation, referenced by Zhang in the paper named “<a href="https://ieeexplore.ieee.org/document/8418645"><em>Faster verifiable RAM with program-independent preprocessing</em></a>”, This requires standardizing the circuit size for each opcode to ensure uniformity. This leads to complications in terms of efficiency, as it not only limits the length of the program or memory but also requires padding all circuits to reach that limit.</p><p>The implementation approach of the proposed<strong> GKR</strong> protocol CENO* allows the use of separate circuits for each opcode, along with the non-uniformity of the Prover for variable lengths. Additionally, offline memory checking, reduces the need for comparison witnesses by including only the essentials directly in the opcode circuit when generating read logs, thus proportionally decreasing the number of witnesses required for stack operations, offering advantages over the direct application of RAM techniques seen in virtual RAM. It’s important to note that, unlike traditional offline memory verification protocols — which rely on the total memory size and require clearing all entries at the start and end — the adaptive approach only needs to initialize and clear the specific cells used during execution.<br>Now, in the context of the Zero knowledge proof systems, zkVMs can be understood as an extension of verifiable RAM, based on this paradigm:</p><ol><li>Describe each submodule of the virtual machine, including, but not limited to execution units, stack, memory, and chips, in a constraint system such as Plonkish, R1CS, or <strong>CCS</strong>, taking into account that to think of <strong>CCS</strong> as a generalization of Plonkish and R1CS, meaning there are essentially cost-free conversions from each of these IRs to their equivalent <strong>CCS</strong> instances, argument extracted from the brilliant paper “<a href="https://eprint.iacr.org/2023/552"><em>Customizable Constraint Systems for Succinct Arguments</em></a>” written by Srinath Setty, Justin Thaler, and Riad Wahby.</li><li>Deploy a SNARK protocol (not strictly required to be zero-knowledge) onto the constraint system to generate a proof, along with its respective <strong>IOP</strong> polynomial design and <strong>PCS</strong>.</li><li>Leverage one or several recursive proof layers to decrease proof size and verification expenses significantly.</li></ol><p><strong>GKR Protocol: A Tool for Verifying Arithmetic Circuits</strong></p><p>The GKR protocol (Goldwasser-Kalai-Rothblum) is an innovative method designed to prove assertions related to arithmetic circuits. This protocol is based on the concept that each layer of the circuit performs operations on the results from the previous layer, allowing for efficient and secure verification. Remember the MLE definition above?, the GKR utilizes this to represent the circuit’s behavior through polynomials. These polynomials capture the interactions between circuit layers, thereby facilitating the verification of proof size.</p><p><strong>Fundamental Equation</strong></p><p>The multilinear extension for layer <strong><em>i</em></strong> of the circuit is defined as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*9xSJCMglqeuXhQ12bto6Zw.png" /></figure><p>In this equation:</p><ul><li><strong>Z </strong>represents the input coordinates for layer <strong><em>i</em></strong>.</li><li><strong><em>x</em>,<em>y</em></strong> are the input variables associated with layer <strong><em>i</em>.</strong></li><li><strong><em>f _i</em>(<em>Z</em>,<em>x</em>,<em>y</em>)</strong> evaluates the behavior of layer <strong><em>i</em></strong>.</li></ul><p><strong>Multilinear Extension and Additional Terms</strong></p><p>MLE allows for evaluating inputs <strong><em>x</em>,<em>y</em>,<em>z</em></strong> and describes how layer<strong> <em>i</em> </strong>combines these variables. This is crucial as it reduces computation time to linear operations. There are two types of terms in this evaluation:</p><ul><li>Multiplicative Terms: <strong><em>mult</em>(<em>Z</em>,<em>x</em>,<em>y</em>)</strong> describes how values from layer<strong> <em>i</em>+1</strong> influence products in layer <strong><em>i</em></strong>.</li><li>Additive Terms: <strong><em>addi</em>​(<em>Z</em>,<em>x</em>,<em>y</em>)</strong> illustrates how sums from layer <strong><em>i</em></strong> propagate to layer <strong><em>i</em>+1</strong>.</li></ul><p><strong>Reduction to Two Evaluations</strong></p><p>The protocol simplifies further through a reduction that allows for evaluating only two specific points of:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/59/1*C7takUDt8GGY54kMYyCJ0w.png" /></figure><p>This approach is essential for optimizing resources in large proofs.</p><p><strong>Combined Linear Equation</strong></p><p>Verification of the circuit is reduced to a linear combination of evaluations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Z_yLq-VqZFBoSagcXM2MA.png" /></figure><p>The main objective is to simplify and optimize the circuit verification process. Instead of directly verifying all the operations and connections of the circuit, which would be computationally expensive, the protocol reduces this task to just two evaluations of the polynomials that represent the operations in the next layer of the circuit:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/160/1*aHt1Btw1UbpAEdxcbzqMRw.png" /></figure><p>This simplification is performed securely using random linear combinations. This means that, rather than verifying each component of the circuit, a “representative combination” of its components is calculated using random coefficients (<strong><em>α</em> </strong>and <strong><em>β</em>)</strong>.</p><p>The security comes from the use of randomness; the coefficients α α and <strong>β</strong> are selected in a way that is unpredictable to the adversary. This means that an attacker cannot construct false responses that are consistent with all possible linear combinations. Essentially, the use of <strong>α</strong> and <strong>β</strong> ensures that the verifier does not need to check every detail of the circuit directly, as any discrepancy is likely to be detected with high probability in the resulting combination <strong>R</strong>.</p><p>The <strong>GKR</strong> protocol leverages polynomial properties through<strong> MLE</strong> to transform the complex challenge of verifying an arithmetic circuit into a simpler and more efficient evaluation process. This not only enhances computational efficiency but also strengthens robustness in zk-SNARK proofs.</p><p><strong>Conclusion</strong></p><p>The paper aims to achieve greater efficiency in the construction of execution rules for virtual machines by minimizing control flow, reducing circuit size, and streamlining the corresponding proofs. This efficiency is largely facilitated by the application of multilinear extension (MLE), which provides a mathematical framework that enhances the verification process. Additionally, foundational concepts in computer science, such as completeness, soundness, and succinctness, play a critical role in ensuring that the execution rules are not only efficient but also reliable and compact. By leveraging these principles, the protocol effectively simplifies complex operations while maintaining robust verification standards.</p><p>The world is advancing at an unprecedented pace, and the future is being shaped today. Layer two protocols are making remarkable strides in scientific innovation, paving the way for this transformation.</p><p><strong>Sources and References:</strong></p><ol><li>Ceno: Non-uniform, Segment and Parallel Zero-knowledge Virtual Machine<a href="https://eprint.iacr.org/2024/387">https://eprint.iacr.org/2024/387</a></li><li>Proofs, Arguments, and Zero-Knowledge: <a href="https://people.cs.georgetown.edu/jthaler/ProofsArgsAndZK.html">https://people.cs.georgetown.edu/jthaler/ProofsArgsAndZK.html</a></li><li><a href="https://eprint.iacr.org/2023/552"><em>Customizable Constraint Systems for Succinct Arguments</em></a><em> </em>: <a href="https://eprint.iacr.org/2023/552">https://eprint.iacr.org/2023/552</a></li><li>Possible futures of the Ethereum protocol, part 4: The Verge : <a href="https://vitalik.eth.limo/general/2024/10/23/futures4.html">https://vitalik.eth.limo/general/2024/10/23/futures4.html</a></li><li><em>Faster verifiable RAM with program-independent preprocessing: </em><a href="https://ieeexplore.ieee.org/document/8418645">https://ieeexplore.ieee.org/document/8418645</a></li><li>TLSNotary Privacy-preserving data portability: <a href="https://tlsnotary.org/">https://tlsnotary.org/</a></li><li><a href="https://prove.email/">https://prove.email/</a></li><li><a href="https://github.com/zkemail/zk-regex">https://github.com/zkemail/zk-regex</a></li><li>Minimal Anti-Collusion Infrastructure: <a href="https://maci.pse.dev/">https://maci.pse.dev/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bad490f3da9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>