Nullius Labs
No. 005◐ REPRODUCED2026-11-25

Disproved: For each k>=2 the 2-adic valuation of t_{2^k+1}(2^k n+j) depends only on v_2(n+1), strictly increasingly

A public claim that this conjecture is false. We rebuilt the claimed counterexample from scratch and two separately written checkers confirmed it in exact arithmetic. Both sides of this check came from the same AI model, because the second model was unavailable. Machine-checked; not peer reviewed.

Source paper · original claim

Rerun it yourself: download the certificate and a checker, then

python3 checker_b.py certificate.json

Statement, as tested

Download statement.md
# For each k>=2 the 2-adic valuation of t_{2^k+1}(2^k n+j) depends only on v_2(n+1), strictly increasingly

Source: https://arxiv.org/abs/1703.01955


Public claim to check: https://github.com/1337isnot1337/solved-conjectures/tree/main/results/gawron-miska-ulas-thue-morse-valuation

Conjecture 5.2 of Gawron, Miska, Ulas, 'Arithmetic properties of coefficients of power series expansion of prod_{n>=0} (1 - x^{2^n})^t (with an Appendix by Andrzej Schinzel)', arXiv:1703.01955, Section 5 (published Monatsh. Math. 185 (2018) 307-360, doi:10.1007/s00605-017-1041-2); statement read from the arXiv HTML. Definitions: F_t(x) = prod_{n>=0} (1 - x^{2^n})^t = sum_{n>=0} f_n(t) x^n as formal power series; for a positive integer m, t_m(n) = f_n(m), i.e. the coefficient of x^n in (prod_{i>=0} (1 - x^{2^i}))^m, equivalently the m-fold convolution of the Prouhet-Thue-Morse sequence ((-1)^{s_2(n)}); nu_2 is the 2-adic valuation; N = {0,1,2,...}. Conjecture 5.2: For each n in N, (i) nu_2(t_5(4n+j)) = 4*ceil(nu_2(n+1)/2) - (nu_2(n+1) mod 2) for j in {0,1,2,3}; (ii) nu_2(t_9(8n+j)) = 5*ceil(nu_2(n+1)/2) - 2*(nu_2(n+1) mod 2) for j in {0,...,7}. 'In general, for each k in N_{>=2} there exists a strictly increasing sequence (A_{k,n})_{n in N} of nonnegative integers such that A_{k,0} = 0 and nu_2(t_{2^k+1}(2^k n + j)) = A_{k,nu_2(n+1)} for each n in N and j in {0,1,...,2^k - 1}.' In particular the general clause requires nu_2(t_{2^k+1}(.)) to be constant on each block {2^k n, ..., 2^k n + 2^k - 1}.

Repository claim: the general ('for each k >= 2') clause is FALSE; the explicit formulas (i), (ii) for exponents 5 and 9 are not challenged (the repo says they were proved by Shen-Wang, arXiv:2606.28718). Counterexample objects, in results/gawron-miska-ulas-thue-morse-valuation/PROOF.md (checker check.py; Lean: lean/Conjectures/ThueMorseValuation*.lean; AUDIT.md): (a) k = 4, exponent m = 17, block n = 31, j = 7 and 8: t_17(503) = -382073745322860227067904 with nu_2 = 18, and t_17(504) = -98392455150140920430592 with nu_2 = 19; both indices lie in the block 16*31 + j, so the valuation is not constant on the block. (b) for every k >= 11, m = 2^k + 1, N = 25*2^(k-3) = 3*2^k + 2^(k-3): nu_2(t_m(N-1)) = 11 and nu_2(t_m(N)) = 10, both in block n = 3; base case k = 11: t_2049(6399) = 2048 and t_2049(6400) = 3072 mod 4096, lifted to all k >= 11 by a congruence argument. Notes: object (a) is a finite check; during this audit the two values and valuations for t_17(503), t_17(504) were reproduced independently (own code, recursion t_m(n) = sum over i = n mod 2, i <= min(m,n), of (-1)^i C(m,i) t_m((n-i)/2), which follows from F_m(x) = (1-x)^m F_m(x^2)). Mismatch/scope: the repo refutes only the general clause of Conjecture 5.2 (for k = 4 and all k >= 11); it does not show failure for every k >= 2 (k = 2, 3 are the true explicit formulas), so strictly it disproves the universally quantified 'for each k >= 2' statement, not each instance. AUDIT.md says no Lean verification claim is made while README links a 'complete Lean formalization' (internal inconsistency).
{
  "statement": "Gawron-Miska-Ulas Conjecture 5.2, general clause (for each k>=2)",
  "verdict": "FALSE",
  "k": 4,
  "m": 17,
  "block_n": 31,
  "j1": 7,
  "j2": 8,
  "index1": 503,
  "index2": 504,
  "value1": "-382073745322860227067904",
  "value2": "-98392455150140920430592",
  "nu2_value1": 18,
  "nu2_value2": 19
}

Certificate format

Download CERTIFICATE.md
# Certificate format

`certificate.json` is one JSON object describing a counterexample to the general clause of
Conjecture 5.2 of Gawron–Miska–Ulas (arXiv:1703.01955).

Definitions: T(x) = prod_{i>=0} (1 - x^{2^i}); t_m(N) = coefficient of x^N in T(x)^m;
nu_2 = 2-adic valuation. The general clause says that for each k >= 2 there is a sequence
A_{k,0}=0 < A_{k,1} < ... with nu_2(t_{2^k+1}(2^k n + j)) = A_{k, nu_2(n+1)} for all n >= 0 and
0 <= j < 2^k. In particular, for fixed k and n the valuation must not depend on j.

Fields:

| field | meaning |
|---|---|
| `k` | integer >= 2, the instance of the clause that fails |
| `m` | the exponent, must equal 2^k + 1 |
| `block_n` | the block number n >= 0 |
| `j1`, `j2` | two offsets, 0 <= j1 < j2 < 2^k |
| `index1`, `index2` | must equal 2^k*n + j1 and 2^k*n + j2 |
| `value1`, `value2` | decimal strings: the exact integers t_m(index1), t_m(index2) |
| `nu2_value1`, `nu2_value2` | their 2-adic valuations |
| `statement`, `verdict` | informational text only |

The counterexample: both indices lie in the same block (same k, same n), both coefficients are
nonzero, and their 2-adic valuations differ (18 vs 19). So no value A_{k, nu_2(n+1)} can equal
both, and no sequence (A_{4,v}) exists for k = 4. Hence "for each k >= 2 ..." is false.

`verify.py` uses only k, block_n, j1, j2 as the object; every other field is recomputed and
compared. It computes T(x)^m mod x^(index2+1) by exact integer polynomial multiplication (the
factors with 2^i > index2 do not affect these coefficients), and cross-checks with the
recursion t_m(N) = sum_{i ≡ N mod 2, i <= min(m,N)} (-1)^i C(m,i) t_m((N-i)/2), which follows
from T(x)^m = (1-x)^m T(x^2)^m.

Scope: this refutes only the general clause, at k = 4. The explicit formulas (i), (ii) for
exponents 5 and 9 (k = 2, 3) are not affected.

Checker A, written alongside the certificate

Download checker_a.py
#!/usr/bin/env python3
"""usage: python3 verify.py certificate.json
Checks a counterexample to the general clause of Gawron-Miska-Ulas Conjecture 5.2:
two indices in the same block {2^k n + j : 0<=j<2^k} whose coefficients t_{2^k+1}(.)
have different 2-adic valuations. Exact integer arithmetic only."""
import sys, json
from math import comb


def fail(msg):
    print("FAILED:", msg)
    sys.exit(1)


def nu2(x):
    assert x != 0
    x = abs(x)
    v = 0
    while x % 2 == 0:
        x //= 2
        v += 1
    return v


def coeffs_by_product(m, L):
    """Coefficients 0..L-1 of (prod_{i>=0} (1 - x^(2^i)))^m, from the definition.
    Factors with 2^i >= L are 1 mod x^L."""
    T = [0] * L
    T[0] = 1
    p = 1
    while p < L:
        for a in range(L - 1, p - 1, -1):  # multiply by (1 - x^p)
            T[a] -= T[a - p]
        p *= 2
    P = [0] * L
    P[0] = 1
    for _ in range(m):  # m-fold product, truncated
        P = [sum(P[b] * T[a - b] for b in range(a + 1)) for a in range(L)]
    return P


def coeffs_by_recursion(m, L):
    t = [0] * L
    t[0] = 1
    for n in range(1, L):
        s = 0
        for i in range(n % 2, min(m, n) + 1, 2):
            s += (-1) ** i * comb(m, i) * t[(n - i) // 2]
        t[n] = s
    return t


def main():
    if len(sys.argv) != 2:
        fail("usage: python3 verify.py certificate.json")
    try:
        with open(sys.argv[1]) as f:
            c = json.load(f)
        k, n, j1, j2 = c["k"], c["block_n"], c["j1"], c["j2"]
    except Exception as e:
        fail("cannot read certificate: %r" % (e,))
    for x in (k, n, j1, j2):
        if type(x) is not int:
            fail("k, block_n, j1, j2 must be integers")
    if k < 2:
        fail("need k >= 2")
    if n < 0:
        fail("need block_n >= 0")
    if not (0 <= j1 < j2 < 2 ** k):
        fail("need 0 <= j1 < j2 < 2^k")
    m = 2 ** k + 1
    i1, i2 = 2 ** k * n + j1, 2 ** k * n + j2
    if i2 > 5000 or m > 200:
        fail("instance too large for this verifier")
    L = i2 + 1
    P = coeffs_by_product(m, L)
    R = coeffs_by_recursion(m, L)
    if P != R:
        fail("product expansion and recursion disagree")
    a, b = P[i1], P[i2]
    if a == 0 or b == 0:
        fail("a coefficient is zero")
    va, vb = nu2(a), nu2(b)
    print("k=%d m=%d block n=%d" % (k, m, n))
    print("t_%d(%d) = %d, nu_2 = %d" % (m, i1, a, va))
    print("t_%d(%d) = %d, nu_2 = %d" % (m, i2, b, vb))
    # consistency of the redundant fields, if present
    checks = [("m", m), ("index1", i1), ("index2", i2), ("value1", str(a)),
              ("value2", str(b)), ("nu2_value1", va), ("nu2_value2", vb)]
    for key, val in checks:
        if key in c and c[key] != val:
            fail("certificate field %s = %r, recomputed %r" % (key, c[key], val))
    if va == vb:
        fail("valuations agree; not a counterexample")
    print("Same block, different 2-adic valuations: no A_{%d,nu_2(n+1)} can exist." % k)
    print("VERIFIED")
    sys.exit(0)


if __name__ == "__main__":
    main()

Checker B, written independently from the certificate alone

Download checker_b.py
#!/usr/bin/env python3
"""Independent checker: counterexample to the general clause of Conjecture 5.2
of Gawron-Miska-Ulas (arXiv:1703.01955).

Definitions (statement.md, checked against the arXiv TeX source):
  F_t(x) = prod_{n>=0} (1 - x^{2^n})^t = sum f_n(t) x^n,   t_m(n) = f_n(m),
  equivalently the m-fold Cauchy convolution of ((-1)^{s_2(n)})_{n>=0}.
General clause: for each k >= 2 there is a strictly increasing sequence
  (A_{k,n}) of nonnegative integers, A_{k,0}=0, with
  nu_2(t_{2^k+1}(2^k n + j)) = A_{k, nu_2(n+1)} for all n>=0, 0<=j<2^k.

A certificate (k, n, j1, j2) refutes the clause iff k>=2, n>=0,
0<=j1<j2<2^k and nu_2(t_m(2^k n+j1)) != nu_2(t_m(2^k n+j2)) with m=2^k+1,
where nu_2(0) is taken as +infinity (which is not a nonnegative integer, so a
zero coefficient also violates the clause; that case is handled, although the
certificate format requires both values to be nonzero and we enforce that).
Then no single value A_{k,nu_2(n+1)} can equal both valuations.

Only k, block_n, j1, j2 are trusted as the object; all else is recomputed with
exact Python integers by three independent methods.
"""
import json
import sys
from math import comb

MAX_INDEX = 6000   # keeps pure-Python exact arithmetic far below the time limit
MAX_K = 12


def fail(msg):
    print("REJECTED: " + msg)
    sys.exit(1)


def is_int(v):
    return isinstance(v, int) and not isinstance(v, bool)


def nu2(v):
    """2-adic valuation of a nonzero integer."""
    v = abs(v)
    assert v != 0
    return (v & -v).bit_length() - 1


# Method A: literal product  prod_{2^i <= N} (1 - x^{2^i})^m  mod x^{N+1}.
# Factors with 2^i > N are 1 mod x^{N+1}.
def coeffs_product(m, N):
    a = [0] * (N + 1)
    a[0] = 1
    p = 1
    while p <= N:
        for _ in range(m):
            for n in range(N, p - 1, -1):   # multiply by (1 - x^p) in place
                a[n] -= a[n - p]
        p *= 2
    return a


# Method B: m-fold Cauchy convolution of the Prouhet-Thue-Morse sequence
# (-1)^{s_2(n)}, done as literal repeated convolution (m-1 multiplications).
def coeffs_convolution(m, N):
    tm = [-1 if bin(n).count("1") % 2 else 1 for n in range(N + 1)]
    pos = [i for i in range(N + 1) if tm[i] == 1]
    neg = [i for i in range(N + 1) if tm[i] == -1]
    a = tm[:]
    for _ in range(m - 1):
        b = [0] * (N + 1)
        for n in range(N + 1):
            s = 0
            for i in pos:
                if i > n:
                    break
                s += a[n - i]
            for i in neg:
                if i > n:
                    break
                s -= a[n - i]
            b[n] = s
        a = b
    return a


# Method C: recursion from F_m(x) = (1-x)^m F_m(x^2):
#   t_m(N) = sum_{i = N mod 2, i <= min(m,N)} (-1)^i C(m,i) t_m((N-i)/2).
def coeff_recursive(m, N, memo):
    if N == 0:
        return 1
    if N in memo:
        return memo[N]
    s = 0
    for i in range(N & 1, min(m, N) + 1, 2):
        s += (-1) ** i * comb(m, i) * coeff_recursive(m, (N - i) // 2, memo)
    memo[N] = s
    return s


def reject_dup(pairs):
    d = {}
    for key, v in pairs:
        if key in d:
            fail("duplicate JSON key %r" % key)
        d[key] = v
    return d


def main():
    if len(sys.argv) != 2:
        fail("usage: python3 checker.py certificate.json")
    try:
        with open(sys.argv[1], "r", encoding="utf-8") as f:
            cert = json.load(f, object_pairs_hook=reject_dup,
                             parse_float=lambda s: fail("float in certificate: " + s),
                             parse_constant=lambda s: fail("non-finite constant: " + s))
    except SystemExit:
        raise
    except Exception as e:
        fail("cannot read/parse certificate: %r" % (e,))
    if not isinstance(cert, dict):
        fail("certificate is not a JSON object")

    for key in ("k", "m", "block_n", "j1", "j2", "index1", "index2",
                "nu2_value1", "nu2_value2"):
        if key not in cert:
            fail("missing field %r" % key)
        if not is_int(cert[key]):
            fail("field %r is not an integer" % key)
    for key in ("value1", "value2"):
        if key not in cert:
            fail("missing field %r" % key)
        if not isinstance(cert[key], str):
            fail("field %r is not a decimal string" % key)

    k, n, j1, j2 = cert["k"], cert["block_n"], cert["j1"], cert["j2"]

    # --- the object: hypotheses of the clause ---
    if k < 2:
        fail("k = %d is not >= 2" % k)
    if k > MAX_K:
        fail("k = %d too large for this checker (max %d)" % (k, MAX_K))
    if n < 0:
        fail("block_n = %d is negative" % n)
    if not (0 <= j1 < j2 < 2 ** k):
        fail("need 0 <= j1 < j2 < 2^k, got j1=%d j2=%d k=%d" % (j1, j2, k))
    m = 2 ** k + 1
    N1 = 2 ** k * n + j1
    N2 = 2 ** k * n + j2
    if N2 > MAX_INDEX:
        fail("index %d too large for this checker (max %d)" % (N2, MAX_INDEX))
    print("object: k=%d m=%d block n=%d j1=%d j2=%d -> indices %d, %d"
          % (k, m, n, j1, j2, N1, N2))
    # both indices are in the same block, hence share the same nu_2(n+1)
    assert N1 // 2 ** k == n == N2 // 2 ** k and N1 != N2

    # --- definitional sanity checks of the three implementations ---
    S = 300
    ptm = [(-1) ** bin(i).count("1") for i in range(S + 1)]
    if coeffs_product(1, S) != ptm:
        fail("internal: product for m=1 is not the Prouhet-Thue-Morse sequence")
    for mm in (1, 2, 3, 5, 9):
        A = coeffs_product(mm, S)
        if A != coeffs_convolution(mm, S):
            fail("internal: product vs convolution mismatch at m=%d" % mm)
        memo = {}
        if any(coeff_recursive(mm, i, memo) != A[i] for i in range(S + 1)):
            fail("internal: product vs recursion mismatch at m=%d" % mm)
    # Reading check: the explicit formulas (i),(ii) of Conjecture 5.2 (not
    # challenged) must hold under our reading of t_m and of the block layout.
    for kk, c1, c2 in ((2, 4, 1), (3, 5, 2)):
        L = 1500
        A = coeffs_product(2 ** kk + 1, L)
        for idx in range(L + 1):
            v = nu2(idx // 2 ** kk + 1)
            want = c1 * ((v + 1) // 2) - c2 * (v % 2)
            if A[idx] == 0 or nu2(A[idx]) != want:
                fail("reading check failed: formula for t_%d at index %d"
                     % (2 ** kk + 1, idx))
    print("sanity: 3 methods agree for small m; formulas (i),(ii) hold up to index 1500")

    # --- recompute the two coefficients three ways ---
    A = coeffs_product(m, N2)
    B = coeffs_convolution(m, N2)
    memo = {}
    vals = []
    for N in (N1, N2):
        a, b, c = A[N], B[N], coeff_recursive(m, N, memo)
        if not (a == b == c):
            fail("methods disagree at index %d: %d / %d / %d" % (N, a, b, c))
        vals.append(a)
    v1, v2 = vals
    print("t_%d(%d) = %d" % (m, N1, v1))
    print("t_%d(%d) = %d" % (m, N2, v2))

    # --- the refutation itself ---
    if v1 == 0 or v2 == 0:
        fail("a coefficient is zero; certificate format requires both nonzero")
    e1, e2 = nu2(v1), nu2(v2)
    assert v1 % 2 ** e1 == 0 and v1 % 2 ** (e1 + 1) != 0
    assert v2 % 2 ** e2 == 0 and v2 % 2 ** (e2 + 1) != 0
    print("nu_2 = %d and %d" % (e1, e2))
    if e1 == e2:
        fail("valuations coincide (%d); no contradiction with the clause" % e1)

    # --- remaining certificate fields must match the recomputation ---
    if cert["m"] != m:
        fail("m = %d but 2^k+1 = %d" % (cert["m"], m))
    if cert["index1"] != N1 or cert["index2"] != N2:
        fail("index fields %d,%d differ from 2^k n + j = %d,%d"
             % (cert["index1"], cert["index2"], N1, N2))
    for name, s, v in (("value1", cert["value1"], v1), ("value2", cert["value2"], v2)):
        if s != str(v):
            fail("%s = %r but recomputed %d" % (name, s, v))
    if cert["nu2_value1"] != e1 or cert["nu2_value2"] != e2:
        fail("nu2 fields %d,%d differ from recomputed %d,%d"
             % (cert["nu2_value1"], cert["nu2_value2"], e1, e2))

    print("Indices %d and %d lie in the same block (k=%d, n=%d) but the valuations "
          "%d != %d, so no A_{%d,%d} exists: the 'for each k>=2' clause fails at k=%d."
          % (N1, N2, k, n, e1, e2, k, nu2(n + 1), k))
    print("VERIFIED")
    sys.exit(0)


if __name__ == "__main__":
    main()