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 OAI.AlgebraicGeometry.HilbertScheme.Presentations.PrimeLocalizationUnits |
| 2 | import Mathlib.Algebra.GroupWithZero.Divisibility |
| 3 | |
| 4 | /-! # Prime Localization Unit Uniqueness -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.PrimeLocalizationUnitUniqueness |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A unit's scalar and integral exponent after prime localization |
| 11 | are unique, independently of a numerator-denominator presentation. -/ |
| 12 | |
| 13 | universe u v |
| 14 | variable {R : Type u} [CommRing R] [IsDomain R] |
| 15 | variable {A : Type v} [CommRing A] [Algebra R A] |
| 16 | variable (p : R) (hp : Prime p) [IsLocalization.Away p A] |
| 17 | |
| 18 | include p hp in |
| 19 | theorem primeLocalization_injective : Function.Injective (algebraMap R A) := by |
| 20 | apply IsLocalization.injective (M := Submonoid.powers p) |
| 21 | rintro r ⟨m, rfl⟩ |
| 22 | exact mem_nonZeroDivisors_iff_ne_zero.mpr (pow_ne_zero m hp.ne_zero) |
| 23 | |
| 24 | include hp in |
| 25 | theorem primeLocalization_scalar_power_unique (c d : Rˣ) (a b : ℕ) |
| 26 | (h : algebraMap R A (c : R) * algebraMap R A p ^ a = |
| 27 | algebraMap R A (d : R) * algebraMap R A p ^ b) : c = d ∧ a = b := by |
| 28 | have he : (c : R) * p ^ a = (d : R) * p ^ b := |
| 29 | primeLocalization_injective (A := A) p hp (by simpa only [map_mul, map_pow] using h) |
| 30 | have ha : Associated (p ^ a) (p ^ b) := |
| 31 | (associated_unit_mul_right (p ^ a) (c : R) c.isUnit).trans |
| 32 | (he.symm ▸ associated_unit_mul_left (p ^ b) (d : R) d.isUnit) |
| 33 | have hab : a = b := Nat.le_antisymm |
| 34 | ((pow_dvd_pow_iff hp.ne_zero hp.not_isUnit).mp ha.dvd) |
| 35 | ((pow_dvd_pow_iff hp.ne_zero hp.not_isUnit).mp ha.symm.dvd) |
| 36 | subst b |
| 37 | exact ⟨Units.ext (mul_right_cancel₀ (pow_ne_zero a hp.ne_zero) he), rfl⟩ |
| 38 | |
| 39 | include hp in |
| 40 | theorem primeLocalization_unit_exponent_unique (z : Aˣ) (c d : Rˣ) (a b k l : ℕ) |
| 41 | (h : (z : A) * algebraMap R A p ^ b = algebraMap R A (c : R) * algebraMap R A p ^ a) |
| 42 | (h' : (z : A) * algebraMap R A p ^ l = algebraMap R A (d : R) * algebraMap R A p ^ k) : |
| 43 | c = d ∧ (a : ℤ) - b = (k : ℤ) - l := by |
| 44 | have he : algebraMap R A (c : R) * algebraMap R A p ^ (a + l) = |
| 45 | algebraMap R A (d : R) * algebraMap R A p ^ (k + b) := by |
| 46 | calc |
| 47 | _ = ((z : A) * algebraMap R A p ^ b) * algebraMap R A p ^ l := by |
| 48 | rw [h, pow_add, mul_assoc] |
| 49 | _ = ((z : A) * algebraMap R A p ^ l) * algebraMap R A p ^ b := mul_right_comm _ _ _ |
| 50 | _ = _ := by rw [h', pow_add, mul_assoc] |
| 51 | obtain ⟨hc, he⟩ := primeLocalization_scalar_power_unique p hp c d (a + l) (k + b) he |
| 52 | exact ⟨hc, by omega⟩ |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.PrimeLocalizationUnitUniqueness |