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.Regular.RegularSequence |
| 2 | |
| 3 | /-! # Sequence Tail Change -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Regular.SequenceTailChange.Constructions |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Adding a combination of the remaining equations to the first |
| 10 | equation preserves the generated ideal and regularity over a local ring. -/ |
| 11 | |
| 12 | open RingTheory.Sequence |
| 13 | open scoped Pointwise |
| 14 | |
| 15 | universe u v |
| 16 | variable {R : Type u} [CommRing R] (M : Type v) [AddCommGroup M] [Module R M] |
| 17 | |
| 18 | theorem quotient_smul_eq_zero (I : Ideal R) (t : R) (ht : t ∈ I) |
| 19 | (y : M ⧸ (I • ⊤ : Submodule R M)) : t • y = 0 := by |
| 20 | obtain ⟨m, rfl⟩ := Submodule.mkQ_surjective (I • ⊤ : Submodule R M) y |
| 21 | rw [← map_smul, Submodule.mkQ_apply, Submodule.Quotient.mk_eq_zero] |
| 22 | exact Submodule.smul_mem_smul ht (Submodule.mem_top : m ∈ (⊤ : Submodule R M)) |
| 23 | |
| 24 | theorem regular_add_annihilator (x t : R) (ht : ∀ y : M, t • y = 0) (hx : IsSMulRegular M x) : |
| 25 | IsSMulRegular M (x + t) := by |
| 26 | change Function.Injective (fun y : M => (x + t) • y) |
| 27 | change Function.Injective (fun y : M => x • y) at hx |
| 28 | simpa only [add_smul, ht, add_zero] using hx |
| 29 | |
| 30 | theorem ofList_add_tail (x t : R) (rs : List R) (ht : t ∈ Ideal.ofList rs) : |
| 31 | Ideal.ofList ((x + t) :: rs) = Ideal.ofList (x :: rs) := by |
| 32 | have htail : Ideal.ofList rs ≤ Ideal.ofList (x :: rs) := |
| 33 | Ideal.span_mono (fun _ h => List.mem_cons_of_mem x h) |
| 34 | have htail' : Ideal.ofList rs ≤ Ideal.ofList ((x + t) :: rs) := |
| 35 | Ideal.span_mono (fun _ h => List.mem_cons_of_mem (x + t) h) |
| 36 | apply le_antisymm |
| 37 | · apply Ideal.span_le.mpr |
| 38 | intro a ha |
| 39 | rcases List.mem_cons.mp ha with he | ha |
| 40 | · rw [he] |
| 41 | exact (Ideal.ofList (x :: rs)).add_mem (Ideal.subset_span List.mem_cons_self) (htail ht) |
| 42 | · exact Ideal.subset_span (List.mem_cons_of_mem x ha) |
| 43 | · apply Ideal.span_le.mpr |
| 44 | intro a ha |
| 45 | rcases List.mem_cons.mp ha with he | ha |
| 46 | · rw [he] |
| 47 | have h := (Ideal.ofList ((x + t) :: rs)).sub_mem |
| 48 | (Ideal.subset_span List.mem_cons_self) (htail' ht) |
| 49 | rw [add_sub_cancel_right] at h |
| 50 | exact h |
| 51 | · exact Ideal.subset_span (List.mem_cons_of_mem (x + t) ha) |
| 52 | |
| 53 | variable [IsLocalRing R] [IsNoetherian R M] |
| 54 | |
| 55 | theorem weaklyRegular_add_tail (x t : R) (rs : List R) (ht : t ∈ Ideal.ofList rs) |
| 56 | (hm : ∀ r ∈ x :: rs, r ∈ IsLocalRing.maximalIdeal R) |
| 57 | (hr : IsWeaklyRegular M (x :: rs)) : IsWeaklyRegular M ((x + t) :: rs) := by |
| 58 | have hp : (x :: rs).Perm (rs ++ [x]) := |
| 59 | show ([x] ++ rs).Perm (rs ++ [x]) from List.perm_append_comm |
| 60 | have h := IsLocalRing.isWeaklyRegular_of_perm_of_subset_maximalIdeal hr hp hm |
| 61 | obtain ⟨hrs, hx⟩ := (isWeaklyRegular_append_iff M rs [x]).mp h |
| 62 | have hx' : IsWeaklyRegular (M ⧸ (Ideal.ofList rs • ⊤ : Submodule R M)) [x + t] := |
| 63 | (isWeaklyRegular_singleton_iff _ _).mpr |
| 64 | (regular_add_annihilator _ x t (quotient_smul_eq_zero M (Ideal.ofList rs) t ht) |
| 65 | ((isWeaklyRegular_singleton_iff _ _).mp hx)) |
| 66 | have hnew := (isWeaklyRegular_append_iff M rs [x + t]).mpr ⟨hrs, hx'⟩ |
| 67 | have htail : Ideal.ofList rs ≤ IsLocalRing.maximalIdeal R := |
| 68 | Ideal.span_le.mpr (fun _ h => hm _ (List.mem_cons_of_mem x h)) |
| 69 | have hm' : ∀ r ∈ rs ++ [x + t], r ∈ IsLocalRing.maximalIdeal R := by |
| 70 | intro r hr |
| 71 | rcases List.mem_append.mp hr with hr | hr |
| 72 | · exact hm r (List.mem_cons_of_mem x hr) |
| 73 | · obtain rfl := List.mem_singleton.mp hr |
| 74 | exact (IsLocalRing.maximalIdeal R).add_mem (hm x List.mem_cons_self) (htail ht) |
| 75 | exact IsLocalRing.isWeaklyRegular_of_perm_of_subset_maximalIdeal hnew |
| 76 | (show (rs ++ [x + t]).Perm ([x + t] ++ rs) from List.perm_append_comm) hm' |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.CycleClass.Thom.Regular.SequenceTailChange.Constructions |