ERDOS PROBLEM #114 ($250) -- LEAN 4 & COMPUTATIONAL AUDIT REPORT
Date: 2026-12-02 | Work dir: C:\Users\sanja\el\a114
Verdict: VERIFIED (unconditional Lean 4.35.0 formalization + exact rational/interval supplement; standard axioms only; definitionally equal to formal-conjectures)

1. SOURCE & PROVENANCE
- Paper: Teng Zhang, "A proof of the Erdos-Herzog-Piranian lemniscate conjecture", arXiv:2611.12830 (Nov 2026).
  (Follows Terence Tao, arXiv:2512.12455, Dec 2025, who proved the conjecture for all sufficiently large n.)
- Repository: https://github.com/zhangteng2000/ehp-lemniscate-verification-20261108
- Pinned immutable commit: f40d41fa0a73b47d19f36574ed06c0fab387b5f1
- Toolchain: leanprover/lean4:v4.35.0, Mathlib rev 56a005855ea17e0b0958f73ec801ae140b0a1679.
- Existing teorth/erdosproblems PR: #562 (open; held by teorth pending a formal-conjectures proof-link PR).

2. STATEMENT FAITHFULNESS & BRIDGE TO FORMAL-CONJECTURES
- Zhang's definitions (`lean/EHP/Definitions.lean`):
    def lemniscate (p : C[X]) : Set C := {z | ||p.eval z|| = 1}
    def length (p : C[X]) : R>=0inf := muH[1] (lemniscate p)
    def model (n : N) : C[X] := X ^ n - 1
- Finiteness is NOT assumed or hidden via ENNReal truncation: `EHP.lengthFiniteness` proves `length p < top` for all `1 <= p.natDegree`, and `EHP.erdos_herzog_piranian_boundary` additionally proves the real-valued (`toReal`) topological-frontier formulation (`frontier {z | ||p.eval z|| < 1}`).
- Main theorem (`lean/EHP/MainTheorem.lean:42-50`, `EHP.erdos_herzog_piranian`):
  For every `n >= 1` and every monic `p : C[X]` with `p.natDegree = n`:
    (1) `muH[1] {z : C | ||p.eval z|| = 1} <= muH[1] {z : C | ||z^n - 1|| = 1}`, AND
    (2) equality holds iff `exists (z0 : C) (theta : R), p = (X - C z0)^n - C (Complex.exp (theta * Complex.I))`.
- Local Lean 4.35.0 bridge check (`bridge/BridgeTypeCheck.lean`, `lake env lean` exit=0):
  Proved `EHP.MainInequality = (forall (n : N) (p : C[X]), 1 <= n -> p.Monic -> p.natDegree = n -> lemniscateLength p <= lemniscateLength (X ^ n - 1)) := rfl` -- exact definitional (`rfl`) equality with `FormalConjectures/ErdosProblems/114.lean` (`Erdos114.erdos_114`), plus one-line derivations of `erdos_114.variants.large_n` and `erdos_114.variants.two`, using only `[propext, Classical.choice, Quot.sound]`.

3. BUILD, AXIOM & TRUST AUDIT
- Static source scan across all 4,708 `.lean` files in `lean/EHP/` (1,066 analytic modules + 3,642 generated certificate modules):
  * `sorry` / `admit`: 0 occurrences
  * `axiom` declarations: 0 occurrences
  * `native_decide` / `Lean.ofReduceBool` / `Lean.trustCompiler`: 0 occurrences
  * `@[implemented_by]` / `@[extern]`: 0 occurrences
- How finite certificates are trusted in Lean:
  Every finite parameter-cover certificate (`Quartic` 1,056 modules, `SexticProjectedPhase` 662, `SexticLinearStrips` 332, `QuinticDisk` 320, `SepticFineStrips` 229, `SexticBands` 225, etc.) constructs explicit rational/norm_num proof terms checked directly inside the Lean 4 kernel -- NO `native_decide` or external oracle trust is used.
- `lean/Audit.lean` programmatically traverses every `EHP.*` constant via `collectAxioms` and fails compilation if any declaration uses anything outside `[propext, Classical.choice, Quot.sound]`.
- Build verification:
  * Locally compiled 770+ `EHP` modules (including `Definitions`, `ManuscriptBoundary`, `PolynomialCrofton`, `AffineDeficit`, `QuinticPaired` 130/130, `FiniteCircle` 29/29, `OcticProductStrips` 17/17, `Interpolation` 17/17, `CollinearMoments` 13/13, `AveragedInterpolation` 5/5) on Windows Lean 4.35.0 with 0 errors.
  * Verified independent full 6-shard Linux CI build of all 8,447 jobs at commit `f40d41fa` (`KoaOkano/erdos-prize-formalizations` run 46158727510, job 141065205423): `[8447/8447] Built EHP.MainTheorem`, `#print axioms` -> `[propext, Classical.choice, Quot.sound]`.

4. INDEPENDENT RE-EXECUTION OF EXACT RATIONAL / INTERVAL SUPPLEMENT (`zt/verification/`)
Re-ran all degree regimes locally on Windows Python 3.12 + 64-bit C# checked-integer compiler (assertions enabled, `-B`):
- Degree 3 (`audit_cubic_comparison.py`): exact Laurent identities & uniform rational bounds PASSED (exit=0).
- Degree 4 (`quartic_line/verify_quartic_line.py`, `verify_circle_constants.py`, `independent_circle_audit.py`): compiled C# checked-integer circuit, recomputed all 384 closed radical-chart intervals across both expanded and factored circuits, gap constant 1/32, independent curvature upper bound 1.370299 < 7/5 PASSED (exit=0).
- Degrees 5--8 (`stationary_circle_transfer.py` & `independent_stationary_circle_transfer.py`): both bisection (4,10,10,6 intervals) and independent trisection (4,12,12,6 intervals) exact rational covers PASSED (exit=0).
- Degrees 6--9 majorants (`audit_capacity_majorants_exact.py`, `audit_octic_majorant_exact.py`, `audit_nonic_majorant_exact.py`): exact rational inequalities (deg 6 <= 17/64, deg 7 < 9/25, deg 8 <= 925/1792 < 53/100, deg 9 < 9/10) PASSED (exit=0).
- Degrees 9--27 (`single_coefficient_transfer.py` & `independent_single_coefficient_transfer.py`): both primary and independent interval partitions passed for every n = 9..27 with strictly positive margins (least margin 1.60e-4 at n=10) PASSED (exit=0).
- Degrees >= 28 (`uniform_circle_transfer.py` & `inverse_beta_moment_audit.py`): uniform degree-free rational endpoint arithmetic and 161 recurrence identities PASSED (exit=0).
