GATES — what a reader of words decides, and what it pays

The object: one channel F_p of a squarefree ring (LOGIC), its units a cyclic group of order n = p − 1, and a reader holding L leaves x_1, … , x_L, written a, b or x where one or two are in play. The reader builds words from the leaves with the operations of its alphabet and reads each word through the ladder's gates (LOGIC: The ladder), G_m(w) = [w^m = 1] for m | n; a readout is any Boolean function of finitely many gate bits. A shadow, a predicate on residues (LOGIC), is read here on leaf tuples as the set of tuples where it holds, and the reader decides it when some readout equals membership at every tuple. A ring gate reads 1 exactly when every channel's gate does; every claim here is about one channel.

READER                   DECIDES EXACTLY                WALL
the pair ◇, □            two bits per leaf, and the     a AND NOT a: the
 (LOGIC)                 envelope they bound            floor stuck at 0
the ladder G_m           the profile (ord a,            relative order,
 (LOGIC, one leaf)       ord(1 − a))                    [ab = 1]
monomial words           a unit leaf tuple up to one    any shadow that
                         power map x_i ↦ x_i^u; at the  splits an orbit
                         gate count the orbit-cost
                         theorem prices, each orbit
a letter list, e.g.      the letter tuple up to one     the next letter:
 {a, b, 1 − a, 1 − b}    power map; the ±1-ratio lines  [a + b = 3], p = 7
                         among what that decides
the meadow closure       every shadow; [x = c] at one   none: the price
                         gate                           moves into word
                                                        operations

Other terms are defined in their row's section, the first two rows' in LOGIC.

The word orbits

Tier: known.
Source: R. C. Alperin and B. L. Peterson, Integral sets and Cayley graphs of finite groups, Electron. J. Combin. 19 (2012), paper 44, Theorem 2.2.
Verifier: proof; gates.py::section_w.

Over the monomial alphabet (MUL, the product, and INV, the meadow inverse, x⁻¹ on a unit and 0 at 0, the power x^(n−1) on a unit leaf) a word is a monomial x^e = ∏ x_i^(e_i), e ∈ (Z/n)^L; in this section x is the whole tuple (x_1, … , x_L). Two unit tuples x and x′ give every word the same gate bits iff x′ = (x_1^u, … , x_L^u) for one unit u mod n. So a shadow on unit tuples is decided iff it is constant on the orbits of the maps x ↦ x^u.

Proof. The evaluation map ev_x: e ↦ x^e is a homomorphism (Z/n)^L → F_p^×, and the bits G_1(x^e) are its kernel. Two tuples with one kernel have images of equal order in a cyclic group, hence one image H, and ev_x′ = β ∘ ev_x for an automorphism β of H. An automorphism of a cyclic group is a power map y ↦ y^u with u prime to |H|, and u lifts to a unit mod n, so x′_i = x_i^u for every i. Conversely x ↦ x^u preserves every order. An orbit-constant shadow is a union of finitely many orbits, each cut out by finitely many gates.

In discrete-log (dlog) coordinates the gate shadows generate the Boolean algebra of the subgroups of (Z/n)^L, whose atoms the source finds to be the generator sets of the cyclic subgroups: the orbits. The G_1 bits alone carry the theorem. What it adds over the one-leaf ladder is relative order: with a primitive leaf a, the word bits pin b's dlog to the base a, so b is fixed once a is, and [ab = 1], which at p = 7 escapes every pair of one-leaf readers (LOGIC: The ladder's reach), is the gate G_1(ab). Three orders do not suffice: in F_17 the dlog pairs (1, 2) and (1, 6) to the base 3, (a, b) = (3, 9) and (3, 15), share (ord a, ord b, ord ab) = (16, 8, 16) and lie in different orbits. The two-leaf gates G_m(ab⁻¹) read [ord(a/b) | m], that is dlog a ≡ dlog b mod n/m, shadows nested as the divisors m are by divisibility.

The crystallographic skeleton

Tier: theorem.
Verifier: proof; gates.py::section_x.

Call a tuple stable for a shadow when its whole orbit lies inside it. On a line a + b = c with c ≠ 0 and p ≥ 5 the stable unit points are exactly:

c = 2      (1, 1)
c = −2     (−1, −1)
c = −1     (z, z⁻¹), ord z = 3     present iff p ≡ 1 mod 3
c = 1      (z, z⁻¹), ord z = 6     present iff p ≡ 1 mod 3
other c    none

The line c = 0 is the coset shadow [ab⁻¹ = −1] and wholly stable; the order-4 pairs lie on it. Every line c ≠ 0 is undecided by monomial words in the leaves at every p ≥ 5, and every shadow on unit tuples is decided at p = 3.

Proof. The unit u = −1 sends a point of the line to one with a⁻¹ + b⁻¹ = c, that is (a + b)/(ab) = c, so ab = 1 and a + a⁻¹ = c. Stability under every unit then puts every primitive d-th root z, d = ord a, on z + z⁻¹ = c, that is z² − cz + 1 = 0: φ(d) ≤ 2, so d ∈ {1, 2, 3, 4, 6}, and d = 4 has trace 0. A line c ≠ 0 holds p − 2 unit points and at most two stable ones, so some orbit straddles it. At p = 3 the only unit mod 2 is 1, and every orbit is a point.

The list is the crystallographic restriction's, whose reason is this count's twin: over Q a primitive d-th root of unity has degree φ(d), and one shared trace allows degree at most 2. Curves past the line are TORSION's.

The alphabet ladder

Tier: theorem.
Verifier: proof; gates.py::section_a.

Fix a finite list of letters, ring polynomials in the leaves: the leaves alone, or a and 1 − a, or a, b, 1 − a and 1 − b. Monomials in the letters read the letter tuple up to one shared power map, every letter raised to one u, by the word orbits applied to the letters, so on tuples whose letters are units a letter list decides exactly the shadows constant on each set of tuples whose letter tuples share an orbit. (A letter reading 0 makes every word it appears in read 0, and G_n of the letter reads whether it vanishes.) Among monomials, more in the same letters decide nothing new, and only a new letter splits an orbit.

On tuples whose letters are units, the letters {a, b, 1 − a, 1 − b} decide the eight lines on which a letter ratio r is ±1 (a + b ∈ {0, 1, 2}, a − b ∈ {0, 1, −1}, and 2a = 1, 2b = 1 from one leaf each): r = 1 is the one gate G_1(r), and r = −1, a coset, is G_2(r) and not G_1(r). At p = 7 the pairs (3, 3) and (5, 5) share a four-letter orbit (u = 5) and only the second lies on a + b = 3.

The meadow closure

Tier: theorem.
Verifier: proof; gates.py::section_a.

With NOT (NOT x = 1 − x) applied to words as well as to letters, one graded leaf, a unit other than 1, makes every constant, and every shadow is decided. For a unit a ≠ 1,

NOT(a⁻¹) · (NOT a)⁻¹ · a = ((a − 1)/a) · (1/(1 − a)) · a = −1,

then 2 = NOT(−1) and c = NOT(−1 · (c − 1)) by induction, so for every residue c a word w_c reads c at every unit other than 1. For graded c and the leaf x, G_1(x · w_c(x)⁻¹) reads [x = c] except where it misfires: on {0, 1} every word reads 0 or 1, so only at x = 1, where every w_c built by the induction, c = −1 included, reads 1 (the identity's −1 word reads 0 there), and a second gate, G_1(x), read negated, masks it. The mask can be dropped: the identity's word m reads 0 at x = 0 and x = 1, so v_c = m · w_(−c), with v_(−1) = m, reads c at every graded x and 0 on {0, 1}, and G_1(x · v_c(x)⁻¹) alone is [x = c]. [x = 1] is G_1(x) and [x = 0] is G_n(x) read negated. A tuple is pinned leaf by leaf, so every shadow of any number of leaves is a readout of these gates. So the word orbits' obstruction, a shadow that splits an orbit, belongs to a fixed letter list.

The orbit-cost theorem

Tier: theorem.
Verifier: proof; gates.py::section_o.

In discrete-log coordinates the monomial gate shadows are exactly the character kernels of V = (Z/n)^L. Let C = ⟨v⟩ have order d, let O be its generators, v's multiples by the units, and let r(C) be the rank of V/C, the least number of characters whose common kernel is C. With ω(d) the number of primes dividing d, deciding O costs exactly r(C) + ω(d) gates, and the proof holds for any finite abelian V.

Proof. A kernel K either contains C, a cut gate, or meets C in a proper subgroup, a separator of restriction order ε = [C : C ∩ K], called its order below. All of O shares one bit pattern, so a family decides O iff the atom holding O, the points sharing its bits, is O itself: with τ cut gates meeting in D ⊇ C and s separators, every point of D outside O lies in some separator's kernel. A separator ψ kills a point when its kernel holds it: the point ξ + uv of a coset, at position u, exactly when uψ(v) = −ψ(ξ), a condition on u mod ε.

The other primes of d hold ω(d) − 1 forced separators of other orders, so s ≥ ω(d) + ρ; if t ∤ d, ρ = 0 and the forced ones suffice. The cost is at least r(C) + ω(d).

One unit leaf, V of rank 1: [ord x = d] costs ω(d) + 1, or ω(n) at d = n, and a divisor filter [ord x | m] costs 1, or 0 at m = n, where it is constant. At two leaves r(C) = 1 iff d = n, and 2 otherwise. So the order-6 residue pair on a + b = 1, the skeleton's, costs 3 gates at p = 7, where d = n, and 4 at p = 13.

The height floor

Tier: theorem; rule (the heights, verified p = 5 and 7).
Verifier: proof; gates.py::section_h, height_ceiling.py::word, height_ceiling.py::family.

At the meadow level [x = c] costs one gate, so the price moves into word operations. Let the height h_p(c) be the fewest operations (MUL, INV, NOT) in a one-leaf word reading c at every unit other than 1. Then, over graded c,

max_c h_p(c)  ≥  f_p = min{t : W(0) + … + W(t) ≥ p − 2},
W(0) = 1,  W(t) = 2W(t − 1) + Σ_{i+j=t−1} W(i)W(j),

W(t) counts the words of cost exactly t whatever p is, and each graded constant needs a word of its own. The route of the meadow closure decides [x = c] with h_p(c) + 2 operations and the mask, or h_p(−c) + 9 and none (8 at c = −1), and h_p(−1) ≤ 6 by its identity.

The floor is a count, logarithmic in p: W(t) ≥ 3W(t − 1), the sum holding W(0)W(t − 1), and W(t) ≤ (1 + √3)(4 + 2√3)^t: at y₀ = 1 − √3/2 = 1/(4 + 2√3), the singularity of the generating function G = 1 + 2yG + yG², the partial sums of Σ W(t)y₀^t obey S_N ≤ 1 + 2y₀S_(N−1) + y₀S_(N−1)², an increasing map with fixed point 1 + √3. Integer words bound the height from above: for p ≥ 5

max_c h_p(c)  ≤  9⌊log₂(p − 3)⌋ + 6,

so the largest height is of order log p: at least (1 − o(1)) ln p / ln(4 + 2√3), about 0.497 ln p, and at most 9 log₂ p + 6, under 12.99 ln p + 6.

Proof. With m = −1 at 6 operations, w₂ = NOT m reads 2 at 7, and from a word w_z reading the integer z, MUL(w₂, w_z) reads y = 2z at 8 operations more and its NOT reads y = 1 − 2z at 9 more. Take z = y/2 at even y and (1 − y)/2 at odd: |z| ≤ (|y| + 1)/2, so v = |y| − 1 obeys v′ ≤ ⌊v/2⌋. From c's balanced representative, neither 0 nor 1, |y| ≤ (p − 1)/2, so v ≤ (p − 3)/2 and |y| ≤ 1 comes within ⌊log₂(p − 3)⌋ steps of at most 9. The descent stops at −1 (6 operations) or at 2 (7); z is 0 only from y = 0 or 1 and 1 only from y = 2 or −1, so it meets neither 0 nor 1. A stop at 2 after k steps began at v ≥ 2^k, so k is under the step bound and 9k + 7 under the ceiling. A word is a tree, so w₂ is paid again at every step.

Both bounds are loose where the heights are known. At p = 5 and 7 the exact heights reach 7 and 11 against floors 1 and 2 and ceilings 15 and 24, h_p(−1) = 6 at both, and the integer word for 3 at p = 5, from −2, costs 14 against h_5(3) = 7. The lim inf and lim sup of max_c h_p(c) over ln p, between the two constants, are open.