Lector and mentor of Boolean functions

Studies of Boolean functions

The mentor is a rather dubious soft property of a BF. But it seems surprisingly interesting.
It is found in three steps: Creating a family matrix, getting the senior nobles of its rows, and getting their prefects.
The first digits of the prefects form the mentor.

Ж 24     Ж 25

The following images are the 4-ary equivalents of those above. The results are either the same as above, or the complement.

Walsh permutations

A Boolean function has a unique mentor for a given arity. The map between mentors can be expressed by four different Walsh permutations.
(That is, because a BF can be denoted by its truth table or by its Zhegalkin index. In the images above, they are shown red and green.)
In all there are six Walsh permutations, which shall be denoted by Cyrillic letters:     Ж (Zhe),     Ч (Che), Ш (Sha),   Ю (Yu), Я (Ya),     Щ (Shcha)
Their degree is , i.e. they correspond to invertible binary matrices.
(The letter Ж is used in two different ways: On its own it represents the permutation. Followed by an integer it represents a BF, identified by its Zhegalkin index.)

Ч = Ж·Ш·Ж = Я·Ж = Ж·Ю       map between truth tables
Ш = Ж·Ч·Ж = Ю·Ж = Ж·Я       map between Zhegalkin indices

Ю = Ж·Я·Ж = Ш·Ж = Ж·Ч       map from truth tables to Zhegalkin indices
Я = Ж·Ю·Ж = Ч·Ж = Ж·Ш       map from Zhegalkin indices to truth tables

Ч and Ш are both self-inverse. Ю and Я are inverse to each other.

The matrix of Щ is part of a top right Sierpinki triangle. Its diagonals follow a negated XOR pattern. (See image.)
The matrix of Ш is almost the same, but with the top right entry inverted.
The matrix of Ч is a family matrix. Its top row is related to that of the Ш matrix. The calculation involves the Zhegalkin twin and reversing the truth table.

See the fixed points of Ч and Ш ordered by weight: Ч, Ш

1-ary

The permutations are all six Walsh permutations of degree 2.       Ч = (0, 2, 1, 3)       Ш = (0, 1, 3, 2)       Щ = I (neutral permutation)

2-ary

Ч = Ш = I (neutral permutation)       Ю = Я = Ж       Щ = (0, 1, 2, 3,   4, 5, 6, 7,   9, 8, 11, 10,   13, 12, 15, 14)

3-ary

Place 199 can be used to check, if the permutations are correct:        Ж(199) = 217        Ч(199) = 174    Ю(199) = 206    Я(199) = 79    Ш(199) = 209        Щ(199) = 208        (See image.)

Permutation Я is related to quarter sharpness, which is seen in these images.

4-ary

Ж
Ч:   T to T
Ю:   T to Z
Я:   Z to T
Ш:   Z to Z
Щ

seminars

The mentor is not simply a bijection between Boolean functions, but between the truth tables for a given arity.
The permutation from Zhegalkin indices to those of their n-ary mentors is Шn. The beginning of Шn+1 is Щn. (This letter has a little hook on the right.)
These two permutations are very similar. They are equal in the first half, and differ by exchanged neighbors in the second.

Neighboring Zhegalkin indices (i.e. 2·n and 2·n+1) denote complements.
So although there is no mentor bijection between Boolean functions, there is one between pairs of complements.
Complement and mentor partition the set of all Boolean functions into blocks of size 4 or 2. Such a block shall be called (big or small) seminar.
The Zhegalkin indices in a big seminar are with even and , so it can be represented by the pair .
An example of a seminar is {138, 139, 156, 157}, represented as (138, 156). See image. In the permutation it is represented by the pair (69, 78).

The pairs are the cycles of a self-inverse Walsh permutation of degree . (For arity 3 the degree is 7, and the permuted integers are 0...127.)
For arities 1 and 2 this permutation is neutral. For arity 3 is has 64 fixed points (of 128 places, i.e. 1/2). For arity 5 it has 1024 fixed points (of 32768 places, i.e. 1/32).

For arity 3 the Boolean functions in big seminars are the sharp ones (i.e. those with odd weight). See images.

For a given arity, each seminar is part of a chunky seminar. For arity 3 they all have size 16. E.g. (142, 152), (230, 240), 14, 24, 102, 112 are all part of this.

chains

The permutations Ю and Я have fewer fixed points and longer cycles than Ч and Ш.
A cycle of Ю shall be called chain. (Cycles of Я are the same, but reversed.)
The XOR of all entries of a chain is one of the fixed points, and shall be called anchor. The fixed points are nobles.

tables of chains: 3-ary (4 fixed points), 4-ary (8 fixed points)

3-ary partitions: chain, chain length, chain quadrants, reduced chain quadrants, chunky chain, anchor