Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import Mathlib.RingTheory.Localization.Away.Basic |
| 2 | import Mathlib.Algebra.GroupWithZero.Associated |
| 3 | |
| 4 | /-! # Prime Localization Units -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.PrimeLocalizationUnits |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Units after inverting a prime element are scalar units times |
| 11 | integral powers of that element, expressed with explicit numerator and |
| 12 | denominator powers for use on projective chart overlaps. -/ |
| 13 | |
| 14 | universe u v |
| 15 | variable {R : Type u} [CommRing R] [IsDomain R] |
| 16 | variable {A : Type v} [CommRing A] [Algebra R A] |
| 17 | |
| 18 | theorem primeLocalization_unit_powers (p : R) (hp : Prime p) [IsLocalization.Away p A] |
| 19 | (z : Aˣ) : ∃ (c : Rˣ) (a b : ℕ), |
| 20 | (z : A) * algebraMap R A p ^ b = algebraMap R A (c : R) * algebraMap R A p ^ a := by |
| 21 | obtain ⟨b, r, hr⟩ := IsLocalization.Away.surj p (z : A) |
| 22 | have hu : IsUnit (algebraMap R A r) := by |
| 23 | rw [← hr] |
| 24 | exact z.isUnit.mul ((IsLocalization.Away.algebraMap_isUnit p).pow b) |
| 25 | obtain ⟨m, hm⟩ := (IsLocalization.Away.algebraMap_isUnit_iff (S := A) p).mp hu |
| 26 | obtain ⟨a, _, ha⟩ := (dvd_prime_pow hp m).mp hm |
| 27 | obtain ⟨c, hc⟩ := ha.symm |
| 28 | refine ⟨c, a, b, ?_⟩ |
| 29 | rw [hr, ← hc, map_mul, map_pow, mul_comm] |
| 30 | |
| 31 | end |
| 32 | |
| 33 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.PrimeLocalizationUnits |