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.FunctionFields |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.SupportDimensionDrop |
| 3 | import Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 4 | |
| 5 | /-! # Generic Fiber -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Cycles.Functoriality.GenericFiber.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 12 | |
| 13 | variable {S T : Scheme} [IsIntegral S] [IsIntegral T] |
| 14 | variable {K : Type} [Field K] |
| 15 | |
| 16 | /-- A dominant dimension-preserving morphism between integral varieties |
| 17 | has only the source generic point above the target generic point. -/ |
| 18 | theorem genericFiber_eq_singleton (i : S ⟶ T) (g : T ⟶ Spec (.of K)) |
| 19 | [LocallyOfFiniteType i] [LocallyOfFiniteType g] |
| 20 | (hη : i (genericPoint S) = genericPoint T) |
| 21 | (hdim : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (i ≫ g)) : |
| 22 | i ⁻¹' {genericPoint T} = {genericPoint S} := by |
| 23 | ext x |
| 24 | change i x = genericPoint T ↔ x = genericPoint S |
| 25 | constructor |
| 26 | · intro hx |
| 27 | by_contra hne |
| 28 | let W : IrreducibleCloseds S := irreducibleSetEquivPoints.symm x |
| 29 | let U : IrreducibleCloseds S := |
| 30 | ⟨Set.univ, IrreducibleSpace.isIrreducible_univ S, isClosed_univ⟩ |
| 31 | have hW : W < U := by |
| 32 | apply lt_of_le_not_ge (Set.subset_univ _) |
| 33 | intro hUW |
| 34 | have heq : (W : Set S) = Set.univ := Set.eq_univ_of_univ_subset hUW |
| 35 | have hg : IsGenericPoint x (W : Set S) := by rfl |
| 36 | rw [heq] at hg |
| 37 | exact hne (hg.eq (genericPoint_spec S)) |
| 38 | have hηW : (CycleClass.Geometric.GenericPoint.reducedSupportι W ≫ i) (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W)) = |
| 39 | genericPoint T := by |
| 40 | change i (CycleClass.Geometric.GenericPoint.reducedSupportι W (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W))) = _ |
| 41 | rw [CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq] |
| 42 | change i (irreducibleSetEquivPoints (irreducibleSetEquivPoints.symm x)) = _ |
| 43 | rw [OrderIso.apply_symm_apply] |
| 44 | exact hx |
| 45 | have hlow := FunctionFields.Construction.dimension_le_of_genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportι W ≫ i) hηW g |
| 46 | rw [Category.assoc] at hlow |
| 47 | change Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g ≤ Foundations.Scheme.SupportDimension.supportTranscendenceDimension W (i ≫ g) at hlow |
| 48 | have hstrict := Foundations.Scheme.SupportDimensionDrop.supportTranscendenceDimension_lt_of_lt W U (i ≫ g) hW |
| 49 | have hbound := Foundations.Scheme.SupportDimension.supportTranscendenceDimension_le U (i ≫ g) |
| 50 | omega |
| 51 | · rintro rfl |
| 52 | exact hη |
| 53 | |
| 54 | /-- Properness extends finiteness of the generic fiber to an actual |
| 55 | Zariski-open neighborhood of the generic point of the target. -/ |
| 56 | theorem exists_finite_neighborhood_of_generic (i : S ⟶ T) (g : T ⟶ Spec (.of K)) |
| 57 | [IsProper i] [LocallyOfFiniteType g] |
| 58 | (hη : i (genericPoint S) = genericPoint T) |
| 59 | (hdim : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (i ≫ g)) : |
| 60 | ∃ U : T.Opens, genericPoint T ∈ U ∧ IsFinite (i ∣_ U) := by |
| 61 | apply exists_isFinite_morphismRestrict_of_finite_preimage_singleton i (genericPoint T) |
| 62 | rw [genericFiber_eq_singleton i g hη hdim] |
| 63 | exact Set.finite_singleton _ |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.Cycles.Functoriality.GenericFiber.Construction |