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.SheafCohomology.Projective.GradedCyclicSubmodule |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.GradedPolynomialModules |
| 3 | |
| 4 | /-! # Graded Module Mk -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.GradedModuleMk.GradedModuleQuotient |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The quotient by a homogeneous submodule carries the actual quotient grading. -/ |
| 11 | |
| 12 | open DirectSum |
| 13 | universe u v w |
| 14 | variable {R : Type u} [CommRing R] {A : Type v} [CommRing A] [Algebra R A] |
| 15 | variable {M : Type w} [AddCommGroup M] [Module R M] [Module A M] [IsScalarTower R A M] |
| 16 | variable (ℳ : ℤ → Submodule R M) [Decomposition ℳ] |
| 17 | variable (P : Submodule A M) (hP : P.IsHomogeneous ℳ) |
| 18 | |
| 19 | def quotientMap : M →ₗ[R] M ⧸ P := P.mkQ.restrictScalars R |
| 20 | |
| 21 | def grading (d : ℤ) : Submodule R (M ⧸ P) := (ℳ d).map (quotientMap (R := R) P) |
| 22 | |
| 23 | def degreeMap (d : ℤ) : ℳ d →ₗ[R] grading ℳ P d := |
| 24 | ((quotientMap (R := R) P).comp (ℳ d).subtype).codRestrict (grading ℳ P d) |
| 25 | (fun x => ⟨x.val, x.property, rfl⟩) |
| 26 | |
| 27 | def preDecompose : M →ₗ[R] ⨁ d : ℤ, grading ℳ P d := |
| 28 | (DirectSum.lmap (degreeMap ℳ P)).comp (decomposeLinearEquiv ℳ).toLinearMap |
| 29 | |
| 30 | include hP in |
| 31 | theorem preDecompose_mem_kernel : P.restrictScalars R ≤ (preDecompose ℳ P).ker := by |
| 32 | intro x hx |
| 33 | apply DFinsupp.ext |
| 34 | intro d |
| 35 | apply Subtype.ext |
| 36 | change P.mkQ (decompose ℳ x d).val = 0 |
| 37 | exact (Submodule.Quotient.mk_eq_zero P).mpr (hP d hx) |
| 38 | |
| 39 | def quotientDecompose : (M ⧸ P) →ₗ[R] ⨁ d : ℤ, grading ℳ P d where |
| 40 | toFun := Quotient.lift (preDecompose ℳ P) (by |
| 41 | intro x y h |
| 42 | have hxy : x - y ∈ P := (Submodule.quotientRel_def _).mp h |
| 43 | have hz : preDecompose ℳ P (x - y) = 0 := preDecompose_mem_kernel ℳ P hP 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 ℳ P) f g) |
| 47 | map_smul' r x := Quotient.inductionOn x (fun f => map_smul (preDecompose ℳ P) r f) |
| 48 | |
| 49 | theorem quotientDecompose_mk (x : M) : |
| 50 | quotientDecompose ℳ P hP (P.mkQ x) = preDecompose ℳ P x := rfl |
| 51 | |
| 52 | theorem quotientDecompose_homogeneous (d : ℤ) (x : ℳ d) : |
| 53 | quotientDecompose ℳ P hP (quotientMap (R := R) P x.val) = |
| 54 | DirectSum.lof R ℤ (fun e => grading ℳ P e) d (degreeMap ℳ P d x) := by |
| 55 | rw [show quotientMap (R := R) P x.val = P.mkQ x.val from rfl, quotientDecompose_mk] |
| 56 | change DirectSum.lmap (degreeMap ℳ P) (decomposeLinearEquiv ℳ x.val) = _ |
| 57 | rw [decomposeLinearEquiv_apply_coe, DirectSum.lmap_lof] |
| 58 | |
| 59 | theorem quotientDecompose_left_inverse : |
| 60 | (DirectSum.coeLinearMap (grading ℳ P)).comp (quotientDecompose ℳ P hP) = LinearMap.id := by |
| 61 | have h : ((DirectSum.coeLinearMap (grading ℳ P)).comp (quotientDecompose ℳ P hP)).comp |
| 62 | (quotientMap (R := R) P) = quotientMap (R := R) P := by |
| 63 | apply DirectSum.decompose_lhom_ext ℳ |
| 64 | intro d |
| 65 | apply LinearMap.ext |
| 66 | intro x |
| 67 | change DirectSum.coeLinearMap (grading ℳ P) |
| 68 | (quotientDecompose ℳ P hP (quotientMap (R := R) P x.val)) = _ |
| 69 | rw [quotientDecompose_homogeneous, DirectSum.coeLinearMap_lof] |
| 70 | rfl |
| 71 | apply LinearMap.ext |
| 72 | intro x |
| 73 | obtain ⟨a, rfl⟩ := P.mkQ_surjective x |
| 74 | exact LinearMap.congr_fun h a |
| 75 | |
| 76 | theorem quotientDecompose_right_inverse : |
| 77 | (quotientDecompose ℳ P hP).comp (DirectSum.coeLinearMap (grading ℳ P)) = LinearMap.id := by |
| 78 | apply DirectSum.linearMap_ext |
| 79 | intro d |
| 80 | apply LinearMap.ext |
| 81 | intro x |
| 82 | obtain ⟨a, ha, hax⟩ := x.property |
| 83 | have hx : degreeMap ℳ P d ⟨a, ha⟩ = x := Subtype.ext hax |
| 84 | rw [← hx] |
| 85 | change quotientDecompose ℳ P hP (DirectSum.coeLinearMap (grading ℳ P) |
| 86 | (DirectSum.lof R ℤ (fun e => grading ℳ P e) d (degreeMap ℳ P d ⟨a, ha⟩))) = _ |
| 87 | rw [DirectSum.coeLinearMap_lof] |
| 88 | exact quotientDecompose_homogeneous ℳ P hP d ⟨a, ha⟩ |
| 89 | |
| 90 | @[instance_reducible] |
| 91 | def quotientDecomposition : Decomposition (grading ℳ P) := |
| 92 | Decomposition.ofLinearMap _ (quotientDecompose ℳ P hP) |
| 93 | (quotientDecompose_left_inverse ℳ P hP) (quotientDecompose_right_inverse ℳ P hP) |
| 94 | |
| 95 | variable (𝒜 : ℤ → Submodule R A) [SetLike.GradedSMul 𝒜 ℳ] |
| 96 | |
| 97 | instance quotientGradedSMul : SetLike.GradedSMul 𝒜 (grading ℳ P) where |
| 98 | smul_mem := by |
| 99 | intro d e a x ha hx |
| 100 | obtain ⟨b, hb, rfl⟩ := hx |
| 101 | refine ⟨a • b, SetLike.GradedSMul.smul_mem ha hb, ?_⟩ |
| 102 | exact P.mkQ.map_smul a b |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.GradedModuleMk.GradedModuleQuotient |