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.WeightedCompletionCertificates |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Uniform.GroebnerCompletion |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.WeightedCriticalPairRemainders |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.BuchbergerCriterion |
| 5 | import Mathlib.Data.Nat.Find |
| 6 | |
| 7 | /-! # Weighted Groebner Completion -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.WeightedGroebnerCompletion.GradedHilbert |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A field-independent weighted homogeneous Gröbner degree bound, obtained from controlled critical-pair completion and Dickson's lemma. -/ |
| 14 | |
| 15 | open _root_.MvPolynomial |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable {K : Type u} [Field K] {n : ℕ} |
| 20 | variable (w : Fin (n + 1) → ℕ) (hw : ∀ i, w i ≠ 0) |
| 21 | variable (m : MonomialOrder (Fin (n + 1))) {ι : Type v} [Fintype ι] |
| 22 | variable (b : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) (e : ι → ℕ) |
| 23 | |
| 24 | include hw in |
| 25 | theorem exists_uniform_weighted_homogeneous_groebner_completion |
| 26 | (hb : ∀ i, (b i).IsWeightedHomogeneous w (e i)) (hb0 : ∀ i, b i ≠ 0) |
| 27 | (D : ℕ) (hD : ∀ i, e i ≤ D) : |
| 28 | ∃ k : ℕ, ∃ c : ι ⊕ Fin k → Hilbert.Polynomial.GradedHilbert.CoordinateRing K n, |
| 29 | Ideal.span (Set.range c) = Ideal.span (Set.range b) ∧ |
| 30 | (∀ j, c j ≠ 0 ∧ ∃ d ≤ Uniform.GroebnerCompletion.GradedHilbert.homogeneousGroebnerDegreeBound n D, (c j).IsWeightedHomogeneous w d) ∧ |
| 31 | ∀ f ∈ Ideal.span (Set.range b), f ≠ 0 → ∃ j, m.degree (c j) ≤ m.degree f := by |
| 32 | classical |
| 33 | let I := Ideal.span (Set.range b) |
| 34 | let H := ControlledCompletionCertificates.GradedHilbert.polynomialCompletionHorizon n D |
| 35 | let P := fun k => Nonempty (WeightedCompletionCertificates.GradedHilbert.WeightedCompletionCertificate w m I D k) |
| 36 | let k := Nat.findGreatest P H |
| 37 | have hk : P k := Nat.findGreatest_spec (m := 0) (Nat.zero_le H) |
| 38 | (⟨WeightedCompletionCertificates.GradedHilbert.WeightedCompletionCertificate.empty w m I D⟩ : P 0) |
| 39 | obtain ⟨C⟩ := hk |
| 40 | have hkH : k < H := WeightedCompletionCertificates.GradedHilbert.WeightedCompletionCertificate.length_lt w m I D hw C |
| 41 | let c : ι ⊕ Fin k → Hilbert.Polynomial.GradedHilbert.CoordinateRing K n := Sum.elim b C.value |
| 42 | have hc0 : ∀ j, c j ≠ 0 := by |
| 43 | intro j |
| 44 | exact Sum.rec hb0 C.nonzero j |
| 45 | have hcI : ∀ j, c j ∈ I := by |
| 46 | intro j |
| 47 | exact Sum.rec (fun i => Ideal.subset_span (Set.mem_range_self i)) C.mem_ideal j |
| 48 | have hspan : Ideal.span (Set.range c) = I := by |
| 49 | apply le_antisymm |
| 50 | · exact Ideal.span_le.mpr (by rintro f ⟨j, rfl⟩; exact hcI j) |
| 51 | · apply Ideal.span_le.mpr |
| 52 | rintro f ⟨j, rfl⟩ |
| 53 | exact Ideal.subset_span (Set.mem_range.mpr ⟨Sum.inl j, rfl⟩) |
| 54 | have hcHom : ∀ j, ∃ d ≤ D * 2 ^ k, (c j).IsWeightedHomogeneous w d := by |
| 55 | intro j |
| 56 | cases j with |
| 57 | | inl i => exact ⟨e i, (hD i).trans (Nat.le_mul_of_pos_right D (pow_pos (by decide) k)), hb i⟩ |
| 58 | | inr i => |
| 59 | obtain ⟨d, hd, hhom⟩ := C.homogeneous i |
| 60 | exact ⟨d, hd.trans (Nat.mul_le_mul_left D (Nat.pow_le_pow_right (by decide) (by omega))), hhom⟩ |
| 61 | choose ec hec hc using hcHom |
| 62 | have hcrit : ∀ i j, m.sPolynomial (c i) (c j) ∈ |
| 63 | LeadingBoundSpans.GradedHilbert.lowerLeadingSpan m c (m.toSyn (m.degree (c i) ⊔ m.degree (c j))) := by |
| 64 | by_contra! hnot |
| 65 | obtain ⟨i, j, hij⟩ := hnot |
| 66 | obtain ⟨d, hd, r, hrhom, hrI, hcorr, hrred⟩ := WeightedCriticalPairRemainders.GradedHilbert.criticalPair_weighted_homogeneous_remainder w m c ec hc hc0 |
| 67 | (D * 2 ^ k) hec i j |
| 68 | have hr0 : r ≠ 0 := by |
| 69 | intro hz |
| 70 | exact hij (by simpa only [hz, sub_zero] using hcorr) |
| 71 | have hrI' : r ∈ I := hspan ▸ hrI |
| 72 | have hrbound : d ≤ D * 2 ^ (k + 1) := by |
| 73 | simpa only [pow_succ, Nat.mul_assoc, Nat.mul_comm, Nat.mul_left_comm] using hd |
| 74 | have hrnew : ∀ a, ¬ m.degree (C.value a) ≤ m.degree r := |
| 75 | fun a => hrred (m.degree r) (m.degree_mem_support hr0) (Sum.inr a) |
| 76 | let C' := WeightedCompletionCertificates.GradedHilbert.WeightedCompletionCertificate.append w m I D C r hr0 hrI' ⟨d, hrbound, hrhom⟩ hrnew |
| 77 | have hnext : k + 1 ≤ k := Nat.le_findGreatest (P := P) (Nat.succ_le_of_lt hkH) ⟨C'⟩ |
| 78 | omega |
| 79 | refine ⟨k, c, hspan, ?_, ?_⟩ |
| 80 | · intro j |
| 81 | refine ⟨hc0 j, ec j, (hec j).trans ?_, hc j⟩ |
| 82 | exact Nat.mul_le_mul_left D (Nat.pow_le_pow_right (by decide) hkH.le) |
| 83 | · intro f hf hf0 |
| 84 | apply BuchbergerCriterion.GradedHilbert.buchberger_leading_cover m c hcrit _ hf0 |
| 85 | rwa [hspan] |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.WeightedGroebnerCompletion.GradedHilbert |