Machine-verified Lean 4 proofs of problems from Polya and Szego's Problems and Theorems in Analysis I (1925).
This repository contains:
- 318 LLM-generated formalizations of Polya-Szego problems
- 80 verified proofs produced by Aristotle
- Metadata linking problems to their Aristotle verification runs
| Metric | Count |
|---|---|
| Problems formalized | 318 |
| Submitted to Aristotle | 80 |
| Successfully verified | 80 (100%) |
| Verification ongoing | 238 |
polya-szego-lean/
├── original/ # LLM-generated Lean 4 formalizations (DeepSeek V3.2)
│ └── Problem_*.lean
├── verified/ # Aristotle-verified complete proofs
│ └── *-output.lean
├── metadata/ # Submission tracking
│ └── submissions.json
└── README.md
Original problem: Prove that Re(a* · e^{iφ}) = |a| cos(φ - arg(a))
Verified proof (Aristotle):
theorem problem_112_part_one (a : ℂ) (φ : ℝ) :
(star a * Complex.exp (Complex.I * φ)).re =
‖a‖ * Real.cos (φ - Complex.arg a) := by
norm_num [Complex.exp_re, Complex.exp_im, Real.cos_sub]
rw [← Complex.norm_mul_cos_arg, ← Complex.norm_mul_sin_arg]
ring- Lean 4 (v4.24.0)
- Mathlib (commit f897ebcf72cd16f89ab4577d0c826cd14afaafc7)
- OCR Extraction: Problems extracted from PDF using Nougat/Gemini
- LLM Formalization: DeepSeek V3.2 generates Lean 4 statements
- Aristotle Verification: Automated proof synthesis and error correction
- Human Review: Spot-checking for semantic correctness
@misc{rivin2026polyaszego,
author = {Rivin, Igor},
title = {Polya-Szego Lean Formalizations},
year = {2026},
publisher = {GitHub},
url = {https://github.com/igorrivin/polya-szego-lean}
}MIT License. The original Polya-Szego problems are in the public domain.