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.IntegerPolynomialGrading |
| 2 | import Mathlib.RingTheory.Ideal.Quotient.Operations |
| 3 | |
| 4 | /-! # Integer Graded Quotient -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.IntegerGradedQuotient.GradedModules.IntegerQuotient |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual quotient ring by an integer-homogeneous ideal inherits its grading. -/ |
| 11 | |
| 12 | open DirectSum |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] {A : Type v} [CommRing A] [Algebra R A] |
| 17 | variable (𝒜 : ℤ → Submodule R A) [GradedAlgebra 𝒜] (I : HomogeneousIdeal 𝒜) |
| 18 | |
| 19 | def quotientMap : A →ₗ[R] A ⧸ I.toIdeal := (Ideal.Quotient.mkₐ R I.toIdeal).toLinearMap |
| 20 | |
| 21 | def grading (d : ℤ) : Submodule R (A ⧸ I.toIdeal) := (𝒜 d).map (quotientMap 𝒜 I) |
| 22 | |
| 23 | def degreeMap (d : ℤ) : 𝒜 d →ₗ[R] grading 𝒜 I d := |
| 24 | ((quotientMap 𝒜 I).comp (𝒜 d).subtype).codRestrict (grading 𝒜 I d) |
| 25 | (fun x => ⟨x.val, x.property, rfl⟩) |
| 26 | |
| 27 | def preDecompose : A →ₗ[R] ⨁ d : ℤ, grading 𝒜 I d := |
| 28 | (DirectSum.lmap (degreeMap 𝒜 I)).comp (decomposeLinearEquiv 𝒜).toLinearMap |
| 29 | |
| 30 | theorem preDecompose_mem_kernel : I.toIdeal.restrictScalars R ≤ (preDecompose 𝒜 I).ker := by |
| 31 | intro x hx |
| 32 | apply DFinsupp.ext |
| 33 | intro d |
| 34 | apply Subtype.ext |
| 35 | change Ideal.Quotient.mk I.toIdeal (decompose 𝒜 x d).val = 0 |
| 36 | apply Ideal.Quotient.eq_zero_iff_mem.mpr |
| 37 | exact (Ideal.IsHomogeneous.mem_iff 𝒜 I.isHomogeneous).mp hx d |
| 38 | |
| 39 | def quotientDecompose : (A ⧸ I.toIdeal) →ₗ[R] ⨁ d : ℤ, grading 𝒜 I d where |
| 40 | toFun := Quotient.lift (preDecompose 𝒜 I) (by |
| 41 | intro x y h |
| 42 | have hxy : x - y ∈ I.toIdeal := (Submodule.quotientRel_def _).mp h |
| 43 | have hz : preDecompose 𝒜 I (x - y) = 0 := preDecompose_mem_kernel 𝒜 I hxy |
| 44 | rw [map_sub] at hz |
| 45 | exact sub_eq_zero.mp hz) |
| 46 | map_add' x y := Quotient.inductionOn₂ x y (fun f g => map_add (preDecompose 𝒜 I) f g) |
| 47 | map_smul' r x := Quotient.inductionOn x (fun f => map_smul (preDecompose 𝒜 I) r f) |
| 48 | |
| 49 | theorem quotientDecompose_mk (x : A) : |
| 50 | quotientDecompose 𝒜 I (Ideal.Quotient.mk I.toIdeal x) = preDecompose 𝒜 I x := rfl |
| 51 | |
| 52 | theorem quotientDecompose_homogeneous (d : ℤ) (x : 𝒜 d) : |
| 53 | quotientDecompose 𝒜 I (quotientMap 𝒜 I x.val) = |
| 54 | DirectSum.lof R ℤ (fun d => grading 𝒜 I d) d (degreeMap 𝒜 I d x) := by |
| 55 | rw [show quotientMap 𝒜 I x.val = Ideal.Quotient.mk I.toIdeal x.val from rfl, quotientDecompose_mk] |
| 56 | change DirectSum.lmap (degreeMap 𝒜 I) (decomposeLinearEquiv 𝒜 x.val) = _ |
| 57 | rw [decomposeLinearEquiv_apply_coe, DirectSum.lmap_lof] |
| 58 | |
| 59 | theorem quotientDecompose_left_inverse : |
| 60 | (DirectSum.coeLinearMap (grading 𝒜 I)).comp (quotientDecompose 𝒜 I) = LinearMap.id := by |
| 61 | have h : ((DirectSum.coeLinearMap (grading 𝒜 I)).comp (quotientDecompose 𝒜 I)).comp |
| 62 | (quotientMap 𝒜 I) = quotientMap 𝒜 I := by |
| 63 | apply DirectSum.decompose_lhom_ext 𝒜 |
| 64 | intro d |
| 65 | apply LinearMap.ext |
| 66 | intro x |
| 67 | change DirectSum.coeLinearMap (grading 𝒜 I) (quotientDecompose 𝒜 I (quotientMap 𝒜 I x.val)) = _ |
| 68 | rw [quotientDecompose_homogeneous, DirectSum.coeLinearMap_lof] |
| 69 | rfl |
| 70 | apply LinearMap.ext |
| 71 | intro x |
| 72 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 73 | exact LinearMap.congr_fun h a |
| 74 | |
| 75 | theorem quotientDecompose_right_inverse : |
| 76 | (quotientDecompose 𝒜 I).comp (DirectSum.coeLinearMap (grading 𝒜 I)) = LinearMap.id := by |
| 77 | apply DirectSum.linearMap_ext |
| 78 | intro d |
| 79 | apply LinearMap.ext |
| 80 | intro x |
| 81 | obtain ⟨a, ha, hax⟩ := x.property |
| 82 | have hx : degreeMap 𝒜 I d ⟨a, ha⟩ = x := Subtype.ext hax |
| 83 | rw [← hx] |
| 84 | change quotientDecompose 𝒜 I (DirectSum.coeLinearMap (grading 𝒜 I) |
| 85 | (DirectSum.lof R ℤ (fun d => grading 𝒜 I d) d (degreeMap 𝒜 I d ⟨a, ha⟩))) = _ |
| 86 | rw [DirectSum.coeLinearMap_lof] |
| 87 | exact quotientDecompose_homogeneous 𝒜 I d ⟨a, ha⟩ |
| 88 | |
| 89 | instance quotientDecomposition : Decomposition (grading 𝒜 I) := |
| 90 | Decomposition.ofLinearMap _ (quotientDecompose 𝒜 I) |
| 91 | (quotientDecompose_left_inverse 𝒜 I) (quotientDecompose_right_inverse 𝒜 I) |
| 92 | |
| 93 | instance quotientGradedAlgebra : GradedAlgebra (grading 𝒜 I) where |
| 94 | one_mem := ⟨1, SetLike.GradedOne.one_mem, map_one (Ideal.Quotient.mk I.toIdeal)⟩ |
| 95 | mul_mem d e x y hx hy := by |
| 96 | obtain ⟨a, ha, rfl⟩ := hx |
| 97 | obtain ⟨b, hb, rfl⟩ := hy |
| 98 | exact ⟨a * b, SetLike.mul_mem_graded ha hb, map_mul (Ideal.Quotient.mk I.toIdeal) a b⟩ |
| 99 | |
| 100 | instance quotientGradedSMul : SetLike.GradedSMul 𝒜 (grading 𝒜 I) where |
| 101 | smul_mem := by |
| 102 | intro d e a x ha hx |
| 103 | obtain ⟨b, hb, rfl⟩ := hx |
| 104 | refine ⟨a * b, SetLike.mul_mem_graded ha hb, ?_⟩ |
| 105 | change Ideal.Quotient.mk I.toIdeal (a * b) = a • Ideal.Quotient.mk I.toIdeal b |
| 106 | rw [map_mul] |
| 107 | rfl |
| 108 | |
| 109 | end |
| 110 | |
| 111 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.IntegerGradedQuotient.GradedModules.IntegerQuotient |