# Repository Briefing: jweihe/hee
> Source: https://repoforai.com/repo/jweihe/hee (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/jweihe/hee
- **Official Docs / Website**: https://jweihe.github.io/hee/
- **Category**: LLMs & Inference (大模型与推理微调)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: B+ (74/100 · Maintenance 35/35 · Adoption 8/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, CLI
- **Momentum**: 57 ★ total (+36 24h / +57 7d) · 4 forks
- **Topics**: `ai-agents`, `arena`, `benchmark`, `conjectures`, `formal-verification`, `lean4`, `llm`, `mathematics`, `optimization`
- **When to Use**: Best for: Research teams evaluating whether models can pose formalizable problems, produce machine-checkable solutions, or improve a concrete optimization baseline. Skip if: You need prose-proof grading, turnkey model inference, or a fixed benchmark that stays comparable without preserving your own snapshot.

## Overview
```text
### Architecture & Core Mechanics
HEE is a repository-backed benchmark and grader, not a model-serving stack. Its setuptools package exposes `hee.cli:main` as the `hee` command, requires Python 3.9 or newer, and declares no base Python dependencies. The optional `science` extra declares NumPy >=1.26 and SciPy >=1.11; formal proof checking uses Lean 4 and Mathlib.

The extension unit is a directory under `problems/`, with a plain-language `README.md` and a formal specification. Lean handles proofs and disproofs, while Python checks finite constructions, counterexamples and optimization submissions against task-specific criteria. The CLI separates authoring (`hee new`, `hee formalize`), submission checking (`hee check`), and batch evaluation (`hee export`, `hee eval`). Models generate attempts outside that grading flow.

### Key Capabilities & Differentiators
The contribution workflow evaluates problem posing as well as solving. Drafts can be formalized later, with the formalizer credited alongside the proposer. Original problems still open after five days become candidates for one maintainer review. Admitted problems enter the open benchmark and move to the solved dataset when resolved. Survival determines difficulty tiers at 5, 10, 20, 30 and 50 days; classic open problems use a separate solver award of 20 or 50 points and earn no proposer points.

`hee export --after` selects reviewed problems published after a chosen date and separates solved answers from prompts and verifiers. Attempts are collected as Lean files or JSON objects, and `hee eval --k 1,5` requests results at two attempt budgets. The solved dataset reports solve rate, pass@k and points by difficulty tier, without a judge model or reference-answer matching. A valid answer on the open set can instead be submitted as a new result.

### Trade-offs & Limitations
A fixed-answer benchmark is easier to keep stable across regression runs. HEE instead tests whether an attempt satisfies a formal statement or task-specific verifier. This can accept valid solutions that differ from known answers and removes judge-model variability, but it shifts work to precise formalization, verifier quality and maintainer review. A prose proof is not an accepted substitute for a checked artifact.

A post-cutoff export is a useful dataset filter, not proof that the underlying ideas were absent from training data. The live pool changes as tasks are admitted and solved, and survival tiers reflect participation and elapsed time rather than a calibrated difficulty scale. The scoring rules are still provisional. For repeatable model comparisons, freeze the export, repository revision, toolchain and attempt budget instead of comparing live leaderboard totals.

### Hardware & Deployment Guide
For a source checkout, install with `pip install -e .` on Python 3.9+. For Lean grading, the Dockerfile starts from `python:3.12-slim`, installs Elan, and packages a pinned Lean toolchain with prebuilt Mathlib. It sets `HEE_LEAN_PROJECT=/opt/hee/lean`; the documented run mounts the caller's workspace at `/work` and reads the exported release and answer file from that mount.

The image build fetches the Elan installer, so do not assume a fresh build works offline. Once the environment and evaluation files are available, grading does not require a hosted inference service. Budget local CPU, memory and disk for Lean/Mathlib and verification workload; model inference is a separate resource budget. No GitHub release is listed, so pin the repository revision and retain benchmark exports for repeatable comparisons.
```

## Key Capabilities
```text
- CLI: The `hee` command maps to `hee.cli:main`; the base package supports Python 3.9+ with no declared Python dependencies.
- Task contracts: Problem folders pair a plain-language statement with Lean 4 or Python checks; optimization tasks start from a working `baseline.py`.
- Dataset lifecycle: Original problems that survive five days become eligible for maintainer review, then move from the open benchmark to the solved dataset when resolved.
- Evaluation isolation: `hee export --after` filters reviewed tasks by date and keeps solved answers separate from standard prompts and verifiers.
- Reporting: The solved dataset supports solve rate, pass@k and points by difficulty tier; survival thresholds are 5, 10, 20, 30 and 50 days.
- Container: The Python 3.12 slim image bundles pinned Lean and prebuilt Mathlib, with `HEE_LEAN_PROJECT=/opt/hee/lean`.
```

## Quick Start / Clone
```bash
hee export --after 2026-06-01 --out release        # verifiers, standard prompts, solved answers kept apart
hee eval --release release --answers model.jsonl --lean --k 1,5
```
