Serration of Boolean functions

Studies of Boolean functions

The serrations of a Boolean function refine the concept of sharpness, i.e. the parity of the weight of a truth table.
Serration separates the truth table into smaller parts of length . is the sharpness of part .

For an -ary BF is essentially the sharpness, may be called half sharpness, quarter sharpness, etc.
Illustrations for 3-ary BF:   sharpness,   half sharpness,   quarter sharpness

A BF with adicity has a truth table with period length . It has meaningful serrations for .

  • is the BF itself. (Part length is 1.)
  • is the tautology/contradiction, iff the BF is sharp/blunt. (Part length is the period length of the truth table.)
  • for is the contradiction. (Part length is at least twice the period length, so each part has even weight.)

The XOR of all serrations of a BF shall be called its serrator. Each BF has a unique serrator, i.e. they form a permutation.

The following images show the initial BF in red, its serrations in yellow, and its serrator in green.

Yellow truth tables in the same row show the same pattern, but on the left the entries have length .
Left: Dark yellow rectangles contain an odd number of red circles.   Right: Dark green squares have an odd number of dark yellow squares above them.

0101 0110 1100 0100   (sharp)

Serrator permutation

The serrator is a hard property of a BF, i.e. it does not depend on the arity.
The permutation from Zhegalkin indices to those of the serrators is an infinite Walsh permutation.
Its vector is the sequence 1, 3, 4, 11, 16, 36, 64, 139, 256, 528, 1024, 2084, 4096, 8256, 16384, 32907, 65536... = A127804.
The corresponding matrix is upper triangular, with entries on diagonals with different angles. (See this illustration of the transposed matrix.)
The vector of the inverse Walsh permutation is the sequence 1, 3, 4, 10, 16, 36, 64, 136, 256, 528, 1024, 2080, 4096, 8256, 16384, 32896, 65536... = A051437

The following tables show the invertible matrices corresponding to these Walsh permutations.

serrator permutation

The BF that are their own serrator are those with truth tables streched by 2. Their Zhegalkin indices form the Moser–de Bruijn sequence A000695.