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.Cech.DimensionShift |
| 2 | |
| 3 | /-! # Exact Left -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Cech.ExactLeft.ProjectiveCech |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Exactness at the left end of a short exact sequence of graded projective Čech complexes. -/ |
| 10 | |
| 11 | open _root_.MvPolynomial DirectSum |
| 12 | |
| 13 | universe u v w t |
| 14 | |
| 15 | variable {σ : Type u} [LinearOrder σ] |
| 16 | variable (R : Type v) [CommRing R] |
| 17 | variable (M : Type w) [AddCommGroup M] [Module R M] [Module (MvPolynomial σ R) M] |
| 18 | [IsScalarTower R (MvPolynomial σ R) M] |
| 19 | variable (ℳ : ℤ → Submodule R M) |
| 20 | |
| 21 | theorem moduleCechExactAt_zero_vanish (d : ℤ) |
| 22 | (hex : DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := σ) R M ℳ d 0) |
| 23 | (f : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := σ) R M) (hf : ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R M ℳ d f) |
| 24 | (hcard : ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R M 0 f) (hcycle : ModuleCech.Card.ProjectiveCech.moduleCechDifferential R M f = 0) : f = 0 := by |
| 25 | obtain ⟨g, _, hgc, hgd⟩ := hex f hf hcard hcycle |
| 26 | have hdc := ModuleCech.Card.ProjectiveCech.moduleCechDifferential_card R M 0 g hgc |
| 27 | funext s |
| 28 | by_cases hs : s.card = 0 |
| 29 | · exact (congrFun hgd s).symm.trans (hdc s (by omega)) |
| 30 | · exact hcard s hs |
| 31 | |
| 32 | variable {N : Type t} [AddCommGroup N] [Module R N] [Module (MvPolynomial σ R) N] |
| 33 | [IsScalarTower R (MvPolynomial σ R) N] |
| 34 | variable (𝒩 : ℤ → Submodule R N) |
| 35 | |
| 36 | theorem moduleCechExactAt_zero_of_injective |
| 37 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) ℳ] |
| 38 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) 𝒩] |
| 39 | (i : M →ₗ[MvPolynomial σ R] N) |
| 40 | (hi : ∀ d m, m ∈ ℳ d → i m ∈ 𝒩 d) (hinj : Function.Injective i) |
| 41 | (d : ℤ) (hN : DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := σ) R N 𝒩 d 0) : |
| 42 | DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := σ) R M ℳ d 0 := by |
| 43 | intro f hf hcard hcycle |
| 44 | have hif : ModuleCech.Maps.ProjectiveCech.moduleCechMap R i f = 0 := |
| 45 | moduleCechExactAt_zero_vanish R N 𝒩 d hN _ |
| 46 | (ModuleCech.Maps.ProjectiveCech.moduleCechMap_homogeneous R ℳ 𝒩 i hi d f hf) |
| 47 | (ModuleCech.Maps.ProjectiveCech.moduleCechMap_card R i 0 f hcard) (by rw [← ModuleCech.Maps.ProjectiveCech.moduleCechMap_differential, hcycle, map_zero]) |
| 48 | have hz : f = 0 := (ModuleCech.Maps.ProjectiveCech.moduleCechMap_injective R i hinj) (hif.trans (map_zero _).symm) |
| 49 | refine ⟨0, fun _ => Submodule.zero_mem _, fun _ _ => rfl, ?_⟩ |
| 50 | rw [map_zero, hz] |
| 51 | |
| 52 | variable {P : Type*} [AddCommGroup P] [Module R P] [Module (MvPolynomial σ R) P] |
| 53 | [IsScalarTower R (MvPolynomial σ R) P] |
| 54 | variable (ℙ : ℤ → Submodule R P) |
| 55 | variable [Decomposition ℳ] [Decomposition 𝒩] [Decomposition ℙ] |
| 56 | variable [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) ℳ] |
| 57 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) 𝒩] |
| 58 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) ℙ] |
| 59 | |
| 60 | theorem moduleCech_exact_left (i : M →ₗ[MvPolynomial σ R] N) (p : N →ₗ[MvPolynomial σ R] P) |
| 61 | (hi : ∀ d m, m ∈ ℳ d → i m ∈ 𝒩 d) (hp : ∀ d n, n ∈ 𝒩 d → p n ∈ ℙ d) |
| 62 | (hinj : Function.Injective i) (hsurj : Function.Surjective p) (hex : Function.Exact i p) |
| 63 | (d : ℤ) (q : ℕ) (hN : DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := σ) R N 𝒩 d (q + 1)) |
| 64 | (hP : DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := σ) R P ℙ d q) : |
| 65 | DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := σ) R M ℳ d (q + 1) := by |
| 66 | intro f hf hcard hcycle |
| 67 | have hif := ModuleCech.Maps.ProjectiveCech.moduleCechMap_homogeneous R ℳ 𝒩 i hi d f hf |
| 68 | have hic := ModuleCech.Maps.ProjectiveCech.moduleCechMap_card R i (q + 1) f hcard |
| 69 | have hid : ModuleCech.Card.ProjectiveCech.moduleCechDifferential R N (ModuleCech.Maps.ProjectiveCech.moduleCechMap R i f) = 0 := by |
| 70 | rw [← ModuleCech.Maps.ProjectiveCech.moduleCechMap_differential, hcycle, map_zero] |
| 71 | obtain ⟨y, hy, hyc, hyd⟩ := hN (ModuleCech.Maps.ProjectiveCech.moduleCechMap R i f) hif hic hid |
| 72 | simp only [Nat.add_sub_cancel] at hyc |
| 73 | have hpy := ModuleCech.Maps.ProjectiveCech.moduleCechMap_homogeneous R 𝒩 ℙ p hp d y hy |
| 74 | have hpc := ModuleCech.Maps.ProjectiveCech.moduleCechMap_card R p q y hyc |
| 75 | have hpd : ModuleCech.Card.ProjectiveCech.moduleCechDifferential R P (ModuleCech.Maps.ProjectiveCech.moduleCechMap R p y) = 0 := by |
| 76 | rw [← ModuleCech.Maps.ProjectiveCech.moduleCechMap_differential, hyd] |
| 77 | exact (ModuleCech.Maps.ProjectiveCech.moduleCechMap_exact R i p hex _).mpr ⟨f, rfl⟩ |
| 78 | have hcorrect : ∃ z : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := σ) R N, |
| 79 | ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R N 𝒩 d z ∧ ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R N q z ∧ |
| 80 | ModuleCech.Maps.ProjectiveCech.moduleCechMap R p z = 0 ∧ ModuleCech.Card.ProjectiveCech.moduleCechDifferential R N z = ModuleCech.Maps.ProjectiveCech.moduleCechMap R i f := by |
| 81 | cases q with |
| 82 | | zero => |
| 83 | exact ⟨y, hy, hyc, moduleCechExactAt_zero_vanish R P ℙ d hP _ hpy hpc hpd, hyd⟩ |
| 84 | | succ q => |
| 85 | obtain ⟨a, ha, hac, had⟩ := hP _ hpy hpc hpd |
| 86 | simp only [Nat.add_sub_cancel] at hac |
| 87 | obtain ⟨b, hb, hbc, hbp⟩ := ModuleCech.ExactSequences.ProjectiveCech.moduleCechMap_lift R 𝒩 ℙ p hp hsurj d q a ha hac |
| 88 | refine ⟨y - ModuleCech.Card.ProjectiveCech.moduleCechDifferential R N b, ?_, ?_, ?_, ?_⟩ |
| 89 | · intro s |
| 90 | exact Submodule.sub_mem _ (hy s) (ModuleCech.Card.ProjectiveCech.moduleCechDifferential_homogeneous R N 𝒩 d b hb s) |
| 91 | · intro s hs |
| 92 | change y s - ModuleCech.Card.ProjectiveCech.moduleCechDifferential R N b s = 0 |
| 93 | rw [hyc s hs, ModuleCech.Card.ProjectiveCech.moduleCechDifferential_card R N q b hbc s hs, sub_self] |
| 94 | · rw [map_sub, ModuleCech.Maps.ProjectiveCech.moduleCechMap_differential, hbp, had, sub_self] |
| 95 | · rw [map_sub, ModuleCech.Square.ProjectiveCech.moduleCechDifferential_square, sub_zero, hyd] |
| 96 | obtain ⟨z, hz, hzc, hzp, hzd⟩ := hcorrect |
| 97 | obtain ⟨g, hg, hgc, hgi⟩ := ModuleCech.ExactSequences.ProjectiveCech.moduleCechMap_kernel_lift R ℳ 𝒩 ℙ i p hi hp hex d q z hz hzc hzp |
| 98 | refine ⟨g, hg, hgc, ?_⟩ |
| 99 | apply ModuleCech.Maps.ProjectiveCech.moduleCechMap_injective R i hinj |
| 100 | rw [ModuleCech.Maps.ProjectiveCech.moduleCechMap_differential, hgi, hzd] |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Cech.ExactLeft.ProjectiveCech |