Patent val/Properties

This page shows some properties of patent vals as well as generalized patent vals (GPVs), although currently it is all about the latter.

To tell if a val is a GPV

Suppose we have a p-limit val V, to tell if it is a GPV:

For every prime q in the p-limit, solve for n:

[math]\displaystyle{ \displaystyle \operatorname {round} (n \log_2 q) = v_{\pi (q)} }[/math]

Note that [math]\displaystyle{ \pi (n) }[/math] is the prime counting function; that is, the number of prime numbers less than or equal to [math]\displaystyle{ n }[/math]. The solution is

[math]\displaystyle{ \displaystyle \frac {v_{\pi (q)} - 1/2}{\log_2 (q)} \le n < \frac {v_{\pi (q)} + 1/2}{\log_2 (q)} }[/math]

Denote the solution sets as N1, N2, …, Nπ(p). Find their intersection N, that is,

[math]\displaystyle{ \displaystyle N = \bigcap_{i = 1}^{\pi (p)} N_i }[/math]

Then V is a GPV of every edo in N if N is non-empty; otherwise it is not a GPV.

Cardinality

Given a finite prime limit, the set of all GPVs are countably infinite.

Sorting property

Given a finite prime limit, the set of all GPVs can be ordered in this way such that all but one entry in the GPV Vk and its next GPV Vk + 1 are the same, and for the different entry, the latter increments the former by 1.

This property states that, for example, if it is known that 12 19 28] is a GPV, then the next GPV is one of 13 19 28], 12 20 28], or 12 19 29].

This also holds for any rationally independent subgroups, such as 2.3.7 and 2.9.7, and even some rationally dependent subgroups, such as 2.3.9.7. It does not hold, however, for other rationally dependent subgroups, such as 2.3.27.7, where at certain points of edo number n, both the mappings for 3 and 27 get an increment.

Proof
By definition, the p-limit GPV of n-edo is V(n) = round(n log2(Q)), where Q is the prime basis 2 3 5 … p].

To prove the sorting property, we need to prove

  1. For any prime qi in Q, there is a point of n at which vi gets an increment; and
  2. For any distinct primes qi, qj in Q, there is not a point of n at which both vi and vj get an increment;

where an increment of f(x) at x0 is defined as lim xx0+ f(x) = lim xx0 f(x) + 1.

#1 holds immediately following the definition of the round function, and the point is n = (vi + 1/2)/log2(qi).

To prove #2, let us assume there exists such an n. By the definition of the round function, an increment of y = round(x) occurs only if 2xZ. Thus, for any distinct primes qi, qjQ, 2n log2(qi) ∈ Z, and 2n log2(qj) ∈ Z. If that is the case, then their quotient (2n log2(qi))/(2n log2(qj)) = logqj(qi) ∈ Q, which contradicts Gelfond–Schneider theorem. Therefore, the hypothesis is false, and such an n does not exist. [math]\displaystyle{ \square }[/math]

Application

Given a finite prime limit, the above properties offer a way to iterate through all GPVs. To roll forwards:

  1. Enter a GPV. Set i = 1.
  2. Copy the input and increase its i-th entry by 1.
  3. Test if it is a GPV.
  4. If it is, return it and go back to step 1; otherwise, increase i by 1 and go back to step 2.

To roll backwards:

  1. Enter a GPV. Set i = 1.
  2. Copy the input and decrease its i-th entry by 1.
  3. Test if it is a GPV.
  4. If it is, return it and go back to step 1; otherwise, increase i by 1 and go back to step 2.

Notice that the all-zero val is a GPV, so you can always enter it for the first one. It is guaranteed that you can iterate through all GPVs in this method. In practice it is recommended to start with the last entry and going backwards in step 2 for better performance, because the largest prime is most likely to increment.

A more efficient method

We consider the values of [math]\displaystyle{ n }[/math] for which the mapping of a prime increments by a step. The just tuning of a prime [math]\displaystyle{ p }[/math] is [math]\displaystyle{ n\log_2(p) }[/math] steps of [math]\displaystyle{ n }[/math]-edo, and as [math]\displaystyle{ n }[/math] increases, the mapping of prime [math]\displaystyle{ p }[/math] will increase by a step when [math]\displaystyle{ n\log_2(p) }[/math] is a half-integer. In particular, if prime [math]\displaystyle{ p }[/math] is mapped to [math]\displaystyle{ m_p }[/math] steps of [math]\displaystyle{ n }[/math]-edo, the smallest value of [math]\displaystyle{ n }[/math] where prime [math]\displaystyle{ p }[/math] is instead mapped to [math]\displaystyle{ m_p + 1 }[/math] steps occurs when

[math]\displaystyle{ n\log_2 (p) = m_p + \dfrac {1}{2}, }[/math]

and solving for [math]\displaystyle{ n }[/math], we get

[math]\displaystyle{ n = \dfrac {m_p + \tfrac{1}{2}}{\log_2(p)}. }[/math]

If we start from any GPV [math]\displaystyle{ ⟨m_2 \: m_3 \: m_5 \: \dots ] }[/math], we find the list

[math]\displaystyle{ \left[ \dfrac {m_2 + \tfrac{1}{2}}{\log_2(2)} \: \dfrac {m_3 + \tfrac{1}{2}}{\log_2(3)} \: \dots \right], }[/math]

and the next GPV occurs when [math]\displaystyle{ n }[/math] reaches the smallest number in that list, say the one corresponding to prime [math]\displaystyle{ p }[/math]. Then the next GPV increments the mapping of prime [math]\displaystyle{ p }[/math] by one step, while keeping the mappings of all other primes the same. We also add [math]\displaystyle{ \tfrac {1}{\log_2(p)} }[/math] to the entry of the list corresponding to prime [math]\displaystyle{ p }[/math]. We repeat the steps of finding the smallest entry in the list, incrementing the mapping of the corresponding prime by one step, and adding [math]\displaystyle{ \tfrac {1}{\log_2(p)} }[/math] to the corresponding entry in the list to repeatedly find the next GPV.