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.Homogeneous.FiniteDivision |
| 2 | |
| 3 | /-! # Leading Bound Spans -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.LeadingBoundSpans.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Spans of generator multiples with a strict leading-term bound, including stability under multiplication. -/ |
| 10 | |
| 11 | open _root_.MvPolynomial |
| 12 | open scoped MonomialOrder |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable {K : Type u} [Field K] {n : ℕ} |
| 17 | variable (m : MonomialOrder (Fin (n + 1))) {ι : Type v} (b : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) |
| 18 | |
| 19 | def leadingBelow (a : m.syn) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) : Prop := |
| 20 | f = 0 ∨ m.toSyn (m.degree f) < a |
| 21 | |
| 22 | def lowerLeadingSpan (a : m.syn) : Submodule K (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) := |
| 23 | Submodule.span K {f | ∃ i q, f = q * b i ∧ leadingBelow m a f} |
| 24 | |
| 25 | theorem leadingBelow_add (a : m.syn) {f g : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n} |
| 26 | (hf : leadingBelow m a f) (hg : leadingBelow m a g) : leadingBelow m a (f + g) := by |
| 27 | rcases hf with rfl | hf |
| 28 | · simpa only [zero_add] using hg |
| 29 | rcases hg with rfl | hg |
| 30 | · exact Or.inr (by simpa only [add_zero] using hf) |
| 31 | exact Or.inr (m.degree_add_le.trans_lt (sup_lt_iff.mpr ⟨hf, hg⟩)) |
| 32 | |
| 33 | theorem leadingBelow_smul (a : m.syn) (c : K) {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n} |
| 34 | (hf : leadingBelow m a f) : leadingBelow m a (c • f) := by |
| 35 | rcases hf with rfl | hf |
| 36 | · exact Or.inl (smul_zero c) |
| 37 | · exact Or.inr (m.degree_smul_le.trans_lt hf) |
| 38 | |
| 39 | theorem leadingBelow_mul (a : m.syn) (p : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n} |
| 40 | (hf : leadingBelow m a f) : leadingBelow m (m.toSyn (m.degree p) + a) (p * f) := by |
| 41 | rcases hf with rfl | hf |
| 42 | · exact Or.inl (mul_zero p) |
| 43 | · exact Or.inr (m.degree_mul_le.trans_lt (by simpa only [map_add, add_comm] using add_lt_add_left hf (m.toSyn (m.degree p)))) |
| 44 | |
| 45 | theorem mem_lowerLeadingSpan (a : m.syn) (i : ι) (q : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) |
| 46 | (hq : leadingBelow m a (q * b i)) : q * b i ∈ lowerLeadingSpan m b a := |
| 47 | Submodule.subset_span ⟨i, q, rfl, hq⟩ |
| 48 | |
| 49 | theorem lowerLeadingSpan_mono {a c : m.syn} (hac : a ≤ c) : lowerLeadingSpan m b a ≤ lowerLeadingSpan m b c := by |
| 50 | apply Submodule.span_mono |
| 51 | rintro f ⟨i, q, rfl, hq⟩ |
| 52 | exact ⟨i, q, rfl, hq.imp_right (fun h => h.trans_le hac)⟩ |
| 53 | |
| 54 | theorem leadingBelow_of_mem_lowerLeadingSpan (a : m.syn) {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n} |
| 55 | (hf : f ∈ lowerLeadingSpan m b a) : leadingBelow m a f := by |
| 56 | induction hf using Submodule.span_induction with |
| 57 | | mem x hx => exact hx.choose_spec.choose_spec.2 |
| 58 | | zero => exact Or.inl rfl |
| 59 | | add x y _ _ hx hy => exact leadingBelow_add m a hx hy |
| 60 | | smul c x _ hx => exact leadingBelow_smul m a c hx |
| 61 | |
| 62 | theorem mul_mem_lowerLeadingSpan (a : m.syn) (p : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n} |
| 63 | (hf : f ∈ lowerLeadingSpan m b a) : p * f ∈ lowerLeadingSpan m b (m.toSyn (m.degree p) + a) := by |
| 64 | induction hf using Submodule.span_induction with |
| 65 | | mem x hx => |
| 66 | obtain ⟨i, q, rfl, hq⟩ := hx |
| 67 | rw [← mul_assoc] |
| 68 | exact mem_lowerLeadingSpan m b _ i (p * q) (by rw [mul_assoc]; exact leadingBelow_mul m a p hq) |
| 69 | | zero => simpa only [mul_zero] using (lowerLeadingSpan m b _).zero_mem |
| 70 | | add x y _ _ hx hy => simpa only [mul_add] using (lowerLeadingSpan m b _).add_mem hx hy |
| 71 | | smul c x _ hx => simpa only [mul_smul_comm] using (lowerLeadingSpan m b _).smul_mem c hx |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.LeadingBoundSpans.GradedHilbert |