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.Cycles.Functoriality.ResidueDegree |
| 2 | import Mathlib.LinearAlgebra.Dimension.Localization |
| 3 | |
| 4 | /-! # Affine Generic Rank -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Cycles.Functoriality.AffineGenericRank.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | variable {S T : Scheme.{u}} [IsIntegral S] [IsIntegral T] |
| 15 | |
| 16 | /-- Generic-field pullback agrees with the pullback on any pair of |
| 17 | affine neighborhoods of the generic points. -/ |
| 18 | theorem genericFieldMap_germ_appLE |
| 19 | (i : S ⟶ T) (hη : i (genericPoint S) = genericPoint T) |
| 20 | (U : T.Opens) (V : S.Opens) (hVU : V ≤ i ⁻¹ᵁ U) |
| 21 | (hηU : genericPoint T ∈ U) (hηV : genericPoint S ∈ V) : |
| 22 | T.presheaf.germ U (genericPoint T) hηU ≫ FunctionFields.Construction.genericFieldMap i hη = |
| 23 | i.appLE U V hVU ≫ S.presheaf.germ V (genericPoint S) hηV := by |
| 24 | simp only [FunctionFields.Construction.genericFieldMap, TopCat.Presheaf.stalkCongr_hom, ← Category.assoc] |
| 25 | have h := T.presheaf.germ_stalkSpecializes hηU (Inseparable.of_eq hη).specializes |
| 26 | have hfirst := (congrArg |
| 27 | (fun k : Γ(T, U) ⟶ T.presheaf.stalk (i (genericPoint S)) => |
| 28 | k ≫ i.stalkMap (genericPoint S)) h).trans |
| 29 | (i.germ_stalkMap U (genericPoint S) (hVU hηV)) |
| 30 | exact hfirst.trans (by |
| 31 | simp only [Scheme.Hom.appLE, Category.assoc, TopCat.Presheaf.germ_res]) |
| 32 | |
| 33 | /-- The residue degree at the generic point is the rank of the actual |
| 34 | pullback between any two nonempty affine neighborhoods. -/ |
| 35 | theorem residueDegree_eq_affine_rank |
| 36 | (i : S ⟶ T) (hη : i (genericPoint S) = genericPoint T) |
| 37 | (U : T.Opens) (V : S.Opens) (hVU : V ≤ i ⁻¹ᵁ U) |
| 38 | (hU : IsAffineOpen U) (hV : IsAffineOpen V) |
| 39 | (hηU : genericPoint T ∈ U) (hηV : genericPoint S ∈ V) : |
| 40 | i.residueDegree (genericPoint S) = |
| 41 | @Module.finrank Γ(T, U) Γ(S, V) _ _ (i.appLE U V hVU).hom.toAlgebra.toModule := by |
| 42 | let : Nonempty U := ⟨⟨genericPoint T, hηU⟩⟩ |
| 43 | let : Nonempty V := ⟨⟨genericPoint S, hηV⟩⟩ |
| 44 | let := (i.appLE U V hVU).hom.toAlgebra |
| 45 | let := (FunctionFields.Construction.genericFieldMap i hη).hom.toAlgebra |
| 46 | let : Algebra Γ(T, U) S.functionField := |
| 47 | ((S.germToFunctionField V).hom.comp (i.appLE U V hVU).hom).toAlgebra |
| 48 | let : IsScalarTower Γ(T, U) Γ(S, V) S.functionField := |
| 49 | IsScalarTower.of_algebraMap_eq' rfl |
| 50 | let : IsScalarTower Γ(T, U) T.functionField S.functionField := |
| 51 | IsScalarTower.of_algebraMap_eq' |
| 52 | (congrArg CommRingCat.Hom.hom (genericFieldMap_germ_appLE i hη U V hVU hηU hηV)).symm |
| 53 | let : IsFractionRing Γ(T, U) T.functionField := |
| 54 | functionField_isFractionRing_of_isAffineOpen T U hU |
| 55 | let : IsFractionRing Γ(S, V) S.functionField := |
| 56 | functionField_isFractionRing_of_isAffineOpen S V hV |
| 57 | exact (ResidueDegree.Construction.genericFieldMap_finrank_eq_residueDegree i hη).symm.trans |
| 58 | (IsFractionRing.finrank_eq Γ(T, U) T.functionField Γ(S, V) S.functionField) |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.Cycles.Functoriality.AffineGenericRank.Construction |