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 Mathlib.Algebra.MvPolynomial.Rename |
| 2 | import Mathlib.RingTheory.MvPolynomial.Ideal |
| 3 | import Mathlib.RingTheory.MvPolynomial.Homogeneous |
| 4 | |
| 5 | /-! # Kill Variables -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.KillVariables.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Setting complementary polynomial variables to zero: kernel, surjectivity, and homogeneity. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial |
| 14 | |
| 15 | universe u v w |
| 16 | |
| 17 | variable {σ : Type v} {τ : Type w} {R : Type u} [CommRing R] |
| 18 | variable {f : σ → τ} (hf : Function.Injective f) |
| 19 | |
| 20 | theorem killVariables_surjective : Function.Surjective (MvPolynomial.killCompl (R := R) hf) := |
| 21 | fun p => ⟨rename f p, killCompl_rename_app hf p⟩ |
| 22 | |
| 23 | theorem killVariables_kernel : |
| 24 | RingHom.ker (MvPolynomial.killCompl (R := R) hf).toRingHom = |
| 25 | Ideal.span (MvPolynomial.X '' (Set.range f)ᶜ) := by |
| 26 | classical |
| 27 | apply Ideal.ext |
| 28 | intro p |
| 29 | rw [RingHom.mem_ker, mem_ideal_span_X_image] |
| 30 | constructor |
| 31 | · intro hp m hm |
| 32 | change MvPolynomial.killCompl hf p = 0 at hp |
| 33 | by_contra! h |
| 34 | have hs : (m.support : Set τ) ⊆ Set.range f := by |
| 35 | intro i hi |
| 36 | by_contra hi' |
| 37 | exact (Finsupp.mem_support_iff.mp hi) (h i hi') |
| 38 | have hc := congrArg ((fun p => AddMonoidAlgebra.coeff p ((m.comapDomain f hf.injOn)))) hp |
| 39 | rw [coeff_killCompl, AddMonoidAlgebra.coeff_zero, Finsupp.mapDomain_comapDomain f hf m hs] at hc |
| 40 | exact (mem_support_iff.mp hm) hc |
| 41 | · intro hp |
| 42 | apply MvPolynomial.ext |
| 43 | intro a |
| 44 | change AddMonoidAlgebra.coeff ((MvPolynomial.killCompl hf p)) (a) = AddMonoidAlgebra.coeff (0) (a) |
| 45 | rw [coeff_killCompl, AddMonoidAlgebra.coeff_zero] |
| 46 | by_contra ha |
| 47 | obtain ⟨i, hi, hia⟩ := hp (a.mapDomain f) (mem_support_iff.mpr ha) |
| 48 | exact hia (Finsupp.mapDomain_of_notMem_range a i hi) |
| 49 | |
| 50 | theorem killVariables_homogeneous {p : MvPolynomial τ R} {d : ℕ} (hp : p.IsHomogeneous d) : |
| 51 | (MvPolynomial.killCompl hf p).IsHomogeneous d := by |
| 52 | intro a ha |
| 53 | have hcoeff : p.coeff (a.mapDomain f) ≠ 0 := by rwa [coeff_killCompl] at ha |
| 54 | have hd := hp hcoeff |
| 55 | have ha' := DFunLike.congr_fun (Finsupp.degree_eq_weight_one (R := ℕ) (σ := σ)) a |
| 56 | have hm := DFunLike.congr_fun (Finsupp.degree_eq_weight_one (R := ℕ) (σ := τ)) (a.mapDomain f) |
| 57 | exact ha'.symm.trans ((Finsupp.degree_mapDomain f a).symm.trans (hm.trans hd)) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.KillVariables.GradedHilbert |