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.ClosedTensorDomain |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ProductChart |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.LocalFiber |
| 4 | import OAI.AlgebraicGeometry.Foundations.Scheme.AffineSectionFiniteType |
| 5 | import Mathlib.AlgebraicGeometry.Geometrically.Integral |
| 6 | |
| 7 | /-! # Closed Geometric Integral -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ClosedGeometricIntegral |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! An integral finite type scheme over an algebraically closed field is |
| 14 | geometrically irreducible. For smooth schemes this also gives geometric |
| 15 | integrality, so products with singular integral supports remain integral. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 21 | open scoped Classical TensorProduct |
| 22 | |
| 23 | theorem baseChange_irreducible {K L : Type} [Field K] [IsAlgClosed K] [Field L] |
| 24 | {X : Scheme} [IsIntegral X] (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] |
| 25 | (g : Spec (.of L) ⟶ Spec (.of K)) : IrreducibleSpace ↥(pullback f g) := by |
| 26 | obtain ⟨U, hU, hxU, _⟩ := |
| 27 | exists_isAffineOpen_mem_and_subset (Opens.mem_top (genericPoint X)) |
| 28 | let : Nonempty U := ⟨⟨genericPoint X, hxU⟩⟩ |
| 29 | let V : (Spec (.of L)).Opens := ⊤ |
| 30 | have hV : IsAffineOpen V := isAffineOpen_top _ |
| 31 | let : Nonempty V := ⟨⟨genericPoint (Spec (.of L)), trivial⟩⟩ |
| 32 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 33 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra g V |
| 34 | let : Algebra.FiniteType K Γ(X, U) := Foundations.Scheme.AffineSectionFiniteType.specSectionScalarAlgebra_finiteType f U hU |
| 35 | let : IsDomain (Γ(X, U) ⊗[K] Γ(Spec (.of L), V)) := |
| 36 | ClosedTensorDomain.isDomain |
| 37 | let j := Affine.ProductChart.map f g U hU V hV |
| 38 | have hi : IsIrreducible (Set.range j) := by |
| 39 | simpa only [Set.image_univ] using |
| 40 | (IrreducibleSpace.isIrreducible_univ (Spec (.of (Γ(X, U) ⊗[K] Γ(Spec (.of L), V))))).image |
| 41 | j j.continuous.continuousOn |
| 42 | have hd : Dense (Set.range j) := by |
| 43 | rw [Affine.ProductChart.range] |
| 44 | simpa only [V, Opens.coe_top, Set.preimage_univ, Set.inter_univ] using |
| 45 | (U.isOpen.dense ⟨genericPoint X, hxU⟩).preimage (pullback.fst f g).isOpenMap |
| 46 | rw [irreducibleSpace_def] |
| 47 | change IsIrreducible (Set.univ : Set ↥(pullback f g)) |
| 48 | simpa only [hd.closure_eq] using hi.closure |
| 49 | |
| 50 | theorem geometricallyIrreducible {K : Type} [Field K] [IsAlgClosed K] |
| 51 | {X : Scheme} [IsIntegral X] (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] : |
| 52 | GeometricallyIrreducible f := |
| 53 | ⟨geometrically_iff_of_isClosedUnderIsomorphisms.mpr fun _ _ g => baseChange_irreducible f g⟩ |
| 54 | |
| 55 | theorem geometricallyIntegral {K : Type} [Field K] [IsAlgClosed K] |
| 56 | {X : Scheme} [IsIntegral X] (f : X ⟶ Spec (.of K)) [Smooth f] : |
| 57 | GeometricallyIntegral f := by |
| 58 | let : GeometricallyIrreducible f := geometricallyIrreducible f |
| 59 | let : GeometricallyReduced f := ProjectionFormula.Smooth.LocalFiber.geometricallyReduced f |
| 60 | exact GeometricallyIntegral.of_geometricallyReduced_of_geometricallyIrreducible f |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ClosedGeometricIntegral |