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 | |
| 4 | /-! # Tensor Integral Closure -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.TensorIntegralClosure |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Integral elements in a tensor product over an integrally closed domain |
| 12 | |
| 13 | If the canonical integral-closure base-change map is surjective, every |
| 14 | integral element in the generic fiber comes from the original algebra. |
| 15 | Flatness then identifies that algebra with an integrally closed subring of |
| 16 | its generic fiber. These are consequences of the actual comparison map, |
| 17 | not additional normality assumptions on the algebra. |
| 18 | -/ |
| 19 | |
| 20 | open scoped TensorProduct |
| 21 | |
| 22 | variable {R A K : Type*} [CommRing R] [IsIntegrallyClosed R] |
| 23 | variable [CommRing A] [Algebra R A] |
| 24 | variable [Field K] [Algebra R K] [IsFractionRing R K] |
| 25 | |
| 26 | /-- Surjectivity of the integral-closure comparison puts every integral |
| 27 | generic-fiber element in the image of the original algebra. -/ |
| 28 | theorem exists_tensorLeft_eq_of_isIntegral |
| 29 | (h : Function.Surjective (TensorProduct.toIntegralClosure R A K)) |
| 30 | (z : A ⊗[R] K) (hz : IsIntegral A z) : |
| 31 | ∃ a : A, algebraMap A (A ⊗[R] K) a = z := by |
| 32 | obtain ⟨y, hy⟩ := h ⟨z, hz⟩ |
| 33 | have lift (y : A ⊗[R] integralClosure R K) : |
| 34 | ∃ a : A, algebraMap A (A ⊗[R] K) a = |
| 35 | (TensorProduct.toIntegralClosure R A K y).val := by |
| 36 | induction y with |
| 37 | | add y₁ y₂ hy₁ hy₂ => |
| 38 | obtain ⟨a₁, ha₁⟩ := hy₁ |
| 39 | obtain ⟨a₂, ha₂⟩ := hy₂ |
| 40 | exact ⟨a₁ + a₂, by simp only [map_add, Subalgebra.coe_add, ha₁, ha₂]⟩ |
| 41 | | tmul a b => |
| 42 | obtain ⟨r, hr⟩ := IsIntegrallyClosed.isIntegral_iff.mp b.property |
| 43 | refine ⟨r • a, ?_⟩ |
| 44 | change (r • a) ⊗ₜ[R] (1 : K) = a ⊗ₜ[R] b.val |
| 45 | rw [TensorProduct.smul_tmul, ← Algebra.algebraMap_eq_smul_one, hr] |
| 46 | obtain ⟨a, ha⟩ := lift y |
| 47 | exact ⟨a, ha.trans (congrArg Subtype.val hy)⟩ |
| 48 | |
| 49 | /-- With flatness, the original algebra is integrally closed in its generic |
| 50 | fiber whenever the actual integral-closure comparison is surjective. -/ |
| 51 | theorem isIntegrallyClosedIn_tensor_of_comparison_surjective [Module.Flat R A] |
| 52 | (h : Function.Surjective (TensorProduct.toIntegralClosure R A K)) : |
| 53 | IsIntegrallyClosedIn A (A ⊗[R] K) := by |
| 54 | apply isIntegrallyClosedIn_iff.mpr |
| 55 | refine ⟨?_, fun {z} hz => exists_tensorLeft_eq_of_isIntegral h z hz⟩ |
| 56 | exact Algebra.TensorProduct.includeLeft_injective (S := A) (IsFractionRing.injective R K) |
| 57 | |
| 58 | /-- A smooth algebra over an integrally closed domain is integrally closed |
| 59 | inside the actual generic fiber. -/ |
| 60 | theorem smooth_isIntegrallyClosedIn_genericFiber [Algebra.Smooth R A] : |
| 61 | IsIntegrallyClosedIn A (A ⊗[R] K) := |
| 62 | isIntegrallyClosedIn_tensor_of_comparison_surjective |
| 63 | (TensorProduct.toIntegralClosure_bijective_of_smooth (R := R) (S := A) (B := K)).surjective |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.Foundations.Scheme.TensorIntegralClosure |