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.RingTheory.Smooth.Flat |
| 2 | import Mathlib.RingTheory.Localization.Algebra |
| 3 | import Mathlib.RingTheory.Localization.Finiteness |
| 4 | |
| 5 | /-! # Essential Smooth Flat -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.EssentialSmoothFlat.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # LineBundleCycles: formally smooth essentially finite type algebras over a Noetherian base are flat -/ |
| 12 | |
| 13 | variable (A B : Type) [CommRing A] [CommRing B] [Algebra A B] |
| 14 | [IsNoetherianRing A] [Algebra.EssFiniteType A B] [Algebra.FormallySmooth A B] |
| 15 | |
| 16 | theorem formallySmooth_flat_of_essFiniteType : Module.Flat A B := by |
| 17 | let C := Algebra.EssFiniteType.subalgebra A B |
| 18 | let M := Algebra.EssFiniteType.submonoid A B |
| 19 | obtain ⟨n, f, hf⟩ := (Algebra.FiniteType.iff_quotient_mvPolynomial'' (R := A) (S := C)).mp inferInstance |
| 20 | let P := MvPolynomial (Fin n) A |
| 21 | let N : Submonoid P := M.comap f.toRingHom.toMonoidHom |
| 22 | have hN : N.map f.toRingHom = M := by |
| 23 | rw [← Submonoid.map_coe_toMonoidHom] |
| 24 | exact Submonoid.map_comap_eq_of_surjective hf M |
| 25 | have hloc : IsLocalization (N.map f.toRingHom) B := by |
| 26 | rw [hN] |
| 27 | exact Algebra.EssFiniteType.isLocalization A B |
| 28 | let L := Localization N |
| 29 | let q : L →+* B := IsLocalization.map B f.toRingHom N.le_comap_map |
| 30 | have hq : Function.Surjective q := IsLocalization.map_surjective_of_surjective N L B hf |
| 31 | let qA : L →ₐ[A] B := { |
| 32 | toRingHom := q |
| 33 | commutes' := by |
| 34 | intro a |
| 35 | change q (algebraMap A L a) = algebraMap A B a |
| 36 | rw [IsScalarTower.algebraMap_apply A P L, IsLocalization.map_eq] |
| 37 | exact (congrArg (algebraMap C B) (f.commutes a)).trans |
| 38 | (IsScalarTower.algebraMap_apply A C B a).symm } |
| 39 | have : IsNoetherianRing P := inferInstance |
| 40 | have : IsNoetherianRing L := IsLocalization.isNoetherianRing N L inferInstance |
| 41 | have : Module.Flat A P := Module.Flat.of_free |
| 42 | have : Module.Flat A L := Module.Flat.trans A P L |
| 43 | exact Algebra.FormallySmooth.flat_of_algHom_of_isNoetherianRing qA hq |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.Divisors.LineBundles.EssentialSmoothFlat.BundleCycles |