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.ControlledExponentBound |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.Polynomials |
| 3 | |
| 4 | /-! # Controlled Completion Certificates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ControlledCompletionCertificates.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite certificates for controlled additions of homogeneous ideal elements with genuinely new leading monomials. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {K : Type u} [Field K] {n : ℕ} |
| 17 | variable (m : MonomialOrder (Fin (n + 1))) (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (D : ℕ) |
| 18 | |
| 19 | structure ControlledCompletionCertificate (k : ℕ) where |
| 20 | value : Fin k → Hilbert.Polynomial.GradedHilbert.CoordinateRing K n |
| 21 | nonzero : ∀ i, value i ≠ 0 |
| 22 | mem_ideal : ∀ i, value i ∈ I |
| 23 | homogeneous : ∀ i, ∃ d ≤ D * 2 ^ (i.val + 1), (value i).IsHomogeneous d |
| 24 | new_leading : ∀ i j, i < j → ¬ m.degree (value i) ≤ m.degree (value j) |
| 25 | |
| 26 | def polynomialCompletionHorizon (n D : ℕ) : ℕ := |
| 27 | ControlledExponentBound.MonomialFiniteness.controlledExponentHorizon (n + 1) (fun k => D * 2 ^ (k + 1)) |
| 28 | |
| 29 | theorem ControlledCompletionCertificate.length_lt {k : ℕ} (C : ControlledCompletionCertificate m I D k) : |
| 30 | k < polynomialCompletionHorizon n D := by |
| 31 | apply ControlledExponentBound.MonomialFiniteness.controlled_bad_exponent_length (n + 1) (fun j => D * 2 ^ (j + 1)) k |
| 32 | (fun i j => m.degree (C.value i) j) |
| 33 | · intro i j |
| 34 | obtain ⟨d, hd, hhom⟩ := C.homogeneous i |
| 35 | have hlead := Homogeneous.Polynomials.GradedHilbert.homogeneous_leadingDegree m hhom (C.nonzero i) |
| 36 | exact (Finsupp.le_degree _ _).trans (hlead ▸ hd) |
| 37 | · intro i j hij |
| 38 | exact C.new_leading i j hij |
| 39 | |
| 40 | def ControlledCompletionCertificate.empty : ControlledCompletionCertificate m I D 0 where |
| 41 | value := Fin.elim0 |
| 42 | nonzero i := Fin.elim0 i |
| 43 | mem_ideal i := Fin.elim0 i |
| 44 | homogeneous i := Fin.elim0 i |
| 45 | new_leading i := Fin.elim0 i |
| 46 | |
| 47 | def ControlledCompletionCertificate.append {k : ℕ} (C : ControlledCompletionCertificate m I D k) |
| 48 | (r : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) (hr0 : r ≠ 0) (hrI : r ∈ I) |
| 49 | (hrhom : ∃ d ≤ D * 2 ^ (k + 1), r.IsHomogeneous d) |
| 50 | (hrnew : ∀ i, ¬ m.degree (C.value i) ≤ m.degree r) : ControlledCompletionCertificate m I D (k + 1) where |
| 51 | value := Fin.lastCases r C.value |
| 52 | nonzero i := by |
| 53 | refine Fin.lastCases ?_ (fun j => ?_) i |
| 54 | · simpa only [Fin.lastCases_last] using hr0 |
| 55 | · simpa only [Fin.lastCases_castSucc] using C.nonzero j |
| 56 | mem_ideal i := by |
| 57 | refine Fin.lastCases ?_ (fun j => ?_) i |
| 58 | · simpa only [Fin.lastCases_last] using hrI |
| 59 | · simpa only [Fin.lastCases_castSucc] using C.mem_ideal j |
| 60 | homogeneous i := by |
| 61 | refine Fin.lastCases ?_ (fun j => ?_) i |
| 62 | · simpa only [Fin.lastCases_last, Fin.val_last] using hrhom |
| 63 | · simpa only [Fin.lastCases_castSucc, Fin.val_castSucc] using C.homogeneous j |
| 64 | new_leading i j := by |
| 65 | refine Fin.lastCases ?_ (fun i' => ?_) i |
| 66 | · intro hij |
| 67 | exact (not_lt_of_ge (Fin.le_last j) hij).elim |
| 68 | · refine Fin.lastCases ?_ (fun j' => ?_) j |
| 69 | · intro _ |
| 70 | simpa only [Fin.lastCases_castSucc, Fin.lastCases_last] using hrnew i' |
| 71 | · intro hij |
| 72 | simpa only [Fin.lastCases_castSucc] using C.new_leading i' j' hij |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ControlledCompletionCertificates.GradedHilbert |