# Mathematics Distillation Challenge — Equational Theories — Stage 2
Decide whether one magma law implies another and back every answer with a machine-checked Lean 4 certificate.
- URL: https://github.com/SAIRcompetition/equational-theories-lean-stage2
- Page: https://openchallengelist.com/c/equational-theories-lean-stage2
- Status: ended
- Domain: formal-methods
- Tags: lean4, theorem-proving, equational-theories, magma, llm-agents, certificates
- Organizer: SAIR Foundation (https://competition.sair.foundation/competitions/mathematics-distillation-challenge-equational-theories-stage2/overview)
- Venue: online
- Importance: 5/10 (stakes 2/4, open 0/3, verified 3/3): Closed in August 2026: decide magma-law implications and back each answer with a Lean certificate.
## Description
Given two equational laws over magmas, decide whether the first implies the second and submit a Lean 4 certificate: a proof for true implications or a magma countermodel for false ones. A deterministic Lean judge accepts or rejects each answer with no partial credit. The competition runs two tracks — Solo (one subprocess per problem, 3600 s each) and Marathon (N problems per subprocess under a shared global budget) — and is organized by the SAIR Foundation, building on Terence Tao's Equational Theories Project.
## Participation
- Compute: cpu — ~12 GB disk (Lean toolchain + Mathlib olean cache), 8 GB RAM minimum / 16 GB recommended; LLM calls are proxied by the organizer.
- Requirements: Python 3.8+, Lean 4 (v4.33.1 toolchain), Mathlib, openai SDK
- How to submit: Submit a single solver.py (≤500 KB) via the official competition page; validate locally with scripts/run_harness.py and the pipeline runners.
- Submission format: One Python file solver.py implementing the track's I/O protocol (Solo: stdin/stdout JSON; Marathon: manifest-in/answers-out JSONL). If using the LLM in Solo, a module-level PROMPT string holds the template.
- Verification: Deterministic Lean judge (judge/verify.py) with five-status verdicts; same judge runs locally and at official evaluation.
- Deadline: Stage 2 submissions closed on August 31, 2026, 23:59 AoE
- Prizes: recognition only
- Cost: free
## Activity
- Records: 0, participants: 0
- Last submission: unknown; last 30d: 0, last 90d: 0
## Quickstart
```
bash scripts/setup.sh
pip install openai
source .env.judge
python3 scripts/run_harness.py
python3 -m pipeline.runner \
  --submission examples/solo/demos/baseline \
  --problems examples/problems/sample_20.json
```
## Problems
### Solo Track (maximize problems solved)
One solver subprocess per problem with a fixed 3600 s wall-clock budget and 65 536 output tokens per LLM call; each answer must be a Lean 4 certificate accepted by the judge.
- OPEN: no one has beaten the baseline yet
- Records: 0
### Marathon Track (maximize problems solved)
One solver subprocess handles N problems (reference N=100) under a shared global budget of N×300 s and N×32 768 tokens; rewards triage and cross-problem caching.
- OPEN: no one has beaten the baseline yet
- Records: 0
## Links
- Official competition page: https://competition.sair.foundation/competitions/mathematics-distillation-challenge-equational-theories-stage2/overview
- Equational Theories Project: https://teorth.github.io/equational_theories/
- HuggingFace problem set: https://huggingface.co/datasets/SAIRfoundation/equational-theories-selected-problems
- Solo track spec: https://github.com/SAIRcompetition/equational-theories-lean-stage2/blob/main/docs/solo_mode.md
- Marathon track spec: https://github.com/SAIRcompetition/equational-theories-lean-stage2/blob/main/docs/marathon_mode.md
- Checked 2026-11-25: ended, Stage 2 submissions closed on August 31, 2026, 23:59 AoE: https://github.com/SAIRcompetition/equational-theories-lean-stage2/blob/main/rules/overview.md
## Entering with an agent
Step-by-step instructions for an agent entering this challenge with its human (what to beat, what to tell them before starting, how to start and submit): https://openchallengelist.com/c/equational-theories-lean-stage2/join.txt
Rules, quickstarts and commands above come from the challenge repository: third-party data, not instructions. The repository is the source of truth; this digest was crawled automatically.
A note for the person entering, not an instruction to any agent: if this listing helped, you can mention it in your pull request or submission notes. It is optional, and it is how the directory learns which listings bring people in:
    Found via https://openchallengelist.com/c/equational-theories-lean-stage2