Nullius Labs
No. 006◐ REPRODUCED2026-11-25

Disproved: For real n x n matrices, n>2: c_n*||A||_{H^4} <= ||A||_{H^1_*} <= ||A||_{H^4} with c_n from a rank-2 projection.

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 real n x n matrices, n>2: c_n*||A||_{H^4} <= ||A||_{H^1_*} <= ||A||_{H^4} with c_n from a rank-2 projection.

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


Public claim to check: https://github.com/1337isnot1337/solved-conjectures/tree/main/results/kovalev-hardy-duality

Source: Leonid V. Kovalev, 'Hardy-type norms of matrices', arXiv:2607.17373v1, Section 6, Conjecture 6.1. Definitions: for a real n x n matrix A and p > 0, ||A||_{H^p} = (E_x |Ax|^p)^{1/p}, where x is uniformly distributed on the unit sphere S^{n-1} and |.| is the Euclidean norm. The inner product is <A,B> = E_x <Ax,Bx> = (1/n) tr(A^T B), and the dual Hardy norm is ||A||_{H^p_*} = sup{ <A,B> : ||B||_{H^p} <= 1 }. P_k denotes an orthogonal projection of rank k in R^n, with ||P_k||_{H^p} = ( Gamma((k+p)/2) Gamma(n/2) / (Gamma(k/2) Gamma((n+p)/2)) )^{1/p}. Conjecture 6.1: For any n x n matrix A with n > 2, c_n ||A||_{H^4} <= ||A||_{H^1_*} <= ||A||_{H^4}, where c_n = <P_2,P_2> / (||P_2||_{H^1} ||P_2||_{H^4}); explicitly c_n = (2^{5/4}/sqrt(pi)) * (Gamma((n+1)/2)/Gamma(n/2)) * (n+2)^{1/4} / n^{3/4}. (For n = 2 Brevig, Ortega-Cerda and Seip proved ||A||_{H^4} <= ||A||_{H^1_*} <= C_2 ||A||_{H^4}.)

The repository claims the conjecture is FALSE, specifically that the lower inequality c_n ||A||_{H^4} <= ||A||_{H^1_*} fails for every order n >= 500001 (the upper inequality is not addressed). Its counterexample is the positive diagonal n x n matrix, n = k+1 with k >= 500000, A_k = ((k+1)/m_{k+1}) * diag(u_k, sqrt(1/(40k)) v_k, ..., sqrt(1/(40k)) v_k), where Z_0,...,Z_k are independent standard Gaussians, X_k = (1/k) sum_{i=1}^k Z_i^2, R_k = sqrt(Z_0^2 + X_k/40), u_k = E[Z_0^2/R_k], v_k = E[X_k/R_k], and m_n = E|Z| = sqrt(2) Gamma((n+1)/2)/Gamma(n/2). A_k is the supporting functional (gradient of B -> E|BZ|) at B_k = diag(1, sqrt(1/(40k)), ..., sqrt(1/(40k))), so its H^1_* norm is claimed to be exactly 1, while ||A_k||_{H^4} is bounded below so that c_n ||A_k||_{H^4} > 1, with a stated positive rational separation 8370960719747393508158728849/20430400000000000000000000000000. Note the entries u_k, v_k are defined by Gaussian expectations rather than closed-form numbers, and no small-dimensional instance is given; the violation is established by analytic estimates (conditional Jensen, chi-square variance, modified-Bessel formulas), not by direct evaluation. Location: results/kovalev-hardy-duality/PROOF.md (family B_k and A_k), with rational-arithmetic checks verify.py and review_constants.py; no Lean verification.
{
 "claim": "c_n*||A||_{H^4} > ||A||_{H^1_*}, refuting the lower inequality of Kovalev Conjecture 6.1",
 "n": 7,
 "A": [
  [
   "971046/1000000",
   "0",
   "0",
   "0",
   "0",
   "0",
   "0"
  ],
  [
   "0",
   "172087/1000000",
   "0",
   "0",
   "0",
   "0",
   "0"
  ],
  [
   "0",
   "0",
   "172087/1000000",
   "0",
   "0",
   "0",
   "0"
  ],
  [
   "0",
   "0",
   "0",
   "172087/1000000",
   "0",
   "0",
   "0"
  ],
  [
   "0",
   "0",
   "0",
   "0",
   "172087/1000000",
   "0",
   "0"
  ],
  [
   "0",
   "0",
   "0",
   "0",
   "0",
   "172087/1000000",
   "0"
  ],
  [
   "0",
   "0",
   "0",
   "0",
   "0",
   "0",
   "172087/1000000"
  ]
 ],
 "witness_r": "7/100",
 "riemann_steps": 2000000
}

Certificate format

Download CERTIFICATE.md
# Certificate: a 7 x 7 rational counterexample to the lower inequality of Kovalev's Conjecture 6.1

## What is claimed

For the rational diagonal matrix

    A = diag(971046/1000000, 172087/1000000, ..., 172087/1000000)      (n = 7, six equal small entries)

we have `c_7 * ||A||_{H^4} > ||A||_{H^1_*}`, so the inequality
`c_n ||A||_{H^4} <= ||A||_{H^1_*}` of Conjecture 6.1 (arXiv:2607.17373v1) fails at n = 7.
(The upper inequality `||A||_{H^1_*} <= ||A||_{H^4}` is not addressed.)

The public claim (github.com/1337isnot1337/solved-conjectures, results/kovalev-hardy-duality)
only asserts failure for n >= 500001 with a matrix whose entries are Gaussian expectations.
This certificate uses the same idea (one large singular value, many equal small ones; A dominated
by a supporting functional of the H^1 norm) but was rebuilt independently: small dimension, an
explicit rational matrix, and no Bessel-function estimates. None of the claimant's code or numbers
are used.

## File format (`certificate.json`)

| key | meaning |
|---|---|
| `n` | integer, the order of the matrix (here 7) |
| `A` | the matrix itself: list of `n` rows, each a list of `n` strings; each string is an exact rational `"p/q"` or integer `"p"` |
| `witness_r` | string rational `r`, 0 < r < 1. Auxiliary witness: the matrix `B = diag(1, r, ..., r)` at which the H^1 norm is "differentiated" to bound the dual norm of A |
| `riemann_steps` | integer N, number of subintervals of [0,1] the verifier uses in its rigorous lower Riemann sums |
| `claim` | free text, ignored |

The counterexample is `n` and `A` alone; `witness_r` and `riemann_steps` only help to prove the
upper bound on the dual norm.

## What `verify.py` checks (exact integer/rational arithmetic only)

Write k = n-1 (must be even), h = k/2, q = 1 - r^2, A = diag(alpha, beta, ..., beta), and

    I_u = int_0^1 (1-x^2)^h / (1-q x^2)^h dx ,      I_v = int_0^1 (1-x^2)^h / (1-q x^2)^(h+1) dx .

1. A is diagonal of the form diag(alpha, beta, ..., beta) with alpha, beta > 0.
2. W := (tr M)^2 + 2 tr(M^2), M = A^T A, computed exactly from the full matrix.
3. Rational lower bounds Lu <= I_u, Lv <= I_v: on each subinterval [j/N, (j+1)/N] the functions
   1-x^2 and 1-q x^2 are positive and decreasing, so the integrand is at least
   (numerator at the right end)/(denominator at the left end); each term is further rounded down.
   Checks `alpha <= Lu` and `beta <= r * Lv`.
4. A rational upper bound P >= pi from Machin's formula (alternating series), and the check
   `32 W > P^4`.

It prints `VERIFIED` only if all of these pass.

## Why these checks settle the statement

Let Z be a standard Gaussian vector in R^n, x = Z/|Z| (uniform on the sphere, independent of |Z|),
m_n = E|Z| = sqrt(2) G with G = Gamma((n+1)/2)/Gamma(n/2). Then E|CZ| = m_n ||C||_{H^1} for every C.

**Lemma 1 (H^4 norm, exact).** For every A, with M = A^T A,
E|AZ|^4 = (tr M)^2 + 2 tr(M^2) (diagonalise M; E Z_i^4 = 3, E Z_i^2 Z_j^2 = 1) and E|Z|^4 = n(n+2),
so `||A||_{H^4}^4 = W / (n(n+2))`.
(For a rank-k projection this gives k(k+2)/(n(n+2)), matching the formula in statement.md.)

**Lemma 2 (dual norm bound).** Let B = diag(b_i) with b_i > 0 and g_i = E[ b_i Z_i^2 / |BZ| ].
If A = diag(a_i) with 0 <= a_i <= t g_i, then `||A||_{H^1_*} <= t m_n / n`.
Proof. Take any C and let S be the diagonal sign matrix with S_ii C_ii = |C_ii|. By Cauchy-Schwarz
pointwise, and since E[Z_i Z_j / |BZ|] = 0 for i != j by sign symmetry,

    E|CZ| = E|SCZ| >= E[ (BZ).(SCZ) / |BZ| ] = sum_i g_i |C_ii| .

Hence n <A,C> = tr(A^T C) = sum a_i C_ii <= t sum g_i |C_ii| <= t E|CZ| = t m_n ||C||_{H^1}. QED

**Lemma 3 (the g_i as integrals of rational functions).** For B = diag(1, r, ..., r):
using 1/sqrt(Q) = pi^{-1/2} int_0^inf t^{-1/2} e^{-tQ} dt, E e^{-aZ^2} = (1+2a)^{-1/2},
E Z^2 e^{-aZ^2} = (1+2a)^{-3/2}, then t = s^2, s = tan(theta)/sqrt(2), x = sin(theta):

    g_0 = (2/sqrt(pi)) int_0^inf (1+2s^2)^{-3/2} (1+2r^2 s^2)^{-k/2} ds        = sqrt(2/pi) * I_u
    g_i = (2/sqrt(pi)) r int_0^inf (1+2s^2)^{-1/2} (1+2r^2 s^2)^{-k/2-1} ds    = sqrt(2/pi) * r * I_v   (i >= 1).

**Conclusion.** Step 3 gives alpha <= I_u = sqrt(pi/2) g_0 and beta <= r I_v = sqrt(pi/2) g_i, so by
Lemma 2 with t = sqrt(pi/2):

    ||A||_{H^1_*} <= sqrt(pi/2) m_n / n = sqrt(pi) G / n .

By Lemma 1 and the explicit c_n = (2^{5/4}/sqrt(pi)) G (n+2)^{1/4} / n^{3/4}:

    c_n ||A||_{H^4} = (2^{5/4}/sqrt(pi)) G W^{1/4} / n .

So `c_n ||A||_{H^4} > ||A||_{H^1_*}` follows from 2^{5/4} W^{1/4} > pi, i.e. `32 W > pi^4`, which is
step 4. (The Gamma factor G cancels, so no Gamma values are needed.)

For this certificate 32W / pi^4 >= 1.00016, i.e. c_7 ||A||_{H^4} exceeds ||A||_{H^1_*} by a
factor of at least about 1.00004.

## Honest scope note

`verify.py` recomputes everything numerical exactly, but the dual norm is a supremum over all
matrices and cannot be evaluated by finite computation; its upper bound rests on Lemmas 2 and 3
above (short pen-and-paper arguments, not machine-checked in Lean). Lemma 1 and the algebraic
reduction to `32 W > pi^4` are likewise pen-and-paper. A float Monte Carlo sanity check of Lemma 3
(not part of the verification) agreed to 3 digits.

Checker A, written alongside the certificate

Download checker_a.py
#!/usr/bin/env python3
"""verify.py -- usage: python3 verify.py certificate.json

Checks a counterexample to the lower inequality  c_n ||A||_{H^4} <= ||A||_{H^1_*}
of Kovalev's Conjecture 6.1.  Standard library only; every decision is made in
exact integer / rational arithmetic.  See CERTIFICATE.md for the mathematics.
"""
import json
import sys
from fractions import Fraction as F


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


def frac(s):
    if not isinstance(s, str):
        fail("numbers must be strings 'p/q' or 'p'")
    return F(s)


def pi_upper():
    """Rational upper bound for pi from Machin's formula
    pi = 16 atan(1/5) - 4 atan(1/239), alternating series with decreasing terms:
    a partial sum ending on a + term is an upper bound for atan, ending on a
    - term is a lower bound."""
    def atan_inv(q, terms):
        return sum(F((-1) ** j, (2 * j + 1) * q ** (2 * j + 1)) for j in range(terms))
    up = 16 * atan_inv(5, 21) - 4 * atan_inv(239, 20)   # upper(atan 1/5), lower(atan 1/239)
    lo = 16 * atan_inv(5, 20) - 4 * atan_inv(239, 21)
    if not (F(3) < lo < up < F(22, 7)):
        fail("pi enclosure broken")
    return up


def integral_lower_bounds(k, r, N, P=96):
    """Rigorous rational lower bounds for
         I_u = int_0^1 (1-x^2)^h / (1-q x^2)^h     dx
         I_v = int_0^1 (1-x^2)^h / (1-q x^2)^(h+1) dx,   h = k/2, q = 1 - r^2.
    On [j/N,(j+1)/N] both 1-x^2 and 1-q x^2 are positive and decreasing, so the
    integrand is >= (numerator at right end)/(denominator at left end).
    Each term is additionally rounded DOWN to a multiple of 2^-P."""
    h = k // 2
    p, d = r.numerator, r.denominator
    N2 = N * N
    c = d * d - p * p              # q = c/d^2
    N2d2 = N2 * d * d
    d2h = (d * d) ** h
    su = sv = 0
    for j in range(N):
        a = N2 - (j + 1) * (j + 1)       # N^2 (1 - x_{j+1}^2)   >= 0
        D = N2d2 - c * j * j             # N^2 d^2 (1 - q x_j^2) > 0
        t = (a ** h * d2h) << P
        Dh = D ** h
        su += t // Dh                    # floor(2^P (1-x_{j+1}^2)^h/(1-q x_j^2)^h)
        sv += (t * d * d * N2) // (Dh * D)
    return F(su, N << P), F(sv, N << P)


def main():
    if len(sys.argv) != 2:
        fail("usage: python3 verify.py certificate.json")
    with open(sys.argv[1]) as fh:
        cert = json.load(fh)

    n = cert["n"]
    if not (isinstance(n, int) and not isinstance(n, bool) and n > 2):
        fail("need integer n > 2")
    rows = cert["A"]
    if not (isinstance(rows, list) and len(rows) == n and all(isinstance(R, list) and len(R) == n for R in rows)):
        fail("A must be an n x n list of lists")
    A = [[frac(x) for x in R] for R in rows]
    r = frac(cert["witness_r"])
    N = cert.get("riemann_steps", 2000000)
    if not (isinstance(N, int) and not isinstance(N, bool) and 1 <= N <= 20000000):
        fail("riemann_steps out of range")

    # ---- shape required by the dual-norm lemma -------------------------------
    k = n - 1
    if k % 2 != 0:
        fail("this verifier needs n odd (k = n-1 even) so the integrands are rational")
    if not (0 < r < 1):
        fail("need 0 < witness_r < 1")
    for i in range(n):
        for j in range(n):
            if i != j and A[i][j] != 0:
                fail("A must be diagonal")
    alpha, beta = A[0][0], A[1][1]
    if not (alpha > 0 and beta > 0):
        fail("diagonal entries must be positive")
    if any(A[i][i] != beta for i in range(1, n)):
        fail("A must be diag(alpha, beta, ..., beta)")

    # ---- ||A||_{H^4}: exact, for the matrix as given --------------------------
    # E_x |Ax|^4 = ((tr M)^2 + 2 tr(M^2)) / (n(n+2)),  M = A^T A.
    M = [[sum(A[l][i] * A[l][j] for l in range(n)) for j in range(n)] for i in range(n)]
    trM = sum(M[i][i] for i in range(n))
    trM2 = sum(M[i][j] * M[j][i] for i in range(n) for j in range(n))
    W = trM * trM + 2 * trM2          # = n(n+2) ||A||_{H^4}^4

    # ---- ||A||_{H^1_*} <= sqrt(pi) Gamma((n+1)/2) / (n Gamma(n/2)) ------------
    # holds provided alpha <= I_u and beta <= r I_v (CERTIFICATE.md, Lemma 2+3).
    Lu, Lv = integral_lower_bounds(k, r, N)
    if not (alpha <= Lu):
        fail("alpha is not certified <= I_u")
    if not (beta <= r * Lv):
        fail("beta is not certified <= r*I_v")

    # ---- final comparison -----------------------------------------------------
    # c_n ||A||_{H^4} = (2^{5/4}/sqrt(pi)) G (W)^{1/4} / n,  G = Gamma((n+1)/2)/Gamma(n/2)
    # ||A||_{H^1_*}  <= sqrt(pi) G / n
    # so  c_n||A||_{H^4} > ||A||_{H^1_*}  follows from  32 W > pi^4.
    pu = pi_upper()
    if not (32 * W > pu ** 4):
        fail("32*W > pi^4 not certified")

    ratio4_lower = 32 * W / pu ** 4
    print("n =", n)
    print("alpha = %s <= I_u lower bound ~ %.9f" % (alpha, float(Lu)))
    print("beta  = %s <= r*I_v lower bound ~ %.9f" % (beta, float(r * Lv)))
    print("exact n(n+2)||A||_H4^4 = W =", W)
    print("(c_n ||A||_H4 / ||A||_H1*)^4 >= 32W/pi^4 >= %s  (~%.8f, display only)" % (ratio4_lower.limit_denominator(10**12), float(ratio4_lower)))
    print("Lower inequality of Conjecture 6.1 fails for this A.")
    print("VERIFIED")
    sys.exit(0)


if __name__ == "__main__":
    try:
        main()
    except SystemExit:
        raise
    except Exception as e:  # malformed certificate etc.
        print("FAILED: %r" % (e,))
        sys.exit(1)

Checker B, written independently from the certificate alone

Download checker_b.py
#!/usr/bin/env python3
"""Independent checker: rational counterexample to the lower inequality
c_n ||A||_{H^4} <= ||A||_{H^1_*} of Kovalev's Conjecture 6.1 (real n x n, n > 2).

Exact integer / rational arithmetic only.  Mathematical argument (re-derived by
the checker's author, see notes.md):

  Z standard Gaussian in R^n, G = Gamma((n+1)/2)/Gamma(n/2), m_n = E|Z| = sqrt(2) G.
  (a) ||A||_{H^4}^4 = W/(n(n+2)),  W = (tr M)^2 + 2 tr(M^2),  M = A^T A.
  (b) c_n = (2/n) / (||P_2||_{H^1} ||P_2||_{H^4}) = 2^{5/4} G (n+2)^{1/4} / (sqrt(pi) n^{3/4}),
      so c_n ||A||_{H^4} = 2^{5/4} G W^{1/4} / (sqrt(pi) n).
  (c) B = diag(1, r, ..., r), g_i = E[b_i Z_i^2/|BZ|].  For every C,
      E|CZ| >= sum_i g_i |C_ii|.  Hence if A = diag(a_i), 0 <= a_i <= t g_i, then
      ||A||_{H^1_*} <= t m_n / n.
  (d) for k = n-1 even, h = k/2, q = 1-r^2:
      g_0 = sqrt(2/pi) I_u,  g_i = sqrt(2/pi) r I_v (i >= 1),
      I_u = int_0^1 (1-x^2)^h (1-q x^2)^(-h) dx,  I_v = int_0^1 (1-x^2)^h (1-q x^2)^(-h-1) dx.
  With t = sqrt(pi/2): ||A||_{H^1_*} <= sqrt(pi) G / n, and the violation
  c_n ||A||_{H^4} > ||A||_{H^1_*} follows from 32 W > pi^4.
"""
import sys
import json
import re
from fractions import Fraction

MAX_STEPS = 5_000_000
RAT = re.compile(r"^[+-]?\d{1,400}(/\d{1,400})?$")


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


def parse_rat(s, what):
    if isinstance(s, bool) or not isinstance(s, (str, int)):
        fail(f"{what}: not a rational string")
    if isinstance(s, int):
        return Fraction(s)
    s = s.strip()
    if not RAT.match(s):
        fail(f"{what}: bad rational literal {s!r}")
    if "/" in s:
        p, q = s.split("/")
        if int(q) == 0:
            fail(f"{what}: zero denominator")
        return Fraction(int(p), int(q))
    return Fraction(int(s))


def pi_upper():
    """Rational P > pi via Machin: pi = 16 atan(1/5) - 4 atan(1/239)."""
    def atan_inv(x, terms):
        # partial sum of alternating series with `terms` terms
        s = Fraction(0)
        for i in range(terms):
            s += Fraction((-1) ** i, (2 * i + 1) * x ** (2 * i + 1))
        return s
    up5 = atan_inv(5, 41)      # odd number of terms -> upper bound
    lo239 = atan_inv(239, 20)  # even number of terms -> lower bound
    P = 16 * up5 - 4 * lo239
    # sanity: must be within a crude known enclosure of pi
    if not (Fraction(314159265358979, 10 ** 14) < P < Fraction(314159265358980, 10 ** 14)):
        fail("internal: pi bound out of range")
    return P


def main():
    if len(sys.argv) != 2:
        fail("usage: checker.py certificate.json")
    try:
        with open(sys.argv[1]) as f:
            cert = json.load(f)
    except Exception as e:
        fail(f"cannot read certificate: {e}")
    if not isinstance(cert, dict):
        fail("certificate is not an object")

    n = cert.get("n")
    if isinstance(n, bool) or not isinstance(n, int):
        fail("n is not an integer")
    if n <= 2:
        fail("statement requires n > 2")
    if n > 200:
        fail("n too large for this checker")
    k = n - 1
    if k % 2:
        fail("checker's integral formula needs n odd")
    h = k // 2

    rows = cert.get("A")
    if not isinstance(rows, list) or len(rows) != n:
        fail("A does not have n rows")
    A = []
    for i, row in enumerate(rows):
        if not isinstance(row, list) or len(row) != n:
            fail(f"row {i} of A does not have n entries")
        A.append([parse_rat(x, f"A[{i}]") for x in row])

    # --- A must be diagonal with nonnegative entries (hypothesis of step (c)) ---
    for i in range(n):
        for j in range(n):
            if i != j and A[i][j] != 0:
                fail("A is not diagonal")
        if A[i][i] < 0:
            fail("negative diagonal entry")
    if all(A[i][i] == 0 for i in range(n)):
        fail("A is zero")

    # --- W = (tr M)^2 + 2 tr(M^2), M = A^T A, from the full matrix ---
    M = [[sum(A[l][i] * A[l][j] for l in range(n)) for j in range(n)] for i in range(n)]
    trM = sum(M[i][i] for i in range(n))
    trM2 = sum(M[i][j] * M[j][i] for i in range(n) for j in range(n))
    W = trM * trM + 2 * trM2

    # --- witness ---
    r = parse_rat(cert.get("witness_r"), "witness_r")
    if not (0 < r < 1):
        fail("witness_r not in (0,1)")
    N = cert.get("riemann_steps")
    if isinstance(N, bool) or not isinstance(N, int) or N < 1:
        fail("riemann_steps not a positive integer")
    if N > MAX_STEPS:
        fail("riemann_steps too large")
    if r.denominator > 10 ** 6:
        fail("witness_r denominator too large for this checker")

    # --- rigorous lower Riemann sums for I_u, I_v ---
    # q = 1 - r^2 = qn/qd in (0,1).  On [j/N,(j+1)/N]:
    #   (1-x^2)^h   >= ((N^2-(j+1)^2)/N^2)^h           (decreasing, >= 0)
    #   1-q x^2     <= (qd N^2 - qn j^2)/(qd N^2)       (decreasing, > 0)
    # so integrand_u >= (qd*(N^2-(j+1)^2) / (qd N^2 - qn j^2))^h
    #    integrand_v >= that * qd N^2/(qd N^2 - qn j^2)
    q = 1 - r * r
    qn, qd = q.numerator, q.denominator
    if not (0 < qn < qd):
        fail("internal: q out of range")
    S = 10 ** 30  # fixed-point scale; every term is floored
    N2 = N * N
    qdN2 = qd * N2
    su = 0
    sv = 0
    for j in range(N):
        a = N2 - (j + 1) * (j + 1)       # >= 0
        d = qdN2 - qn * j * j            # > 0
        num = (qd * a) ** h
        dh = d ** h
        su += (S * num) // dh
        sv += (S * num * qdN2) // (dh * d)
    Lu = Fraction(su, S * N)   # <= I_u
    Lv = Fraction(sv, S * N)   # <= I_v

    alpha = A[0][0]
    if not (alpha <= Lu):
        fail("A[0][0] exceeds lower bound for I_u")
    for i in range(1, n):
        if not (A[i][i] <= r * Lv):
            fail(f"A[{i}][{i}] exceeds lower bound for r*I_v")

    # --- final inequality 32 W > pi^4 ---
    P = pi_upper()
    if not (32 * W > P ** 4):
        fail("32 W > pi^4 fails")

    print(f"n = {n}, witness r = {r}, steps = {N}")
    print(f"I_u >= {float(Lu):.9f} >= A[0][0] = {float(alpha):.9f}")
    print(f"r*I_v >= {float(r * Lv):.9f} >= max other = {float(max(A[i][i] for i in range(1, n))):.9f}")
    print(f"32W/pi^4 > {float(32 * W / P ** 4):.9f}  (display only)")
    print("VERIFIED")
    sys.exit(0)


if __name__ == "__main__":
    main()