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.DirectSum.Decomposition |
| 2 | import Mathlib.LinearAlgebra.Quotient.Basic |
| 3 | import Mathlib.RingTheory.Ideal.Quotient.Operations |
| 4 | import Mathlib.RingTheory.GradedAlgebra.Homogeneous.Maps |
| 5 | |
| 6 | /-! # Quotient -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.Quotient.HomogeneousQuotient |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | Quotient gradings for arbitrary graded commutative algebras. The direct-sum |
| 14 | decomposition descends through the homogeneous ideal, yielding the actual |
| 15 | graded quotient ring and its homogeneous quotient map. |
| 16 | -/ |
| 17 | |
| 18 | open DirectSum |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | variable {R : Type u} [CommRing R] {A : Type v} [CommRing A] [Algebra R A] |
| 23 | variable {𝒜 : ℕ → Submodule R A} [GradedAlgebra 𝒜] |
| 24 | |
| 25 | def quotientCoordinateMap (I : HomogeneousIdeal (𝒜)) : |
| 26 | A →ₗ[R] A ⧸ I.toIdeal := |
| 27 | (Ideal.Quotient.mkₐ R I.toIdeal).toLinearMap |
| 28 | |
| 29 | def quotientGrading (I : HomogeneousIdeal (𝒜)) (d : ℕ) : |
| 30 | Submodule R (A ⧸ I.toIdeal) := |
| 31 | (𝒜 d).map (quotientCoordinateMap I) |
| 32 | |
| 33 | def quotientDegreeMap (I : HomogeneousIdeal (𝒜)) (d : ℕ) : |
| 34 | 𝒜 d →ₗ[R] quotientGrading I d := |
| 35 | ((quotientCoordinateMap I).comp (𝒜 d).subtype).codRestrict |
| 36 | (quotientGrading I d) (fun f => ⟨f.val, f.property, rfl⟩) |
| 37 | |
| 38 | def quotientPreDecompose (I : HomogeneousIdeal (𝒜)) : |
| 39 | A →ₗ[R] ⨁ d : ℕ, quotientGrading I d := |
| 40 | DirectSum.lmap (quotientDegreeMap I) ∘ₗ (DirectSum.decomposeLinearEquiv (𝒜)).toLinearMap |
| 41 | |
| 42 | theorem quotientPreDecompose_mem_kernel (I : HomogeneousIdeal (𝒜)) : |
| 43 | I.toIdeal.restrictScalars R ≤ LinearMap.ker (quotientPreDecompose I) := by |
| 44 | intro f hf |
| 45 | apply DFinsupp.ext |
| 46 | intro d |
| 47 | apply Subtype.ext |
| 48 | change Ideal.Quotient.mk I.toIdeal ((DirectSum.decompose (𝒜) f d).val) = 0 |
| 49 | apply Ideal.Quotient.eq_zero_iff_mem.mpr |
| 50 | exact (Ideal.IsHomogeneous.mem_iff (𝒜) I.isHomogeneous).mp hf d |
| 51 | |
| 52 | def quotientDecompose (I : HomogeneousIdeal (𝒜)) : |
| 53 | (A ⧸ I.toIdeal) →ₗ[R] ⨁ d : ℕ, quotientGrading I d where |
| 54 | toFun := Quotient.lift (quotientPreDecompose I) (by |
| 55 | intro f g h |
| 56 | have hfg : f - g ∈ I.toIdeal := (Submodule.quotientRel_def _).mp h |
| 57 | have hz : quotientPreDecompose I (f - g) = 0 := quotientPreDecompose_mem_kernel I hfg |
| 58 | rw [map_sub] at hz |
| 59 | exact sub_eq_zero.mp hz) |
| 60 | map_add' x y := Quotient.inductionOn₂ x y (fun f g => map_add (quotientPreDecompose I) f g) |
| 61 | map_smul' r x := Quotient.inductionOn x (fun f => map_smul (quotientPreDecompose I) r f) |
| 62 | |
| 63 | theorem quotientDecompose_mk (I : HomogeneousIdeal (𝒜)) (f : A) : |
| 64 | quotientDecompose I (Ideal.Quotient.mk I.toIdeal f) = quotientPreDecompose I f := rfl |
| 65 | |
| 66 | theorem quotientDecompose_mk_homogeneous (I : HomogeneousIdeal (𝒜)) |
| 67 | (d : ℕ) (f : 𝒜 d) : |
| 68 | quotientDecompose I (quotientCoordinateMap I f.val) = |
| 69 | DirectSum.lof R ℕ (fun d => quotientGrading I d) d (quotientDegreeMap I d f) := by |
| 70 | rw [show quotientCoordinateMap I f.val = Ideal.Quotient.mk I.toIdeal f.val from rfl, |
| 71 | quotientDecompose_mk] |
| 72 | change DirectSum.lmap (quotientDegreeMap I) (DirectSum.decomposeLinearEquiv (𝒜) f.val) = _ |
| 73 | rw [DirectSum.decomposeLinearEquiv_apply_coe, DirectSum.lmap_lof] |
| 74 | |
| 75 | theorem quotientDecompose_left_inverse (I : HomogeneousIdeal (𝒜)) : |
| 76 | DirectSum.coeLinearMap (quotientGrading I) ∘ₗ quotientDecompose I = LinearMap.id := by |
| 77 | have h : (DirectSum.coeLinearMap (quotientGrading I) ∘ₗ quotientDecompose I) ∘ₗ |
| 78 | quotientCoordinateMap I = quotientCoordinateMap I := by |
| 79 | apply DirectSum.decompose_lhom_ext (𝒜) |
| 80 | intro d |
| 81 | apply LinearMap.ext |
| 82 | intro f |
| 83 | change DirectSum.coeLinearMap (quotientGrading I) |
| 84 | (quotientDecompose I (quotientCoordinateMap I f.val)) = quotientCoordinateMap I f.val |
| 85 | rw [quotientDecompose_mk_homogeneous, DirectSum.coeLinearMap_lof] |
| 86 | rfl |
| 87 | apply LinearMap.ext |
| 88 | intro x |
| 89 | obtain ⟨f, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 90 | exact DFunLike.congr_fun h f |
| 91 | |
| 92 | theorem quotientDecompose_right_inverse (I : HomogeneousIdeal (𝒜)) : |
| 93 | quotientDecompose I ∘ₗ DirectSum.coeLinearMap (quotientGrading I) = LinearMap.id := by |
| 94 | apply DirectSum.linearMap_ext |
| 95 | intro d |
| 96 | apply LinearMap.ext |
| 97 | intro x |
| 98 | obtain ⟨f, hf, hfx⟩ := x.property |
| 99 | have hx : quotientDegreeMap I d ⟨f, hf⟩ = x := Subtype.ext hfx |
| 100 | rw [← hx] |
| 101 | change quotientDecompose I |
| 102 | (DirectSum.coeLinearMap (quotientGrading I) |
| 103 | (DirectSum.lof R ℕ (fun d => quotientGrading I d) d (quotientDegreeMap I d ⟨f, hf⟩))) = _ |
| 104 | rw [DirectSum.coeLinearMap_lof] |
| 105 | exact quotientDecompose_mk_homogeneous I d ⟨f, hf⟩ |
| 106 | |
| 107 | instance quotientDecomposition (I : HomogeneousIdeal (𝒜)) : |
| 108 | DirectSum.Decomposition (quotientGrading I) := |
| 109 | DirectSum.Decomposition.ofLinearMap (quotientGrading I) (quotientDecompose I) |
| 110 | (quotientDecompose_left_inverse I) (quotientDecompose_right_inverse I) |
| 111 | |
| 112 | instance quotientGradedAlgebra (I : HomogeneousIdeal (𝒜)) : |
| 113 | GradedAlgebra (quotientGrading I) where |
| 114 | one_mem := ⟨1, SetLike.one_mem_graded 𝒜, map_one (Ideal.Quotient.mk I.toIdeal)⟩ |
| 115 | mul_mem d e x y hx hy := by |
| 116 | obtain ⟨f, hf, rfl⟩ := hx |
| 117 | obtain ⟨g, hg, rfl⟩ := hy |
| 118 | exact ⟨f * g, SetLike.mul_mem_graded hf hg, map_mul (Ideal.Quotient.mk I.toIdeal) f g⟩ |
| 119 | |
| 120 | def gradedQuotientMap (I : HomogeneousIdeal (𝒜)) : |
| 121 | 𝒜 →+*ᵍ quotientGrading I where |
| 122 | __ := Ideal.Quotient.mk I.toIdeal |
| 123 | map_mem hf := ⟨_, hf, rfl⟩ |
| 124 | |
| 125 | theorem quotientDegreeMap_surjective (I : HomogeneousIdeal (𝒜)) (d : ℕ) : |
| 126 | Function.Surjective (quotientDegreeMap I d) := by |
| 127 | intro x |
| 128 | obtain ⟨f, hf, hfx⟩ := x.property |
| 129 | exact ⟨⟨f, hf⟩, Subtype.ext hfx⟩ |
| 130 | |
| 131 | theorem irrelevant_quotient_le_map (I : HomogeneousIdeal (𝒜)) : |
| 132 | HomogeneousIdeal.irrelevant (quotientGrading I) ≤ |
| 133 | (HomogeneousIdeal.irrelevant (𝒜)).map (gradedQuotientMap I) := by |
| 134 | apply (HomogeneousIdeal.irrelevant_le _).mpr |
| 135 | intro d hd x hx |
| 136 | obtain ⟨f, hf, rfl⟩ := hx |
| 137 | exact Ideal.mem_map_of_mem (gradedQuotientMap I) |
| 138 | (HomogeneousIdeal.mem_irrelevant_of_mem (𝒜) hd hf) |
| 139 | |
| 140 | end |
| 141 | |
| 142 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.Quotient.HomogeneousQuotient |