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 Mathlib.LinearAlgebra.Quotient.Basic |
| 3 | import Mathlib.Algebra.Exact.Basic |
| 4 | |
| 5 | /-! # Graded Cyclic Degree Sequence -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.GradedCyclicDegreeSequence |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The exact sequence in each degree obtained by adjoining one homogeneous generator. -/ |
| 12 | |
| 13 | open DirectSum |
| 14 | universe u v w |
| 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] |
| 18 | [IsScalarTower R A M] |
| 19 | |
| 20 | def degreeRelations (ℳ : ℤ → Submodule R M) (P : Submodule A M) (d : ℤ) : |
| 21 | Submodule R (ℳ d) := (P.restrictScalars R).comap (ℳ d).subtype |
| 22 | |
| 23 | abbrev DegreeQuotient (ℳ : ℤ → Submodule R M) (P : Submodule A M) (d : ℤ) := |
| 24 | (ℳ d) ⧸ degreeRelations ℳ P d |
| 25 | |
| 26 | def degreeQuotientMap (ℳ : ℤ → Submodule R M) {P Q : Submodule A M} |
| 27 | (hPQ : P ≤ Q) (d : ℤ) : DegreeQuotient ℳ P d →ₗ[R] DegreeQuotient ℳ Q d := |
| 28 | (degreeRelations ℳ P d).mapQ (degreeRelations ℳ Q d) LinearMap.id |
| 29 | (fun _ hx => hPQ hx) |
| 30 | |
| 31 | theorem degreeQuotientMap_surjective (ℳ : ℤ → Submodule R M) {P Q : Submodule A M} |
| 32 | (hPQ : P ≤ Q) (d : ℤ) : Function.Surjective (degreeQuotientMap ℳ hPQ d) := by |
| 33 | intro x |
| 34 | obtain ⟨m, rfl⟩ := (degreeRelations ℳ Q d).mkQ_surjective x |
| 35 | exact ⟨(degreeRelations ℳ P d).mkQ m, rfl⟩ |
| 36 | |
| 37 | variable (𝒜 : ℤ → Submodule R A) [GradedAlgebra 𝒜] |
| 38 | variable (ℳ : ℤ → Submodule R M) [Decomposition ℳ] [SetLike.GradedSMul 𝒜 ℳ] |
| 39 | |
| 40 | def cyclicScalarDegreeMap {m : M} {e : ℤ} (hm : m ∈ ℳ e) (d : ℤ) : |
| 41 | 𝒜 (d - e) →ₗ[R] ℳ d := |
| 42 | (((LinearMap.toSpanSingleton A M m).restrictScalars R).comp (𝒜 (d - e)).subtype).codRestrict (ℳ d) (fun a => by |
| 43 | change a.val • m ∈ ℳ d |
| 44 | have h : a.val • m ∈ ℳ ((d - e) + e) := SetLike.GradedSMul.smul_mem a.property hm |
| 45 | simpa only [sub_add_cancel] using h) |
| 46 | |
| 47 | def cyclicDegreeInjection (P : Submodule A M) {m : M} {e : ℤ} |
| 48 | (hm : m ∈ ℳ e) (d : ℤ) : |
| 49 | DegreeQuotient 𝒜 (GradedCyclicSubmodule.relativeAnnihilator P m) (d - e) →ₗ[R] DegreeQuotient ℳ P d := |
| 50 | (degreeRelations 𝒜 (GradedCyclicSubmodule.relativeAnnihilator P m) (d - e)).mapQ |
| 51 | (degreeRelations ℳ P d) (cyclicScalarDegreeMap 𝒜 ℳ hm d) (fun _ hx => hx) |
| 52 | |
| 53 | omit [GradedAlgebra 𝒜] [Decomposition ℳ] in |
| 54 | theorem cyclicDegreeInjection_injective (P : Submodule A M) {m : M} {e : ℤ} |
| 55 | (hm : m ∈ ℳ e) (d : ℤ) : |
| 56 | Function.Injective (cyclicDegreeInjection 𝒜 ℳ P hm d) := by |
| 57 | rw [← LinearMap.ker_eq_bot] |
| 58 | apply bot_unique |
| 59 | intro x hx |
| 60 | change x = 0 |
| 61 | obtain ⟨a, rfl⟩ := (degreeRelations 𝒜 (GradedCyclicSubmodule.relativeAnnihilator P m) (d - e)).mkQ_surjective x |
| 62 | apply (Submodule.Quotient.mk_eq_zero _).mpr |
| 63 | change a.val • m ∈ P |
| 64 | have hxa : (Submodule.Quotient.mk (cyclicScalarDegreeMap 𝒜 ℳ hm d a) : |
| 65 | DegreeQuotient ℳ P d) = 0 := hx |
| 66 | exact (Submodule.Quotient.mk_eq_zero (degreeRelations ℳ P d)).mp hxa |
| 67 | |
| 68 | theorem cyclicDegreeSequence_exact (P : Submodule A M) (hP : P.IsHomogeneous ℳ) |
| 69 | {m : M} {e : ℤ} (hm : m ∈ ℳ e) (d : ℤ) : |
| 70 | Function.Exact (cyclicDegreeInjection 𝒜 ℳ P hm d) |
| 71 | (degreeQuotientMap ℳ (show P ≤ P ⊔ Submodule.span A {m} from le_sup_left) d) := by |
| 72 | intro x |
| 73 | obtain ⟨z, rfl⟩ := (degreeRelations ℳ P d).mkQ_surjective x |
| 74 | constructor |
| 75 | · intro hz |
| 76 | have hzr : (Submodule.Quotient.mk z : |
| 77 | DegreeQuotient ℳ (P ⊔ Submodule.span A {m}) d) = 0 := hz |
| 78 | have hz' : z.val ∈ P ⊔ Submodule.span A {m} := |
| 79 | (Submodule.Quotient.mk_eq_zero (degreeRelations ℳ (P ⊔ Submodule.span A {m}) d)).mp hzr |
| 80 | obtain ⟨p, hp, y, hy, hpy⟩ := Submodule.mem_sup.mp hz' |
| 81 | obtain ⟨a, rfl⟩ := Submodule.mem_span_singleton.mp hy |
| 82 | let a' := decompose 𝒜 a (d - e) |
| 83 | refine ⟨(degreeRelations 𝒜 (GradedCyclicSubmodule.relativeAnnihilator P m) (d - e)).mkQ a', ?_⟩ |
| 84 | apply (Submodule.Quotient.eq _).mpr |
| 85 | change a'.val • m - z.val ∈ P |
| 86 | have h := congrArg (fun t => (decompose ℳ t d).val) hpy |
| 87 | rw [decompose_add, decompose_of_mem_same ℳ z.property] at h |
| 88 | change (decompose ℳ p d).val + (decompose ℳ (a • m) d).val = z.val at h |
| 89 | rw [GradedCyclicSubmodule.homogeneous_smul_component 𝒜 ℳ hm] at h |
| 90 | change (decompose ℳ p d).val + a'.val • m = z.val at h |
| 91 | have heq : a'.val • m - z.val = -(decompose ℳ p d).val := by rw [← h]; abel |
| 92 | rw [heq] |
| 93 | exact P.neg_mem (hP d hp) |
| 94 | · rintro ⟨y, hy⟩ |
| 95 | obtain ⟨a, rfl⟩ := (degreeRelations 𝒜 (GradedCyclicSubmodule.relativeAnnihilator P m) (d - e)).mkQ_surjective y |
| 96 | rw [← hy] |
| 97 | apply (Submodule.Quotient.mk_eq_zero _).mpr |
| 98 | change a.val • m ∈ P ⊔ Submodule.span A {m} |
| 99 | exact (show Submodule.span A {m} ≤ P ⊔ Submodule.span A {m} from le_sup_right) |
| 100 | (Submodule.smul_mem _ _ (Submodule.mem_span_singleton_self m)) |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.GradedCyclicDegreeSequence |