Carlet, Feukoua - 2017 - Three Basic Questions On Boolean Functions-Annotated
Carlet, Feukoua - 2017 - Three Basic Questions On Boolean Functions-Annotated
2017061
Volume 11, No. 4, 2017, 837–855
Claude Carlet
LAGA, Department of Mathematics, University of Paris 8 (and Paris 13 and CNRS)
Saint–Denis cedex 02, France
∗
Serge Feukoua
University of Yaoundé 1
Faculty of Sciences, Department of Mathematics
P.O.BOX 812 Yaoundé, Cameroon
1. Introduction
Boolean functions are of importance for a variety of applications. They are used
in cryptography, in particular in pseudo-random generators (in stream ciphers), and
in S-boxes (in block ciphers). They are also used to build error correcting codes
like Reed-Muller codes and Kerdock codes (see [3]).
In Section 2, we give some basic definitions and properties on Boolean functions.
837
2017
c AIMS
838 Claude Carlet and Serge Feukoua
is the degree of its ANF (see [7]). Those functions of algebraic degree at most 2
(resp. at most 3) are called quadratic (resp. cubic). McEliece’s theorem [8] states
that the weights of all n-variable Boolean functions of algebraic degrees at most r
n n−1
are divisible by 2d r e−1 = 2b r c (where due denotes the smallest integer greater
than or equal to u and buc denotes the integer part). For every binary vector x ∈ Fn2 ,
the Hamming weight wH (x) of x being the number of its non zero coordinates (i.e.
the size of the set {i ∈ N/xi 6= 0}, called the support of x, where N denotes the set
{1, ..., n}), the Hamming weight wH (f ) of a Boolean function f on Fn2 is also the
size of the support of the function, i.e. of the set {x ∈ Fn2 /f (x) = 1}. Furthermore,
a Boolean function f over Fn2 is called balanced if its Hamming weight equals 2n−1 .
Let us give the following definitions and propositions, useful to understand our
subject:
Definition 1. Let f be an n-variable Boolean function and let a and b be any
vector in Fn2 . We call derivative of f in the direction of b the Boolean function Db f
defined by Db f (x) = f (x) + f (x + b). Therefore the second-order derivative of f
in the direction of {a, b} is the Boolean function Db Da f defined by Db Da f (x) =
f (x) + f (x + a) + f (x + b) + f (x + a + b).
In [7], P. Langevin and P. Solé give the following proposition:
Proposition 1. Let E be a vector space of finite dimension over the finite field F2
and let f be a Boolean function from E into F2 . Then
∀v ∈ E, deg(Dv f ) ≤ deg(f ) − 1 and ∃u ∈ E, deg(Du f ) = deg(f ) − 1.
Moreover, in [12], Salagean gives a way to characterize the “fast points” of a
Boolean function, where “fast points” are defined as follows:
Definition 2. Let f : Fn2 → F2 be a non-constant Boolean function in n variables
and a ∈ Fn2 \{0}. We call “a” a fast point for f if Da f = 0 or deg(Da f ) < deg(f )−1.
The author counts the number of functions with fast point but the method for
counting does not give a way to construct functions with at least one fast point or
with no fast point. In this paper, we shall investigate the Boolean functions on Fn2
with no fast point. In [6], where is recalled the
Pderivation of a Boolean function f
in the direction of a subspace S: DS f (x) = s∈S f (x + s), the authors study a
particular affine invariant of a Boolean function f called the height of f (denoted
by ht(f )) and defined as follows:
Definition 3. For a given Boolean function f , ht(f ) is equal to the minimal di-
mension of a subspace S such that DS f is the null function.
The functions f which answer positively to the second question of this paper are
all such that ht(f ) > 1.
We recall now the background necessary for Section 4.
The nonlinearity of a Boolean function f over Fn2 is the minimum Hamming
distance dH (f, h) = |{x ∈ Fn2 ; f (x) 6= h(x)}| between f and affine functions h (in
other words, the distance from f to R(1, n), the Reed-Muller code of order 1, since
this code equals the set of functions of algebraic degree at most 1, viewed as binary
vectors of length 2n ). Moreover we can also define the r − th order nonlinearity
(where r is an integer) of a Boolean function f over Fn2 as the minimum distance
between f and the set (denoted by R(r, n)) of all Boolean functions of degree at
most r (r ≤ n). Let us give the following definition:
Advances in Mathematics of Communications Volume 11, No. 4 (2017), 837–855
840 Claude Carlet and Serge Feukoua
Definition 4. [4, 11] A Boolean function over Fn2 (n even) is bent if its Hamming
distance to the set of all n-variable affine Boolean functions (the nonlinearity of f )
equals 2n−1 − 2n/2−1 (which is optimal).
Proposition 2. [4, 11] If f is a bent Boolean function over Fn2 , then wH (f ) =
n
2n−1 ± 2 2 −1 . The converse is true if f is quadratic.
Proposition 3. [4, 11] Bent functions are those functions such that, for every non
zero vector a ∈ Fn2 , the derivative Da F is balanced.
The algebraic degree of bent functions is bounded above:
Proposition 4. [4, 11] Let n be any even integer greater than or equal to 4. The
algebraic degree of any bent function on Fn2 is at most n/2.
Proposition 5. [4, 11] All quadratic bent functions over Fn2 are known and for
n ≥ 4, they are equivalent up to an affine nonsingular transformation and to the
addition of a constant to the function: x1 x2 + x3 x4 + ... + xn−1 xn .
For more details on bent function the reader can refer to [9].
Let us end this section with the following definitions useful to characterize second-
order-bent functions:
Definition 5. The Fourier transform of a Boolean function f over Fn2 denoted by
fb is defined by:
X
fb(u) = f (x)(−1)u·x for all u ∈ Fn2 ,
x∈Fn
2
where “ · ” is some chosen inner product, that is, where x · y is a bilinear form and
x · y = 0 for every y ∈ Fn2 if and only if x = 0 (i.e. the only element orthogonal to Fn2
is 0). Moreover the Walsh transform of f denoted by Wf , is the Fourier transform
of the sign function fχ (x) = (−1)f (x) :
X
Wf (u) = (−1)f (x)+u·x for all u ∈ Fn2 .
x∈Fn
2
P
These transforms satisfy the so-called inverse Fourier formulas u∈Fn2
u·x n u·x n f (x)
P
f (u)(−1)
b = 2 f (x) and u∈Fn2 WF (u)(−1) = 2 (−1) and the Parseval
relation u∈Fn2 WF2 (u) = 22n .
P
With the above definition, let us recall that bent functions are those functions
whose Walsh transform takes the values ±2n/2 only.
Definition 6. Let n be an odd integer. A Boolean function f over Fn2 is said to be
n+1
semi-bent if Wf (u) ∈ {0, ±2 2 } for all u ∈ Fn2 .
where it ∈ V ar(mt (x)) for all t = 1, ..., k . Then by substituting each xit = 0 in
mt (x), it is obvious that all these monomials of degree deg(f ) are canceled and the
function obtained is of degree at S most deg(f ) − 1.
For k = 1, the functions of p≥2,s≥2 Cn,p,s are the only n-variable functions f
S
in p≥1,s≥1 Cn,p,s whose restrictions to affine hyperplanes have the same algebraic
degree as f : we have seen that p ≥ 2 is necessary for such property, and if s = 1,
then at least one restriction is constant, so s ≥ 2 is also necessary.
3.2. Functions in Cn,p,s with n = ps allow answering positively to the
second question.
Proposition 6. Let n, p and s be three integers such that p ≥ 1, s ≥ 2 and n = ps.
Then every function f in Cn,p,s has all its derivatives of algebraic degree deg(f ) − 1.
Proof. For every non zero element u = (u1 , . . . , un ), the derivative f (x + u) + f (x)
of f in the direction of u equals
p
X X Y
uj xk + h0 (x)
i=1 j∈V ar(mi ) k6=j
k∈V ar(mi )
are all distinct and have the same degree s−1 (this because V ar(mi (x))∩V ar(mj (x))
= ∅ and Card(V ar(mi (x))) = Card(V ar(mj (x))) for all i 6= j). Moreover, the fact
that there is at least i0 such that ui0 6= 0 yields that the summation
p
X X Y
uj xk
i=1 j∈V ar(mi ) k6=j
k∈V ar(mi )
will never be canceled. Therefore the degree of the derivation of f in the direction
of u 6= 0 is s − 1 = deg(f ) − 1.
where deg(h(x)) ≤ s − 1 and (mi )i=1...p is a sequence of monomials with the same
degree s and satisfying the following conditions:
• There exists an integer l such that for all i = 1, ..., p, l ∈ V ar(mi ) and for all
i 6= j, Card(V ar(mi (x)) ∩ V ar(mj (x))) ≤ s − 2
• ∪pi=1 V ar(mi (x)) = {1, 2, ..., n}.
Then all the derivatives of f have the same (optimal) algebraic degree deg(f ) − 1
but the restrictions of f to affine hyperplanes do not all have the same algebraic
degree deg(f ).
Proof. The algebraic degree of the restriction f|H of f , to the hyperplane H defined
by the equation
xl = 0,
is deg(f|H ) ≤ s − 1. This because all the functions mi (x) will be canceled after sub-
stituting xl in the ANF of f . Now let us show that f answers positively to the second
question. Consider a non zero vector u = (u1 , . . . , un ). Since ∪pi=1 V ar(mi (x)) =
{1, 2, ..., n}, there exits at least one integer r ∈ {1, ..., p} such that the derivative
mr (x + u) + mr (x) is not canceled (this means there exists t ∈ V ar(mr ) such that
ut = 1) and contains a sum of distinct products of same degree s−1. These products
(in Du (mr )) will never be canceled in f (x+u)+f (x). Indeed, for all j = 1, ..., p with
j 6= r, the condition Card(V ar(mr (x)) ∩ V ar(mj (x))) ≤ s − 2 implies that there
exists four integers r1 , r2 ∈ V ar(mr ) \ V ar(mj ) and j1 , j2 ∈ V ar(mj ) \ V ar(mr ).
Therefore, for every non zero element u = (u1 , . . . , un ), either mj (x + u) + mj (x) is
canceled (this happens when ut = 0 for all t ∈ V ar(mj )) or contains a sum of dis-
tinct products of same degree s − 1 and each of these products contains xj1 or xj2 as
variable. In these two cases, the products of degree s−1 in mr (x+u)+mr (x) which
contain all xr1 or xr2 as variable, will not be canceled in the sum Du mr (x)+Du mj (x)
since j1 , j2 ∈ V ar(mj ) \ V ar(mr ). Thus, mr (x + u) + mr (x) is not canceled in the
derivative f (x + u) + f (x). Thus, deg(Du f ) = s − 1 = deg(f ) − 1.
The following example shows that this result is not true when Car(V ar(mi (x)) ≤
2.
Example 1. Consider the function f defined on F42 by f (x) = x1 x2 + x1 x3 + x1 x4 .
P4
The derivative f (x + u) + f (x) of f in the direction of u = i=1 ui ei equals:
u1 (x2 + x3 + x4 ) + (u2 + u3 + u4 )x1 + u1 u2 + u1 u3 + u1 u4
We can see that for u = e2 + e3 = (0, 1, 1, 0), the derivation f (x + u) + f (x) is null.
Remark 3. Let f be a Boolean function over Fn2 whose derivatives (in the direction
of any non zero vector) have all algebraic degree deg(f ) − 1. Then f is of the form
Xp
(1) f (x) = mi (x) + h(x),
i=1
where deg(h(x)) ≤ s − 1, deg(mi ) = s = deg(f ) for all i = 1, 2, ..., p and the mono-
mials (mi )i=1...p are pairwise distinct and satisfy the condition: ∪pi=1 V ar(mi (x)) =
{1, 2, ..., n}. Otherwise, f has null derivatives..
3.5. Characterization of functions which allow answering positively
to the second question when the number of highest degree monomi-
als is at most 3. We give in the following statements the characterization of
those Boolean functions defined in Remark 3 which answer positively to the second
question for p = 1, p = 2 and p = 3.
Pp
Theorem 3. Let f be a Boolean function over Fn2 defined by f (x) = i=1 mi (x) +
h(x), where deg(h(x)) ≤ s − 1, deg(mi ) = s = deg(f ) for all i = 1, 2, ..., p and the
monomials (mi )i=1...p are pairwise distinct and satisfy the condition ∪pi=1 V ar(mi (x))
= {1, 2, ..., n}. Then,
• If p = 1, then all derivatives Du f , u 6= 0, have the same algebraic degree,
deg(f ) − 1 if and only if V ar(m1 ) = {1, ..., n}.
• If p = 2 and n ≥ 4, then all derivatives Du f , u 6= 0, have the same algebraic
degree, deg(f ) − 1 if and only if Card(V ar(m1 (x)) ∩ V ar(m2 (x))) ≤ s − 2.
Proof.
• If p = 1, the necessary condition is given by Remark 3. Conversely, assume
that f (x) = x1 x2 ...xn + h(x) with deg(h(x)) ≤ n − 1. Then, for all u =
(u1 , . . . , un ),
n
X Y
f (x + u) + f (x) = ui xj + h0 (x),
i=1 j6=i
0
Q
with deg(h ) ≤ n − 2 and the products j6=i xj for i = 1, ..., n are all distinct
and have all the same degree n − 1. Thus, if u is not null, these products will
never be canceled.
• If p = 2, we first observe that for m1 6= m2 we have Card(V ar(m1 (x)) ∩
V ar(m2 (x))) ≤ s − 1.
If Card(V ar(m1 (x))∩V ar(m2 (x))) = s−1, then m1 (x) = xk m(x), m2 (x) =
xl m(x) with k, l 6∈ V ar(m(x)), k 6= l. Consider the vector u such that
uk = ul = 1 and for i 6= k, l, ui = 0. We obtain by a simple operation,
m1 (x + u) + m2 (x + u) = (xk + uk )m(x) + (xl + ul )m(x).
Thus,
m1 (x + u) + m2 (x + u) = xk m(x) + xl m(x) = m1 (x) + m2 (x).
Therefore, the equality Card(V ar(m1 (x)) ∩ V ar(m2 (x))) = s − 1 implies that
f does not answer positively to the second question, and we have the necessary
condition.
If Card(V ar(m1 (x)) ∩ V ar(m2 (x))) ≤ s − 2 then, m1 (x) = xk1 xk2 m(x),
m2 (x) = xl1 xl2 n(x) where k1 , k2 6∈ V ar(m(x)), l1 , l2 ∈ V ar(m2 (x)) \
V ar(m1 (x)) and where the monomials m(x), n(x) have the same degree s − 2
(note that in this case, n ≥ 4). For all non zero vector u = (u1 , . . . , un ),
either m1 (x + u) + m1 (x) is canceled (this happens when ui = 0 for all
i ∈ V ar(m1 )), or contains a sum of distinct products of same degree s − 1
and each of these products contains xk1 or xk2 . Idem for m2 (x + u) + m2 (x)
and l1 , l2 . Thus, the fact that ∪2i=1 V ar(mi (x)) = {1, 2, ..., n} means that for
all non zero vector u = (u1 , . . . , un ), the monomials of degree s − 1 of the
Advances in Mathematics of Communications Volume 11, No. 4 (2017), 837–855
Three basic questions on Boolean functions 845
the vector u = (u1 , ..., un ) ∈ Fn2 is such that ut = 1 if and only if t ∈ {t1 , t2 , t3 }.
Since deg(n(x)) = s − 2 and deg(Du h(x)) ≤ s − 2, the condition is necessary.
Conversely, assume that there exists t0 ∈ V ar(m0 ) \ V ar(m2 ). Then there exists
a monomial n0 (x) such that m3 (x) = xt1 xt0 n0 (x) with {t1 , t0 } ∩ V ar(n0 (x)) = ∅
and deg(n0 (x)) = s − 2. Let t3 ∈ V ar(m) such that m1 (x) = xt1 xt3 n(x), m2 (x) =
xt2 xt3 n(x) with {t1 , t2 , t3 , t0 }∩V ar(n(x)) = ∅ and deg(n(x)) = s−2. Thus for every
vector u = (u1 , ..., un ) ∈ Fn2 , Du f (x) = (ut1 +uP t2 )xt3 n(x)+ut3Qxt1 n(x)+ut3 xt2 n(x)+
ut1 xt0 n0 (x) + ut0 xt1 n0 (x) + (xt1 xt3 + xt2 xt3 )( i∈V ar(n(x)) ui j6=i;j∈V ar(n(x)) xj ) +
xt1 xt0 ( i∈V ar(n0 (x)) ui j6=i;j∈V ar(n0 (x)) xj ) + h0 (x), where deg(h0 ) ≤ s − 2. There-
P Q
fore, Du f (x) + h0 (x) is a sum of monomialsPof same degree Q s − 1 and in this sum, we
can observe that the polynomials xt1 xt0 ( i∈V ar(n0 (x)) ui j6=i;j∈V ar(n0 (x)) xj ) and
P Q
xt2 xt3 ( i∈V ar(n(x)) ui j6=i;j∈V ar(n(x)) xj ) will be canceled if and only if ut = 0
for all t ∈ V ar(n(x)) ∪ V ar(n0 (x)) (because the monomials in these polynomi-
als are pairwise distinct and each of them is different from any other monomial
in Du f (x) + h0 (x)). Thus, if Du f (x) + h0 (x) = 0 then, ut = 0 for all t ∈
V ar(n(x)) ∪ V ar(n0 (x)) and Du f (x) + h0 (x) = (ut1 + ut2 )xt3 n(x) + ut3 xt1 n(x) +
ut3 xt2 n(x) + ut1 xt0 n0 (x) + ut0 xt1 n0 (x) = 0. We have then two cases to considerer if
Du f (x) + h0 (x) = 0:
• The case n(x) 6= n0 (x), which yields the system (note that in this case, the
monomials of this last sum are pairwise distinct):
ut1 + ut2 = 0
,
ut1 = ut3 = ut0 = 0
that is, ut = 0 for all t ∈ {t1 , t2 , t3 , t0 }.
• The case n0 (x) = n(x) where the equality Du f (x) + h0 (x) = 0 becomes
Du f (x) + h0 (x) = (ut1 + ut2 )xt3 n(x) + (ut3 + ut0 )xt1 n(x) + ut3 xt2 n(x) +
ut1 xt0 n(x) = 0 which yields the system:
ut1 + ut2 = 0
ut + ut3 = 0 ,
0
ut1 = ut3 = 0
that is, ut = 0 for all t ∈ {t1 , t2 , t3 , t0 }.
Therefore, Du f (x) + h0 (x) = 0 if and only if u = 0 and the result follows.
3
Corollary 1. Let f be a Boolean function defined over Fn2 by f (x) = i=1 mi (x) +
P
3
h(x), such that for all i = 1, 2, 3, deg(mi (x)) = s ≥ 2, ∪i=1 V ar(mi (x)) = {1, 2, ..., n}
and deg(h(x)) ≤ s − 1. Then f answers positively to the second question if and only
if one of the two following conditions is satisfied:
• For all i, j ∈ {1, 2, 3}, i 6= j, Card(V ar(mi (x)) ∩ V ar(mj (x))) ≤ s − 2.
• There exists three distinct integers i1 , i2 , i3 ∈ {1, 2, 3}, and two distinct in-
tegers t1 , t2 ∈ {1, 2, ..., n} such that mi1 (x) = xt1 m(x), mi2 (x) = xt2 m(x),
mi3 = xtj m0 (x) with j ∈ {1, 2} and V ar(m0 ) 6⊆ var(mij (x)).
Proof. We use Lemma 1 and Proposition 8. But here, there are two cases when
we use Proposition 8: The case mi3 (x) = xt1 m0 (x) and the case mi3 (x) = xt2 m0 (x)
which yield the same result.
Example 2. The functions f (x) = x1 x2 x3 x4 + x1 x2 x5 x6 + x1 x2 x7 x8 and g(x) =
x1 x2 x3 x4 + x1 x2 x3 x5 + x4 x5 x7 x8 defined over F82 , satisfy (respectively) the first
and the second condition of Corollary1. Then they answer positively to the second
question.
Advances in Mathematics of Communications Volume 11, No. 4 (2017), 837–855
Three basic questions on Boolean functions 847
Pp
Corollary 2. Let f be a Boolean function defined over Fn2 by f (x) = i=1 mi (x) +
h(x) (p ≥ 2), such that for all i = 1, ..., p, deg(mi (x)) = s ≥ 2, ∪pi=1 V ar(mi (x)) =
{1, 2, ..., n} and deg(h(x)) ≤ s − 1. If for all i, j ∈ {1, 2, ..., p}, i 6= j, Card(V ar
(mi (x)) ∩ V ar(mj (x))) ≤ s − 2, then f answers positively to the second question.
Proof. By using the same idea of P
Theorem2 and Theorem 3, it is easy to check that
p
for all non zero vector u ∈ Fn2 , i=1 Du mi (x) always contains a sum of distinct
monomials of degree s − 1.
Proof. If f is second-order-bent over Fn2 , then Da f being bent over Ha which has
dimension n − 1, we have that n − 1 is even and deg(Da f ) ≤ n−1 2 for every a 6= 0.
This implies that n is odd and f has algebraic degree at most n+1 2 .
We shall see in Proposition 10 that in fact we must have n ≡ 3 [mod 4] but the
proof of this property will need additional results.
According to Proposition 2 and to Proposition 9, we have then:
Corollary 4. If a Boolean function over Fn2 is second-order-bent, then for all a 6= 0
n−1
wH (Da f ) equals 2n−1 ± 2 2 . The converse is true if f is cubic.
The characterization of bent functions by the Walsh transform together with
Proposition 9 also implies:
Corollary 5. An n-variable Boolean function with n ≥ 3 is second-order-bent if
and only if for all non zero vector a ∈ Fn2 and for all vector b ∈ Fn2 such that b·a = 0,
n+1
we have WDa f (b) = ±2 2 .
Proof. Given a 6= 0 and an inner product “ · ” in Fn2 , the restriction of this inner
product to a given linear hyperplane Ha such that a 6∈ Ha is not necessarily an
inner product in Ha , since some nonzero element u of Ha can be orthogonal to Ha .
But, since in Proposition 9 we can choose Ha , we can avoid such situation by taking
Ha = {x ∈ Fn2 ; u · x = 0} where u · u = 1 (so that u, which is orthogonal to Ha , does
not belong to Ha ) and u · a = 1 (so that a 6∈ Ha ). We can then assume without
loss of generality that the restriction of “ · ” to Ha is an inner product in Ha . The
restriction Da f|Ha of Da f to Ha is then bent if and only if, for all b ∈ Ha , we have
n−1
Da f (x)+b·x
P
x∈Ha (−1) = ±2 2 . The equality
X X X
(−1)Da f (x)+b·x = (−1)Da f (x)+b·x + (−1)Da f (x)+b·x
x∈Fn
2 x∈Ha x∈a+Ha
X
b·a Da f (x)+b·x
= (1 + (−1) ) (−1)
x∈Ha
implies that:
• If b · a 6= 0, then x∈Fn2 (−1)Da f (x)+b·x = 0,
P
n+1
Now we can prove that second-order-bent functions do not exist when 2 is
odd.
Proposition 10. Let f be a second-order-bent Boolean function over Fn2 . Then,
n+1 n+5
n ≡ 3 [mod 4] and x∈Fn (−1)f (x) ≡ 2 4 [mod 2 4 ].
P
2
There exists an integer j ≥ 1 and an integer λ such that x∈Fn (−1)f (x) = 2j +
P
P 22
j+1 f (x)
2 λ; there exists then an integer µ such that x∈Fn (−1) = 22j + 22j+2 µ.
2
then natural if we wish P to see g as a function over the whole space Fn2 to take
g(0) = 1: we have then a∈Fn (−1)g(a) ≡ 0 [mod 4] and function g has algebraic
2
degree less than n (since its Hamming weight is even). We shall in the sequel assume
that g(0) = 1. For every u ∈ Fn2 , we have then:
X n+1 n+1
Wf2 (u) = (−1)Da f (x)+u·a = 2n + 2 2 + 2 2 Wg (u),
a,x∈Fn
2
that is,
n+1 n−1
(3) Wg (u) = 2− 2 Wf2 (u) − 2 2 − 1.
Research of second-order-bent Boolean functions over F72
Applying (3), if f is a second-order-bent function over F72 , then Wg (u) = 2−4
2
Wf (u) − 9 and since deg(f ) < 7, Wf (u) is divisible by 4 for all vector u. Thus,
Advances in Mathematics of Communications Volume 11, No. 4 (2017), 837–855
850 Claude Carlet and Serge Feukoua
Wg (u) + 9 is the square of an integer for all vector u, that is, since Wg (u) is divisible
by 4, Wg (u) ∈ {−8, 0, 16, 40, 72, 112}. Then, the idea is to try to find a function g
from its Walsh transform distribution and then a function f by (3).
We denote w1 = −8, w2 = 0, w3 = 16, w4 = 40, w5 = 72, w6 = 112, the possible
values of Wg (u) and for i = 1, 2...6, we denote by Ni the number of occurrences of
wi among the Wg (u). Firstly, we have:
6
X
(4) Ni = 2n = 128,
i=1
and by the Fourier inverse formula:
X 6
(5) Ni wi = 27 (−1)g(0) = −128,
i=1
and by the Parseval relation:
X 6
(6) Ni wi2 = 214 = 16384.
i=1
Replacing wi by its value, Relations (4), (5), (6) yield the system:
N1 + N2 + N3 + N4 + N5 + N6 = 128
−8N1 + 16N3 + 40N4 + 72N5 + 112N6 = −128 ,
64N1 + 256N3 + 1600N4 + 5184N5 + 12544N6 = 16384
that is:
N1 + N2 + N3 + N4 + N5 + N6 = 128 (L1)
(7) −N1 + 2N3 + 5N4 + 9N5 + 14N6 = −16 (L2) .
N1 + 4N3 + 25N4 + 81N5 + 196N6 = 256 (L3)
The equation (L3) in (7) implies N6 ∈ {0, 1} and N5 ∈ {0, 1, 2, 3}. We have the
following cases:
• If N6 = 0 and N5 = 0, then System (7) becomes:
N1 + N2 + N3 + N4 = 128
(8) −N1 + 2N3 + 5N4 = −16 .
N1 + 4N3 + 25N4 = 256
The solutions of System (8) are all (N1 , . . . , N4 ) such that: N1 = 96 − 5N4 ;
N2 = −8+9N4 (which implies N4 ≥ 1) and N3 = 40−5N4 (which implies N4 ≤
8). In this case, when N4 ranges over the set {1, 2, 3, 4, 5, 6, 7, 8}, the solu-
tions of System (7) are: (91, 1, 35, 1, 0, 0); (86, 10, 30, 2, 0, 0); (81, 19, 25, 3, 0, 0);
(76, 28, 20, 4, 0, 0); (71, 37, 15, 5, 0, 0); (66, 46, 10, 6, 0, 0); (61, 55, 5, 7, 0, 0) and
(56, 64, 0, 8, 0, 0).
• If N6 = 0 and N5 = 1, System (7) becomes:
N1 + N2 + N3 + N4 = 127
−N1 + 2N3 + 5N4 = −25 .
N1 + 4N3 + 25N4 = 175
The solutions of this system are all (N1 , . . . , N4 ) such that: N1 = 75 − 5N4 ;
N2 = 27 + 9N4 and N3 = 25 − 5N4 (which implies N4 ≤ 5). When N4 ranges
over the set {0, 1, 2, 4, 5} the solutions of System (7) are: (75, 27, 25, 0, 1, 0);
(70, 36, 20, 1, 1, 0); (65, 45, 15, 2, 1, 0); (60, 54, 10, 3, 1, 0); (55, 63, 5, 4, 1, 0) and
(50, 72, 0, 5, 1, 0).
Advances in Mathematics of Communications Volume 11, No. 4 (2017), 837–855
Three basic questions on Boolean functions 851
The solutions of this system are all (N1 , . . . , N4 ) such that: N1 = 54 − 5N4 ;
N2 = 62 + 9N4 and N3 = 10 − 5N4 (which implies N4 ≤ 2). When N4 ranges
over the set {0, 1, 2} the solutions of System (7) are: (54, 62, 10, 0, 2, 0); (49, 71,
5, 1, 2, 0) and (44, 80, 0, 2, 2, 0)
• If N6 = 0 and N5 = 3, the equation (L3) in (7) implies N4 = 0 and the
resolution gives N3 < 0 which is impossible.
• N6 = 1 implies N5 = 0 (by the equation (L3) in (7)), and we have the system:
N1 + N2 + N3 + N4 = 127
−N1 + 2N3 + 5N4 = −30 .
N1 + 4N3 + 25N4 = 60
The solutions of this system are all (N1 , . . . , N4 ) such that: N1 = 40 − 5N4 ;
N2 = 82 + 9N4 and N3 = 5 − 5N4 (which implies N4 ≤ 1). In this case, when
N4 ranges over the set {0, 1}, the solutions of System (7) are: (40, 82, 5, 0, 0, 1)
and (35, 91, 0, 1, 0, 1).
This gives the possible distributions of the Walsh transform of g. It remains now
to find a function g with one of these distributions for which there exists a second-
order-bent function f over F72 . But a computer search made by S. Picek for functions
g with such parameters has been unsuccessful.
Other results on second-order-bent Boolean functions over Fn2
Proposition 11. If f is a second-order-bent Boolean function over Fn2 of degree r
with n > 5, then
4(n−1) n+1
• If n ≡ 1 [mod r], then n−3 ≤r≤ 2
4(n−1)
• otherwise, n+1 <r ≤ n+1
2 .
n−1
Da f (x)+b·x
P
to Ha is bent, that is, for every b, the sum x∈Ha (−1) equals ±2 2 .
Hence:
Lemma 2. Given any n-variable second-order-bent function f , there exists a
n−1
Boolean function ϕ over Fn2 × Fn2 such that x∈Ha (−1)Da f (x)+b·x = 2 2 (−1)ϕ(a,b)
P
for every a 6= 0 and every b, and therefore:
n
2 if a = b = 0
0 if a = 0, b 6= 0
X
(9) (−1)Da f (x)+b·x = n+1
x∈Fn
2 2 (−1)ϕ(a,b) if a 6= 0 and a · b = 0
2
0 otherwise.
Remark 9. Since we know that bent Boolean functions are those functions with
maximum nonlinearity, we could imagine that the functions whose second-order
nonlinearity is maximal are the class of second-order-bent functions but this is not
clear. Nothing is known about those functions of maximum second-order nonlinear-
n−1
ity. Note that for a 6= 0, b = 0, Relation (9) implies that wH (Da f ) = 2n−1 ± 2 2
n−3
and then wH (f ) ≥ 2n−2 − 2 2 , which implies (since adding a linear function to f
preserves its 2nd-order bentness) the following bound on the minimum distance to
n−3
quadratic functions: nl2 (f ) ≥ 2n−2 − 2 2 . A better bound
q can be obtained thanks
n−1 1 2n
P
to an inequality from [1]: we have nl2 (f ) ≥ 2 − 2 2 − 2 a∈F n nl1 (Da f ) ≥
2
q p 3n+1
n−1 n+1
2n−1 − 21 22n − 2(2n − 1)(2n−1 − 2 2 ) = 2n−1 − 12 2 2 + 2n − 2 2 . But this
does not prove the non existence of second-order-bent functions since we know that,
asymptotically, functions with such 2nd-order nonlinearity exist (see [1]).
By taking the Fourier transform of both expressions in (9) viewed as functions
of a, we have that (9) is equivalent to the fact that for every b and u:
n+1 P
X 2n + 2 2 a∈Fn2
(−1)ϕ(a,b)+a·u if b = 0
f (x)+f (y)+b·x+(x+y)·u
(−1) = n+1 P
a6=0
x,y∈Fn
2 2 a∈Fn
2
(−1)ϕ(a,b)+a·u if b 6= 0,
2 a6=0,a·b=0
that is:
Proposition 12. Given any n-variable second-order-bent function f , let ϕ over
n−1
Fn2 × Fn2 be such that x∈Ha (−1)Da f (x)+b·x = 2 2 (−1)ϕ(a,b) for every a 6= 0 and
P
every b. Then, defining ϕ(0, b) = 0 and ψ(a, b) = a · b and denoting by ϕ(., b) the
function a 7→ ϕ(a, b), we have:
( n+1 n+1
2n − 2 2 + 2 2 Wϕ(.,b) (u) if b = 0
Wf (b + u)Wf (u) = n+1 n−1
−2 2 + 2 2 Wϕ(.,b) (u) + Wϕ(.,b)+ψ(.,b) (u) if b 6= 0.
n+1 n−1
= 2n δ0 (b) − 2 2 + 2 2 Wϕ(.,b) (u) + Wϕ(.,b)+ψ(.,b) (u) ,
(10)
where δ0 is the Dirac (or Kronecker) symbol.
By taking the Fourier transform of left and right handsides in (10), we have:
X
Wf (b + u)Wf (u)(−1)b·v =
b∈Fn
2
X
Wf (u) Wf (b)(−1)(b+u)·v =
b∈Fn
2
3n+1 n−1
2n − 2 2 δ0 (v) + 2 2 (Wϕ (u, v) + Wϕ+ψ (u, v)) .
Since this last necessary condition is also sufficient (because Relation (10) is equiva-
lent to Relation (9) which characterizes also second-order-bent functions), we have:
Proposition 13. An n-variable Boolean function f is second-order-bent if and only
if there exists a Boolean function ϕ over Fn2 × Fn2 such that, for every u, v:
n+1 −(n+1)
(11) Wf (u) (−1)f (v)+u·v = 1 − 2 2 δ0 (v) + 2 2 (Wϕ (u, v) + Wϕ+ψ (u, v)) ,
where ψ(a, b) = a · b.
Remark 10. Note that (10) for b = 0 and the square of (11) give that, for every v ∈
n+1 n+1
n+1 −(n+1)
2
Fn2 , 2n − 2 2 + 2 2 Wϕ(.,0) (u) = 1 − 2 2 δ0 (v) + 2 2 (Wϕ (u, v) + Wϕ+ψ (u, v)) .
n+1 2 3(n+1) n+1
Hence, 2 2 + Wϕ (u, v) + Wϕ+ψ (u, v) is divisible by 2 2 , that is, 2 2 +
3(n+1) n+1
Wϕ (u, v) + Wϕ+ψ (u, v) is divisible by 2 4 , for every u, v. Then writing 2 2 +
3(n+1)
Wϕ (u, v) + Wϕ+ψ (u, v) = 2 4 λu,v , (11) becomes
n+1 n+1
Wf (u) (−1)f (v)+u·v = −2 2 δ0 (v) + 2 4 λu,v .
The following result gives another characterization of second-order-bent func-
tions, which uses again the Walsh Transform, but does not involve any function like
ϕ:
Proposition 14. Let f be a Boolean function over Fn2 . f is second-order-bent if
and only if for all b, c ∈ Fn2 :
2n+1
X −2
if b 6= 0, c 6= 0, b 6= c
Wf (u + b + c)Wf (u + b)Wf (u + c)Wf (u) = 3 · 2 − 22n+1 if b = c = 0, .
3n
n
u∈F2
23n − 22n+1 otherwise .
Proof. A function f is second-order-bent over Fn2 if and only if x∈Ha (−1)Da f (x)+x·c
P
n−1
= ±2 2 for all a 6= 0, for all c and for every hyperplane Ha (a 6∈ Ha ). This is equiv-
n−1
alent to: x∈F n (−1)Da f (x)+x·c = ±2 2 (1+(−1)c·a ) [i.e. 0 if c·a = 1 and ±2(n+1)/2
P
2
if c·a = 0] for all non zero vector
P a and for all c, which means f is second-order-bent
if and only if for all a and c, x,y∈F n (−1)Da f (x)+Da f (y)+(x+y)·c = (1−δ0 (a))[2n (1+
2
(−1)c·a )] + δ0 (a)[22n δ0 (c)] = 2n (1 + (−1)c·a ) + δ0 (a) (22n δ0 (c) − 2n (1 + (−1)c·a )),
because (1 + (−1)c·a )2 = 2(1 + (−1)c·a ). Applying the Fourier transform to the left
handside and the right handside of this equality viewed as functions of a gives that f
is second-order-bent if and only if for all b, c, x,y,a∈F n (−1)Da f (x)+Da f (y)+(x+y)·c+a·b =
P
2
X 0 0 0 0 0
2−n (−1)f (x)+f (y)+f (x )+f (y )+u·(x+y+x +y )+(x+y)·c+(x+x )·b =
x,y,x0 ,y 0 ,u∈F2n
X
2−n Wf (u + c + b)Wf (u + c)Wf (u + b)Wf (u).
u∈F2n
Hence, f is second-order-bent if and only if:
X
2−n Wf (u + c + b)Wf (u + c)Wf (u + b)Wf (u)
u∈F2n
Acknowledgments
We thank Stjepan Picek who made a search of 7−variable second- order-bent
functions using evolutionary method which did not give positive result.
References
[1] C. Carlet, Recursive lower bounds on the nonlinearity profile of Boolean Functions and their
applications, IEEE Transactions on information Theory, 54 (2008), 1262–1272.
[2] C. Carlet, Boolean and vectorial plateaued functions, and APN functions, IEEE Transactions
on Informations Theory, 61 (2015), 6272–6289.
[3] C. Carlet, Boolean functions for cryptography and error correcting codes, Chapter of the
Monography Boolean Models and Methods in Mathematics, Computer Science, and Engineer-
ing, Y. Crama and P. Hammer eds, Cambridge University Press, (2010), 257–397, Preliminary
version available at http://www.math.univ-paris13.fr/~carlet/chap-fcts-Bool-corr.pdf
[4] C. Carlet and S. Mesnager, Four decades of research on bent functions, Designs, Codes and
Cryptography, 78 (2016), 5–50.
[5] C. Carlet and E. Prouff, On plateaued Boolean functions and theirs constructions, Proceeding
of Fast Software Encryption 2003, Lecture Notes in Computer Science, 2887 (2003), 54–73.
[6] X. Hou and P. Langevin, H-codes and Derivations, Research note, Université de Toulon,
France, 2005.
[7] P. Langevin and P. Solé, Kernels and defaults, Finite Fields and Applications, Contemporary
Mathematics, 225 (1999), 77–85.
[8] R. J. McEliece, Weight congruence for p−ary cyclic codes, Discrete Mathematics, 3 (1972),
177–192.
[9] S. Mesnager, Bent Functions: Fundamentals and Results, Springer Verlag, 2016,
Version available at http://www.math.univ-paris13.fr/~mesnager/Publications/
Contents-Book-bent-Mesnager---copie---copie.pdf
[10] F. Rodier, Asymptotic nonlinearity of Boolean functions, Designs, Codes and Cryptography,
40 (2006), 59–70.
[11] O. S. Rothaus, On “bent” functions, J. Comb. Theory, 20 (1976), 300–305.
[12] A. Salagean and M. Mandache-Salagean, Counting and characterizing functions with “fast
points” for differential attacks, Cryptography and Communications, 9 (2017), 217–239.