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.EtaleCotangentCriterion |
| 2 | import Mathlib.RingTheory.Smooth.StandardSmoothCotangent |
| 3 | import Mathlib.LinearAlgebra.Dimension.Constructions |
| 4 | import Mathlib.LinearAlgebra.Dimension.Free |
| 5 | import Mathlib.RingTheory.OrzechProperty |
| 6 | |
| 7 | /-! # Equal Dimension Etale Algebras -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.EqualDimensionEtaleAlgebras |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! An unramified map between standard smooth algebras of the same relative dimension is etale. -/ |
| 14 | |
| 15 | open _root_.Algebra TensorProduct |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | universe u v w |
| 19 | |
| 20 | variable (R : Type u) (S : Type v) (T : Type w) |
| 21 | variable [CommRing R] [CommRing S] [CommRing T] |
| 22 | variable [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T] |
| 23 | |
| 24 | theorem formallyEtale_of_standardSmooth_equal_dimension (d : ℕ) |
| 25 | [IsStandardSmoothOfRelativeDimension d R S] [IsStandardSmoothOfRelativeDimension d R T] |
| 26 | [FormallyUnramified S T] : FormallyEtale S T := by |
| 27 | rcases subsingleton_or_nontrivial T with hT | hT |
| 28 | · exact ⟨inferInstance, inferInstance⟩ |
| 29 | have : Nontrivial S := (algebraMap S T).domain_nontrivial |
| 30 | have : IsStandardSmooth R S := IsStandardSmoothOfRelativeDimension.isStandardSmooth d |
| 31 | have : IsStandardSmooth R T := IsStandardSmoothOfRelativeDimension.isStandardSmooth d |
| 32 | have hs : Module.finrank S Ω[S⁄R] = d := by |
| 33 | rw [Module.finrank, IsStandardSmoothOfRelativeDimension.rank_kaehlerDifferential d] |
| 34 | simp |
| 35 | have ht : Module.finrank T Ω[T⁄R] = d := by |
| 36 | rw [Module.finrank, IsStandardSmoothOfRelativeDimension.rank_kaehlerDifferential d] |
| 37 | simp |
| 38 | let e : (T ⊗[S] Ω[S⁄R]) ≃ₗ[T] Ω[T⁄R] := LinearEquiv.ofFinrankEq _ _ (by |
| 39 | rw [Module.finrank_baseChange, hs, ht]) |
| 40 | have hsurj : Function.Surjective (KaehlerDifferential.mapBaseChange R S T) := |
| 41 | fun x => (KaehlerDifferential.exact_mapBaseChange_map R S T x).mp (Subsingleton.elim _ _) |
| 42 | exact EtaleCotangentCriterion.formallyEtale_of_cotangent_injective R S T |
| 43 | (OrzechProperty.injective_of_surjective_of_injective e.toLinearMap |
| 44 | (KaehlerDifferential.mapBaseChange R S T) e.injective hsurj) |
| 45 | |
| 46 | theorem etale_of_standardSmooth_equal_dimension (d : ℕ) |
| 47 | [IsStandardSmoothOfRelativeDimension d R S] [IsStandardSmoothOfRelativeDimension d R T] |
| 48 | [FormallyUnramified S T] : Etale S T := by |
| 49 | have : IsStandardSmooth R S := IsStandardSmoothOfRelativeDimension.isStandardSmooth d |
| 50 | have : IsStandardSmooth R T := IsStandardSmoothOfRelativeDimension.isStandardSmooth d |
| 51 | have : FinitePresentation S T := FinitePresentation.of_restrict_scalars_finitePresentation R S T |
| 52 | exact { |
| 53 | formallyEtale := formallyEtale_of_standardSmooth_equal_dimension R S T d |
| 54 | finitePresentation := inferInstance } |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.EqualDimensionEtaleAlgebras |