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.ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.NormalAffineGenericRank |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.DominantResidueDegree |
| 4 | |
| 5 | /-! # Flat Generic Degree -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatGenericDegree |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The rank of a finite flat dominant map at the generic point is the |
| 12 | actual degree of its function-field extension. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | theorem finiteFlat_finrank_generic_eq_residueDegree |
| 18 | {X Y : Scheme} [IsIntegral X] [IsIntegral Y] |
| 19 | (f : X ⟶ Y) [IsFinite f] [Flat f] [IsDominant f] |
| 20 | (hX : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) : |
| 21 | f.finrank (genericPoint Y) = f.residueDegree (genericPoint X) := by |
| 22 | obtain ⟨U, hU, hx, _⟩ := exists_isAffineOpen_mem_and_subset |
| 23 | (x := genericPoint Y) (U := (⊤ : Y.Opens)) (by trivial) |
| 24 | have : Nonempty U := ⟨⟨genericPoint Y, hx⟩⟩ |
| 25 | have : Nonempty (f ⁻¹ᵁ U) := ⟨⟨genericPoint X, by |
| 26 | change f (genericPoint X) ∈ U |
| 27 | rw [AlgebraicGeometry.SheafCohomology.Projective.DominantFunctionField.Dimension.dominant_genericPoint f] |
| 28 | exact hx⟩⟩ |
| 29 | let := AlgebraicGeometry.SheafCohomology.Projective.DominantFunctionField.Dimension.dominantFunctionFieldAlgebra f |
| 30 | let := AlgebraicGeometry.SheafCohomology.Projective.FiniteFlatChartModule.Dimension.affinePreimageSectionAlgebra f U |
| 31 | have := ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule.Construction.affinePreimageSectionModule_finite f U hU |
| 32 | have := ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule.Construction.affinePreimageSectionModule_flat f U hU |
| 33 | have := functionField_isFractionRing_of_isAffineOpen Y U hU |
| 34 | let q : PrimeSpectrum Y.functionField := ⟨⊥, inferInstance⟩ |
| 35 | have hq : q.comap (algebraMap Γ(Y, U) Y.functionField) = ⊥ := by |
| 36 | apply PrimeSpectrum.ext |
| 37 | exact (RingHom.injective_iff_ker_eq_bot _).mp |
| 38 | (IsFractionRing.injective Γ(Y, U) Y.functionField) |
| 39 | have hr := Module.rankAtStalk_baseChange |
| 40 | (R := Γ(Y, U)) (M := Γ(X, f ⁻¹ᵁ U)) q |
| 41 | rw [Module.rankAtStalk_eq_finrank_of_free, hq] at hr |
| 42 | change Module.finrank Y.functionField (Y.functionField ⊗[Γ(Y, U)] Γ(X, f ⁻¹ᵁ U)) = |
| 43 | Module.rankAtStalk (R := Γ(Y, U)) Γ(X, f ⁻¹ᵁ U) ⊥ at hr |
| 44 | have he : hU.fromSpec (⊥ : PrimeSpectrum Γ(Y, U)) = genericPoint Y := |
| 45 | by simpa using genericPoint_eq_of_isOpenImmersion hU.fromSpec |
| 46 | rw [← he, ← ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule.Construction.affinePreimageSectionModule_rank f U hU, |
| 47 | ← hr, AlgebraicGeometry.SheafCohomology.Projective.NormalAffineGenericRank.Dimension.affinePreimageSectionModule_genericRank f hX U hU, |
| 48 | AlgebraicGeometry.SheafCohomology.Projective.DominantResidueDegree.Dimension.dominantFunctionField_finrank_eq_residueDegree f] |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatGenericDegree |