Admission, Verification & Review
Machines check every problem and solution. Drafts, Lean problems and solutions merge on their own; new Python code (problem.py, task.py, baseline.py) is also read by a maintainer before it merges. A maintainer reviews a problem once more when it has survived long enough to be a benchmark candidate, and rules on challenges.
flowchart LR P["Problem PR"] --> A["Automatic checks"] A --> O["Open: 1 point a day, then 5 · 10 · 20 · 30 · 50"] O -->|"5 days open"| C["Candidate"] C -->|"one maintainer review"| B["Benchmark"] O -->|"machine-checked solution"| S["Solved"] B -->|"machine-checked solution"| D["Dataset"]
1. Admission
A new problem, draft or formalization must pass all checks:
- Format and limits (
hee review): a valid<name>folder, handles matching the pull-request author, at most 10 new problems per person in any 7 days, no edits to merged files, no structural duplicates. - Lean baseline (
hee lean-check --baseline):problem.leanelaborates against pinned Mathlib with nosorryor extra axioms, and standard automation (decide,norm_num,omega,linarith,positivity,ring,simp,aesop,exact?) proves neitherHEE.<name>nor¬ HEE.<name>. - Python baseline (
hee review):problem.pypasses the sandbox lint, holds on at least 10 small built-in inputs, and survives three seeds of local search (hee run). - Optimization baseline (
hee review):task.pyandbaseline.pypass the AST lint,baseline.pypassesverifywithinTIME_LIMIT_Sin an isolated single-threaded subprocess, andbaseline.pydoes not already meetTARGET(runtime: gpuproblems pass static checks and wait for a maintainer). - A maintainer reads new Python code. Once merged,
problem.py,task.pyandbaseline.pyrun inside the site build and the challenger, so a maintainer reads them before merging. The lints keep the code small and pure, but they are not a security boundary. Drafts, Lean files and closing files merge as soon as their checks pass.
These checks filter out malformed and easy problems. They do not judge whether a problem is interesting or new; time and the benchmark review do.
Manual PRs need two distinct HEE maintainers to approve the current head commit. The author does not count. A maintainer can merge after Referee, HEE admission, and any applicable Lean verification pass. Drafts, ordinary Lean proposals and verified CPU solutions retain automatic admission. A classic, GPU submission or Lean restatement uses the manual route. Issue challenges and benchmark decisions go through a PR. Triage refreshes the admission status when CI completes or a review changes. A maintainer can also rerun Triage with a PR number and disable the optional AI review. An incomplete file listing blocks admission; split a PR that exceeds GitHub's file-list limit. Challenger saves verified record patches to a challenger/records-… branch; its run summary links to the PR form. A maintainer opens that PR for review.
2. Machine-checked closing
Prose proofs are not accepted. A closing file merges once it is verified against the formal statement on main:
- Lean (
proof.lean,disproof.lean):problem.leanfrommainis placed verbatim ahead of the proof, compiled withlake env lean, and checked with#print axioms(propext,Classical.choice,Quot.soundonly). - Python (
counterexample.json,witness.json): deterministic evaluation in under 10 seconds; problems worth 20 points or more also need amethoddescription. - Optimization (
solution.py): benchmarked in an isolated single-threaded subprocess againsttask.pyandbaseline.pyfrommainacross public and holdout seeds (interleaved rounds forspeedup, holdout mean forminimize/maximize). - True Python claims. A
forallclaim inproblem.pycan only be refuted by a counterexample. To make it provable, anyone may addproblem.leanto the folder, a Lean restatement of the same claim; a maintainer checks that it is faithful before it merges. After that,proof.leanordisproof.leancloses the problem as well.
3. Benchmark review
An original problem that stays open for 5 days becomes a candidate (hee ls --candidates). A maintainer reviews it once:
- the statement is meaningful and not trivial;
- the formal file says what the README says;
- the closing rule is sound (and any Lean restatement matches);
- the problem is original, not a known result or a variant of another problem.
Accepted problems are recorded in maintainers/decisions.json with the reviewer's handle and enter the benchmark; once solved they move to the dataset. Rejected candidates stay open and keep their points unless voided.
4. Challenges
Anyone can challenge a merged problem or solution at any time with the Challenge issue template and evidence:
- a known theorem or a claim with a known counterexample;
- an unfaithful formalization or a Lean / Mathlib encoding bug;
- near-duplicate variants or sock-puppet self-solving.
Upheld challenges are recorded in maintainers/decisions.json (void) with the reason, and the problem's points go to zero.