Boolean Functions: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 70: | Line 70: | ||
When we consider the trace representation of of a function, then the algebraic degree is given by <math>\max_{j\in\Gamma_n | A_j\ne0}w_2(j)</math>, where ๐<sub>2</sub>(๐) is the Hamming weight of the binary expansion of ๐. | When we consider the trace representation of of a function, then the algebraic degree is given by <math>\max_{j\in\Gamma_n | A_j\ne0}w_2(j)</math>, where ๐<sub>2</sub>(๐) is the Hamming weight of the binary expansion of ๐. | ||
=On the weight of a Boolean function= | |||
For ๐ a ๐-variable Booleand function the following relations about its weight are satisfied. | |||
* If ๐ยฐ๐=1 then ๐<sub>๐ป</sub>(๐)=2<sup>๐-1</sup>. | |||
* If ๐ยฐ๐=2 then ๐<sub>๐ป</sub>(๐)=2<sup>๐-1</sup> or ๐<sub>๐ป</sub>(๐)=2<sup>๐-1</sup>ยฑ2<sup>๐-1-โ</sup>, with 0โคโโค๐/2. | |||
* If ๐ยฐ๐โค๐ and ๐ nonzero then ๐<sub>๐ป</sub>(๐)โฅ2<sup>๐-๐</sup>. | |||
* ๐<sub>๐ป</sub>(๐) is odd if and only if ๐ยฐ๐=๐. | |||
=The Walsh transform= | =The Walsh transform= | ||
Revision as of 15:20, 11 October 2019
Introduction
Let ๐ฝ2๐ be the vector space of dimension ๐ over the finite field with two elements. The vector space can also be endowed with the structure of the field, the finite field with 2๐ elements, ๐ฝ2๐. A function Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f : \mathbb{F}_2^n\rightarrow\mathbb{F}} is called a Boolean function in dimenstion ๐ (or ๐-variable Boolean function).
Given Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x=(x_1,\ldots,x_n)\in\mathbb{F}_2^n} , the support of x is the set Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle supp_x=\{i\in\{1,\ldots,n\} : x_i=1 \}} . The Hamming weight of ๐ฅ is the size of its support (Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle w_H(x)=|supp_x|} ). Similarly the Hamming weight of a Boolean function ๐ is the size of its support, i.e. the set Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \{x\in\mathbb{F}_2^n : f(x)\ne0 \}} . The Hamming distance of two functions ๐,๐ (๐ฝ๐ป(๐,๐)) is the size of the set Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \{x\in \mathbb {F} _{2}^{n}:f(x)\neq g(x)\}\ (w_{H}(f\oplus g))} .
Representation of a Boolean function
There exist different ways to represent a Boolean function. A simple, but often not efficient, one is by its truth-table. For example consider the following truth-table for a 3-variable Boolean function ๐.
| ๐ฅ | ๐(๐ฅ) | ||
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 |
| 1 | 1 | 1 | 1 |
Algebraic normal form
An ๐-variable Boolean function can be represented by a multivariate polynomial over ๐ฝ2 of the form
Such representation is unique and it is the algebraic normal form of ๐ (shortly ANF).
The degree of the ANF is called the algebraic degree of the function, ๐ยฐ๐=max { |๐ผ| : ๐๐ผ≠0 }.
Based on the algebraic degree we called ๐
- affine if ๐ยฐ๐=1, linear if ๐ยฐ๐=1 and ๐(๐)=0;
- quadratic if ๐ยฐ๐=2.
Affine functions are of the form ๐(๐ฅ)= ๐ขโ ๐ฅ+๐, for ๐ขโ๐ฝ2๐ and ๐โ๐ฝ2
Trace representation
We identify the vector space with the finite field and we consider ๐ an ๐-variable Boolean function of even weight (hence of algebraic degree at most ๐-1). The map admits a uinque representation as a univariate polynomial of the form
with ฮ๐ set of integers obtained by choosing one element in each cyclotomic coset of 2 ( mod 2๐-1), ๐ฐ(๐ซ) size of the cyclotomic coset containing ๐ซ, ๐๐ซ ∈ ๐ฝ2๐ฐ(๐ซ), Tr๐ฝ2๐ฐ(๐ซ)/๐ฝ2 trace function from ๐ฝ2๐ฐ(๐ซ) to ๐ฝ2.
Such representation is also called the univariate representation .
๐ can also be simply presented in the form Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\mbox{Tr}}_{\mathbb {F} _{2^{n}}/\mathbb {F} _{2}}(P(x))} where ๐ is a polynomial over the finite field F2๐ but such representation is not unique, unless ๐ฐ(๐ซ)=๐ for every ๐ซ such that ๐๐ซ≠0.
When we consider the trace representation of of a function, then the algebraic degree is given by Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \max _{j\in \Gamma _{n}|A_{j}\neq 0}w_{2}(j)} , where ๐2(๐) is the Hamming weight of the binary expansion of ๐.
On the weight of a Boolean function
For ๐ a ๐-variable Booleand function the following relations about its weight are satisfied.
- If ๐ยฐ๐=1 then ๐๐ป(๐)=2๐-1.
- If ๐ยฐ๐=2 then ๐๐ป(๐)=2๐-1 or ๐๐ป(๐)=2๐-1ยฑ2๐-1-โ, with 0โคโโค๐/2.
- If ๐ยฐ๐โค๐ and ๐ nonzero then ๐๐ป(๐)โฅ2๐-๐.
- ๐๐ป(๐) is odd if and only if ๐ยฐ๐=๐.
The Walsh transform
The Walsh transform ๐๐ is the descrete Fourier transform of the sign function of ๐, i.e. (-1)๐(๐ฅ). With an innner product in ๐ฝ2๐ ๐ฅยท๐ฆ, the value of ๐๐ at ๐ขโ๐ฝ2๐ is the following sum (over the integers)
The set Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \{u\in \mathbb {F} _{2}^{n}:W_{f}(u)\neq 0\}=\{u\in \mathbb {F} _{2}^{n}:W_{f}(u)=1\}} is the Walsh support of ๐.
Properties of the Walsh transform
For every ๐-variable Boolean function ๐ we have the following relations.
- Inverse Walsh transform: for any element ๐ฅ of ๐ฝ2๐ we have
Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \sum _{u\in \mathbb {F} _{2}^{n}}W_{f}(u)(-1)^{u\cdot x}=2^{n}(-1)^{f(x)};} - Parseval's relation:
Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \sum _{u\in \mathbb {F} _{2}^{n}}W_{f}^{2}(u)=2^{2n};} - Poisson summation formula: for any vector subspace ๐ธ of ๐ฝ2๐ and for any elements ๐,๐ in ๐ฝ2๐
Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \sum _{u\in a+E^{\perp }}(-1)^{b\cdot u}W_{f}(u)=|E^{\perp }|(-1)^{a\cdot b}\sum _{x\in b+E}(-1)^{f(x)+a\cdot x},} for ๐ธโ the orthogonal subspace of ๐ธ,{๐ขโ๐ฝ2๐ : ๐ขยท๐ฅ=0, for all ๐ฅโ๐ธ}.
Equivalence of Boolean functions
Two ๐-variable Boolean functions ๐,๐ are called extended-affine equivalent (shortly EA-equivalent) if there exists a linear automorphism ๐ฟ, an affine Boolean function ๐ and a vecor ๐ such that
A parameter that is preserved by EA-equivalence is called EA-invariant.
The Nonlinearity
The nonlinearity of a function ๐ is defined as its minimal distance to affine functions, i.e. called ๐ the set of all affine ๐-variable functions,
- For every ๐ we have Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\mathcal {NL}}(f)=2^{n-1}-{\frac {1}{2}}\max _{u\in \mathbb {F} _{2}^{n}}|W_{f}(u)|} .
- From Parseval relation we obtain the covering radius bound Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mathcal{NL}(f)\le2^{n-1}-2^{n/2-1}} .
- A function achieving the covering radius bound with equality is called bent (๐ is an even integer).
- ๐ is bent if and only if ๐๐(๐ข)=ยฑ2๐/2, for every ๐ขโ๐ฝ2๐.
