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.IntersectionTheory.ProjectionFormula.Generic.Fields |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.Fields |
| 3 | import Mathlib.LinearAlgebra.Dimension.Localization |
| 4 | |
| 5 | /-! # Generic Degree -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.GenericDegree |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The rank of a dominant affine chart map is its native generic |
| 12 | residue degree, through the actual scheme function-field maps. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | |
| 19 | theorem rank {X Y : Scheme} [IsIntegral X] [IsIntegral Y] (f : X ⟶ Y) |
| 20 | (hη : f (genericPoint X) = genericPoint Y) (U : Y.Opens) |
| 21 | (hU : IsAffineOpen U) (hV : IsAffineOpen (f ⁻¹ᵁ U)) [Nonempty U] [Nonempty (f ⁻¹ᵁ U)] : |
| 22 | letI : Algebra Γ(Y, U) Γ(X, f ⁻¹ᵁ U) := (f.app U).hom.toAlgebra |
| 23 | Module.finrank Γ(Y, U) Γ(X, f ⁻¹ᵁ U) = f.residueDegree (genericPoint X) := by |
| 24 | let R := Γ(Y, U) |
| 25 | let S := Γ(X, f ⁻¹ᵁ U) |
| 26 | let : Algebra R S := (f.app U).hom.toAlgebra |
| 27 | let : Algebra Y.functionField X.functionField := (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom.toAlgebra |
| 28 | let : Algebra R X.functionField := (f.app U ≫ X.germToFunctionField (f ⁻¹ᵁ U)).hom.toAlgebra |
| 29 | let : IsScalarTower R S X.functionField := IsScalarTower.of_algebraMap_eq' rfl |
| 30 | let : IsScalarTower R Y.functionField X.functionField := IsScalarTower.of_algebraMap_eq' |
| 31 | (congrArg CommRingCat.Hom.hom (Generic.Fields.genericFieldMap_germ_open f hη U)).symm |
| 32 | let : IsFractionRing R Y.functionField := functionField_isFractionRing_of_isAffineOpen Y U hU |
| 33 | let : IsFractionRing S X.functionField := functionField_isFractionRing_of_isAffineOpen X (f ⁻¹ᵁ U) hV |
| 34 | exact (IsFractionRing.finrank_eq R Y.functionField S X.functionField).symm.trans |
| 35 | (Support.Fields.genericFieldMap_finrank_eq_residueDegree f hη) |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.GenericDegree |