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 Mathlib.RingTheory.Smooth.IntegralClosure |
| 2 | import Mathlib.RingTheory.IntegralClosure.IntegrallyClosed |
| 3 | import Mathlib.RingTheory.Flat.Localization |
| 4 | |
| 5 | /-! # Smooth Integral Closure -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.SmoothIntegralClosure.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Completion: integral closedness after smooth base change |
| 13 | |
| 14 | If the base is integrally closed in an algebra, its smooth base change is |
| 15 | integrally closed in the corresponding tensor product. This will control |
| 16 | the components of smooth and étale charts through their generic fibers. |
| 17 | -/ |
| 18 | |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | universe u v w |
| 22 | |
| 23 | variable (R : Type u) (S : Type v) (B : Type w) |
| 24 | [CommRing R] [CommRing S] [CommRing B] [Algebra R S] [Algebra R B] |
| 25 | [Algebra.Smooth R S] [IsIntegrallyClosedIn R B] |
| 26 | |
| 27 | omit [Algebra.Smooth R S] in |
| 28 | /-- Tensoring the original integral closure introduces only elements of the new base. -/ |
| 29 | theorem smooth_integralClosure_tensor_image (z : S ⊗[R] integralClosure R B) : |
| 30 | ∃ s : S, Algebra.TensorProduct.map (AlgHom.id R S) (integralClosure R B).val z = |
| 31 | algebraMap S (S ⊗[R] B) s := by |
| 32 | induction z using TensorProduct.inductionOn with |
| 33 | | add z t hz ht => |
| 34 | obtain ⟨s, hs⟩ := hz |
| 35 | obtain ⟨r, hr⟩ := ht |
| 36 | exact ⟨s + r, by simp only [map_add, hs, hr]⟩ |
| 37 | | tmul s b => |
| 38 | obtain ⟨r, hr⟩ := IsIntegrallyClosedIn.algebraMap_eq_of_integral b.property |
| 39 | refine ⟨s * algebraMap R S r, ?_⟩ |
| 40 | simp only [Algebra.TensorProduct.map_tmul, AlgHom.id_apply, Subalgebra.coe_val] |
| 41 | rw [← hr] |
| 42 | change s ⊗ₜ[R] (algebraMap R B) r = (s * algebraMap R S r) ⊗ₜ[R] (1 : B) |
| 43 | rw [show (algebraMap R B) r = r • (1 : B) by simp [Algebra.smul_def]] |
| 44 | rw [TensorProduct.tmul_smul, TensorProduct.smul_tmul'] |
| 45 | rw [Algebra.smul_def, mul_comm] |
| 46 | |
| 47 | /-- Integral closedness in an algebra is preserved by smooth base change. -/ |
| 48 | theorem smooth_integrallyClosedIn_baseChange : IsIntegrallyClosedIn S (S ⊗[R] B) := by |
| 49 | refine ⟨Algebra.TensorProduct.includeLeft_injective (R := R) (S := R) (A := S) (B := B) |
| 50 | (IsIntegralClosure.algebraMap_injective R R B), ?_, ?_⟩ |
| 51 | · intro x |
| 52 | obtain ⟨z, hz⟩ := (TensorProduct.toIntegralClosure_bijective_of_smooth |
| 53 | (R := R) (S := S) (B := B)).surjective ⟨_, x⟩ |
| 54 | obtain ⟨s, hs⟩ := smooth_integralClosure_tensor_image R S B z |
| 55 | refine ⟨s, hs.symm.trans ?_⟩ |
| 56 | exact congrArg Subtype.val hz |
| 57 | · rintro ⟨s, rfl⟩ |
| 58 | exact isIntegral_algebraMap |
| 59 | |
| 60 | omit [Algebra.Smooth R S] in |
| 61 | /-- The same integral-closedness comparison holds for arbitrary localizations. -/ |
| 62 | theorem localization_integrallyClosedIn_baseChange (M : Submonoid R) [IsLocalization M S] : |
| 63 | IsIntegrallyClosedIn S (S ⊗[R] B) := by |
| 64 | have : Module.Flat R S := IsLocalization.flat S M |
| 65 | refine ⟨Algebra.TensorProduct.includeLeft_injective (R := R) (S := R) (A := S) (B := B) |
| 66 | (IsIntegralClosure.algebraMap_injective R R B), ?_, ?_⟩ |
| 67 | · intro hx |
| 68 | obtain ⟨z, hz⟩ := (TensorProduct.toIntegralClosure_bijective_of_isLocalization |
| 69 | (R := R) (S := S) (B := B) M).surjective ⟨_, hx⟩ |
| 70 | obtain ⟨s, hs⟩ := smooth_integralClosure_tensor_image R S B z |
| 71 | exact ⟨s, hs.symm.trans (congrArg Subtype.val hz)⟩ |
| 72 | · rintro ⟨s, rfl⟩ |
| 73 | exact isIntegral_algebraMap |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.SmoothIntegralClosure.Construction |