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.SheafCohomology.Projective.FiniteFunctionField |
| 2 | import Mathlib.Algebra.Module.Torsion.Free |
| 3 | import Mathlib.RingTheory.Localization.BaseChange |
| 4 | |
| 5 | /-! # Normal Affine Generic Rank -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.NormalAffineGenericRank.Dimension |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The generic rank of actual affine finite pushforward sections is the function-field degree. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u |
| 17 | variable {X Y : Scheme.{u}} [IsIntegral X] [IsIntegral Y] |
| 18 | |
| 19 | theorem dominant_affineSection_injective (f : X ⟶ Y) [IsDominant f] |
| 20 | (U : Y.Opens) [Nonempty U] [Nonempty (f ⁻¹ᵁ U)] : |
| 21 | Function.Injective (f.app U) := by |
| 22 | intro a b hab |
| 23 | apply Y.germToFunctionField_injective U |
| 24 | apply (DominantFunctionField.Dimension.dominantFunctionFieldMap f).hom.injective |
| 25 | have h := DominantFunctionField.Dimension.dominantFunctionFieldMap_germ f U |
| 26 | have ha := ConcreteCategory.congr_hom h a |
| 27 | have hb := ConcreteCategory.congr_hom h b |
| 28 | exact ha.trans ((congrArg (X.germToFunctionField (f ⁻¹ᵁ U)) hab).trans hb.symm) |
| 29 | |
| 30 | theorem affinePreimageSectionModule_torsionFree (f : X ⟶ Y) [IsDominant f] |
| 31 | (U : Y.Opens) [Nonempty U] [Nonempty (f ⁻¹ᵁ U)] : |
| 32 | letI := FiniteFlatChartModule.Dimension.affinePreimageSectionAlgebra f U |
| 33 | Module.IsTorsionFree Γ(Y, U) Γ(X, f ⁻¹ᵁ U) := by |
| 34 | let := FiniteFlatChartModule.Dimension.affinePreimageSectionAlgebra f U |
| 35 | refine ⟨fun r hr => ?_⟩ |
| 36 | have hne : f.app U r ≠ 0 := by |
| 37 | intro h |
| 38 | apply (isRegular_iff_ne_zero.mp hr) |
| 39 | apply dominant_affineSection_injective f U |
| 40 | exact h.trans (map_zero (f.app U).hom).symm |
| 41 | intro x y hxy |
| 42 | exact mul_left_cancel₀ hne hxy |
| 43 | |
| 44 | def finiteNormalAffineFunctionFieldIso |
| 45 | (f : X ⟶ Y) [IsFinite f] [IsDominant f] |
| 46 | (hX : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) |
| 47 | (U : Y.Opens) (hU : IsAffineOpen U) [Nonempty U] [Nonempty (f ⁻¹ᵁ U)] : |
| 48 | letI := DominantFunctionField.Dimension.dominantFunctionFieldAlgebra f |
| 49 | letI := FiniteFlatChartModule.Dimension.affinePreimageSectionAlgebra f U |
| 50 | Y.functionField ⊗[Γ(Y, U)] Γ(X, f ⁻¹ᵁ U) ≃ₗ[Y.functionField] X.functionField := by |
| 51 | let := DominantFunctionField.Dimension.dominantFunctionFieldAlgebra f |
| 52 | let := FiniteFlatChartModule.Dimension.affinePreimageSectionAlgebra f U |
| 53 | let := FiniteFunctionField.Dimension.dominantSectionFunctionFieldAlgebra f U |
| 54 | have := FiniteFunctionField.Dimension.dominantSectionFunctionField_tower f U |
| 55 | have := FiniteFunctionField.Dimension.dominantPreimageSectionFunctionField_tower f U |
| 56 | have := functionField_isFractionRing_of_isAffineOpen Y U hU |
| 57 | have := functionField_isFractionRing_of_isAffineOpen X (f ⁻¹ᵁ U) (hU.preimage f) |
| 58 | have := FiniteFlatChartModule.Dimension.affinePreimageSectionModule_finite f U hU |
| 59 | have := Quotients.FiniteDescent.NormalSectionsIn.Construction.NormalSections.affine hX (f ⁻¹ᵁ U) (hU.preimage f) |
| 60 | have : IsIntegralClosure Γ(X, f ⁻¹ᵁ U) Γ(Y, U) X.functionField := |
| 61 | IsIntegralClosure.of_isIntegrallyClosed _ _ _ |
| 62 | have : Algebra.IsAlgebraic Y.functionField X.functionField := |
| 63 | isAlgebraic_of_isFractionRing Γ(Y, U) Γ(X, f ⁻¹ᵁ U) Y.functionField X.functionField |
| 64 | have : IsLocalization (Algebra.algebraMapSubmonoid Γ(X, f ⁻¹ᵁ U) (nonZeroDivisors Γ(Y, U))) |
| 65 | X.functionField := |
| 66 | IsIntegralClosure.isLocalization Γ(Y, U) Y.functionField X.functionField Γ(X, f ⁻¹ᵁ U) |
| 67 | exact (IsLocalizedModule.isBaseChange (nonZeroDivisors Γ(Y, U)) Y.functionField |
| 68 | (IsScalarTower.toAlgHom Γ(Y, U) Γ(X, f ⁻¹ᵁ U) X.functionField).toLinearMap).equiv |
| 69 | |
| 70 | theorem affinePreimageSectionModule_genericRank |
| 71 | (f : X ⟶ Y) [IsFinite f] [IsDominant f] |
| 72 | (hX : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) |
| 73 | (U : Y.Opens) (hU : IsAffineOpen U) [Nonempty U] [Nonempty (f ⁻¹ᵁ U)] : |
| 74 | letI := DominantFunctionField.Dimension.dominantFunctionFieldAlgebra f |
| 75 | letI := FiniteFlatChartModule.Dimension.affinePreimageSectionAlgebra f U |
| 76 | Module.finrank Y.functionField (Y.functionField ⊗[Γ(Y, U)] Γ(X, f ⁻¹ᵁ U)) = |
| 77 | Module.finrank Y.functionField X.functionField := by |
| 78 | let := DominantFunctionField.Dimension.dominantFunctionFieldAlgebra f |
| 79 | let := FiniteFlatChartModule.Dimension.affinePreimageSectionAlgebra f U |
| 80 | exact (finiteNormalAffineFunctionFieldIso f hX U hU).finrank_eq |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.NormalAffineGenericRank.Dimension |