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.NoetherNormalization |
| 2 | import Mathlib.RingTheory.Localization.BaseChange |
| 3 | import Mathlib.RingTheory.Localization.FractionRing |
| 4 | import Mathlib.RingTheory.Localization.Finiteness |
| 5 | import Mathlib.FieldTheory.PrimitiveElement |
| 6 | import Mathlib.FieldTheory.Minpoly.IsIntegrallyClosed |
| 7 | |
| 8 | /-! # Generic Primitive -/ |
| 9 | |
| 10 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.GenericPrimitive.Construction |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Primitive generators in finite integral algebras after passing to the |
| 15 | fraction field of the polynomial base. -/ |
| 16 | |
| 17 | open scoped TensorProduct nonZeroDivisors |
| 18 | open IntermediateField |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | theorem finite_domain_generic_fiber_isField |
| 23 | (P A F : Type u) [CommRing P] [IsDomain P] [CommRing A] [IsDomain A] |
| 24 | [Field F] [Algebra P A] [FaithfulSMul P A] [Algebra P F] [IsFractionRing P F] |
| 25 | [Module.Finite P A] : IsField (F ⊗[P] A) := by |
| 26 | let : Algebra A (F ⊗[P] A) := Algebra.TensorProduct.rightAlgebra |
| 27 | have hM : Algebra.algebraMapSubmonoid A P⁰ ≤ A⁰ := by |
| 28 | rintro _ ⟨p, hp, rfl⟩ |
| 29 | exact mem_nonZeroDivisors_of_ne_zero |
| 30 | (by simpa only [map_zero] using |
| 31 | (FaithfulSMul.algebraMap_injective P A).ne (mem_nonZeroDivisors_iff_ne_zero.mp hp)) |
| 32 | have : IsDomain (F ⊗[P] A) := IsLocalization.isDomain_of_le_nonZeroDivisors _ hM |
| 33 | exact isField_of_isIntegral_of_isField' (R := F) (Field.toIsField F) |
| 34 | |
| 35 | theorem primitive_generator_in_localized_algebra |
| 36 | (P A F E : Type u) [CommRing P] [IsDomain P] [CommRing A] |
| 37 | [Field F] [Field E] [Algebra P A] [Algebra P F] [IsFractionRing P F] |
| 38 | [Algebra F E] [Algebra P E] [IsScalarTower P F E] |
| 39 | [FiniteDimensional F E] [Algebra.IsSeparable F E] |
| 40 | (f : A →ₗ[P] E) [IsLocalizedModule P⁰ f] : |
| 41 | ∃ a : A, F⟮f a⟯ = ⊤ := by |
| 42 | obtain ⟨z, hz⟩ := Field.exists_primitive_element F E |
| 43 | obtain ⟨⟨a, s⟩, hs⟩ := IsLocalizedModule.surj P⁰ f z |
| 44 | refine ⟨a, top_unique ?_⟩ |
| 45 | rw [← hz] |
| 46 | apply IntermediateField.adjoin_simple_le_iff.mpr |
| 47 | have hs0 : algebraMap P F (s : P) ≠ 0 := |
| 48 | by simpa only [map_zero] using |
| 49 | (IsFractionRing.injective P F).ne (nonZeroDivisors.coe_ne_zero s) |
| 50 | have hmem : (s : P) • z ∈ F⟮f a⟯ := by |
| 51 | rw [← Submonoid.smul_def, hs] |
| 52 | exact mem_adjoin_simple_self F (f a) |
| 53 | have H := (F⟮f a⟯).toSubalgebra.smul_mem |
| 54 | (r := (algebraMap P F (s : P))⁻¹) hmem |
| 55 | rw [← algebraMap_smul F (s : P) z, inv_smul_smul₀ hs0] at H |
| 56 | exact H |
| 57 | |
| 58 | theorem finite_domain_generic_fiber_has_algebra_generator |
| 59 | (P A F : Type u) [CommRing P] [IsDomain P] [CommRing A] [IsDomain A] |
| 60 | [Field F] [CharZero F] [Algebra P A] [FaithfulSMul P A] |
| 61 | [Algebra P F] [IsFractionRing P F] [Module.Finite P A] : |
| 62 | ∃ a : A, Algebra.adjoin F ({1 ⊗ₜ[P] a} : Set (F ⊗[P] A)) = ⊤ := by |
| 63 | let : Field (F ⊗[P] A) := (finite_domain_generic_fiber_isField P A F).toField |
| 64 | obtain ⟨a, ha⟩ := primitive_generator_in_localized_algebra P A F (F ⊗[P] A) |
| 65 | (TensorProduct.mk P F A 1) |
| 66 | change F⟮1 ⊗ₜ[P] a⟯ = ⊤ at ha |
| 67 | refine ⟨a, ?_⟩ |
| 68 | rw [← IntermediateField.adjoin_toSubalgebra, ha] |
| 69 | rfl |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.ArithmeticGeometry.Models.SpreadingOut.GenericPrimitive.Construction |