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.HilbertScheme.Presentations.Finite.SyzygyLifting |
| 2 | |
| 3 | /-! # Relation Components -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.RelationComponents.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Homogeneous components preserve and specialize polynomial relations over arbitrary coefficient rings. -/ |
| 10 | |
| 11 | open _root_.MvPolynomial DirectSum |
| 12 | |
| 13 | universe u v z |
| 14 | |
| 15 | variable {R : Type u} [CommRing R] {S : Type v} [CommRing S] |
| 16 | variable {n : ℕ} {ι : Type z} [Fintype ι] |
| 17 | |
| 18 | theorem coordinate_ring_decompose_eq_component (p : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (d : ℕ) : |
| 19 | (decompose (Hilbert.Polynomial.GradedHilbert.grading R n) p d).val = homogeneousComponent d p := by |
| 20 | have he : (inferInstance : Decomposition (Hilbert.Polynomial.GradedHilbert.grading R n)) = MvPolynomial.decomposition := Subsingleton.elim _ _ |
| 21 | exact (congrArg (fun D : Decomposition (Hilbert.Polynomial.GradedHilbert.grading R n) => (D.decompose' p d).val) he).trans |
| 22 | (MvPolynomial.decomposition.decompose'_apply p d) |
| 23 | |
| 24 | theorem homogeneousComponent_mul_homogeneous_right |
| 25 | (p g : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N d : ℕ) (hg : g.IsHomogeneous N) : |
| 26 | homogeneousComponent (d + N) (p * g) = homogeneousComponent d p * g := by |
| 27 | rw [← coordinate_ring_decompose_eq_component, ← coordinate_ring_decompose_eq_component] |
| 28 | change (decompose (Hilbert.Polynomial.GradedHilbert.grading R n) (p * g) (d + N)).val = |
| 29 | (decompose (Hilbert.Polynomial.GradedHilbert.grading R n) p d).val * g |
| 30 | have he := coe_decompose_mul_of_right_mem_of_le (Hilbert.Polynomial.GradedHilbert.grading R n) (a := p) hg (Nat.le_add_left N d) |
| 31 | have hs : d + N - N = d := by omega |
| 32 | rw [hs] at he |
| 33 | exact he |
| 34 | |
| 35 | def projectRelationVector (d : ℕ) (a : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n := |
| 36 | fun i => homogeneousComponent d (a i) |
| 37 | |
| 38 | omit [Fintype ι] in |
| 39 | theorem projectRelationVector_homogeneous (d : ℕ) (a : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (i : ι) : |
| 40 | (projectRelationVector d a i).IsHomogeneous d := homogeneousComponent_isHomogeneous d (a i) |
| 41 | |
| 42 | omit [Fintype ι] in |
| 43 | theorem projectRelationVector_of_homogeneous (d : ℕ) (a : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) |
| 44 | (ha : ∀ i, (a i).IsHomogeneous d) : projectRelationVector d a = a := |
| 45 | funext (fun i => homogeneousComponent_eq_self (ha i)) |
| 46 | |
| 47 | theorem homogeneousComponent_polynomialRelationMap |
| 48 | (g a : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N d : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) : |
| 49 | homogeneousComponent (d + N) (SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g a) = |
| 50 | SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g (projectRelationVector d a) := by |
| 51 | change homogeneousComponent (d + N) (∑ i, a i * g i) = ∑ i, homogeneousComponent d (a i) * g i |
| 52 | rw [map_sum] |
| 53 | exact Finset.sum_congr rfl (fun i _ => homogeneousComponent_mul_homogeneous_right (a i) (g i) N d (hg i)) |
| 54 | |
| 55 | theorem projectRelationVector_relation |
| 56 | (g a : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N d : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 57 | (ha : SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g a = 0) : SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g (projectRelationVector d a) = 0 := by |
| 58 | rw [← homogeneousComponent_polynomialRelationMap g a N d hg, ha, map_zero] |
| 59 | |
| 60 | omit [Fintype ι] in |
| 61 | theorem mapRelationVector_project (φ : R →+* S) (d : ℕ) (a : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) : |
| 62 | Finite.SyzygyLifting.GradedHilbert.mapRelationVector φ (projectRelationVector d a) = projectRelationVector d (Finite.SyzygyLifting.GradedHilbert.mapRelationVector φ a) := by |
| 63 | funext i |
| 64 | apply MvPolynomial.ext |
| 65 | intro m |
| 66 | simp only [Finite.SyzygyLifting.GradedHilbert.mapRelationVector, projectRelationVector, coeff_map, coeff_homogeneousComponent] |
| 67 | split_ifs <;> simp |
| 68 | |
| 69 | theorem homogeneous_relation_lift_of_relation_lift |
| 70 | (φ : R →+* S) (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N d : ℕ) |
| 71 | (hg : ∀ i, (g i).IsHomogeneous N) (a : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing S n) |
| 72 | (ha : ∀ i, (a i).IsHomogeneous d) |
| 73 | (hlift : ∃ b, SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g b = 0 ∧ Finite.SyzygyLifting.GradedHilbert.mapRelationVector φ b = a) : |
| 74 | ∃ b, (∀ i, (b i).IsHomogeneous d) ∧ SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g b = 0 ∧ Finite.SyzygyLifting.GradedHilbert.mapRelationVector φ b = a := by |
| 75 | obtain ⟨b, hb, hba⟩ := hlift |
| 76 | refine ⟨projectRelationVector d b, projectRelationVector_homogeneous d b, |
| 77 | projectRelationVector_relation g b N d hg hb, ?_⟩ |
| 78 | rw [mapRelationVector_project, hba, projectRelationVector_of_homogeneous d a ha] |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.RelationComponents.GradedHilbert |