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.AddedKernelDifferential |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.AddedKernelDegrees |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Linear.FormLocalizedCech |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Cech.ExactLeft |
| 5 | |
| 6 | /-! # Added Kernel Exactness -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.AddedKernelExactness.ProjectiveCech |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Adding a homogeneous linear coordinate gives an exact kernel in every internal degree. -/ |
| 13 | |
| 14 | open _root_.MvPolynomial DirectSum |
| 15 | |
| 16 | universe u v w |
| 17 | |
| 18 | variable {σ : Type u} [Fintype σ] [LinearOrder σ] |
| 19 | variable (R : Type v) [CommRing R] |
| 20 | variable [Algebra (MvPolynomial (WithBot σ) R) (MvPolynomial σ R)] |
| 21 | [IsScalarTower R (MvPolynomial (WithBot σ) R) (MvPolynomial σ R)] |
| 22 | variable (he : ∀ i : σ, algebraMap (MvPolynomial (WithBot σ) R) (MvPolynomial σ R) (X (i : WithBot σ)) = X i) |
| 23 | variable (M : Type w) [AddCommGroup M] [Module R M] |
| 24 | [Module (MvPolynomial (WithBot σ) R) M] [Module (MvPolynomial σ R) M] |
| 25 | [IsScalarTower R (MvPolynomial (WithBot σ) R) M] [IsScalarTower R (MvPolynomial σ R) M] |
| 26 | [IsScalarTower (MvPolynomial (WithBot σ) R) (MvPolynomial σ R) M] |
| 27 | variable (l : MvPolynomial σ R) |
| 28 | variable (hl : algebraMap (MvPolynomial (WithBot σ) R) (MvPolynomial σ R) (X ⊥) = l) |
| 29 | variable (ℳ : ℤ → Submodule R M) [Decomposition ℳ] |
| 30 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) ℳ] |
| 31 | |
| 32 | include hl in |
| 33 | theorem addedModuleCechKernel_exact (hlhom : l.IsHomogeneous 1) (d : ℤ) (q : ℕ) |
| 34 | (f : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := WithBot σ) R M) |
| 35 | (hf : ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R M ℳ d f) (hfc : ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R M q f) |
| 36 | (hker : ModuleCech.HomogeneousLift.ProjectiveCech.retainedModuleCechMap R Function.Embedding.coeWithBot he M f = 0) |
| 37 | (hcycle : ModuleCech.Card.ProjectiveCech.moduleCechDifferential R M f = 0) : |
| 38 | ∃ g : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := WithBot σ) R M, |
| 39 | ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R M ℳ d g ∧ ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R M (q - 1) g ∧ |
| 40 | ModuleCech.HomogeneousLift.ProjectiveCech.retainedModuleCechMap R Function.Embedding.coeWithBot he M g = 0 ∧ ModuleCech.Card.ProjectiveCech.moduleCechDifferential R M g = f := by |
| 41 | let E := AddedCechKernel.ProjectiveCech.addedModuleCechComponent R he M l hl |
| 42 | have hl' : l ∈ WeightedFreeModules.GradedModules.polynomialIntegerGrading R (1 : ℤ) := by |
| 43 | rw [show (1 : ℤ) = ((1 : ℕ) : ℤ) from rfl, IntegerPolynomialGrading.GradedModules.polynomialIntegerGrading_nat] |
| 44 | exact hlhom |
| 45 | have hEh := AddedKernelDegrees.ProjectiveCech.addedModuleCechComponent_homogeneous R he M l hl ℳ hl' d f hf |
| 46 | have hEc : ModuleCech.Card.ProjectiveCech.moduleCechDifferential R (Presentations.Module.Fractions.GradedModules.AwayModule l M) (E f) = 0 := by |
| 47 | have h := AddedKernelDifferential.ProjectiveCech.addedModuleCechComponent_differential R he M l hl f hker |
| 48 | rw [hcycle, map_zero] at h |
| 49 | exact neg_eq_zero.mp h.symm |
| 50 | have hzero (hfzero : f = 0) : ∃ g : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := WithBot σ) R M, |
| 51 | ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R M ℳ d g ∧ ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R M (q - 1) g ∧ |
| 52 | ModuleCech.HomogeneousLift.ProjectiveCech.retainedModuleCechMap R Function.Embedding.coeWithBot he M g = 0 ∧ ModuleCech.Card.ProjectiveCech.moduleCechDifferential R M g = f := by |
| 53 | exact ⟨0, fun _ => Submodule.zero_mem _, fun _ _ => rfl, map_zero _, (map_zero _).trans hfzero.symm⟩ |
| 54 | cases q with |
| 55 | | zero => exact hzero (AddedKernelDegrees.ProjectiveCech.retainedModuleCechMap_kernel_card_zero R he M f hker hfc) |
| 56 | | succ q => |
| 57 | have hEcard := AddedKernelDegrees.ProjectiveCech.addedModuleCechComponent_card R he M l hl q f hfc |
| 58 | cases q with |
| 59 | | zero => |
| 60 | have hEfzero := Cech.ExactLeft.ProjectiveCech.moduleCechExactAt_zero_vanish R (Presentations.Module.Fractions.GradedModules.AwayModule l M) (Localized.DegreePieces.GradedModules.localizedDegreePiece ℳ l 1) d |
| 61 | (Linear.FormLocalizedCech.ProjectiveCech.linearFormLocalized_moduleCechExactAt R M ℳ l hlhom d 0) (E f) hEh hEcard hEc |
| 62 | apply hzero |
| 63 | apply AddedCechKernel.ProjectiveCech.addedModuleCechComponent_injective_on_kernel R he M l hl f 0 hker (map_zero _) |
| 64 | exact hEfzero.trans (map_zero E).symm |
| 65 | | succ r => |
| 66 | have hnEh : ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R (Presentations.Module.Fractions.GradedModules.AwayModule l M) (Localized.DegreePieces.GradedModules.localizedDegreePiece ℳ l 1) d (-E f) := |
| 67 | fun s => Submodule.neg_mem _ (hEh s) |
| 68 | have hnEc : ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R (Presentations.Module.Fractions.GradedModules.AwayModule l M) (r + 1) (-E f) := by |
| 69 | intro s hs |
| 70 | change -(E f s) = 0 |
| 71 | rw [hEcard s hs, neg_zero] |
| 72 | have hnCycle : ModuleCech.Card.ProjectiveCech.moduleCechDifferential R (Presentations.Module.Fractions.GradedModules.AwayModule l M) (-E f) = 0 := by rw [map_neg, hEc, neg_zero] |
| 73 | obtain ⟨a, ha, hac, had⟩ := Linear.FormLocalizedCech.ProjectiveCech.linearFormLocalized_moduleCechExactAt R M ℳ l hlhom d (r + 1) |
| 74 | (-E f) hnEh hnEc hnCycle |
| 75 | obtain ⟨g, hg⟩ := (AddedCechKernel.ProjectiveCech.addedModuleCechKernelEquiv R he M l hl).surjective a |
| 76 | change E g.val = a at hg |
| 77 | refine ⟨g.val, ?_, ?_, g.property, ?_⟩ |
| 78 | · apply (AddedKernelDegrees.ProjectiveCech.addedModuleCechComponent_homogeneous_iff R he M l hl ℳ hl' d g.val g.property).mp |
| 79 | change ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R (Presentations.Module.Fractions.GradedModules.AwayModule l M) (Localized.DegreePieces.GradedModules.localizedDegreePiece ℳ l 1) d (E g.val) |
| 80 | rwa [hg] |
| 81 | · change ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R M (r + 1) g.val |
| 82 | apply (AddedKernelDegrees.ProjectiveCech.addedModuleCechComponent_card_iff R he M l hl r g.val g.property).mp |
| 83 | change ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R (Presentations.Module.Fractions.GradedModules.AwayModule l M) r (E g.val) |
| 84 | simpa only [hg, Nat.add_sub_cancel] using hac |
| 85 | · apply AddedCechKernel.ProjectiveCech.addedModuleCechComponent_injective_on_kernel R he M l hl |
| 86 | (ModuleCech.Card.ProjectiveCech.moduleCechDifferential R M g.val) f |
| 87 | (AddedKernelDifferential.ProjectiveCech.retainedModuleCechMap_kernel_differential R he M g.val g.property) hker |
| 88 | rw [AddedKernelDifferential.ProjectiveCech.addedModuleCechComponent_differential R he M l hl g.val g.property] |
| 89 | change -ModuleCech.Card.ProjectiveCech.moduleCechDifferential R (Presentations.Module.Fractions.GradedModules.AwayModule l M) (E g.val) = E f |
| 90 | rw [hg, had, neg_neg] |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.AddedKernelExactness.ProjectiveCech |