# 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.
