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.Albanese.Construction.GenericFinite |
| 2 | import OAI.AlgebraicGeometry.Albanese.Construction.DominantSmooth |
| 3 | import Mathlib.RingTheory.Etale.Kaehler |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 5 | |
| 6 | /-! # Etale Generic -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Albanese.Construction.EtaleGeneric |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | /-- For a smooth domain, vanishing of relative differentials in its fraction |
| 16 | field forces them to vanish before localization, since they form a flat module. -/ |
| 17 | theorem smooth_etale_of_fraction_unramified |
| 18 | (R S F : Type*) [CommRing R] [CommRing S] [Field F] [IsDomain S] |
| 19 | [Algebra R S] [Algebra S F] [Algebra R F] [IsScalarTower R S F] |
| 20 | [IsFractionRing S F] [Algebra.Smooth R S] [Algebra.FormallyUnramified R F] : |
| 21 | Algebra.Etale R S := by |
| 22 | have : Algebra.FormallyEtale S F := Algebra.FormallyEtale.of_isLocalization (nonZeroDivisors S) |
| 23 | let e := KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale R S F |
| 24 | have : Subsingleton (F ⊗[S] Ω[S⁄R]) := e.injective.subsingleton |
| 25 | have : Subsingleton Ω[S⁄R] := |
| 26 | (Module.Flat.tensorProduct_mk_injective (R := S) (S := F) (M := Ω[S⁄R])).subsingleton |
| 27 | exact Algebra.Etale.iff_formallyUnramified_and_smooth.mpr ⟨⟨inferInstance⟩, inferInstance⟩ |
| 28 | |
| 29 | set_option backward.isDefEq.respectTransparency false in |
| 30 | /-- Generic pullback commutes with taking germs on arbitrary nonempty opens. -/ |
| 31 | theorem dominantFunctionFieldMap_germLE |
| 32 | {X Y : Scheme} [IsIntegral X] [IsIntegral Y] (i : X ⟶ Y) [IsDominant i] |
| 33 | (U : Y.Opens) (V : X.Opens) [Nonempty U] [Nonempty V] (e : V ≤ i ⁻¹ᵁ U) : |
| 34 | Y.germToFunctionField U ≫ DominantDimension.dominantFunctionFieldMap i = |
| 35 | i.appLE U V e ≫ X.germToFunctionField V := by |
| 36 | simp only [Scheme.germToFunctionField, DominantDimension.dominantFunctionFieldMap, |
| 37 | TopCat.Presheaf.stalkCongr_hom, ← Category.assoc] |
| 38 | rw [TopCat.Presheaf.germ_stalkSpecializes] |
| 39 | rw [i.germ_stalkMap] |
| 40 | simp [Scheme.Hom.appLE, Category.assoc] |
| 41 | |
| 42 | set_option backward.isDefEq.respectTransparency false in |
| 43 | /-- A smooth morphism of integral schemes is étale if its induced |
| 44 | function-field map is formally unramified. -/ |
| 45 | theorem smooth_etale_of_generic_unramified |
| 46 | {X Y : Scheme} [IsIntegral X] [IsIntegral Y] (i : X ⟶ Y) [IsDominant i] [Smooth i] |
| 47 | (hgeneric : (DominantDimension.dominantFunctionFieldMap i).hom.FormallyUnramified) : Etale i := by |
| 48 | have : MorphismProperty.RespectsRight @Etale @IsOpenImmersion := |
| 49 | ⟨fun _ hg _ hf => by |
| 50 | let _ := hg |
| 51 | let _ := hf |
| 52 | infer_instance⟩ |
| 53 | apply IsZariskiLocalAtSource.iff_exists_resLE.mpr |
| 54 | intro x |
| 55 | obtain ⟨_, ⟨U, hU, rfl⟩, hxU, _⟩ := |
| 56 | Y.isBasis_affineOpens.exists_subset_of_mem_open (Set.mem_univ (i x)) isOpen_univ |
| 57 | obtain ⟨_, ⟨V, hV, rfl⟩, hxV, e⟩ := |
| 58 | X.isBasis_affineOpens.exists_subset_of_mem_open hxU (U.2.preimage i.continuous) |
| 59 | have : Nonempty U := ⟨⟨i x, hxU⟩⟩ |
| 60 | have : Nonempty V := ⟨⟨x, hxV⟩⟩ |
| 61 | have := functionField_isFractionRing_of_isAffineOpen X V hV |
| 62 | have := functionField_isFractionRing_of_isAffineOpen Y U hU |
| 63 | have hgerm : (Y.germToFunctionField U).hom.FormallyUnramified := |
| 64 | Algebra.FormallyUnramified.of_isLocalization (nonZeroDivisors Γ(Y, U)) |
| 65 | have hcomp : ((X.germToFunctionField V).hom.comp (i.appLE U V e).hom).FormallyUnramified := by |
| 66 | rw [← CommRingCat.hom_comp, ← dominantFunctionFieldMap_germLE i U V e] |
| 67 | exact hgerm.comp hgeneric |
| 68 | have hsmooth := i.smooth_appLE hU hV e |
| 69 | have hetale : (i.appLE U V e).hom.Etale := by |
| 70 | algebraize [(i.appLE U V e).hom, (X.germToFunctionField V).hom, |
| 71 | (X.germToFunctionField V).hom.comp (i.appLE U V e).hom] |
| 72 | exact smooth_etale_of_fraction_unramified Γ(Y, U) Γ(X, V) X.functionField |
| 73 | refine ⟨U, V, hxV, e, ?_⟩ |
| 74 | have : IsAffine U := hU |
| 75 | have : IsAffine V := hV |
| 76 | rw [HasRingHomProperty.iff_of_isAffine (P := @Etale)] |
| 77 | exact (RingHom.Etale.respectsIso.arrow_mk_iso_iff (arrowResLEAppIso i U V e)).mpr hetale |
| 78 | |
| 79 | /-- A smooth dominant morphism between integral complex varieties of the same |
| 80 | dimension is étale. -/ |
| 81 | theorem smooth_etale_of_dimension_eq |
| 82 | {X Y : Scheme} [IsIntegral X] [IsIntegral Y] (i : X ⟶ Y) [IsDominant i] [Smooth i] |
| 83 | (f : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [LocallyOfFiniteType f] [LocallyOfFiniteType (i ≫ f)] |
| 84 | (hd : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (i ≫ f) = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension f) : Etale i := |
| 85 | smooth_etale_of_generic_unramified i |
| 86 | (GenericFinite.dominantFunctionField_formallyUnramified_of_dimension_eq i f hd) |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.Albanese.Construction.EtaleGeneric |