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.IntegralClosure.Algebra.Basic |
| 2 | import Mathlib.RingTheory.TensorProduct.Maps |
| 3 | |
| 4 | /-! # Tensor Maps -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Integral.TensorMaps.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The tensor product of actual integral algebra homomorphisms is integral. -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | variable {k P Q A B : Type*} [CommRing k] |
| 15 | [CommRing P] [CommRing Q] [CommRing A] [CommRing B] |
| 16 | [Algebra k P] [Algebra k Q] [Algebra k A] [Algebra k B] |
| 17 | |
| 18 | theorem tensorMap_isIntegral (f : P →ₐ[k] A) (g : Q →ₐ[k] B) |
| 19 | (hf : f.IsIntegral) (hg : g.IsIntegral) : (Algebra.TensorProduct.map f g).IsIntegral := by |
| 20 | let : Algebra P A := f.toRingHom.toAlgebra |
| 21 | let : Algebra Q B := g.toRingHom.toAlgebra |
| 22 | let : Algebra (P ⊗[k] Q) (A ⊗[k] B) := (Algebra.TensorProduct.map f g).toRingHom.toAlgebra |
| 23 | have hA (a : A) : IsIntegral (P ⊗[k] Q) (a ⊗ₜ[k] (1 : B)) := by |
| 24 | apply IsIntegral.map_of_comp_eq |
| 25 | (Algebra.TensorProduct.includeLeft : P →ₐ[k] P ⊗[k] Q).toRingHom |
| 26 | (Algebra.TensorProduct.includeLeft : A →ₐ[k] A ⊗[k] B).toRingHom |
| 27 | (a := a) _ (hf a) |
| 28 | ext r |
| 29 | change (Algebra.TensorProduct.map f g) (r ⊗ₜ[k] (1 : Q)) = f r ⊗ₜ[k] (1 : B) |
| 30 | simp |
| 31 | have hB (b : B) : IsIntegral (P ⊗[k] Q) ((1 : A) ⊗ₜ[k] b) := by |
| 32 | apply IsIntegral.map_of_comp_eq |
| 33 | (Algebra.TensorProduct.includeRight : Q →ₐ[k] P ⊗[k] Q).toRingHom |
| 34 | (Algebra.TensorProduct.includeRight : B →ₐ[k] A ⊗[k] B).toRingHom |
| 35 | (a := b) _ (hg b) |
| 36 | ext r |
| 37 | change (Algebra.TensorProduct.map f g) ((1 : P) ⊗ₜ[k] r) = (1 : A) ⊗ₜ[k] g r |
| 38 | simp |
| 39 | intro x |
| 40 | change IsIntegral (P ⊗[k] Q) x |
| 41 | induction x using TensorProduct.inductionOn with |
| 42 | | tmul a b => |
| 43 | simpa only [Algebra.TensorProduct.tmul_mul_tmul, mul_one, one_mul] using (hA a).mul (hB b) |
| 44 | | add x y hx hy => exact hx.add hy |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.CycleClass.Thom.Integral.TensorMaps.Constructions |