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.AbelianModuli.HilbertConstruction.Abelian.Schemes |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 3 | |
| 4 | /-! # Degree Loci -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Relative.DegreeLoci.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite-flat degree is pulled back from the base when the target |
| 11 | has connected fibres and a section. Its constant-degree loci are open |
| 12 | and closed, without reducedness or Noetherian hypotheses. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open scoped _root_.CategoryTheory.MonObj |
| 16 | |
| 17 | universe u |
| 18 | variable {S : Scheme.{u}} {X A : Over S} [GrpObj A] [GeometricallyConnected A.hom] |
| 19 | (f : X ⟶ A) [IsFinite f.left] [Flat f.left] [LocallyOfFinitePresentation f.left] |
| 20 | |
| 21 | def relativeFiniteFlatDegree (s : S) : ℕ := f.left.finrank (η[A].left s) |
| 22 | |
| 23 | theorem finiteFlatDegree_eq_base_degree (a : A.left) : |
| 24 | f.left.finrank a = relativeFiniteFlatDegree f (A.hom a) := by |
| 25 | apply f.left.isLocallyConstant_finrank.apply_eq_of_isPreconnected |
| 26 | (A.hom.isConnected_preimage_singleton (A.hom a)).isPreconnected |
| 27 | · exact Set.mem_singleton _ |
| 28 | · change A.hom (η[A].left (A.hom a)) = A.hom a |
| 29 | have h := congrArg (fun t : S ⟶ S => t (A.hom a)) η[A].w |
| 30 | exact h |
| 31 | |
| 32 | omit [GeometricallyConnected A.hom] in |
| 33 | theorem relativeFiniteFlatDegree_isLocallyConstant : IsLocallyConstant (relativeFiniteFlatDegree f) := |
| 34 | f.left.isLocallyConstant_finrank.comp_continuous η[A].left.continuous |
| 35 | |
| 36 | omit [GeometricallyConnected A.hom] in |
| 37 | def relativeDegreeOpen (d : ℕ) : S.Opens := |
| 38 | ⟨{s | relativeFiniteFlatDegree f s = d}, (relativeFiniteFlatDegree_isLocallyConstant f).isOpen_fiber d⟩ |
| 39 | |
| 40 | omit [GeometricallyConnected A.hom] in |
| 41 | theorem relativeDegreeOpen_isClopen (d : ℕ) : IsClopen (relativeDegreeOpen f d : Set S) := |
| 42 | (relativeFiniteFlatDegree_isLocallyConstant f).isClopen_fiber d |
| 43 | |
| 44 | omit [GeometricallyConnected A.hom] in |
| 45 | theorem mem_relativeDegreeOpen (s : S) : s ∈ relativeDegreeOpen f (relativeFiniteFlatDegree f s) := rfl |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Relative.DegreeLoci.Construction |