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.Finite.LeadingRepresentations |
| 2 | |
| 3 | /-! # Buchberger Criterion -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.BuchbergerCriterion.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The critical-pair criterion for actual polynomial ideals: strict bounded representations of the generator S-polynomials imply a leading-monomial cover of the ideal. -/ |
| 10 | |
| 11 | open _root_.MvPolynomial |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable {K : Type u} [Field K] {n : ℕ} |
| 16 | variable (m : MonomialOrder (Fin (n + 1))) {ι : Type v} (b : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) |
| 17 | variable (hcrit : ∀ i j, m.sPolynomial (b i) (b j) ∈ |
| 18 | LeadingBoundSpans.GradedHilbert.lowerLeadingSpan m b (m.toSyn (m.degree (b i) ⊔ m.degree (b j)))) |
| 19 | |
| 20 | include hcrit in |
| 21 | theorem buchberger_leading_cover {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n} |
| 22 | (hf : f ∈ Ideal.span (Set.range b)) (hf0 : f ≠ 0) : |
| 23 | ∃ i, m.degree (b i) ≤ m.degree f := by |
| 24 | classical |
| 25 | obtain ⟨L, hmin⟩ := exists_minimalFor_of_wellFoundedLT |
| 26 | (fun L : List (ι × Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) => f = Finite.LeadingRepresentations.GradedHilbert.generatorListValue b L) |
| 27 | (Finite.LeadingRepresentations.GradedHilbert.generatorListBound m b) (Finite.LeadingRepresentations.GradedHilbert.exists_ideal_generator_list b hf) |
| 28 | have hrep := hmin.prop |
| 29 | have hle : m.toSyn (m.degree f) ≤ Finite.LeadingRepresentations.GradedHilbert.generatorListBound m b L := by |
| 30 | rw [hrep] |
| 31 | exact Finite.LeadingRepresentations.GradedHilbert.generatorListValue_degree_le m b L |
| 32 | have hbound : Finite.LeadingRepresentations.GradedHilbert.generatorListBound m b L = m.toSyn (m.degree f) := by |
| 33 | apply le_antisymm _ hle |
| 34 | apply le_of_not_gt |
| 35 | intro hlt |
| 36 | have hsmall : LeadingBoundSpans.GradedHilbert.leadingBelow m (Finite.LeadingRepresentations.GradedHilbert.generatorListBound m b L) (Finite.LeadingRepresentations.GradedHilbert.generatorListValue b L) := by |
| 37 | rw [← hrep] |
| 38 | exact Or.inr hlt |
| 39 | have hmem : f ∈ LeadingBoundSpans.GradedHilbert.lowerLeadingSpan m b (Finite.LeadingRepresentations.GradedHilbert.generatorListBound m b L) := by |
| 40 | rw [hrep] |
| 41 | exact Finite.LeadingRepresentations.GradedHilbert.generatorList_lowering m b hcrit L hsmall |
| 42 | obtain ⟨M, hM, hMb⟩ := Finite.LeadingRepresentations.GradedHilbert.lowerLeadingSpan_exists_smaller_bound m b _ hmem hf0 |
| 43 | exact (hmin.not_lt hM) hMb |
| 44 | by_contra! hnot |
| 45 | have hsum : (∑ k : Fin L.length, (L.get k).2 * b (L.get k).1) ∈ |
| 46 | LeadingBoundSpans.GradedHilbert.lowerLeadingSpan m b (m.toSyn (m.degree f)) := by |
| 47 | apply Submodule.sum_mem |
| 48 | intro k _ |
| 49 | let t := L.get k |
| 50 | apply LeadingBoundSpans.GradedHilbert.mem_lowerLeadingSpan m b _ t.1 t.2 |
| 51 | by_cases ht0 : t.2 * b t.1 = 0 |
| 52 | · exact Or.inl ht0 |
| 53 | · apply Or.inr |
| 54 | have htbound : m.toSyn (m.degree (t.2 * b t.1)) ≤ m.toSyn (m.degree f) := |
| 55 | (Finite.LeadingRepresentations.GradedHilbert.generatorListTerm_le_bound m b L t (List.get_mem L k)).trans hbound.le |
| 56 | apply lt_of_le_of_ne htbound |
| 57 | intro heq |
| 58 | have he : m.degree (t.2 * b t.1) = m.degree f := m.toSyn.injective heq |
| 59 | have ht2 : t.2 ≠ 0 := fun hz => ht0 (by rw [hz, zero_mul]) |
| 60 | have hbt : b t.1 ≠ 0 := fun hz => ht0 (by rw [hz, mul_zero]) |
| 61 | apply hnot t.1 |
| 62 | rw [← he, m.degree_mul ht2 hbt] |
| 63 | exact le_add_left le_rfl |
| 64 | have hmem : f ∈ LeadingBoundSpans.GradedHilbert.lowerLeadingSpan m b (m.toSyn (m.degree f)) := by |
| 65 | simpa only [← Finite.LeadingRepresentations.GradedHilbert.generatorListValue_fin, ← hrep] using hsum |
| 66 | rcases LeadingBoundSpans.GradedHilbert.leadingBelow_of_mem_lowerLeadingSpan m b _ hmem with hz | hlt |
| 67 | · exact hf0 hz |
| 68 | · exact lt_irrefl _ hlt |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.BuchbergerCriterion.GradedHilbert |