It is not easy to show (weak) normality for a given function, and it is even harder to disprove (weak) normality. There is no approach known, how to prove non-weak-normality by hand. In [2, 14], to show the non-weak-normality of some Boolean bent function in dimension 10,12,14, a computer algorithm is used, see [2]. In this section, based on the principles of the algorithm for Boolean functions in [2], we develop an algorithm for p-ary functions.
Similarly as in [2] for Boolean functions, the strategy is to combine cosets of a subspace U of dimension s on which f is a fixed constant c to an affine subspace of dimension s + 1 on which f is constant c. Differently to the Boolean case, where the union of two cosets of a linear subspace U is always an affine subspace, the union of p cosets of a subspace U of \({{\mathbb F}_{p}^{n}}\) is in general not an affine subspace. Hence the algorithm in [2] does not transfer straightforward to p-ary functions. To generate a complete list of the cosets of a subspace U (without repetitions) we fix a complement U
c of U. We then get a partition of \({{\mathbb F}_{p}^{n}}\) into cosets of U as {a + U : a ∈ U
c}. We will use the following two simple lemmas for which we include the proof for the convenience of the reader.
Lemma 3
Let U be a linear subspace of \(\mathbb {V}_{n}={{\mathbb F}_{p}^{n}}\) of dimension s < n
, let U
c be a complement of U and let a
1, a
2,…,a
p
be distinct elements of U
c. Then the union
$$\bigcup_{i = 1}^{p}(a_{i}+U) $$
is an affine subspace a
1 + U
′ of dimension s + 1, if and only if {a
1, a
2,…,a
p
} is an affine subspace {a
1 + (a
2 − a
1)t : 0 ≤ t ≤ p − 1} of U
c. Then
$$a_{1}+U^{\prime} = a_{1} + \langle a_{2}-a_{1}\rangle + U. $$
In particular, for p = 3, \(\bigcup _{i = 1}^{p}(a_{i}+U)\) is an affine subspace if and only if a
1 + a
2 + a
3 = 0.
Proof
First assume that {a
1, a
2,…,a
p
} is an affine subspace which w.l.o.g. we can write as a
1 + 〈a
0〉 with a
0 = a
2 − a
1. Then
$$\bigcup_{i = 1}^{p} (a_{i}+U) = \bigcup_{t = 0}^{p-1} (a_{1}+t(a_{2}-a_{1})+U) = a_{1} + \bigcup_{i = 0}^{p-1} (t(a_{2}-a_{1})+U) = a_{1}+\langle a_{0}\rangle + U. $$
Since 0≠a
0 = a
2 − a
1 ∈ U
c implies a
0∉U, the dimension of U
′ := 〈a
0〉 + U is s + 1.
Conversely, let the union \(\bigcup _{i = 1}^{p}(a_{i}+U) = a_{1}+U^{\prime }\) be an affine subspace for some pairwise distinct a
1,…,a
p
∈ U
c. Again we have a
0 = a
2 − a
1∉U, but a
2 − a
1 ∈ U
′. Hence we can write U
′ as 〈a
0〉 + U. For 1 < s ≤ p we can write the element a
s
− a
1 of U
′ as a
s
− a
1 = u + t
a
0 for some \(t\in {\mathbb F}_{p}\) and u ∈ U. Hence γ = a
s
− a
1 − t
a
0 = u ∈ U. Since γ ∈ U
c we must have γ = u = 0, and hence a
s
= a
1 + t
a
0. □
Lemma 4
Let f be a function from \(\mathbb {V}_{n}\) to \({\mathbb F}_{p}\) and A = a
1 + U
′ be an affine subspace of dimension s + 1 ≤ n of \(\mathbb {V}_{n}\). Then the restriction of f to A is affine but nonconstant if and only if U
′ = 〈a
0〉 + U
such that f is constant on each coset (a
1 + t
a
0) + U
of U, and affine (but nonconstant) on a
1 + 〈a
0〉.
Remark 1
The function f is then constant on the cosets a
1 + t
a
0 + U of U, 0 ≤ t ≤ p − 1, with pairwise distinct constants for pairwise distinct 0 ≤ t
1, t
2 ≤ p − 1. For the special case that p =3, the condition in Lemma 4 simplifies: The function f is affine (but not constant) on a + U if and only if a + U is the union of three affine subspaces a
1 + U
′, a
2 + U
′, a
3 + U
′ for a subspace U
′ of \({{\mathbb F}_{3}^{m}}\) of dimension s −1, such that \(f_{|(a_{1}+U^{\prime })}=c\), \(f_{|(a_{2}+U^{\prime })}=c + 1\) and f
|(a
3+U
′) = c + 2.
Proof of the Lemma
Let f be affine on A, i.e. there exists a linear function L such that f(a
1 + u
′) = L(u
′) + f(a
1) for u
′∈ U
′. Since we suppose that f is not constant on A, the linear function L is not the zero-function on U
′, hence has an s-dimensional kernel U in U
′. We can write U
′ as U
′ = 〈a
0〉 + U for some a
0 ∈ U
′∖ U, and observe that for all \(t\in {\mathbb F}_{p}\) and u ∈ U,
$$f(a_{1}+ta_{0}+u) = L(ta_{0}+u) + f(a_{1}) = tL(a_{0})+L(u)+f(a_{1}) = tL(a_{0})+f(a_{1}). $$
In particular, f is affine on a
1 + 〈a
0〉, and constant t
L(a
0) + f(a
1) on a
1 + t
a
0 + U for every fixed t.
Conversely let A = a
1 + 〈a
0〉 + U, and suppose that f is constant on (a
1 + t
a
0) + U for every fixed 0 ≤ t ≤ p − 1, and affine on a
1 + 〈a
0〉. Then for some linear function L we have
$$f(a_{1}+ta_{0}+u) = f(a_{1}+ta_{0}) = tL(a_{0})+f(a_{1}), $$
Hence f is affine on a
1 + U
′. (Note that U is in the kernel of L). □
Lemma 3 and Lemma 4 suggest the following procedure to construct an affine subspace of dimension s + 1 on which \(f:{{\mathbb F}_{p}^{n}}\rightarrow {\mathbb F}_{p}\) is constant, from such affine subspaces of dimension s. For a linear subspace U of dimension s fix a complement U
c and find a
1,…,a
p
∈ U
c such that f is constant with the same c on all affine subspaces a
1 + U,…,a
p
+ U. If {a
1,…a
p
} form a one-dimensional affine subspace, then take the union of those cosets. Note that this union then equals a
1 + U
′ with U
′ = 〈U, a
2 − a
1〉. (In the following we use the term 1-flat for a one-dimensional affine subspace.)
We applied our algorithm to several known bent functions, and observed that many of them are in fact weakly k-normal with k as large as the theory allows. But we also found examples with a different behaviour. We collect some of the experimental results, which we find interesting in the following. For the first two examples we choose bent functions which have maximal possible normality. The other functions we present below do not meet the upper bound on k-normality.
-
I The weakly regular and not regular Coulter-Matthews bent function \(\text {Tr}_{6}(\xi ^{3} x^{{(3^{7}+ 1)/2)}})\) from \({\mathbb F}_{3^{6}}\) to \({\mathbb F}_{3}\), where ξ is a primitive element of \({\mathbb F}_{3^{6}}\), is 2-normal.
-
II The regular bent function in dimension 4, Tr4(ξ
138
x
24 + ξ
184
x
336), from \({\mathbb F}_{5^{4}}\) to \({\mathbb F}_{5}\),where ξ is a primitive element of \({\mathbb F}_{5^{4}}\), is 2-normal (Ex.7.1 in [15]).
-
III The weakly regular Coulter-Matthews bent function in odd dimension 7, \(\text {Tr}_{7}(\xi ^{6} x^{(3^{9}+ 1)/2)})\), where ξ is a primitive element of \({\mathbb F}_{3^{7}}\), is 2-normal but not (weakly) 3-normal.
-
IV The weakly regular Coulter-Matthews bent function in odd dimension 9, \(\text {Tr}_{9}(\xi ^{5} x^{(3^{11}+ 1)/2)})\), where ξ is a primitive element of \({\mathbb F}_{3^{9}}\), is 3-normal but not (weakly) 4-normal.
-
V The non-weakly regular bent function \(g_{1}:{\mathbb F}_{3^{6}}\rightarrow {\mathbb F}_{3}\) with g
1(x) = Tr6(ξ
7
x
98) where ξ is a primitive element of \({\mathbb F}_{3^{6}}\), is not (weakly) normal.
-
VI The non-weakly regular bent function \(g_{2}:{\mathbb F}_{3^{6}}\rightarrow {\mathbb F}_{3}\) with g
2(x) = Tr6(ξ
7
x
14 + ξ
35
x
70), where ξ is a primitive element of \({\mathbb F}_{3^{6}}\), is not (weakly) normal.
-
VII The non-weakly regular bent function \(F:{\mathbb F}_{3^{4}}{\times {\mathbb F}_{3}^{2}}\rightarrow {\mathbb F}_{3}\) with F(x, y
1, y
2) = Tr4(x
2) + (y
1 +Tr4(ξ
73x
2))(y
2 +Tr4(ξ
76x
2)), where ξ is a primitive element of \({\mathbb F}_{3^{4}}\), is not (weakly) normal.
Examples III and IV are both bent functions in odd dimension, which are not (weakly) (n − 1)/2-normal. As our experimental results indicate, being solely ((n − 1)/2 − 1)-normal seems to be the typical behaviour of Coulter-Matthews bent functions in odd dimension. To the best of our knowledge, the last three examples are the first (non-binary) examples of bent functions in even dimension (not in the class of weakly regular but not regular bent functions) which are shown to be not (weakly) normal. Though we do not see a causal relationship between bent functions without a bent dual and non-normality, we note that all functions in V,VI,VII are non-weakly regular bent functions for which the dual is not bent, see [6, 8].
Once a bent function in dimension n is known which is not (weakly) k-normal for some k, we can construct bent functions in any dimension N = n + 2s, s ≥ 1, that is not (weakly) (k + s)-normal, applying the following lemma which is a generalization of Lemma 25 in [2] for Boolean functions in dimension n and k = n/2. In particular we can construct not weakly normal (not weakly (N − 1)/2, N/2 − 1-normal) bent functions in dimension N, starting from such bent functions in dimension n.
Lemma 5
For a
p-ary function
\(f:{{\mathbb F}_{p}^{n}}\rightarrow {\mathbb F}_{p}\)
the following properties are equivalent.
-
(1) f is (weakly)
k-normal,
-
(2) \(g:{{\mathbb F}_{p}^{n}}{\times {\mathbb F}_{p}^{2}}\rightarrow {\mathbb F}_{p}\) given by g(x, y, z) = f(x) + y
z
is (weakly) (k + 1)-normal.
In particular,
f is (weakly) normal if and only if
g is weakly normal (
n even).
Proof
First suppose that f is (weakly) k-normal, and E is a k-dimensional affine subspace restricted to which f is constant (affine). Then g is constant (affine) on the (k + 1)-dimensional affine subspace \(E^{\prime } = \{(x,y,0) \,:\,x\in E, y\in {\mathbb F}_{p}\}\) of \({{\mathbb F}_{p}^{n}}{\times {\mathbb F}_{p}^{2}}\).
Conversely suppose that g is weakly (k + 1)-normal, and let E
′ = w + U
′, w = (w
1, w
2, w
3), be a (k + 1)-dimensional affine subspace of \({{\mathbb F}_{p}^{n}}{\times {\mathbb F}_{p}^{2}}\) restricted to which g is constant or affine. Then for (x, y, z) ∈ E
′ we have
$$ g(x,y,z) = \langle\gamma,x\rangle + \alpha y + \beta z + c $$
(4)
for some \(\gamma {\in {\mathbb F}_{p}^{n}}\), \(\alpha ,\beta ,c\in {\mathbb F}_{p}\). For \(a,b\in {\mathbb F}_{p}\) define
$$ E_{a,b} = \{x{\in{\mathbb F}_{p}^{n}}\,:\,(x,a,b) \in E^{\prime}\}. $$
(5)
If \(\bar {x}\in E_{a,b}\), then \(E_{a,b} = \bar {x} + U\), where U is the subspace of \({{\mathbb F}_{p}^{n}}\) given by \(U = \{x{\in {\mathbb F}_{p}^{n}}\,:\, (x,0,0) \in U^{\prime }\}\) (straightforward). Observe that restricted to E
a, b
, the function
$$ f(x)-\langle\gamma,x\rangle = \alpha a + \beta b + c - ab $$
(6)
is constant. If U has dimension k we are done. Suppose that dim(U) < k. Since E
′ is the union \(\bigcup _{a,b}\{(x,a,b)\,:\,x\in E_{a,b}\}\) (some E
a, b
may be the same, some the empty set), we have \(p^{k + 1} = |E^{\prime }| \le {\sum }_{a,b}|E_{a,b}|\). As we assume that dim(U) < k, this implies that dim(U) = k − 1, i.e. |E
a, b
| = p
k− 1 for all \((a,b){\in {\mathbb F}_{p}^{2}}\) and all E
a, b
are distinct. We then define E as the disjoint union
$$E = \bigcup_{a\in{\mathbb F}_{p}}E_{a,\alpha} = \bar{x} + \bar{U} $$
for an element \(\bar {x}\in E\), where \(\bar {U} = \{x{\in {\mathbb F}_{p}^{n}}\,:\,(x,a,0)\in E^{\prime }\;\text {for some}\;a \in {\mathbb F}_{p}\}\), and observe that f(x) −〈γ, x〉 = β
α + c is constant on this k-dimensional affine subspace. □
Combining our sporadic examples in low dimension with Lemma 5 we get the following result.
Theorem 1
There are not (weakly) normal ternary bent functions, which do not belong to the class of bent functions which are weakly regular but not regular, in every even dimension n ≥ 6.
We remark that since our sporadic examples, Examples V, VI, VII, are non-weakly regular bent functions for which the dual is not bent, by [8, Theorem 2] all bent functions obtained from these functions with Lemma 5 also have this property. To the best of our knowledge, no example for a regular p-ary bent function which is not (weakly) normal is known.