# Certificate: a counterexample to clause (i) of HKM Conjecture 4.10

## What the certificate is

`certificate.json` is a JSON object. Only one key matters:

- `"parts"`: a list of positive integers `[a_1, ..., a_k]`, the part sizes of a
  complete k-partite graph G. Here `[2,2,2,2,2,2]`, i.e. G = K_{2,2,2,2,2,2}
  (12 vertices, 60 edges; vertices 0,1 form part 0, vertices 2,3 part 1, etc.;
  two vertices are adjacent iff they are in different parts).

The other keys (`"conjecture"`, `"object"`) are human-readable labels and are ignored.

Claim settled: the Ehrhart polynomial H of the symmetric edge polytope P_G
(convex hull of all e_v - e_w, e_w - e_v over edges {v,w}) has degree 11 and
only 7 of its 11 roots (with multiplicity) on the line Re z = -1/2. So clause (i)
of the conjecture ("all roots on R") is false, hence the conjecture is false.
(Clause (ii) is not needed and is not checked.)

## What `verify.py` does (exact integers / fractions only, stdlib only)

1. Builds G and the generators ±(e_v - e_w) of P_G from `parts`.
2. Computes H(m) = |mP ∩ Z^12| for m = 0..14 using the membership lemma below.
3. Cross-checks the lemma-based count directly from the definition for m = 0,1,2,3:
   every integer zero-sum vector z with positive mass ≤ m is either written
   explicitly as a sum of ≤ m generators (so z ∈ mP, as 0 ∈ P), or separated by
   a linear functional L whose value on every generator is verified to be ≤ 1
   while L(z) > m (so z ∉ mP). Vectors with positive mass > m are outside mP
   because the 0/1 indicator functional of the positive support is ≤ 1 on every
   generator. The counts (1, 121, 4303, 70663) agree.
4. Interpolates the degree-11 polynomial through m = 0..11 (P_G has dimension
   11 because G is connected, so H has degree 11 and 12 values determine it)
   and checks it also reproduces m = 12, 13, 14.
5. Writes H(-1/2 + i t) = A(t) + i B(t) with A, B ∈ Q[t]. A real t0 is a root
   of multiplicity k of t ↦ H(-1/2 + i t) iff (t - t0)^k divides both A and B,
   i.e. divides gcd(A,B). The verifier checks gcd(A,B) is squarefree and counts
   its real roots with Sturm's theorem (exact rational arithmetic): 7.
   Since 7 < 11, four roots of H are off the line. Prints `VERIFIED`.

## The membership lemma used in step 2 (with proof)

Let the vertex set be partitioned into parts A_1..A_k, k ≥ 2. For an integer
vector z with coordinate sum 0 let p_i (q_i) be the sum of the positive
(absolute values of the negative) coordinates of z in A_i, and p = Σ p_i = Σ q_i.

**Lemma.** For integer m ≥ 0: z ∈ mP_G iff p ≤ m and p_i + q_i ≤ m for all i.

*Necessity.* The functions z ↦ Σ max(z_v,0) and z ↦ Σ_{v∈A_i} |z_v| are convex
and positively homogeneous, and are ≤ 1 on every generator e_u - e_v (u, v in
different parts, so at most one of them is in A_i). Hence they are ≤ m on mP.

*Sufficiency.* Regard z as p positive unit tokens and p negative unit tokens
sitting on vertices. Join a positive and a negative token when their vertices
lie in different parts. A set S of positive tokens meeting two parts is joined
to all p negative tokens; a set S inside part i is joined to exactly p - q_i
negative tokens. So the maximum Hall deficiency is h = max(0, max_i (p_i + q_i - p)),
and by the deficiency form of Hall's theorem there is a matching of size p - h.
Each matched pair is one generator e_u - e_v. The remaining h positive and h
negative tokens are paired arbitrarily; a pair in different parts is one
generator, a pair u, v in the same part is two generators
(e_u - e_w) + (e_w - e_v) with w in another part. So z is a sum of at most
(p - h) + 2h = max(p, max_i(p_i + q_i)) ≤ m generators. As 0 ∈ P (midpoint of
g and -g), z/m is a convex combination of generators and 0, so z ∈ mP. ∎

Counting: with the lemma, H(m) = number of ways to choose for each part an
integer vector with l1-norm ≤ m (classified by its positive mass u and negative
mass v, tabulated by brute enumeration), such that total positive mass = total
negative mass ≤ m. This is a small convolution.

## Result printed by the verifier

H(0..11) = 1, 121, 4303, 70663, 697975, 4811431, 25393537, 109149169,
398945035, 1279269867, 3683468685, 9693557805; roots on Re z = -1/2: 7 of 11.

## Provenance

The graph was taken from the public claim
https://github.com/1337isnot1337/solved-conjectures/tree/main/results/hkm-ehrhart .
None of the claimant's code or numbers are used by `verify.py`; the counts,
the polynomial and the root count are recomputed independently (they turn out
to agree with the claim).
