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.PELModuli.IntegralModel.SmoothFromDifferentialCoordinates |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.DifferentialBasisNeighborhood |
| 3 | import Mathlib.RingTheory.Localization.BaseChange |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 5 | |
| 6 | /-! # Etale Smooth Algebra Descent -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.EtaleSmoothAlgebraDescent |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! Smoothness descends through a finite faithfully flat etale |
| 15 | extension. Local differential bases construct actual smooth coordinates. -/ |
| 16 | |
| 17 | open TensorProduct KaehlerDifferential _root_.Module |
| 18 | |
| 19 | theorem smooth_algebra_of_finite_etale_cover |
| 20 | (R A B : Type) [CommRing R] [IsNoetherianRing R] [CommRing A] [CommRing B] |
| 21 | [Algebra R A] [Algebra R B] [Algebra A B] [IsScalarTower R A B] |
| 22 | [Algebra.FiniteType R A] [Module.FaithfullyFlat A B] [Module.Finite A B] |
| 23 | [Algebra.Etale A B] [Algebra.Smooth R B] : Algebra.Smooth R A := by |
| 24 | have : Algebra.FinitePresentation R A := Algebra.FinitePresentation.of_finiteType.mp inferInstance |
| 25 | have : Module.Flat A Ω[A⁄R] := SmoothEtaleDifferentials.differentials_flat_of_faithfully_flat_etale_cover R A B |
| 26 | refine ⟨Algebra.smoothLocus_eq_univ_iff.mp (Set.eq_univ_iff_forall.mpr fun p => ?_), inferInstance⟩ |
| 27 | obtain ⟨g, hg, ι, hι, a, b, hb⟩ := DifferentialBasisNeighborhood.exists_differential_basis_neighborhood R A p.asIdeal |
| 28 | have : Finite ι := hι |
| 29 | let Ag := Localization.Away g |
| 30 | let Bg := Ag ⊗[A] B |
| 31 | let : Algebra B Bg := Algebra.TensorProduct.rightAlgebra |
| 32 | have : IsScalarTower R B Bg := IsScalarTower.to₁₃₄ R A B Bg |
| 33 | have : IsLocalization.Away (algebraMap A B g) Bg := inferInstance |
| 34 | have : Algebra.Smooth B Bg := Algebra.Smooth.of_isLocalization_Away (algebraMap A B g) |
| 35 | have : Algebra.Smooth R Bg := Algebra.Smooth.comp R B Bg |
| 36 | have hs : Algebra.Smooth R Ag := |
| 37 | SmoothFromDifferentialCoordinates.smooth_of_differential_coordinates_and_finite_etale_cover R Ag Bg |
| 38 | (fun i => algebraMap A Ag (a i)) b hb |
| 39 | exact Algebra.basicOpen_subset_smoothLocus_iff_smooth.mpr hs hg |
| 40 | |
| 41 | end |
| 42 | |
| 43 | /-! Smoothness of a scheme morphism descends through a finite etale |
| 44 | surjective source cover, by the constructed affine coordinate criterion. -/ |
| 45 | |
| 46 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 47 | |
| 48 | theorem smooth_of_finite_etale_cover_affine |
| 49 | {X Y S : Scheme.{0}} [IsAffine Y] [IsAffine S] [IsLocallyNoetherian S] |
| 50 | (q : X ⟶ Y) (f : Y ⟶ S) [IsFinite q] [Etale q] [Surjective q] |
| 51 | [LocallyOfFiniteType f] [Smooth (q ≫ f)] : Smooth f := by |
| 52 | have : IsAffine X := isAffine_of_isAffineHom q |
| 53 | let R := Γ(S, ⊤) |
| 54 | let A := Γ(Y, ⊤) |
| 55 | let B := Γ(X, ⊤) |
| 56 | let : Algebra R A := f.appTop.hom.toAlgebra |
| 57 | let : Algebra A B := q.appTop.hom.toAlgebra |
| 58 | let : Algebra R B := (q.appTop.hom.comp f.appTop.hom).toAlgebra |
| 59 | have : IsScalarTower R A B := IsScalarTower.of_algebraMap_eq fun _ => rfl |
| 60 | have : Module.Finite A B := q.finite_appTop |
| 61 | have : Module.FaithfullyFlat A B := |
| 62 | (Flat.flat_and_surjective_iff_faithfullyFlat_of_isAffine q).mp ⟨inferInstance, inferInstance⟩ |
| 63 | have : Algebra.Etale A B := HasRingHomProperty.appTop (P := @Etale) q inferInstance |
| 64 | have : Algebra.FiniteType R A := HasRingHomProperty.appTop (P := @LocallyOfFiniteType) f inferInstance |
| 65 | have : IsNoetherianRing R := IsLocallyNoetherian.component_noetherian ⟨⊤, isAffineOpen_top S⟩ |
| 66 | have : Algebra.Smooth R B := HasRingHomProperty.appTop (P := @Smooth) (q ≫ f) inferInstance |
| 67 | have h : f.appTop.hom.Smooth := smooth_algebra_of_finite_etale_cover R A B |
| 68 | have : Smooth (Spec.map f.appTop) := (HasRingHomProperty.Spec_iff (P := @Smooth)).mpr h |
| 69 | have heq : f = Y.isoSpec.hom ≫ Spec.map f.appTop ≫ S.isoSpec.inv := by |
| 70 | rw [← Category.assoc, Scheme.isoSpec_hom_naturality, Category.assoc, |
| 71 | Iso.hom_inv_id, Category.comp_id] |
| 72 | rw [heq] |
| 73 | infer_instance |
| 74 | |
| 75 | theorem smooth_of_finite_etale_cover |
| 76 | {X Y S : Scheme.{0}} [IsLocallyNoetherian S] |
| 77 | (q : X ⟶ Y) (f : Y ⟶ S) [IsFinite q] [Etale q] [Surjective q] |
| 78 | [LocallyOfFiniteType f] [Smooth (q ≫ f)] : Smooth f := by |
| 79 | constructor |
| 80 | intro U hU V hV e |
| 81 | have : IsAffine U.toScheme := hU |
| 82 | have : IsAffine V.toScheme := hV |
| 83 | have : Surjective (q ∣_ V) := |
| 84 | MorphismProperty.of_isPullback (isPullback_morphismRestrict q V).flip inferInstance |
| 85 | have : Smooth ((q ∣_ V) ≫ f.resLE U V e) := by |
| 86 | rw [← Scheme.Hom.resLE_eq_morphismRestrict, Scheme.Hom.resLE_comp_resLE] |
| 87 | infer_instance |
| 88 | have : Smooth (f.resLE U V e) := smooth_of_finite_etale_cover_affine (q ∣_ V) (f.resLE U V e) |
| 89 | exact (RingHom.Smooth.propertyIsLocal.respectsIso.arrow_mk_iso_iff |
| 90 | (arrowResLEAppIso f U V e)).mp |
| 91 | (HasRingHomProperty.appTop (P := @Smooth) (f.resLE U V e) inferInstance) |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.EtaleSmoothAlgebraDescent |