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.Foundations.Scheme.SmoothProjectiveDecomposition |
| 2 | import Mathlib.AlgebraicGeometry.Geometrically.Reduced |
| 3 | import Mathlib.RingTheory.Localization.BaseChange |
| 4 | import Mathlib.RingTheory.LocalRing.ResidueField.Fiber |
| 5 | |
| 6 | /-! # Local Fiber -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.LocalFiber |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Smooth fibers have actual local domain rings. This supplies reduced |
| 13 | closed fibers for the flat comparison of native orders of vanishing. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | theorem geometricallyReduced {X Y : Scheme.{u}} (f : X ⟶ Y) [Smooth f] : |
| 23 | GeometricallyReduced f := by |
| 24 | constructor |
| 25 | intro K _ y Z fst snd h |
| 26 | let : Smooth snd := MorphismProperty.of_isPullback h (inferInstance : Smooth f) |
| 27 | exact Foundations.Scheme.SmoothProjectiveDecomposition.smoothScheme_isReduced snd |
| 28 | |
| 29 | theorem localization_domain (K A S : Type u) [Field K] [CommRing A] [Algebra K A] |
| 30 | [Algebra.Smooth K A] [CommRing S] [IsLocalRing S] [Algebra A S] |
| 31 | (M : Submonoid A) [IsLocalization M S] : IsDomain S := by |
| 32 | let p := (IsLocalRing.maximalIdeal S).comap (algebraMap A S) |
| 33 | let : p.IsPrime := Ideal.IsPrime.comap _ |
| 34 | have hm : M ≤ p.primeCompl := by |
| 35 | intro a ha |
| 36 | exact (IsLocalRing.notMem_maximalIdeal.mpr (IsLocalization.map_units S (⟨a, ha⟩ : M))) |
| 37 | let : IsLocalization.AtPrime S p := IsLocalization.of_le M p.primeCompl hm |
| 38 | (fun a ha => IsLocalRing.notMem_maximalIdeal.mp ha) |
| 39 | exact Foundations.Scheme.SmoothLocalDomain.isDomain_of_isLocalizationAtPrime_of_smooth K A S p |
| 40 | |
| 41 | theorem fiber_domain (R A S : Type u) [CommRing R] [IsLocalRing R] |
| 42 | [CommRing A] [Algebra R A] [Algebra.Smooth R A] |
| 43 | [CommRing S] [IsLocalRing S] [Algebra R S] [IsLocalHom (algebraMap R S)] |
| 44 | [Algebra A S] [IsScalarTower R A S] (M : Submonoid A) [IsLocalization M S] : |
| 45 | IsDomain (IsLocalRing.ResidueField R ⊗[R] S) := by |
| 46 | let K := IsLocalRing.ResidueField R |
| 47 | let B := K ⊗[R] A |
| 48 | let F := K ⊗[R] S |
| 49 | let φ : B →ₐ[K] F := Algebra.TensorProduct.map (AlgHom.id K K) (IsScalarTower.toAlgHom R A S) |
| 50 | let : Algebra B F := φ.toRingHom.toAlgebra |
| 51 | let : IsScalarTower K B F := IsScalarTower.of_algebraMap_eq' (by |
| 52 | ext k |
| 53 | exact (φ.commutes k).symm) |
| 54 | let : IsLocalization (M.map (Algebra.TensorProduct.includeRight (R := R) (A := K))) F := |
| 55 | IsLocalization.tensorProduct_tensorProduct_right R K M S (by |
| 56 | ext a |
| 57 | simp only [RingHom.comp_apply] |
| 58 | change φ (1 ⊗ₜ[R] a) = 1 ⊗ₜ[R] algebraMap A S a |
| 59 | exact Algebra.TensorProduct.map_tmul (AlgHom.id K K) (IsScalarTower.toAlgHom R A S) 1 a) |
| 60 | exact localization_domain K B F (M.map (Algebra.TensorProduct.includeRight (R := R) (A := K))) |
| 61 | |
| 62 | theorem quotient_domain (R A S : Type u) [CommRing R] [IsLocalRing R] |
| 63 | [CommRing A] [Algebra R A] [Algebra.Smooth R A] |
| 64 | [CommRing S] [IsLocalRing S] [Algebra R S] [IsLocalHom (algebraMap R S)] |
| 65 | [Algebra A S] [IsScalarTower R A S] (M : Submonoid A) [IsLocalization M S] : |
| 66 | IsDomain (S ⧸ (IsLocalRing.maximalIdeal R).map (algebraMap R S)) := by |
| 67 | let : IsDomain (IsLocalRing.ResidueField R ⊗[R] S) := fiber_domain R A S M |
| 68 | let e : IsLocalRing.ResidueField R ⊗[R] S ≃ₐ[R] |
| 69 | S ⧸ (IsLocalRing.maximalIdeal R).map (algebraMap R S) := |
| 70 | (Algebra.TensorProduct.comm R _ S).trans |
| 71 | ((Algebra.TensorProduct.quotIdealMapEquivTensorQuot S (IsLocalRing.maximalIdeal R)).symm.restrictScalars R) |
| 72 | exact e.symm.injective.isDomain e.symm.toRingHom |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.LocalFiber |