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.IntegralPolynomialLeadingCover |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.FieldCoverTransfer |
| 3 | import Mathlib.RingTheory.Localization.Away.Basic |
| 4 | |
| 5 | /-! # Generic Polynomial Quotient Free -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.GenericPolynomialQuotientFree.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A polynomial quotient over a domain becomes a free module after |
| 12 | inverting one nonzero coefficient. -/ |
| 13 | |
| 14 | open _root_.MvPolynomial |
| 15 | open scoped BigOperators |
| 16 | |
| 17 | universe u |
| 18 | variable {R : Type u} [CommRing R] [IsDomain R] {n : ℕ} |
| 19 | |
| 20 | theorem exists_generic_free_polynomial_quotient (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n)) : |
| 21 | ∃ s : R, s ≠ 0 ∧ Module.Free (Localization.Away s) |
| 22 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing (Localization.Away s) n ⧸ |
| 23 | I.map (MvPolynomial.map (algebraMap R (Localization.Away s)))) := by |
| 24 | classical |
| 25 | let m : MonomialOrder (Fin (n + 1)) := MonomialOrder.lex |
| 26 | obtain ⟨B, hB, hcover⟩ := IntegralPolynomialLeadingCover.GradedHilbert.exists_integral_polynomial_leading_cover m I |
| 27 | let s : R := ∏ b : B, m.leadingCoeff b.val |
| 28 | have hs : s ≠ 0 := Finset.prod_ne_zero_iff.mpr |
| 29 | (fun b _ => m.leadingCoeff_ne_zero_iff.mpr (hB b.val b.property).2) |
| 30 | let A := Localization.Away s |
| 31 | let K := FractionRing R |
| 32 | have hRK : Function.Injective (algebraMap R K) := IsFractionRing.injective R K |
| 33 | have hunit : IsUnit (algebraMap R K s) := isUnit_iff_ne_zero.mpr |
| 34 | (fun h => hs (hRK (h.trans (map_zero _).symm))) |
| 35 | let g : A →+* K := IsLocalization.Away.lift s hunit |
| 36 | have hg (r : R) : g (algebraMap R A r) = algebraMap R K r := |
| 37 | IsLocalization.Away.lift_eq s hunit r |
| 38 | have hRA : Function.Injective (algebraMap R A) := by |
| 39 | intro x y hxy |
| 40 | apply hRK |
| 41 | rw [← hg x, ← hg y, hxy] |
| 42 | have hAK : Function.Injective g := by |
| 43 | apply (IsLocalization.injective_iff_map_algebraMap_eq (Submonoid.powers s) g).mpr |
| 44 | intro x y |
| 45 | rw [hg, hg] |
| 46 | exact hRA.eq_iff.trans hRK.eq_iff.symm |
| 47 | let : Algebra A K := g.toAlgebra |
| 48 | let : IsScalarTower R A K := IsScalarTower.of_algebraMap_eq (fun r => (hg r).symm) |
| 49 | refine ⟨s, hs, ?_⟩ |
| 50 | apply Polynomial.FieldCoverTransfer.polynomial_quotient_free_of_field_cover A K hAK m I (fun b : B => b.val) |
| 51 | (fun b => (hB b.val b.property).1) |
| 52 | · intro b |
| 53 | rw [Polynomial.LeadingBaseChange.polynomial_leading_coefficient_map m _ hRA] |
| 54 | apply IsLocalization.Away.isUnit_of_dvd s |
| 55 | exact Finset.dvd_prod_of_mem (fun b : B => m.leadingCoeff b.val) (Finset.mem_univ b) |
| 56 | · intro f hf hf0 |
| 57 | obtain ⟨b, hb, hbf⟩ := hcover f hf hf0 |
| 58 | exact ⟨⟨b, hb⟩, hbf⟩ |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.GenericPolynomialQuotientFree.GradedHilbert |