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.UniqueFactorizationDomain.NormalizedFactors |
| 2 | import Mathlib.RingTheory.OrderOfVanishing.Noetherian |
| 3 | |
| 4 | /-! # Factor Order Sum -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.FactorOrderSum |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Restricting a nonzero element of a factorial domain gives the sum |
| 11 | of the orders of its actual prime factors, with their multiplicities. -/ |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable (R : Type u) [CommRing R] (S : Type v) [CommRing S] [IsDomain S] |
| 16 | (φ : R →+* S) |
| 17 | |
| 18 | theorem prod (L : Multiset R) (h : ∀ a ∈ L, φ a ≠ 0) : |
| 19 | Ring.ord S (φ L.prod) = (L.map (fun a => Ring.ord S (φ a))).sum := by |
| 20 | induction L using Multiset.induction_on with |
| 21 | | empty => simp |
| 22 | | cons a L ih => |
| 23 | rw [Multiset.prod_cons, map_mul, |
| 24 | Ring.ord_mul' S (mem_nonZeroDivisors_of_ne_zero (h a (Multiset.mem_cons_self _ _))), |
| 25 | ih (fun b hb => h b (Multiset.mem_cons_of_mem hb)), Multiset.map_cons, Multiset.sum_cons] |
| 26 | |
| 27 | theorem factors [IsDomain R] [UniqueFactorizationMonoid R] [NormalizationMonoid R] |
| 28 | (a : R) (ha : a ≠ 0) (hφa : φ a ≠ 0) : |
| 29 | Ring.ord S (φ a) = |
| 30 | ((UniqueFactorizationMonoid.normalizedFactors a).map (fun r => Ring.ord S (φ r))).sum := by |
| 31 | have h (r : R) (hr : r ∈ UniqueFactorizationMonoid.normalizedFactors a) : φ r ≠ 0 := by |
| 32 | obtain ⟨b, hb⟩ := UniqueFactorizationMonoid.dvd_of_mem_normalizedFactors hr |
| 33 | intro hz |
| 34 | apply hφa |
| 35 | rw [hb, map_mul, hz, zero_mul] |
| 36 | have he := (UniqueFactorizationMonoid.prod_normalizedFactors ha).map φ.toMonoidHom |
| 37 | exact (Ring.ord_eq_of_associated he).symm.trans |
| 38 | (FactorOrderSum.prod R S φ (UniqueFactorizationMonoid.normalizedFactors a) h) |
| 39 | |
| 40 | theorem factor_multiset [IsDomain R] [UniqueFactorizationMonoid R] |
| 41 | (a : R) (ha : a ≠ 0) (hφa : φ a ≠ 0) : |
| 42 | Ring.ord S (φ a) = |
| 43 | ((UniqueFactorizationMonoid.factors a).map (fun r => Ring.ord S (φ r))).sum := by |
| 44 | have h (r : R) (hr : r ∈ UniqueFactorizationMonoid.factors a) : φ r ≠ 0 := by |
| 45 | obtain ⟨b, hb⟩ := UniqueFactorizationMonoid.dvd_of_mem_factors hr |
| 46 | intro hz |
| 47 | apply hφa |
| 48 | rw [hb, map_mul, hz, zero_mul] |
| 49 | have he := (UniqueFactorizationMonoid.factors_prod ha).map φ.toMonoidHom |
| 50 | exact (Ring.ord_eq_of_associated he).symm.trans |
| 51 | (FactorOrderSum.prod R S φ (UniqueFactorizationMonoid.factors a) h) |
| 52 | |
| 53 | theorem rational_prod [IsNoetherianRing S] [Ring.KrullDimLE 1 S] |
| 54 | (L : Multiset R) (h : ∀ a ∈ L, φ a ≠ 0) : |
| 55 | ((Ring.ord S (φ L.prod)).toNat : ℚ) = |
| 56 | (L.map (fun a => ((Ring.ord S (φ a)).toNat : ℚ))).sum := by |
| 57 | induction L using Multiset.induction_on with |
| 58 | | empty => simp |
| 59 | | cons a L ih => |
| 60 | have ha := h a (Multiset.mem_cons_self _ _) |
| 61 | have hL : ∀ b ∈ L, φ b ≠ 0 := fun b hb => h b (Multiset.mem_cons_of_mem hb) |
| 62 | have hp : φ L.prod ≠ 0 := by |
| 63 | rw [map_multiset_prod] |
| 64 | exact Multiset.prod_ne_zero (by |
| 65 | intro hz |
| 66 | obtain ⟨b, hb, he⟩ := Multiset.mem_map.mp hz |
| 67 | exact hL b hb he) |
| 68 | rw [Multiset.prod_cons, map_mul, Ring.ord_mul' S (mem_nonZeroDivisors_of_ne_zero ha), |
| 69 | ENat.toNat_add (Ring.ord_ne_top (mem_nonZeroDivisors_of_ne_zero ha)) |
| 70 | (Ring.ord_ne_top (mem_nonZeroDivisors_of_ne_zero hp)), Nat.cast_add, |
| 71 | ih hL, Multiset.map_cons, Multiset.sum_cons] |
| 72 | |
| 73 | theorem rational_factors [IsDomain R] [UniqueFactorizationMonoid R] |
| 74 | [IsNoetherianRing S] [Ring.KrullDimLE 1 S] |
| 75 | (a : R) (ha : a ≠ 0) (hφa : φ a ≠ 0) : |
| 76 | ((Ring.ord S (φ a)).toNat : ℚ) = |
| 77 | ((UniqueFactorizationMonoid.factors a).map (fun r => ((Ring.ord S (φ r)).toNat : ℚ))).sum := by |
| 78 | have h (r : R) (hr : r ∈ UniqueFactorizationMonoid.factors a) : φ r ≠ 0 := by |
| 79 | obtain ⟨b, hb⟩ := UniqueFactorizationMonoid.dvd_of_mem_factors hr |
| 80 | intro hz |
| 81 | apply hφa |
| 82 | rw [hb, map_mul, hz, zero_mul] |
| 83 | have he := (UniqueFactorizationMonoid.factors_prod ha).map φ.toMonoidHom |
| 84 | exact (congrArg (fun n : ℕ∞ => (n.toNat : ℚ)) (Ring.ord_eq_of_associated he)).symm.trans |
| 85 | (rational_prod R S φ (UniqueFactorizationMonoid.factors a) h) |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.FactorOrderSum |