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.IntersectionTheory.ProjectionFormula.ClosedEvaluation |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 3 | import Mathlib.RingTheory.TensorProduct.Maps |
| 4 | import Mathlib.RingTheory.TensorProduct.Nontrivial |
| 5 | |
| 6 | /-! # Closed Tensor Domain -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ClosedTensorDomain |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Tensor products of domains over an algebraically closed field are domains |
| 13 | when the first factor is of finite type. The proof specializes two nonzero |
| 14 | coordinates simultaneously at a rational point. -/ |
| 15 | |
| 16 | open scoped Classical TensorProduct |
| 17 | |
| 18 | variable {K R S : Type*} [Field K] [CommRing R] [CommRing S] |
| 19 | [Algebra K R] [Algebra K S] |
| 20 | |
| 21 | def evaluate (f : R →ₐ[K] K) : R ⊗[K] S →ₐ[K] S := |
| 22 | Algebra.TensorProduct.lift ((Algebra.ofId K S).comp f) (AlgHom.id K S) |
| 23 | (fun _ _ => Commute.all _ _) |
| 24 | |
| 25 | theorem coordinate {ι : Type*} (b : Module.Basis ι K S) (f : R →ₐ[K] K) |
| 26 | (z : R ⊗[K] S) (i : ι) : |
| 27 | b.repr (evaluate f z) i = f (TensorProduct.equivFinsuppOfBasisRight b z i) := by |
| 28 | induction z using TensorProduct.inductionOn with |
| 29 | | tmul r s => |
| 30 | simp only [evaluate, Algebra.TensorProduct.lift_tmul, AlgHom.comp_apply, |
| 31 | Algebra.ofId_apply, AlgHom.id_apply, ← Algebra.smul_def, |
| 32 | map_smul, Finsupp.smul_apply, smul_eq_mul, |
| 33 | TensorProduct.equivFinsuppOfBasisRight_apply_tmul_apply] |
| 34 | exact mul_comm _ _ |
| 35 | | add z w hz hw => simp only [map_add, Finsupp.add_apply, hz, hw] |
| 36 | |
| 37 | theorem noZeroDivisors [IsAlgClosed K] [IsDomain R] [IsDomain S] |
| 38 | [Algebra.FiniteType K R] : NoZeroDivisors (R ⊗[K] S) := by |
| 39 | let b := Module.Free.chooseBasis K S |
| 40 | let e := TensorProduct.equivFinsuppOfBasisRight (M := R) b |
| 41 | refine ⟨fun {x y} hxy => ?_⟩ |
| 42 | by_contra h |
| 43 | push Not at h |
| 44 | obtain ⟨hx, hy⟩ := h |
| 45 | have hxe : e x ≠ 0 := fun hh => hx (e.injective (by simpa using hh)) |
| 46 | have hye : e y ≠ 0 := fun hh => hy (e.injective (by simpa using hh)) |
| 47 | obtain ⟨i, hi⟩ : ∃ i, e x i ≠ 0 := by |
| 48 | by_contra hh |
| 49 | push Not at hh |
| 50 | exact hxe (Finsupp.ext hh) |
| 51 | obtain ⟨j, hj⟩ : ∃ j, e y j ≠ 0 := by |
| 52 | by_contra hh |
| 53 | push Not at hh |
| 54 | exact hye (Finsupp.ext hh) |
| 55 | obtain ⟨f, hf⟩ := ClosedEvaluation.exists_nonzero K R (e x i * e y j) |
| 56 | (mul_ne_zero hi hj) |
| 57 | have hfx : evaluate f x ≠ 0 := by |
| 58 | intro hh |
| 59 | have hc := coordinate b f x i |
| 60 | rw [hh, map_zero, Finsupp.zero_apply] at hc |
| 61 | exact hf (by rw [map_mul, ← hc, zero_mul]) |
| 62 | have hfy : evaluate f y ≠ 0 := by |
| 63 | intro hh |
| 64 | have hc := coordinate b f y j |
| 65 | rw [hh, map_zero, Finsupp.zero_apply] at hc |
| 66 | exact hf (by rw [map_mul, ← hc, mul_zero]) |
| 67 | exact (mul_ne_zero hfx hfy) (by rw [← map_mul, hxy, map_zero]) |
| 68 | |
| 69 | theorem isDomain [IsAlgClosed K] [IsDomain R] [IsDomain S] |
| 70 | [Algebra.FiniteType K R] : IsDomain (R ⊗[K] S) := by |
| 71 | let : NoZeroDivisors (R ⊗[K] S) := noZeroDivisors |
| 72 | exact NoZeroDivisors.to_isDomain _ |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ClosedTensorDomain |