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.Quotients.FiniteDescent.Factorial |
| 2 | import Mathlib.RingTheory.Smooth.AdicCompletion |
| 3 | import Mathlib.RingTheory.Unramified.Finite |
| 4 | import Mathlib.RingTheory.Etale.Basic |
| 5 | |
| 6 | /-! # Etale Local -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.EtaleLocal.Construction.EtaleLocalFactorial |
| 9 | |
| 10 | /-! |
| 11 | # Factorial local rings from étale coordinates |
| 12 | |
| 13 | A residue-compatible map from a local essentially étale algebra into a |
| 14 | complete local factorial ring lifts uniquely enough for the descent argument: |
| 15 | formal smoothness supplies a lift, and unramifiedness makes it flat. |
| 16 | -/ |
| 17 | |
| 18 | variable {R S T : Type*} [CommRing R] [CommRing S] [CommRing T] |
| 19 | variable [Algebra R S] [Algebra R T] [Algebra.FormallyEtale R S] [Algebra.EssFiniteType R S] |
| 20 | variable [IsLocalRing S] [IsNoetherianRing S] |
| 21 | variable [IsLocalRing T] [IsDomain T] [UniqueFactorizationMonoid T] [Module.Flat R T] |
| 22 | variable [IsAdicComplete (IsLocalRing.maximalIdeal T) T] |
| 23 | |
| 24 | theorem of_residue_map (q : S →ₐ[R] T ⧸ IsLocalRing.maximalIdeal T) |
| 25 | (hq : RingHom.ker q = IsLocalRing.maximalIdeal S) : UniqueFactorizationMonoid S := by |
| 26 | obtain ⟨g, hg⟩ := Algebra.FormallySmooth.exists_mkₐ_comp_eq_of_isAdicComplete q |
| 27 | have hlocal : IsLocalHom g.toRingHom := by |
| 28 | constructor |
| 29 | intro s hs |
| 30 | by_contra hn |
| 31 | have hm : s ∈ IsLocalRing.maximalIdeal S := hn |
| 32 | have hq0 : q s = 0 := by |
| 33 | change s ∈ RingHom.ker q |
| 34 | rwa [hq] |
| 35 | have hg0 : Ideal.Quotient.mk (IsLocalRing.maximalIdeal T) (g s) = 0 := |
| 36 | (AlgHom.congr_fun hg s).trans hq0 |
| 37 | have hgm : g s ∈ IsLocalRing.maximalIdeal T := Ideal.Quotient.eq_zero_iff_mem.mp hg0 |
| 38 | exact hgm hs |
| 39 | let : Algebra S T := g.toAlgebra |
| 40 | have : IsScalarTower R S T := IsScalarTower.of_algebraMap_eq fun r => (g.commutes r).symm |
| 41 | have : Module.Flat S T := Algebra.FormallyUnramified.flat_of_restrictScalars R S T |
| 42 | have : IsLocalHom (algebraMap S T) := hlocal |
| 43 | have : Module.FaithfullyFlat S T := Module.FaithfullyFlat.of_flat_of_isLocalHom |
| 44 | have : IsDomain S := (FaithfulSMul.algebraMap_injective S T).isDomain (algebraMap S T) |
| 45 | exact Factorial.Construction.FactorialDescent.of_faithfullyFlat (S := T) |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.EtaleLocal.Construction.EtaleLocalFactorial |