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.ReducedIdealTensorCriterion |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.IdealTensor.RingExtension |
| 3 | import Mathlib.RingTheory.Localization.Ideal |
| 4 | import Mathlib.RingTheory.TensorProduct.Quotient |
| 5 | import Mathlib.RingTheory.Flat.Localization |
| 6 | |
| 7 | /-! # Quotient Flatness -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.QuotientFlatness |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Flatness of reduction and ideal-tensor injectivity pass to localizations |
| 14 | of the source algebra, giving the Noetherian local flatness criterion there. -/ |
| 15 | |
| 16 | open TensorProduct |
| 17 | |
| 18 | universe u v w |
| 19 | variable (B : Type u) [CommRing B] |
| 20 | variable (S : Type v) [CommRing S] [Algebra B S] |
| 21 | variable (T : Type w) [CommRing T] [Algebra S T] [Algebra B T] [IsScalarTower B S T] |
| 22 | |
| 23 | theorem localized_quotient_flat (U : Submonoid S) [IsLocalization U T] |
| 24 | (I : Ideal B) [Module.Flat (B ⧸ I) (S ⧸ I.map (algebraMap B S))] : |
| 25 | Module.Flat (B ⧸ I) (T ⧸ I.map (algebraMap B T)) := by |
| 26 | let J := I.map (algebraMap B S) |
| 27 | have he : J.map (algebraMap S T) = I.map (algebraMap B T) := by |
| 28 | rw [Ideal.map_map, ← IsScalarTower.algebraMap_eq] |
| 29 | let K := I.map (algebraMap B T) |
| 30 | let : Algebra (S ⧸ J) (T ⧸ K) := Ideal.Quotient.algebraQuotientOfLEComap |
| 31 | (Ideal.map_le_iff_le_comap.mp he.le) |
| 32 | let : IsScalarTower (B ⧸ I) (S ⧸ J) (T ⧸ K) := |
| 33 | IsScalarTower.of_algebraMap_eq (fun x => by |
| 34 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 35 | change Ideal.Quotient.mk _ (algebraMap B T x) = |
| 36 | Ideal.Quotient.mk _ (algebraMap S T (algebraMap B S x)) |
| 37 | rw [IsScalarTower.algebraMap_apply B S T]) |
| 38 | let : IsLocalization (Algebra.algebraMapSubmonoid (S ⧸ J) U) (T ⧸ K) := |
| 39 | IsLocalization.of_surjective U T (Ideal.Quotient.mk J) Ideal.Quotient.mk_surjective |
| 40 | (Ideal.Quotient.mk K) Ideal.Quotient.mk_surjective rfl (by |
| 41 | simpa only [Ideal.mk_ker] using he.ge) |
| 42 | have : Module.Flat (S ⧸ J) (T ⧸ K) := |
| 43 | IsLocalization.flat _ (Algebra.algebraMapSubmonoid (S ⧸ J) U) |
| 44 | exact Module.Flat.trans (B ⧸ I) (S ⧸ J) _ |
| 45 | |
| 46 | theorem localized_flat_of_idealTensor_injective |
| 47 | [IsNoetherianRing B] [IsLocalRing B] |
| 48 | [IsNoetherianRing T] [IsLocalRing T] [IsLocalHom (algebraMap B T)] |
| 49 | (U : Submonoid S) [IsLocalization U T] |
| 50 | (I : Ideal B) (hI : I ≠ ⊤) |
| 51 | [Module.Flat (B ⧸ I) (S ⧸ I.map (algebraMap B S))] |
| 52 | (hinj : Function.Injective (IdealTensor.Obstruction.idealTensorMultiplication B B S I)) : |
| 53 | Module.Flat B T := by |
| 54 | have : Module.Flat S T := IsLocalization.flat T U |
| 55 | have : Module.Flat (B ⧸ I) (T ⧸ I.map (algebraMap B T)) := |
| 56 | localized_quotient_flat B S T U I |
| 57 | have : Module.Flat (B ⧸ I) ((B ⧸ I) ⊗[B] T) := |
| 58 | Module.Flat.of_linearEquiv |
| 59 | (Algebra.TensorProduct.quotIdealMapEquivQuotTensor T I).symm.toLinearEquiv |
| 60 | exact ReducedIdealTensorCriterion.flat_of_idealTensor_injective_of_flat_reduction T I hI |
| 61 | (IdealTensor.RingExtension.idealTensorMultiplication_ring_flat_extension S T I hinj) |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.QuotientFlatness |