# Certificate: a numerical semigroup with mu = 2 and W(g) < 0 for every gap

## What is claimed

The statement "every numerical semigroup Gamma with mu_Gamma <= 4 has a gap g
with W(g) >= 0" (affirmative form of Question 4.8 of Almiron & Moyano-Fernandez,
arXiv:2012.01358v3) is **false**. The certificate is one numerical semigroup.

## File format (`certificate.json`)

A JSON object. Only one field is used by the verifier:

- `semigroup_gaps`: a list of distinct positive integers. The semigroup is
  Gamma = {0,1,2,3,...} minus this list. Nothing else is needed to rebuild it.

`statement` and `verdict` are human-readable labels and are ignored.

The object here: gaps `[1,2,3,4,9]`, i.e.
Gamma = {0,5,6,7,8,10,11,12,...} = <5,6,7,8> (the case m=5 of the family
T_m = {0} u [m,2m-2] u [2m,oo) from the public claim).

## What `verify.py` checks (integers only, standard library only)

1. Gamma contains 0, has finite complement (by construction) and is closed
   under addition (all pairs a,b in Gamma with a+b <= largest gap are tested;
   larger sums cannot be gaps).
2. c(Gamma) = largest gap + 1; delta(Gamma) = #{x in Gamma : x < c}.
   mu_Gamma = min{k : k*delta - c >= 0} is computed and required to be <= 4.
3. For **every** gap g: Delta_g = Gamma u (g+Gamma); c(Delta_g) = (largest
   natural number not in Delta_g) + 1 (0 if none); delta(Delta_g) =
   #{x in Delta_g : x < c(Delta_g)}; W(g) = 2*delta(Delta_g) - c(Delta_g).
   It requires W(g) < 0 for all gaps.

Values for this certificate: c = 10, delta = 5, mu = 2;

| g | c(Delta_g) | delta(Delta_g) | W(g) |
|---|-----------|----------------|------|
| 1 | 5 | 2 | -1 |
| 2 | 5 | 2 | -1 |
| 3 | 5 | 2 | -1 |
| 4 | 4 | 1 | -2 |
| 9 | 5 | 1 | -3 |

## Caveat on sign conventions (honest note)

The check uses the definitions exactly as written in statement.md and in the
paper's text (delta(Delta) = number of elements of Delta below the conductor,
W(g) = 2*delta(Delta_I) - c(Delta_I)); the paper's Theorem max W(g) <= W_Gamma(4)
that motivates the question is proved with this same formula. However, when the
same definitions are applied to the paper's own example table for
Gamma = <6,8,35>, every nonzero entry comes out with the OPPOSITE sign
(e.g. g=2 gives +2 from the definitions, the table prints -2). So the paper's
numerical tables appear to use -W(g) (as in its Proposition quoting "-W(g) = ...").
Under that opposite sign convention (c - 2*delta) this semigroup would have all
W(g) > 0 and would not be a counterexample. The certificate settles the
statement as literally defined; a reader should be aware of this inconsistency
in the source.
