Boolean Functions

From Boolean

Introduction

Let 𝔽2n be the vector space of dimension n over the finite field with two elements. The vector space can also be endowed with the structure of the field, the finite field with 2n elements, π”½2n. A function f:𝔽2n→𝔽 is called a Boolean function in dimenstion n (or n-variable Boolean function).

Given x=(x1,…,xn)βˆˆπ”½2n, the support of x is the set suppx={i∈{1,…,n}:xi=1}. The Hamming weight of x is the size of its support (wH(x)=|suppx|). Similarly the Hamming weight of a Boolean function f is the size of its support, i.e. the set {xβˆˆπ”½2n:f(x)β‰ 0}. The Hamming distance of two functions f,g is the size of the set {xβˆˆπ”½2n:f(x)β‰ g(x)} (wH(fβŠ•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 f.

x f(x)
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 n-variable Boolean function can be represented by a multivariate polynomial over 𝔽 of the form

f(x)=⨁IβŠ†{1,…,n}ai(∏i∈Ixi)βˆˆπ”½2[x1,…,xn]/(x12βŠ•x1,…,xn2βŠ•xn).

Such representation is unique and it is the algebraic normal form of f (shortly ANF).

The degree of the ANF is called the algebraic degree of the function, d0f=max⁡{|I|:aIβ‰ 0}.