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.Localization.BaseChange |
| 2 | import Mathlib.RingTheory.IntegralClosure.IsIntegralClosure.Basic |
| 3 | |
| 4 | /-! # Generic Fiber Algebra -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.GenericFiberAlgebra.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The generic fiber algebra of a finite inclusion of integral domains. -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | theorem isDomain_genericFiberAlgebra |
| 15 | (R B K : Type*) [CommRing R] [IsDomain R] [CommRing B] [IsDomain B] |
| 16 | [Algebra R B] [FaithfulSMul R B] [Field K] [Algebra R K] [IsFractionRing R K] : |
| 17 | IsDomain (K ⊗[R] B) := by |
| 18 | let : Algebra B (K ⊗[R] B) := Algebra.TensorProduct.rightAlgebra |
| 19 | apply IsLocalization.isDomain_of_le_nonZeroDivisors (K ⊗[R] B) |
| 20 | (M := Algebra.algebraMapSubmonoid B (nonZeroDivisors R)) |
| 21 | rintro x ⟨r, hr, rfl⟩ |
| 22 | rw [mem_nonZeroDivisors_iff_ne_zero] |
| 23 | exact fun h => nonZeroDivisors.ne_zero hr |
| 24 | ((FaithfulSMul.algebraMap_injective R B) ((map_zero (algebraMap R B)).symm ▸ h)) |
| 25 | |
| 26 | theorem isField_genericFiberAlgebra |
| 27 | (R B K : Type*) [CommRing R] [IsDomain R] [CommRing B] [IsDomain B] |
| 28 | [Algebra R B] [FaithfulSMul R B] [Module.Finite R B] |
| 29 | [Field K] [Algebra R K] [IsFractionRing R K] : |
| 30 | IsField (K ⊗[R] B) := by |
| 31 | have : IsDomain (K ⊗[R] B) := isDomain_genericFiberAlgebra R B K |
| 32 | exact isField_of_isIntegral_of_isField' (R := K) (Field.toIsField K) |
| 33 | |
| 34 | /-- The generic fiber field is also the fraction field of the source domain. -/ |
| 35 | theorem isFractionRing_genericFiberAlgebra |
| 36 | (R B K : Type*) [CommRing R] [IsDomain R] [CommRing B] [IsDomain B] |
| 37 | [Algebra R B] [FaithfulSMul R B] [Module.Finite R B] |
| 38 | [Field K] [Algebra R K] [IsFractionRing R K] : |
| 39 | letI : Algebra B (K ⊗[R] B) := Algebra.TensorProduct.rightAlgebra |
| 40 | IsFractionRing B (K ⊗[R] B) := by |
| 41 | let : Algebra B (K ⊗[R] B) := Algebra.TensorProduct.rightAlgebra |
| 42 | let : Field (K ⊗[R] B) := (isField_genericFiberAlgebra R B K).toField |
| 43 | have hM : Algebra.algebraMapSubmonoid B (nonZeroDivisors R) ≤ nonZeroDivisors B := |
| 44 | map_le_nonZeroDivisors_of_injective _ (FaithfulSMul.algebraMap_injective R B) le_rfl |
| 45 | apply IsLocalization.of_le (Algebra.algebraMapSubmonoid B (nonZeroDivisors R)) |
| 46 | (nonZeroDivisors B) hM |
| 47 | intro b hb |
| 48 | rw [isUnit_iff_ne_zero] |
| 49 | exact (map_ne_zero_iff _ (IsLocalization.injective (K ⊗[R] B) hM)).mpr |
| 50 | (nonZeroDivisors.ne_zero hb) |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.GenericFiberAlgebra.Construction |