# Strict biased clique game on K9

Dan Smith / Kairos Signal — AI-assisted reconstruction and verification.

The finite certificate proves a Bob strategy in the strict (1,2) clique game
on K9: Alice moves first; Bob must finish with a strictly larger clique.
This is one board size, not the general Erdős #778 conjecture or a priority claim.

Both standalone checkers agree on 31977 reachable positions,
20042 winning leaves, and 143319 answered Alice moves.
See [the argument](PROOF.md) and [verification record](verification.json).

## Reproduce the computational certificate

```sh
python3 -O verify_certificate.py certificate.json
python3 -O verify_witness.py certificate.json
python3 -O -m unittest -q test_certificates
c++ -O3 -std=c++17 search_sym.cpp -o search_sym
./search_sym 9 12 regenerated.json
python3 -O verify_certificate.py regenerated.json
```

The search's alternative cap may cause UNKNOWN. It cannot turn a failed search
into an Alice-win claim; positive results require full independent checking.

## Lean 4 through elan

```sh
elan toolchain install leanprover/lean4:v4.30.0
lake exe cache get
python3 build_public_lean.py K9Sharded
```

`Game.lean` proves soundness against the actual finite game, with standard Lean
foundational axioms only. `K9.bob_wins` checks the concrete data using
`native_decide` (K8Checked uses cached finite computations; K9Sharded also separates node checks to bound memory), which trusts the Lean native evaluator/compiler in addition to
the kernel. The printed axiom audit must retain that distinction. No `sorry`
or assumption of the desired game result is used.

## Isabelle/HOL

With Isabelle2025 available as `isabelle`:

```sh
isabelle build -v -D isabelle Erdos778_K9
```

The game, safe-leaf bound, relabeling invariance, and certificate induction are
proved in HOL. Concrete finite obligations use `eval`, trusting Isabelle code
generation/evaluation and its ML runtime; this is not kernel-only reconstruction
of each arithmetic operation. `quick_and_dirty` is disabled.

## Regenerate the proof data

```sh
python3 generate_lean.py certificate.json K9.lean
python3 generate_isabelle.py certificate.json isabelle/K9.thy
```

The translators do not serve as proof oracles: the formal checks evaluate the
emitted states, every Alice response, and every used relabeling. SHA-256 values
identify artifacts, not mathematical truth or historical priority.
