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.Algebra.Module.Projective |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Associator |
| 3 | import Mathlib.RingTheory.Ideal.Maps |
| 4 | |
| 5 | /-! # Section Coefficient Ideal -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.SectionCoefficientIdeal |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A section of a projective module vanishes after arbitrary scalar |
| 12 | extension exactly when all of its linear coefficients vanish. These |
| 13 | coefficients define an actual ideal of the parameter ring. -/ |
| 14 | |
| 15 | open TensorProduct |
| 16 | |
| 17 | universe u v w z |
| 18 | variable {R : Type u} [CommRing R] {M : Type v} [AddCommGroup M] [Module R M] |
| 19 | variable (A : Type w) [CommRing A] [Algebra R A] |
| 20 | |
| 21 | theorem tensor_section_zero_linear_coefficient (x : M) (h : (1 : A) ⊗ₜ[R] x = 0) |
| 22 | (l : M →ₗ[R] R) : algebraMap R A (l x) = 0 := by |
| 23 | have he := congrArg (fun y : A ⊗[R] M => TensorProduct.rid R A (l.lTensor A y)) h |
| 24 | simpa only [LinearMap.lTensor_tmul, TensorProduct.rid_tmul, map_zero, |
| 25 | Algebra.smul_def, mul_one] using he |
| 26 | |
| 27 | theorem tensor_section_zero_of_linear_coefficients [Module.Projective R M] (x : M) |
| 28 | (h : ∀ l : M →ₗ[R] R, algebraMap R A (l x) = 0) : (1 : A) ⊗ₜ[R] x = 0 := by |
| 29 | obtain ⟨s, hs⟩ := Module.Projective.out (R := R) (P := M) |
| 30 | rw [← hs x, Finsupp.linearCombination_apply, Finsupp.sum, TensorProduct.tmul_sum] |
| 31 | apply Finset.sum_eq_zero |
| 32 | intro m hm |
| 33 | have hz : algebraMap R A (s x m) = 0 := h ((Finsupp.lapply m).comp s) |
| 34 | rw [TensorProduct.tmul_smul, TensorProduct.smul_tmul', Algebra.smul_def, mul_one, |
| 35 | hz, TensorProduct.zero_tmul] |
| 36 | |
| 37 | theorem tensor_section_zero_iff_linear_coefficients [Module.Projective R M] (x : M) : |
| 38 | (1 : A) ⊗ₜ[R] x = 0 ↔ ∀ l : M →ₗ[R] R, algebraMap R A (l x) = 0 := |
| 39 | ⟨tensor_section_zero_linear_coefficient A x, tensor_section_zero_of_linear_coefficients A x⟩ |
| 40 | |
| 41 | variable {ι : Type z} (x : ι → M) |
| 42 | |
| 43 | def projectiveSectionCoefficientIdeal : Ideal R := |
| 44 | Ideal.span (Set.range (fun p : ι × (M →ₗ[R] R) => p.2 (x p.1))) |
| 45 | |
| 46 | theorem projectiveSectionCoefficientIdeal_le_ker_iff [Module.Projective R M] : |
| 47 | projectiveSectionCoefficientIdeal x ≤ RingHom.ker (algebraMap R A) ↔ |
| 48 | ∀ i, (1 : A) ⊗ₜ[R] x i = 0 := by |
| 49 | rw [projectiveSectionCoefficientIdeal, Ideal.span_le] |
| 50 | constructor |
| 51 | · intro h i |
| 52 | apply tensor_section_zero_of_linear_coefficients A (x i) |
| 53 | intro l |
| 54 | exact h ⟨(i, l), rfl⟩ |
| 55 | · intro h r hr |
| 56 | obtain ⟨⟨i, l⟩, rfl⟩ := hr |
| 57 | exact tensor_section_zero_linear_coefficient A (x i) (h i) l |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.SectionCoefficientIdeal |