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.AbelianModuli.HilbertConstruction.StandardProjectiveCharts |
| 2 | import Mathlib.Algebra.Module.Submodule.Union |
| 3 | |
| 4 | /-! # Linear Hyperplane Avoidance -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.LinearHyperplaneAvoidance.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual linear polynomials avoiding finite sets in the projective |
| 11 | space used by the section construction. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open scoped BigOperators |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.StandardProjectiveCharts |
| 17 | |
| 18 | universe u |
| 19 | variable {R : Type u} [CommRing R] {n : ℕ} |
| 20 | |
| 21 | def sectionLinearPolynomial (c : Fin (n + 1) → R) : AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.coordinateRing R n := |
| 22 | ∑ i, MvPolynomial.C (c i) * MvPolynomial.X i |
| 23 | |
| 24 | theorem sectionLinearPolynomial_homogeneous (c : Fin (n + 1) → R) : |
| 25 | sectionLinearPolynomial c ∈ AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading R n 1 := by |
| 26 | exact MvPolynomial.IsHomogeneous.sum _ _ _ |
| 27 | (fun i _ => MvPolynomial.isHomogeneous_C_mul_X (c i) i) |
| 28 | |
| 29 | theorem sectionLinearPolynomial_eval {B : Type u} [CommRing B] |
| 30 | (f : R →+* B) (v : Fin (n + 1) → B) (c : Fin (n + 1) → R) : |
| 31 | MvPolynomial.eval₂Hom f v (sectionLinearPolynomial c) = ∑ i, f (c i) * v i := by |
| 32 | simp [sectionLinearPolynomial] |
| 33 | |
| 34 | def sectionLinearPolynomialMap : (Fin (n + 1) → R) →ₗ[R] AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.coordinateRing R n where |
| 35 | toFun := sectionLinearPolynomial |
| 36 | map_add' c d := by |
| 37 | simp [sectionLinearPolynomial, Pi.add_apply, add_mul, Finset.sum_add_distrib] |
| 38 | map_smul' a c := by |
| 39 | simp [sectionLinearPolynomial, Pi.smul_apply, MvPolynomial.smul_eq_C_mul, |
| 40 | Finset.mul_sum, mul_assoc] |
| 41 | |
| 42 | theorem sectionLinearPolynomial_single (i : Fin (n + 1)) : |
| 43 | sectionLinearPolynomial (Pi.single i (1 : R)) = MvPolynomial.X i := by |
| 44 | classical |
| 45 | simp [sectionLinearPolynomial, Pi.single_apply] |
| 46 | |
| 47 | variable {K : Type u} [Field K] [Infinite K] |
| 48 | |
| 49 | theorem exists_linear_hyperplane_avoiding (n : ℕ) |
| 50 | (F : Set (AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.affineProjectiveSpace K n).left) (hF : F.Finite) : |
| 51 | ∃ c : Fin (n + 1) → K, |
| 52 | ∀ x ∈ F, x ∈ Proj.basicOpen (AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading K n) (sectionLinearPolynomial c) := by |
| 53 | classical |
| 54 | let : Finite F := hF.to_subtype |
| 55 | let p (x : F) : Submodule K (Fin (n + 1) → K) := |
| 56 | (x.val.asHomogeneousIdeal.toIdeal.restrictScalars K).comap sectionLinearPolynomialMap |
| 57 | have hp (x : F) : p x ≠ ⊤ := by |
| 58 | obtain ⟨i, hi⟩ := AbelianModuli.HilbertConstruction.StandardProjectiveCharts.standardProjectiveCharts_cover K n x.val |
| 59 | have hn := (Proj.mem_basicOpen (AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading K n) (MvPolynomial.X i) x.val).mp hi |
| 60 | intro htop |
| 61 | have hm : Pi.single i (1 : K) ∈ p x := htop ▸ Submodule.mem_top |
| 62 | change sectionLinearPolynomial (Pi.single i (1 : K)) ∈ |
| 63 | x.val.asHomogeneousIdeal.toIdeal at hm |
| 64 | rw [sectionLinearPolynomial_single] at hm |
| 65 | exact hn hm |
| 66 | obtain ⟨c, hc⟩ := Submodule.exists_forall_notMem_of_forall_ne_top p hp |
| 67 | refine ⟨c, fun x hx => ?_⟩ |
| 68 | exact (Proj.mem_basicOpen _ _ x).mpr (hc ⟨x, hx⟩) |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.LinearHyperplaneAvoidance.Construction |