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.Polynomial.GraphSequence |
| 2 | import Mathlib.RingTheory.TensorProduct.MvPolynomial |
| 3 | import Mathlib.RingTheory.RingHom.Flat |
| 4 | |
| 5 | /-! # Diagonal Parameters -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.DiagonalParameters |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A flat polynomial presentation supplies the actual diagonal |
| 12 | parameters. Their images form a regular sequence at every local point |
| 13 | containing them. This applies to the etale charts of a smooth scheme. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | open _root_.MvPolynomial RingTheory.Sequence |
| 23 | |
| 24 | variable (K A : Type u) [CommRing K] [CommRing A] [Algebra K A] |
| 25 | (σ : Type) (f : MvPolynomial σ K →ₐ[K] A) |
| 26 | |
| 27 | def chart : MvPolynomial σ A →ₐ[A] A ⊗[K] A := |
| 28 | (Algebra.TensorProduct.lTensor A f).comp (algebraTensorAlgEquiv K A).symm.toAlgHom |
| 29 | |
| 30 | theorem chart_X (i : σ) : chart K A σ f (X i) = 1 ⊗ₜ[K] f (X i) := by |
| 31 | simp [chart] |
| 32 | |
| 33 | theorem chart_C (a : A) : chart K A σ f (C a) = a ⊗ₜ[K] 1 := |
| 34 | (chart K A σ f).commutes a |
| 35 | |
| 36 | def parameter (i : σ) : A ⊗[K] A := 1 ⊗ₜ[K] f (X i) - f (X i) ⊗ₜ[K] 1 |
| 37 | |
| 38 | theorem chart_graph (i : σ) : chart K A σ f (X i - C (f (X i))) = parameter K A σ f i := by |
| 39 | rw [map_sub, chart_X, chart_C] |
| 40 | rfl |
| 41 | |
| 42 | theorem flat (hf : f.Flat) : (chart K A σ f).Flat := |
| 43 | RingHom.Flat.comp (.of_bijective (algebraTensorAlgEquiv K A).symm.bijective) (hf.lTensor A) |
| 44 | |
| 45 | theorem regular (hf : f.Flat) (B : Type u) [CommRing B] [IsLocalRing B] |
| 46 | (g : A ⊗[K] A →+* B) (hg : g.Flat) (xs : List σ) (hx : xs.Nodup) |
| 47 | (hm : ∀ i ∈ xs, g (parameter K A σ f i) ∈ IsLocalRing.maximalIdeal B) : |
| 48 | IsRegular B (xs.map fun i => g (parameter K A σ f i)) := by |
| 49 | let φ := g.comp (chart K A σ f).toRingHom |
| 50 | let := φ.toAlgebra |
| 51 | let : Module.Flat (MvPolynomial σ A) B := RingHom.flat_algebraMap_iff.mp |
| 52 | (show φ.Flat from (flat K A σ f hf).comp hg) |
| 53 | have h := Regular.SequenceFlatBaseChange.regular (MvPolynomial σ A) B |
| 54 | (xs.map fun i => X i - C (f (X i))) |
| 55 | (Polynomial.GraphSequence.weakly_regular A σ (fun i => f (X i)) xs hx) (by |
| 56 | intro a ha |
| 57 | obtain ⟨i, hi, rfl⟩ := List.mem_map.mp ha |
| 58 | change g (chart K A σ f (X i - C (f (X i)))) ∈ IsLocalRing.maximalIdeal B |
| 59 | rw [chart_graph] |
| 60 | exact hm i hi) |
| 61 | have he : (xs.map fun i => X i - C (f (X i))).map (algebraMap (MvPolynomial σ A) B) = |
| 62 | xs.map (fun i => g (parameter K A σ f i)) := by |
| 63 | rw [List.map_map] |
| 64 | apply List.map_congr_left |
| 65 | intro i _ |
| 66 | change g (chart K A σ f (X i - C (f (X i)))) = g (parameter K A σ f i) |
| 67 | rw [chart_graph] |
| 68 | exact he ▸ h |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.DiagonalParameters |