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.LeadingBoundRepresentations |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.LeadingRepresentationLowering |
| 3 | import Mathlib.Data.List.OfFn |
| 4 | |
| 5 | /-! # Leading Representations -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.LeadingRepresentations.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Finite generator representations have a leading bound; lower bounded spans provide strictly smaller witnesses. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | variable {K : Type u} [Field K] {n : ℕ} |
| 18 | variable (m : MonomialOrder (Fin (n + 1))) {ι : Type v} (b : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) |
| 19 | |
| 20 | def generatorListValue (L : List (ι × Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n := |
| 21 | (L.map (fun t => t.2 * b t.1)).sum |
| 22 | |
| 23 | def generatorListBound (L : List (ι × Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) : m.syn := by |
| 24 | classical |
| 25 | exact L.toFinset.sup (fun t => m.toSyn (m.degree (t.2 * b t.1))) |
| 26 | |
| 27 | theorem exists_ideal_generator_list {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n} (hf : f ∈ Ideal.span (Set.range b)) : |
| 28 | ∃ L : List (ι × Hilbert.Polynomial.GradedHilbert.CoordinateRing K n), f = generatorListValue b L := by |
| 29 | induction hf using Submodule.span_induction with |
| 30 | | mem x hx => |
| 31 | obtain ⟨i, rfl⟩ := hx |
| 32 | exact ⟨[(i, 1)], by simp [generatorListValue]⟩ |
| 33 | | zero => exact ⟨[], rfl⟩ |
| 34 | | add x y _ _ hx hy => |
| 35 | obtain ⟨L, rfl⟩ := hx |
| 36 | obtain ⟨M, rfl⟩ := hy |
| 37 | exact ⟨L ++ M, by simp only [generatorListValue, List.map_append, List.sum_append]⟩ |
| 38 | | smul c x _ hx => |
| 39 | obtain ⟨L, rfl⟩ := hx |
| 40 | refine ⟨L.map (fun t => (t.1, c * t.2)), ?_⟩ |
| 41 | change c • (L.map (fun t => t.2 * b t.1)).sum = _ |
| 42 | rw [List.smul_sum] |
| 43 | simp only [generatorListValue, List.map_map, Function.comp_def, smul_eq_mul, mul_assoc] |
| 44 | |
| 45 | theorem generatorListTerm_le_bound (L : List (ι × Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (t : ι × Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) |
| 46 | (ht : t ∈ L) : m.toSyn (m.degree (t.2 * b t.1)) ≤ generatorListBound m b L := by |
| 47 | classical |
| 48 | change m.toSyn (m.degree (t.2 * b t.1)) ≤ L.toFinset.sup (fun s => m.toSyn (m.degree (s.2 * b s.1))) |
| 49 | exact Finset.le_sup (f := fun s : ι × Hilbert.Polynomial.GradedHilbert.CoordinateRing K n => m.toSyn (m.degree (s.2 * b s.1))) (List.mem_toFinset.mpr ht) |
| 50 | |
| 51 | theorem generatorListValue_fin (L : List (ι × Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) : |
| 52 | generatorListValue b L = ∑ k : Fin L.length, (L.get k).2 * b (L.get k).1 := by |
| 53 | have he : List.ofFn (fun k : Fin L.length => (L.get k).2 * b (L.get k).1) = |
| 54 | L.map (fun t => t.2 * b t.1) := by |
| 55 | rw [List.ofFn_comp' L.get (fun t : ι × Hilbert.Polynomial.GradedHilbert.CoordinateRing K n => t.2 * b t.1), List.ofFn_get] |
| 56 | rw [generatorListValue, ← he, List.sum_ofFn] |
| 57 | |
| 58 | theorem generatorListValue_degree_le (L : List (ι × Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) : |
| 59 | m.toSyn (m.degree (generatorListValue b L)) ≤ generatorListBound m b L := by |
| 60 | classical |
| 61 | rw [generatorListValue_fin] |
| 62 | apply m.degree_sum_le.trans |
| 63 | apply Finset.sup_le |
| 64 | intro k _ |
| 65 | exact generatorListTerm_le_bound m b L (L.get k) (List.get_mem L k) |
| 66 | |
| 67 | theorem lowerLeadingSpan_exists_smaller_bound (a : m.syn) {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n} |
| 68 | (hf : f ∈ LeadingBoundSpans.GradedHilbert.lowerLeadingSpan m b a) (hf0 : f ≠ 0) : |
| 69 | ∃ L : List (ι × Hilbert.Polynomial.GradedHilbert.CoordinateRing K n), f = generatorListValue b L ∧ generatorListBound m b L < a := by |
| 70 | classical |
| 71 | obtain ⟨L, hL, hLb⟩ := LeadingBoundRepresentations.GradedHilbert.lowerLeadingSpan_exists_list m b a hf |
| 72 | have hfa : m.toSyn (m.degree f) < a := (LeadingBoundSpans.GradedHilbert.leadingBelow_of_mem_lowerLeadingSpan m b a hf).resolve_left hf0 |
| 73 | have ha : (⊥ : m.syn) < a := bot_le.trans_lt hfa |
| 74 | refine ⟨L, hL, (Finset.sup_lt_iff ha).mpr ?_⟩ |
| 75 | intro t ht |
| 76 | rcases hLb t (List.mem_toFinset.mp ht) with hz | hlt |
| 77 | · simpa only [hz, MonomialOrder.degree_zero, map_zero, m.bot_eq_zero] using ha |
| 78 | · exact hlt |
| 79 | |
| 80 | variable (hcrit : ∀ i j, m.sPolynomial (b i) (b j) ∈ |
| 81 | LeadingBoundSpans.GradedHilbert.lowerLeadingSpan m b (m.toSyn (m.degree (b i) ⊔ m.degree (b j)))) |
| 82 | |
| 83 | include hcrit in |
| 84 | theorem generatorList_lowering (L : List (ι × Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) |
| 85 | (hsmall : LeadingBoundSpans.GradedHilbert.leadingBelow m (generatorListBound m b L) (generatorListValue b L)) : |
| 86 | generatorListValue b L ∈ LeadingBoundSpans.GradedHilbert.lowerLeadingSpan m b (generatorListBound m b L) := by |
| 87 | rw [generatorListValue_fin] at hsmall ⊢ |
| 88 | apply LeadingRepresentationLowering.GradedHilbert.bounded_representation_lowering m b hcrit Finset.univ |
| 89 | (fun k : Fin L.length => (L.get k).1) (fun k => (L.get k).2) _ _ hsmall |
| 90 | intro k _ |
| 91 | exact Or.inr (generatorListTerm_le_bound m b L (L.get k) (List.get_mem L k)) |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.LeadingRepresentations.GradedHilbert |