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.Graded.ModuleGenerators |
| 2 | import Mathlib.Algebra.Exact.Basic |
| 3 | |
| 4 | /-! # Exactness -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.Exactness.GradedModules |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Exact sequences of graded modules are exact in every homogeneous degree. -/ |
| 11 | |
| 12 | open DirectSum |
| 13 | |
| 14 | universe u v w t |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] {δ : Type v} [DecidableEq δ] |
| 17 | variable {M : Type w} [AddCommGroup M] [Module R M] |
| 18 | variable {N : Type t} [AddCommGroup N] [Module R N] |
| 19 | variable (ℳ : δ → Submodule R M) (𝒩 : δ → Submodule R N) |
| 20 | |
| 21 | def degreeMap (f : M →ₗ[R] N) (hf : ∀ d m, m ∈ ℳ d → f m ∈ 𝒩 d) (d : δ) : |
| 22 | ℳ d →ₗ[R] 𝒩 d := |
| 23 | (f.comp (ℳ d).subtype).codRestrict (𝒩 d) (fun x => hf d x.val x.property) |
| 24 | |
| 25 | variable [Decomposition ℳ] [Decomposition 𝒩] |
| 26 | |
| 27 | theorem homogeneous_preimage (f : M →ₗ[R] N) (hf : ∀ d m, m ∈ ℳ d → f m ∈ 𝒩 d) |
| 28 | (d : δ) (n : N) (hn : n ∈ 𝒩 d) (m : M) (hm : f m = n) : |
| 29 | f (decompose ℳ m d).val = n := by |
| 30 | refine (ModuleGenerators.GradedModules.map_homogeneous_component ℳ 𝒩 f.toAddMonoidHom hf d m).trans ?_ |
| 31 | change (decompose 𝒩 (f m) d).val = n |
| 32 | rw [hm] |
| 33 | exact decompose_of_mem_same 𝒩 hn |
| 34 | |
| 35 | theorem degreeMap_surjective (f : M →ₗ[R] N) (hf : ∀ d m, m ∈ ℳ d → f m ∈ 𝒩 d) |
| 36 | (hs : Function.Surjective f) (d : δ) : Function.Surjective (degreeMap ℳ 𝒩 f hf d) := by |
| 37 | intro n |
| 38 | obtain ⟨m, hm⟩ := hs n.val |
| 39 | refine ⟨decompose ℳ m d, Subtype.ext ?_⟩ |
| 40 | exact homogeneous_preimage ℳ 𝒩 f hf d n.val n.property m hm |
| 41 | |
| 42 | variable {P : Type*} [AddCommGroup P] [Module R P] |
| 43 | variable (ℙ : δ → Submodule R P) |
| 44 | |
| 45 | theorem degreeMap_exact (f : M →ₗ[R] N) (g : N →ₗ[R] P) |
| 46 | (hf : ∀ d m, m ∈ ℳ d → f m ∈ 𝒩 d) (hg : ∀ d n, n ∈ 𝒩 d → g n ∈ ℙ d) |
| 47 | (hex : Function.Exact f g) (d : δ) : |
| 48 | Function.Exact (degreeMap ℳ 𝒩 f hf d) (degreeMap 𝒩 ℙ g hg d) := by |
| 49 | intro n |
| 50 | constructor |
| 51 | · intro hn |
| 52 | have hn' : g n.val = 0 := congrArg Subtype.val hn |
| 53 | obtain ⟨m, hm⟩ := (hex n.val).mp hn' |
| 54 | refine ⟨decompose ℳ m d, Subtype.ext ?_⟩ |
| 55 | exact homogeneous_preimage ℳ 𝒩 f hf d n.val n.property m hm |
| 56 | · rintro ⟨m, hm⟩ |
| 57 | apply Subtype.ext |
| 58 | exact (hex n.val).mpr ⟨m.val, congrArg Subtype.val hm⟩ |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.Exactness.GradedModules |