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.Kaehler.Polynomial |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 4 | import Mathlib.RingTheory.RingHom.Etale |
| 5 | |
| 6 | /-! # Differential Coordinates Etale -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DifferentialCoordinatesEtale |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Functions whose differentials form a basis on a finitely presented formally smooth algebra define an actual etale map from the polynomial algebra in those functions. -/ |
| 13 | open _root_.Algebra TensorProduct |
| 14 | open scoped TensorProduct |
| 15 | universe u v w |
| 16 | |
| 17 | theorem etale_aeval_of_basis_differentials |
| 18 | (R : Type u) (S : Type v) [CommRing R] [CommRing S] [Algebra R S] |
| 19 | [FormallySmooth R S] [FinitePresentation R S] |
| 20 | {ι : Type w} [Finite ι] (x : ι → S) (b : Module.Basis ι S Ω[S⁄R]) |
| 21 | (hb : ∀ i, b i = KaehlerDifferential.D R S (x i)) : |
| 22 | (MvPolynomial.aeval x : MvPolynomial ι R →ₐ[R] S).toRingHom.Etale := by |
| 23 | let A := MvPolynomial ι R |
| 24 | let φ : A →ₐ[R] S := MvPolynomial.aeval x |
| 25 | let : Algebra A S := φ.toAlgebra |
| 26 | have : IsScalarTower R A S := IsScalarTower.of_algebraMap_eq' φ.comp_algebraMap.symm |
| 27 | let B : Module.Basis ι S (S ⊗[A] Ω[A⁄R]) := (KaehlerDifferential.mvPolynomialBasis R ι).baseChange S |
| 28 | let e : (S ⊗[A] Ω[A⁄R]) ≃ₗ[S] Ω[S⁄R] := B.equiv b (Equiv.refl ι) |
| 29 | have he : KaehlerDifferential.mapBaseChange R A S = e.toLinearMap := by |
| 30 | apply B.ext |
| 31 | intro i |
| 32 | change KaehlerDifferential.mapBaseChange R A S (B i) = e (B i) |
| 33 | rw [show e (B i) = b i by |
| 34 | simp only [e, Module.Basis.equiv_apply, Equiv.refl_apply]] |
| 35 | dsimp only [B] |
| 36 | rw [Module.Basis.baseChange_apply, KaehlerDifferential.mvPolynomialBasis_apply, |
| 37 | KaehlerDifferential.mapBaseChange_tmul, KaehlerDifferential.map_D, one_smul] |
| 38 | change KaehlerDifferential.D R S ((MvPolynomial.aeval x) (MvPolynomial.X i)) = b i |
| 39 | rw [MvPolynomial.aeval_X] |
| 40 | exact (hb i).symm |
| 41 | have hbij : Function.Bijective (KaehlerDifferential.mapBaseChange R A S) := by |
| 42 | rw [he] |
| 43 | exact e.bijective |
| 44 | have hzero (z : Ω[S⁄A]) : z = 0 := by |
| 45 | obtain ⟨y, rfl⟩ := KaehlerDifferential.map_surjective R A S z |
| 46 | obtain ⟨w, rfl⟩ := hbij.surjective y |
| 47 | exact (KaehlerDifferential.exact_mapBaseChange_map R A S).apply_apply_eq_zero w |
| 48 | have : FormallyUnramified A S := ⟨⟨fun x y => (hzero x).trans (hzero y).symm⟩⟩ |
| 49 | have : FormallyEtale A S := EtaleCotangentCriterion.formallyEtale_of_cotangent_injective R A S hbij.injective |
| 50 | have : FinitePresentation A S := FinitePresentation.of_restrict_scalars_finitePresentation R A S |
| 51 | change Etale A S |
| 52 | exact { formallyEtale := inferInstance, finitePresentation := inferInstance } |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DifferentialCoordinatesEtale |