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.DividedPowers.DPMorphism |
| 2 | import Mathlib.RingTheory.Localization.Ideal |
| 3 | |
| 4 | /-! # Localization Operations -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.PD.LocalizationOperations.PDLocalizationOperations |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Divided-power operations on a localized ideal |
| 12 | |
| 13 | The localized operation sends a fraction x/s with x in the original PD |
| 14 | ideal to gamma_n(x)/s^n. Homogeneity of divided powers proves that this |
| 15 | formula is independent of the fraction representation, even when the |
| 16 | coefficient ring has torsion or the localization map is not injective. |
| 17 | -/ |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 22 | (M : Submonoid R) [IsLocalization M S] (I : Ideal R) (δ : DividedPowers I) |
| 23 | |
| 24 | local notation "J" => I.map (algebraMap R S) |
| 25 | |
| 26 | theorem fraction_congr (n : ℕ) (x y : R) (hx : x ∈ I) (hy : y ∈ I) (s t : M) |
| 27 | (h : IsLocalization.mk' S x s = IsLocalization.mk' S y t) : |
| 28 | IsLocalization.mk' S (δ.dpow n x) (s ^ n) = IsLocalization.mk' S (δ.dpow n y) (t ^ n) := by |
| 29 | obtain ⟨c, hc⟩ := (IsLocalization.eq (S := S)).mp h |
| 30 | apply (IsLocalization.eq (S := S)).mpr |
| 31 | refine ⟨c ^ n, ?_⟩ |
| 32 | have hd := congrArg (δ.dpow n) hc |
| 33 | rw [← mul_assoc, δ.dpow_mul hx, ← mul_assoc, δ.dpow_mul hy, mul_pow, mul_pow, |
| 34 | mul_assoc, mul_assoc] at hd |
| 35 | exact hd |
| 36 | |
| 37 | def representative (z : S) (hz : z ∈ J) : I × M := |
| 38 | ((IsLocalization.mem_map_algebraMap_iff M S).mp hz).choose |
| 39 | |
| 40 | theorem representative_spec (z : S) (hz : z ∈ J) : |
| 41 | z = IsLocalization.mk' S ((representative R S M I z hz).1 : R) (representative R S M I z hz).2 := |
| 42 | IsLocalization.eq_mk'_iff_mul_eq.mpr ((IsLocalization.mem_map_algebraMap_iff M S).mp hz).choose_spec |
| 43 | |
| 44 | def dpow (n : ℕ) (z : S) : S := by |
| 45 | classical |
| 46 | exact if hz : z ∈ J then IsLocalization.mk' S (δ.dpow n (representative R S M I z hz).1) |
| 47 | ((representative R S M I z hz).2 ^ n) else 0 |
| 48 | |
| 49 | theorem fraction_mem (x : R) (hx : x ∈ I) (s : M) : IsLocalization.mk' S x s ∈ J := |
| 50 | IsLocalization.mk'_mem_iff.mpr (Ideal.mem_map_of_mem (algebraMap R S) hx) |
| 51 | |
| 52 | theorem dpow_fraction (n : ℕ) (x : R) (hx : x ∈ I) (s : M) : |
| 53 | PDLocalizationOperations.dpow R S M I δ n (IsLocalization.mk' S x s) = IsLocalization.mk' S (δ.dpow n x) (s ^ n) := by |
| 54 | rw [PDLocalizationOperations.dpow, dite_eq_left (fraction_mem R S M I x hx s)] |
| 55 | apply fraction_congr R S M I δ n _ x |
| 56 | (representative R S M I _ (fraction_mem R S M I x hx s)).1.property hx |
| 57 | exact (representative_spec R S M I _ (fraction_mem R S M I x hx s)).symm |
| 58 | |
| 59 | theorem dpow_algebraMap (n : ℕ) (x : R) (hx : x ∈ I) : |
| 60 | PDLocalizationOperations.dpow R S M I δ n (algebraMap R S x) = algebraMap R S (δ.dpow n x) := by |
| 61 | rw [← IsLocalization.mk'_one (M := M) S x, dpow_fraction R S M I δ n x hx, |
| 62 | one_pow, IsLocalization.mk'_one] |
| 63 | |
| 64 | theorem dpow_null (n : ℕ) (z : S) (hz : z ∉ J) : PDLocalizationOperations.dpow R S M I δ n z = 0 := by |
| 65 | rw [PDLocalizationOperations.dpow, dite_eq_right hz] |
| 66 | |
| 67 | theorem dpow_zero (z : S) (hz : z ∈ J) : PDLocalizationOperations.dpow R S M I δ 0 z = 1 := by |
| 68 | rw [representative_spec R S M I z hz, dpow_fraction R S M I δ 0 _ |
| 69 | (representative R S M I z hz).1.property, δ.dpow_zero (representative R S M I z hz).1.property, |
| 70 | pow_zero, IsLocalization.mk'_one, map_one] |
| 71 | |
| 72 | theorem dpow_one (z : S) (hz : z ∈ J) : PDLocalizationOperations.dpow R S M I δ 1 z = z := by |
| 73 | rw [representative_spec R S M I z hz, dpow_fraction R S M I δ 1 _ |
| 74 | (representative R S M I z hz).1.property, δ.dpow_one (representative R S M I z hz).1.property, pow_one] |
| 75 | |
| 76 | theorem dpow_mem (n : ℕ) (hn : n ≠ 0) (z : S) (hz : z ∈ J) : PDLocalizationOperations.dpow R S M I δ n z ∈ J := by |
| 77 | rw [representative_spec R S M I z hz, dpow_fraction R S M I δ n _ |
| 78 | (representative R S M I z hz).1.property] |
| 79 | exact fraction_mem R S M I _ (δ.dpow_mem hn (representative R S M I z hz).1.property) _ |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.PD.LocalizationOperations.PDLocalizationOperations |