plafer
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    2
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Representations of multilinear polynomials In [the previous note](/S1dcS5ADA), we discussed two representations for univariate polynomials, as well as a precise view on what it means to "interpolate" a univariate polynomial from a set of points. This note is the continuation of the previous one, but for multilinear polynomials instead of univariate. That is, mulvariate polynomials where the degree in each variable is at most $1$. Of particular interest to us will be the *multilinear extension* (or, equivalently the "multivariate Lagrange interpolating polynomial"), due to its heavy use in LogUp-GKR. ## Multilinear polynomials The most common way to define multilinear polynomial is: $$ p(x_0, \dots, x_{m - 1}) = \sum_{i_0 = 0}^1 \dots \sum_{i_{m-1} = 0}^1 a_{i_0, \dots, i_{m-1}} x_0^{i_0} \dots x_{m-1}^{i_{m-1}} $$ For example, if there are 2 variables, $$ p(x_0, x_1) = a_{11} \cdot x_0x_1 + a_{10} \cdot x_0 + a_{01} \cdot x_1 + a_{00} $$ ### The vector space of multilinear polynomials Just like univariate polynomials, multilinear polynomials form a vector space. The same proof sketch as for univariate polynomials applies for multilinear polynomials. For example, if $f$ and $g$ are multilinear polynomials defined as $$ \begin{align} f(x_0, \dots, x_{m - 1}) &= \sum_{i_0 = 0}^1 \dots \sum_{i_{m-1} = 0}^1 a_{i_0, \dots, i_{m-1}} x_0^{i_0} \dots x_{m-1}^{i_{m-1}} \\ g(x_0, \dots, x_{m - 1}) &= \sum_{i_0 = 0}^1 \dots \sum_{i_{m-1} = 0}^1 b_{i_0, \dots, i_{m-1}} x_0^{i_0} \dots x_{m-1}^{i_{m-1}} \\ \end{align} $$ Then the addition operation over $f$ and $g$ is once again defined point-wise: $$ \begin{align} &(f+g)(x_0, \dots, x_{m-1}) \\ &= f(x_0, \dots, x_{m-1}) + g(x_0, \dots, x_{m-1}) \\ &= (\sum_{i_0 = 0}^1 \dots \sum_{i_{m-1} = 0}^1 a_{i_0, \dots, i_{m-1}} x_0^{i_0} \dots x_{m-1}^{i_{m-1}}) + (\sum_{i_0 = 0}^1 \dots \sum_{i_{m-1} = 0}^1 b_{i_0, \dots, i_{m-1}} x_0^{i_0} \dots x_{m-1}^{i_{m-1}}) \\ &= \sum_{i_0 = 0}^1 \dots \sum_{i_{m-1} = 0}^1 (a_{i_0, \dots, i_{m-1}} x_0^{i_0} \dots x_{m-1}^{i_{m-1}} + b_{i_0, \dots, i_{m-1}} x_0^{i_0} \dots x_{m-1}^{i_{m-1}}) \\ &= \sum_{i_0 = 0}^1 \dots \sum_{i_{m-1} = 0}^1 (a_{i_0, \dots, i_{m-1}} + b_{i_0, \dots, i_{m-1}} ) x_0^{i_0} \dots x_{m-1}^{i_{m-1}} \end{align} $$ So $f+g$ is also a multilinear polynomial, with coefficients $(a_{i_0, \dots, i_{m-1}} + b_{i_0, \dots, i_{m-1}})$. The definition of the scalar multiplication operation is analogous and is left as an exercise. Similar to the previous note, we will not show here that every other property of vector spaces is valid; these are also left as an exercise. Now that we've shown that the set of all multilinear polynomials forms a vector space, then it must be that we can identify a basis in that space, and refer to every polynomial in the vector space as coefficients (or equivalently, "coordinates") in that basis. As it turns out, we vector space of multilinear polynomials also has 2 useful bases that are analogous to the univariate case: the "monomial" and "evaluation" bases. ### Monomial representation of multilinear polynomials The monomial representation of multilinear polynomials comes from the equation presented earlier: $$ p(x_0, \dots, x_{m - 1}) = \sum_{i_0 = 0}^1 \dots \sum_{i_{m-1} = 0}^1 a_{i_0, \dots, i_{m-1}} x_0^{i_0} \dots x_{m-1}^{i_{m-1}} $$ The set $M = \{ x_0^{i_0} \dots x_{m-1}^{i_{m-1}} \}_{(i_0, \dots,i_{m-1}) = (0, \dots, 0)}^{(i_0, \dots,i_{m-1}) = (1, \dots, 1)}$ is the *monomial basis*, and the coefficients $[a_{0\dots0}, \dots, a_{1\dots1}]_M$ is the *monomial representation* of $p$ in the basis $M$. For example, when $m=2$, then $M = \{x_0x_1, x_1, x_0, 1\}$, and the monomial representation of $p$ is $[a_{11},a_{01}, a_{10}, a_{00}]_M$. ## The Multilinear Extension (MLE) Recall from the univariate case that the interpolating polynomial is the polynomial of degree $n-1$ which passes through every point of some dataset $D = \{(x_0, y_0), \dots, (x_{n-1}, y_{n-1})\}$. We also presented the "extension" view which modeled $D$ instead as a function $f: \{x_0, \dots, x_{n-1}\} \rightarrow \mathbb{F}$. In the multilinear case, although we could model the interpolating polynomial as a polynomial going through a set of points, it will prove more useful to focus on the extension view. Hence, given a function $f: \{0, 1\}^m \rightarrow \mathbb{F}$, the Lagrange interpolating polynomial is defined as the *m-variate multilinear polynomial* which extends $f$. We will write this polynomial as $\tilde{f}$ to remind ourselves that it extends $f$. However, do note that the "interpolating a dataset" is still a very valid of interpretation of the Lagrange interpolating polynomial. To recap, - $\tilde{f}$ is a multivariate polynomial with $m$ variables, - the degree in each variable is $0$ or $1$, - $\tilde{f}(x_0, \dots, x_{m-1}) = f(x_0, \dots, x_{m-1})$ for every $(x_0, \dots, x_{m-1}) \in \{0, 1\}^m$ Since the extension of $f$ *always* multilinear, we call $\tilde{f}$ the **multilinear extension of $f$**. It is defined as, $$ \tilde{f}(r_0, \dots, r_{m-1}) = \sum_{x_0=0}^1 \dots \sum_{x_{m-1}=0}^1 \mathrm{eq}_{(x_0, \dots, x_{m-1})}(r_0, \dots, r_{m-1}) \cdot f(x_0, \dots, x_{m-1}) $$ where $$ \mathrm{eq}_{(x_0, \dots, x_{m-1})}(r_0, \dots, r_{m-1}) = \prod_{i=0}^{m-1} x_i r_i + (1-x_i)(1-r_i). $$ > Note that the $(r_0, \dots, r_{m-1})$ subscript to the $\mathrm{eq}$ function denotes function parameters, which you can think of simply as constants that belong to $\mathrm{eq}$. Note that $\mathrm{eq}_{(x_0, \dots, x_{m-1})}: \mathbb{F}^m \rightarrow \mathbb{F}$ is an m-variate polynomial, which from the definition we can see if multilinear. You should convince yourself that the degree in each $r_i$ is $1$. Then, $\mathrm{eq}_{(x_0, \dots, x_{m-1})}$ is specifically designed so that - $\mathrm{eq}_{(x_0, \dots, x_{m-1})}(r_0, \dots, r_{m-1}) = 1$ when $(r_0, \dots, r_{m-1}) = (x_0, \dots, x_{m-1})$, and - $\mathrm{eq}_{(x_0, \dots, x_{m-1})}(r_0, \dots, r_{m-1}) = 0$ when $(r_0, \dots, r_{m-1}) \neq (x_0, \dots, x_{m-1})$ for all $(r_0, \dots, r_{m-1}) \in \{0, 1\}^m$ - That is, when all the $r_i$ variables only take on values $0$ or $1$ Going back to the definition of $\tilde{f}$, you should then convince yourself that $\tilde{f}(x_0, \dots, x_{m-1}) = f(x_0, \dots, x_{m-1})$ for every $(x_0, \dots, x_{m-1}) \in \{0, 1\}^m$ (or, in words, that $\tilde{f}$ does indeed *extend* $f$). You should also convince yourself that $\tilde{f}$ is multilinear ($\mathrm{eq}$ is multilinear, and $\tilde{f}$ is a linear combination of those $\mathrm{eq}$, which doesn't change the degree in each $r_i$). ## Evaluation representation of multilinear polynomials Similar to univariate polynomials, multilinear polynomials have an *evaluation representation* based on the Lagrange interpolating polynomial. We saw in the previous section that $\tilde{f}$ is defined as $$ \tilde{f}(r_0, \dots, r_{m-1}) = \sum_{x_0=0}^1 \dots \sum_{x_{m-1}=0}^1 \mathrm{eq}_{(x_0, \dots, x_{m-1})}(r_0, \dots, r_{m-1}) \cdot f(x_0, \dots, x_{m-1}) $$ Do take note that in this expression, the only variables are $(r_0, \dots, r_{m-1})$; $(x_0, \dots, x_{m-1})$ are constants. By the same token, $f(x_0, \dots, x_{m-1})$ is also a constant. Finally, for each $(x_0, \dots, x_{m-1}) \in \{0, 1\}^m$, $\mathrm{eq}_{(x_0, \dots, x_{m-1})}$ is a multilinear polynomial. Then, we have it again: the set $E = \{\mathrm{eq}_{(0, 0, \dots, 0)}, \mathrm{eq}_{(1, 0, \dots, 0)}, \mathrm{eq}_{(0, 1, \dots, 0)}, \mathrm{eq}_{(1, 1, \dots, 0)}, \dots, \mathrm{eq}_{(1, 1, \dots, 1)}\}$ is a basis, and our *evaluation representation* for $\tilde{f}$ is $$[f(0, 0, \dots, 0), f(1, 0, \dots, 0), f(0, 1, \dots, 0), f(1, 1, \dots, 0), \dots, f(1, 1, \dots, 1)]$$ (that is, the evaluations of $f$ over its entire domain).

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully