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.Localized.Grading |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.Exactness |
| 3 | |
| 4 | /-! # Graded Exactness -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.GradedExactness.GradedModules |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Localization and passage to a homogeneous degree preserve exact sequences. -/ |
| 11 | |
| 12 | open DirectSum |
| 13 | |
| 14 | universe u v w t |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] {A : Type v} [CommRing A] [Algebra R A] |
| 17 | variable {M : Type w} [AddCommGroup M] [Module R M] [Module A M] [IsScalarTower R A M] |
| 18 | variable {N : Type t} [AddCommGroup N] [Module R N] [Module A N] [IsScalarTower R A N] |
| 19 | |
| 20 | def awayModuleMap (a : A) (f : M →ₗ[A] N) : Presentations.Module.Fractions.GradedModules.AwayModule a M →ₗ[R] Presentations.Module.Fractions.GradedModules.AwayModule a N := |
| 21 | (IsLocalizedModule.map (Submonoid.powers a) (LocalizedModule.mkLinearMap (Submonoid.powers a) M) |
| 22 | (LocalizedModule.mkLinearMap (Submonoid.powers a) N) f).restrictScalars R |
| 23 | |
| 24 | theorem awayModuleMap_fraction (a : A) (f : M →ₗ[A] N) (k : ℕ) (m : M) : |
| 25 | awayModuleMap (R := R) a f (Presentations.Module.Fractions.GradedModules.moduleFractionMap (R := R) a k m) = |
| 26 | Presentations.Module.Fractions.GradedModules.moduleFractionMap (R := R) a k (f m) := by |
| 27 | rw [Presentations.Module.Fractions.GradedModules.moduleFractionMap_apply, Presentations.Module.Fractions.GradedModules.moduleFractionMap_apply] |
| 28 | exact IsLocalizedModule.map_LocalizedModules _ _ _ _ |
| 29 | |
| 30 | theorem awayModuleMap_surjective (a : A) (f : M →ₗ[A] N) (hf : Function.Surjective f) : |
| 31 | Function.Surjective (awayModuleMap (R := R) a f) := by |
| 32 | intro x |
| 33 | obtain ⟨k, n, rfl⟩ := Presentations.Module.Fractions.GradedModules.moduleFractionMap_surj (R := R) a x |
| 34 | obtain ⟨m, rfl⟩ := hf n |
| 35 | exact ⟨Presentations.Module.Fractions.GradedModules.moduleFractionMap (R := R) a k m, awayModuleMap_fraction a f k m⟩ |
| 36 | |
| 37 | variable (𝒜 : ℤ → Submodule R A) [GradedAlgebra 𝒜] |
| 38 | variable (ℳ : ℤ → Submodule R M) [SetLike.GradedSMul 𝒜 ℳ] |
| 39 | variable (𝒩 : ℤ → Submodule R N) [SetLike.GradedSMul 𝒜 𝒩] |
| 40 | |
| 41 | omit [SetLike.GradedSMul 𝒜 𝒩] in |
| 42 | theorem awayModuleMap_homogeneous (a : A) (e : ℤ) (ha : a ∈ 𝒜 e) (f : M →ₗ[A] N) |
| 43 | (hf : ∀ d m, m ∈ ℳ d → f m ∈ 𝒩 d) (d : ℤ) (x : Presentations.Module.Fractions.GradedModules.AwayModule a M) |
| 44 | (hx : x ∈ DegreePieces.GradedModules.localizedDegreePiece ℳ a e d) : |
| 45 | awayModuleMap (R := R) a f x ∈ DegreePieces.GradedModules.localizedDegreePiece 𝒩 a e d := by |
| 46 | obtain ⟨k, m, hm, rfl⟩ := (DegreePieces.GradedModules.mem_localizedDegreePiece_iff 𝒜 ℳ a e ha d x).mp hx |
| 47 | rw [awayModuleMap_fraction] |
| 48 | exact DegreePieces.GradedModules.moduleFractionMap_mem_degree 𝒩 a e d k (f m) (hf _ m hm) |
| 49 | |
| 50 | def localizedDegreeMap (a : A) (e : ℤ) (ha : a ∈ 𝒜 e) (f : M →ₗ[A] N) |
| 51 | (hf : ∀ d m, m ∈ ℳ d → f m ∈ 𝒩 d) (d : ℤ) : |
| 52 | DegreePieces.GradedModules.localizedDegreePiece ℳ a e d →ₗ[R] DegreePieces.GradedModules.localizedDegreePiece 𝒩 a e d := |
| 53 | Graded.Exactness.GradedModules.degreeMap (DegreePieces.GradedModules.localizedDegreePiece ℳ a e) (DegreePieces.GradedModules.localizedDegreePiece 𝒩 a e) |
| 54 | (awayModuleMap a f) (awayModuleMap_homogeneous 𝒜 ℳ 𝒩 a e ha f hf) d |
| 55 | |
| 56 | variable [Decomposition ℳ] [Decomposition 𝒩] |
| 57 | |
| 58 | theorem localizedDegreeMap_surjective (a : A) (e : ℤ) (ha : a ∈ 𝒜 e) (f : M →ₗ[A] N) |
| 59 | (hf : ∀ d m, m ∈ ℳ d → f m ∈ 𝒩 d) (hs : Function.Surjective f) (d : ℤ) : |
| 60 | Function.Surjective (localizedDegreeMap 𝒜 ℳ 𝒩 a e ha f hf d) := by |
| 61 | let := Grading.GradedModules.localizedDegreeDecomposition 𝒜 ℳ a e ha |
| 62 | let := Grading.GradedModules.localizedDegreeDecomposition 𝒜 𝒩 a e ha |
| 63 | exact Graded.Exactness.GradedModules.degreeMap_surjective _ _ _ _ (awayModuleMap_surjective a f hs) d |
| 64 | |
| 65 | variable {P : Type*} [AddCommGroup P] [Module R P] [Module A P] [IsScalarTower R A P] |
| 66 | variable (ℙ : ℤ → Submodule R P) [SetLike.GradedSMul 𝒜 ℙ] |
| 67 | |
| 68 | omit [SetLike.GradedSMul 𝒜 ℙ] in |
| 69 | theorem localizedDegreeMap_exact (a : A) (e : ℤ) (ha : a ∈ 𝒜 e) |
| 70 | (f : M →ₗ[A] N) (g : N →ₗ[A] P) |
| 71 | (hf : ∀ d m, m ∈ ℳ d → f m ∈ 𝒩 d) (hg : ∀ d n, n ∈ 𝒩 d → g n ∈ ℙ d) |
| 72 | (hex : Function.Exact f g) (d : ℤ) : |
| 73 | Function.Exact (localizedDegreeMap 𝒜 ℳ 𝒩 a e ha f hf d) |
| 74 | (localizedDegreeMap 𝒜 𝒩 ℙ a e ha g hg d) := by |
| 75 | let := Grading.GradedModules.localizedDegreeDecomposition 𝒜 ℳ a e ha |
| 76 | let := Grading.GradedModules.localizedDegreeDecomposition 𝒜 𝒩 a e ha |
| 77 | have he : Function.Exact (awayModuleMap (R := R) a f) (awayModuleMap (R := R) a g) := |
| 78 | LocalizedModule.map_exact (Submonoid.powers a) f g hex |
| 79 | exact Graded.Exactness.GradedModules.degreeMap_exact _ _ _ _ _ _ _ he d |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.GradedExactness.GradedModules |